// JavaScript Document

	function heightWindow(){
		//alert("widthWindow");
		if(document.layers) {
			//alert("uno");
			return(window.Height);	
		}
		else{
			//alert("due");
			return(document.body.offsetHeight);
		}
	}
	
	function posizionaFirma(){
		//alert(heightWindow());
		if (heightWindow()<612){
			//alert("warning");
			document.getElementById("page").style.top="10px";
			document.getElementById("page").style.margin="0";
			document.getElementById("credits").style.bottom="auto";
			document.getElementById("credits").style.top="510px";
		}
		else{
			document.getElementById("page").style.top="50%";
			document.getElementById("page").style.margin="-255px 0 0 0";
			document.getElementById("credits").style.top="auto";
			document.getElementById("credits").style.bottom="5px";
		}
	}
	
	function loadFlashTransparent(file, width, height){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">\n');
		document.write('<param name="movie" value="'+file+'" />\n');
		document.write('<param name="quality" value="high" /><param name="BGCOLOR" value="#000000" /><param name="wmode" value="transparent">\n');
		document.write('<param name="FlashVars" value="max=7&time=5000" />\n');
		document.write('<embed src="'+file+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" FlashVars="max=1&time=5000" bgcolor="#000000"></embed>\n');
		document.write('</object>\n');
	}