// <script> // just to change the colors //
// JavaScript Document

//Image_portfolio_09
function fillCropperForm (crResultDir,crResultUrl,crImageName) {
	div_Cropper							= '';
	div_Cropper							= document.createElement('div');
	div_Cropper.id				 	= "Crop01";
	div_Cropper.className 	= "cropper";

	input_01 			= document.createElement('input');		input_01.name 	= 'crWidth';						input_01.type 	= 'hidden';		input_01.value = 449;
	input_02 			= document.createElement('input');		input_02.name 	= 'crHeight';						input_02.type 	= 'hidden';		input_02.value = 347;
	input_03 			= document.createElement('input');		input_03.name 	= 'crDivWidth';					input_03.type 	= 'hidden';		input_03.value = 449;
	input_04 			= document.createElement('input');		input_04.name 	= 'crVarCropSize';			input_04.type 	= 'hidden';		input_04.value = 0;
	input_05 			= document.createElement('input');		input_05.name 	= 'crShowPreview';			input_05.type 	= 'hidden';		input_05.value = 0;
	input_06 			= document.createElement('input');		input_06.name 	= 'crResultDir';				input_06.type 	= 'hidden';		input_06.value = crResultDir;
	input_07 			= document.createElement('input');		input_07.name 	= 'crResultUrl';				input_07.type 	= 'hidden';		input_07.value = crResultUrl;
	input_08 			= document.createElement('input');		input_08.name 	= 'crChangeImageID';		input_08.type 	= 'hidden';		input_08.value = "mainImage";
	input_09 			= document.createElement('input');		input_09.name 	= 'crImageName';				input_09.type 	= 'hidden';		input_09.value = crImageName;
	input_10 			= document.createElement('input');		input_10.name 	= 'crPrefixImageName';	input_10.type 	= 'hidden';		input_10.value = '';
	input_11 			= document.createElement('input');		input_11.name 	= 'crShowHideDelete';		input_11.type 	= 'hidden';		input_11.value = '';
	input_12 			= document.createElement('input');		input_12.name 	= 'crShowHideUpload';		input_12.type 	= 'hidden';		input_12.value = ""; //Crop01

	div_Cropper.appendChild(input_01);
	div_Cropper.appendChild(input_02);
	div_Cropper.appendChild(input_03);
	div_Cropper.appendChild(input_04);
	div_Cropper.appendChild(input_05);
	div_Cropper.appendChild(input_06);
	div_Cropper.appendChild(input_07);
	div_Cropper.appendChild(input_08);
	div_Cropper.appendChild(input_09);
	div_Cropper.appendChild(input_10);
	div_Cropper.appendChild(input_11);
	div_Cropper.appendChild(input_12);

	//$('CropperConfigurations').appendChild(div_Cropper);
	var ns4 = (document.layers);
	var ie4 = (document.all && !document.getElementById);
	var ie5 = (document.all && document.getElementById);
	var ns6 = (!document.all && document.getElementById);

	if(ns4){
		document.layers['CropperConfigurations'].innerHTML = " ";
		document.layers['CropperConfigurations'].appendChild(div_Cropper);
	}
	// Explorer 4
	else if(ie4){
		document.all['CropperConfigurations'].innerHTML = " ";
		document.all['CropperConfigurations'].appendChild(div_Cropper);
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById('CropperConfigurations').innerHTML=" ";
		document.getElementById('CropperConfigurations').appendChild(div_Cropper);
	}

	setTimeout('crInitCropper()', 1000);
}
