<!--
function votaImg(nStr,nStel) {
	var finoA;
	finoA = parseInt(nStel) + 1;
	for(i=1; i < finoA; i++){
		elemento = nStr + i;
		document.getElementById(elemento).src="resource/img/votazioni/stella.gif";
	}
	if (finoA != 6){
		for(i=finoA; i < 6; i++){
			elemento = nStr + i;
			document.getElementById(elemento).src="resource/img/votazioni/stellaGrey.gif";
		}
	}
	document.getElementById(nStr).value=nStel;
}

function ricerca_logo(){
	openW('logo.php','Ricerca','no','no','yes','yes','no',0,0,570,500);
}

function ricerca(){
	openW('ricerca.php','Ricerca','no','no','yes','yes','no',0,0,500,500);
}


function openW(pag,pagName,tool,menu,rez,scroll,location,top,left,h,w) {
	window.open(pag,pagName,'toolbar=' + tool + ',menubar=' + menu + ',resizable=' + rez + ',scrollbars=' + scroll + ',location=' + location + ',top=' + top + ',left=' + left + ',height=' + h + ',width=' + w);
}
function searchGoogle(){
	document.formGoogle.action="http://www.google.it/search?biw=1175&hl=it&q=" + document.forms["1"].chiave.value + "+site%3Amynight.it&meta=";
	document.formGoogle.submit();
}
function stampa_flash(percorso, width, height, id, trasp, randN, bgColor){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\""+id+"\" width=\""+width+"\" height=\""+height+"\">");
	document.write("<param name=\"movie\" value=\""+percorso);
	if (randN==true){
		document.write("?" + Math.random());
	}
	document.write("\">");
	document.write("<param name=\"menu\" value=\"false\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"scale\">");
	document.write("<param name=\"bgcolor\" value=\"#" + bgColor + "\">");
	document.write("<embed src=\""+percorso+"\" menu=\"false\" quality=\"high\" scale=\"noborder\" bgcolor=\"#" + bgColor + "\" width="+width+" height="+height+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">");
	if (trasp==true){
		document.write("<param name=\"wmode\" value=\"transparent\">");
	}
	document.write("</embed>");
	document.write("</object>");
}
function closeW()
{
	window.close();
}
function bk(){
	window.history.go(-1);
}
function toggleVisibility(id, mode) {
      var NNtype = (mode == "show") ? mode : "hidden";
      var IEtype = (mode == "show") ? "visible" : "hidden";
      var WC3type = (mode == "show") ? "visible" : "hidden";
      if (document.getElementById) {
            eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
      } else {
            if (document.layers) {
                  document.layers[id].visibility = NNtype;
            } else {
                  if (document.all) {
                        eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
                  }
            }
      }
}
function Mostra(testo,IDS){
	document.getElementById(IDS).innerHTML= testo; // IMPOSTA IL TESTO NEL LIVELLO
	document.getElementById(IDS).style.visibility = "Visible"; // MOSTRA IL LIVELLO
	document.getElementById(IDS).style.position = "Absolute"; // POSIZIONA LIVELLO IN MOD. ASSOLUTA
	document.getElementById(IDS).style.left = event.clientX - 130; // IMPOSTA COORDINATE IN ORIZZONTALE
	document.getElementById(IDS).style.top= event.clientY - 30; // IMPOSTA COORDINATE IN VERTICALE
}
function Nascondi(IDS){
	document.getElementById(IDS).style.visibility = "Hidden"; // NASCONDE IL LIVELLO
}
function moviPubbli(IDS){
	document.getElementById(IDS).style.visibility = "Visible"; // MOSTRA IL LIVELLO
	document.getElementById(IDS).style.position = "Absolute"; // POSIZIONA LIVELLO IN MOD. ASSOLUTA
	document.getElementById(IDS).style.left = 0; // IMPOSTA COORDINATE IN ORIZZONTALE
	document.getElementById(IDS).style.top= 400; // IMPOSTA COORDINATE IN VERTICALE
}
	
//-->
