function setPosition(){
	
	var foto_h=xHeight("foto_band");
	
	var cont_h=xHeight("content");
	var spot_h=xHeight("spotlight");
	var right_h=xHeight("right");

	var cnt_h=Math.max(spot_h,Math.max(cont_h,right_h-foto_h-5));
	
	cont_h=cnt_h;
	spot_h=cnt_h;
	right_h=cnt_h+foto_h+5;
	
	xHeight("content",cnt_h);
	xHeight("spotlight",cnt_h);	
	xHeight("right",right_h);	

	xHeight("main",right_h+15);
	
	var obj=document.getElementById("spot_bottom");
	obj.style.bottom="-1px";
	obj.style.left="0";

	var obj=document.getElementById("right_bottom");
	obj.style.bottom="-1px";
	obj.style.left="0";

	var obj=document.getElementById("main_cnt_bottom");
	obj.style.bottom="-1px";
	obj.style.left="0";
	
}

window.onload = function(){
	setPosition();
	var obj=document.getElementById("loader_js");
	obj.style.zIndex="0";
	obj.style.display="none";

	var obj=document.getElementById("spot");
	var str="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"380\" height=\"120\" id=\"skaj_flash_03\" align=\"middle\"> <param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"skaj_flash_03.swf\" />";
	str=str+"<param name=\"quality\" value=\"high\" /> <param name=\"bgcolor\" value=\"#000000\" /> <embed src=\"skaj_flash_03.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"380\" height=\"120\" name=\"skaj_flash_03\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> </embed> </object>";
	obj.innerHTML=str;	
	
	var obj=document.getElementById("foto_band");
	var str="";

	str="<embed type=\"application/x-shockwave-flash\" src=\"imagerotator.swf\" id=\"imagerotator\" name=\"player\" quality=\"high\" allowfullscreen=\"true\" allowscriptaccess=\"always\" flashvars=\"file=playlist.php&kenburns=true&linktarget=_self&linkfromdisplay=true&thumbsinplaylist=true&overstretch=none&displayheight=200\" height=\"200\" width=\"575\"></embed>";

/*
	//str=str+"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"575\" height=\"200\" id=\"flashfader\" align=\"middle\"> <param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"flashfader.swf\" />";
	//str=str+"	<param name=\"quality\" value=\"high\" />";
	//str=str+"	<param name=\"bgcolor\" value=\"#000000\" />";
	
	str=str+"	<embed src=\"flashfader.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"575\" height=\"200\""; 
	str=str+"		name=\"flashfader\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\"";
	str=str+"		flashvars=\"showicons=true&showvolume=true&useaudio=true&file=playlist.xml&kenburns=true&linktarget=_self&linkfromdisplay=true&thumbsinplaylist=true&overstretch=none&displayheight=200\"";
	str=str+"		pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"; 
	str=str+"	</embed>";
	
	//str=str+"</object>";
	
	/*
	var str="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"380\" height=\"120\" id=\"flashfader\" align=\"middle\"> <param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"flashfader.swf\" />";
	str+="<param name=\"quality\" value=\"high\" /> <param name=\"bgcolor\" value=\"#000000\" /><embed src=\"flashfader.swf\" width=\"575\" height=\"200\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"";
 	str+="flashvars=\"&showicons=true&showvolume=true&useaudio=true&file=playlist.xml&kenburns=true&linktarget=_self&linkfromdisplay=true&thumbsinplaylist=true&overstretch=none&displayheight=200\" />";
	*/
	//var str="<embed src=\"promo_skaj.swf\" width=\"575\" height=\"200\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
	
	obj.innerHTML=str;	
}
