<!--
var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function cuoreRossoNero(){
		if($('CuoreRossoNero').checked){
			$('crnero').show();
		}
		else{
			$('crnero').hide();
		}
}

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function convdate(vdata)
{
	var strdata=vdata
	var strgiorno="0"+strdata.substring(0,strdata.indexOf("/"))
	strgiorno=strgiorno.slice(-2)
	strdata=strdata.substring(strdata.indexOf("/")+1)
	var strmese="0"+strdata.substring(0,strdata.indexOf("/"))
	strmese=strmese.slice(-2)
	strdata=strdata.substring(strdata.indexOf("/")+1)
	if (strdata.length>1) {
		var stranno="20"+strdata
	} else {
		var stranno="200"+strdata
	}
	stranno=stranno.slice(-4)
	strdata=stranno+strmese+strgiorno
	strdata=parseInt(strdata)
	return strdata
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		return false
	}
return true
}

function controlla(obbligatorio,nome,campo_data,campo_numero,campo_user,campo_pwd){
	var sAgent = navigator.userAgent.toLowerCase() ;
	var elemento = document.getElementById(nome)
	len =elemento.elements.length;
	var i=0;
	var campo=' I seguenti campi obbligatori sono stati lasciati vuoti o il loro contenuto non e\' valido.:\n'
	var passa=true
	campo=campo+'_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n\t\t '
	for( i=0 ; i<len ; i++) {
		if (elemento.elements[i].name.length > 0)
		{
			if (elemento.elements[i].name.indexOf(obbligatorio)>0 & elemento.elements[i].value.length<=0 ) {
				campo=campo+' # '+elemento.elements[i].title+' # \n\n\t\t '
				passa=false
			} else if (elemento.elements[i].name.indexOf(campo_user)>0 & elemento.elements[i].value.length<=5) {
				campo=campo+' # '+elemento.elements[i].title+' # \n\n\t\t '
				passa=false
			} else if (elemento.elements[i].name.indexOf(campo_pwd)>0 & elemento.elements[i].value.length<=5) {
				campo=campo+' # '+elemento.elements[i].title+' # \n\n\t\t '
				passa=false
			} else {
				if (elemento.elements[i].name.indexOf(campo_data) > 0 & !isDate(elemento.elements[i].value) &  elemento.elements[i].value.length > 0) {
						alert(elemento.elements[i].value + ' - ' + elemento.elements[i].name);
					campo=campo+' # '+elemento.elements[i].title+ ' - ' + elemento.elements[i].name+' # \n\n\t\t '
					passa=false
				}else if (elemento.elements[i].name.indexOf(campo_numero)>0 & isNaN(elemento.elements[i].value.replace(',','.')) & elemento.elements[i].value.length > 0) {
					campo=campo+' # '+elemento.elements[i].title+' # \n\n\t\t '
					passa=false
				}
			}
		}
	}
	campo=campo+'\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ '
	if (passa){
		return true;
	}else{ 
		alert(campo)
		return false;
	}
}


function controllasub(obbligatorio,nome,campo_data,campo_numero)
{
	
	

	var elemento = document.getElementById(nome)
	len =elemento.elements.length;
	var i=0;
	var campo='\t'+' I seguenti campi obbligatori sono stati lasciati vuoti o errati :\r'
	var passa=true
	campo=campo+'_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\r\t'
	for( i=0 ; i<len ; i++) {
		if (elemento.elements[i].name.lenght > 0)
		{
			if (elemento.elements[i].name.indexOf(obbligatorio)>0 & elemento.elements[i].value.length<=0) {
				campo=campo+'<'+elemento.elements[i].title+'> '
				passa=false
			} else if (elemento.elements[i].name.indexOf(campo_data)>0 & !isDate(elemento.elements[i].value)) {
				campo=campo+'#'+elemento.elements[i].title+'# '
				passa=false
			} else if (elemento.elements[i].name.indexOf(campo_numero)>0 & isNaN(elemento.elements[i].value.replace(',','.'))) {
				campo=campo+'#'+elemento.elements[i].title+'# '
				passa=false
			}
		}
	}
	campo=campo+'\r_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ '
	if (passa) 
	{
		return true;
	} else 
		{ 
			alert(campo) 
			return false;
		}
}

function form(nome)
{
	nome.submit()
}


function popup(scelta){
	finestra = window.open(scelta,'AREADMIN','scrollbars=yes,resizable=NO,width=500,height=300,status=no,location=no,toolbar=no,left=50,top=50');
	finestra.focus();
}
function popupwh(scelta,w,h){
	finestra = window.open(scelta,'AREADMIN','scrollbars=yes,resizable=NO,width='+w+',height='+h+',status=no,location=no,toolbar=no,left=50,top=50');
	finestra.focus();
}
function popupwhns(scelta,w,h){
	finestra = window.open(scelta,'AREADMIN','scrollbars=no,resizable=NO,width='+w+',height='+h+',status=no,location=no,toolbar=no,left=50,top=50');
	finestra.focus();
}
function popup2(scelta){
	finestra = window.open(scelta,'AREADMIN','scrollbars=yes,resizable=YES,width=500,height=400,status=yes,location=no,toolbar=yes,left=50,top=50');
	finestra.focus();
}

function confermaurl(Viewtesto,urltogo)
{
	if (confirm(Viewtesto))
	{
		document.location.href=urltogo
	}
}

function findPosX(obj2)
{
	var curleft = 0;
	var obj=obj2;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj2)
{
	var curtop = 0;
	var obj=obj2;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function findHeight(obj2)
{
	var curtop = 0;
	var obj=obj2;
	curtop += obj.offsetHeight
	return curtop;
}
function findWidth(obj2)
{
	var curtop = 0;
	var obj=obj2;
	curtop = obj.offsetWidth
	return curtop;
}
var sopra=false;


function metti_tenda(x,y,livello,tipo,dati) {
	var quanti_form=document.forms.length
	//for (i=0;i<quanti_form;i++) {
		//document.forms[i].style.visibility="hidden"
	//}
	if (livello>=0) {
		var obj=document.getElementById("tenda_"+livello);
		if (tipo=="click") {
			if (obj.style.display=="none") {
				obj.style.display="";
			} else {
				obj.style.display="none";
			}
		} else if (tipo=="scorri") {
			obj.style.display="";
		}
		obj.style.left=x;
		obj.style.top=y;
		obj.innerHTML=eval("tendina_"+dati)
		sopra=true;
	}
}

function init(quanti) {
	var obj=""
	for (i=0;i<=quanti;i++) {
		obj=document.getElementById("tenda_"+i);
		obj.style.display="none";
	}
}
function illumina(obj) {
	var quanti_form=document.forms.length
	//for (i=0;i<quanti_form;i++) {
	//	document.forms[i].style.visibility="hidden"
	//}
	sopra=true;
	obj.style.background="#B6BDD2";
	obj.style.color="#fff";
}
function spegni(obj) {
	obj.style.background="#F9F8F7";
	obj.style.color="#000"
	sopra=false;
}
function chiudi(livello) {
	obj=document.getElementById("tenda_"+livello);
	obj.style.display="none";
}

var n_tende=0
function chiudi_ramo(livello) {
	if (livello<=0) {
		var quanti_form=document.forms.length
//		for (i=0;i<quanti_form;i++) {
			//document.forms[i].style.visibility="visible"
		
//		}
	}
	for (i=livello+1;i<n_tende;i++) {
		obj=document.getElementById("tenda_"+i);
		obj.style.display="none";
	}
}
function chiudi_ramo_over(livello) {
	for (i=livello+1;i<n_tende;i++) {
		obj=document.getElementById("tenda_"+i);
		obj.style.display="none";
	}
}

function cerca(scelta)
{
	finestra = window.open(scelta,'AREADMIN','scrollbars=yes,resizable=NO,width=550,height=450,status=no,location=no,toolbar=no,left=50,top=50');
	finestra.focus();
}

function addcart(codice,riga)
{
	listasoci.rows(riga).cells(0).innerHTML=('');
	listasoci.rows(riga).cells(1).innerHTML=('');
	parent.cart.location.href="carrello.asp?addcarr=" + codice + '&nocarica=1';
}

function checkall(nomeform,nomeck,sel)
		{
			var elemento = document.getElementById(nomeform)
			len =elemento.elements.length;
			var i=0;
			for( i=0 ; i<len ; i++) {
				if (elemento.elements[i].name == nomeck){
					elemento.elements[i].checked = sel
				}
			}
		}
function inserisciAjax(ide,nome,nomeId,nomeEtichetta){
	var elemento = document.getElementById(nomeId)
	var elemento2=document.getElementById(nomeEtichetta)
	elemento.value=ide;
	elemento2.innerHTML=nome
	var divResult = document.getElementById("risultati_"+nomeId)
	divResult.style.display='none';
}
function cambiaVisibilita(idCambio){
	if($('imgBln_'+ idCambio).getAttribute('src').toLowerCase().indexOf('false')>0){
		cambiaDa1 = 'false';
		cambiaCon1 = 'true';
	}else{
		cambiaDa1 = 'true';
		cambiaCon1 = 'false';
	};
	$('imgBln_'+ idCambio).setAttribute('src',$('imgBln_'+ idCambio).getAttribute('src').toLowerCase());
	$('imgBln_'+ idCambio).setAttribute('src',$('imgBln_'+ idCambio).getAttribute('src').replace(cambiaDa1,cambiaCon1));
}

function popupwh2(scelta,w,h){
   finestra = window.open(scelta,'AREADMIN','scrollbars=no,resizable=yes,width='+w+',height='+h+',status=no,location=no,toolbar=no,left=50,top=50');
   finestra.focus();
}

function openImageWindow(imageSrc) {
	fileName = '/popupgall.htm?' + escape(imageSrc);
	myWindowHandle = window.open(fileName,'popup','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');
}

function ricercaTree(parola){
	var voci = document.getElementsByClassName('cella');
	var parolaSearch = parola.toUpperCase();
	for (i=0;i<voci.length;i++){
		voci[i].firstChild.innerHTML = vociOriginali[i];
	}
	for (i=0;i<voci.length;i++){
		voce = 	voci[i].firstChild.firstChild
		if(parola.length>0){
			var posParola = voce.nodeValue.toUpperCase().indexOf(parolaSearch);
			if(posParola>=0){
				voci[i].firstChild.innerHTML = voci[i].firstChild.innerHTML.toUpperCase().replace(parolaSearch,'<span style="background-color:yellow;font-weight:bold;">'+parolaSearch+'</span>')
			}
		}else{
			voci[i].firstChild.innerHTML = vociOriginali[i];
		}
	}
}

function RichiediInfo(qualeDiv,ilForm,qualePagina){
	//$(qualeDiv).innerHTML = '<div style="padding-bottom:3px;margin:auto;text-align:center;"><img src="/css/img/indicator_blu.gif" alt="" width="16" height="16" border="0" align="absmiddle"></div>';
	new Ajax.Updater(qualeDiv, qualePagina , {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize(ilForm)
														}
					);
	return false;
}

function votoEagle(quale,cliccato,idSet,cerca){
	var arrVoto = document.getElementsByName("votoEaglefilm")
	var campoVoto = document.getElementById(idSet)
	for (i=0;i<arrVoto.length;i++){
		if (!cliccato){
			if (quale>=i){
				arrVoto[i].src = arrVoto[i].src.replace("no.gif","sel.gif")
			}else{
				arrVoto[i].src = arrVoto[i].src.replace("sel.gif","no.gif")
			}
		}else{
			if (quale>=i){
				arrVoto[i].src = arrVoto[i].src.replace("sel.gif","si.gif")
			}else{
				arrVoto[i].src = arrVoto[i].src.replace("si.gif","sel.gif")
			}
		}
	}
	if (cliccato){
		for (i=0;i<arrVoto.length;i++){
			if (arrVoto[i].src.indexOf("sel.gif")>=0){
				arrVoto[i].src = arrVoto[i].src.replace("sel.gif","no.gif")
			}
		}
		if(campoVoto!=undefined){
			if (cerca==undefined){
				campoVoto.value = quale+1;
			}else{
				if(quale==0 && campoVoto.value == quale+1){
					arrVoto[0].src = arrVoto[0].src.replace("si.gif","no.gif")
					campoVoto.value = "";
				}else{
					campoVoto.value = quale+1;
					if (arrVoto[quale].src.indexOf("no.gif")>=0 && quale ==0){
						arrVoto[quale].src = arrVoto[quale].src.replace("no.gif","si.gif")
					}
				}
			}
		}
	}
}

	var inApertura=false;
	
function cambiaVisib(idDiv) {
	if (!inApertura) {
		inApertura = true;
		setTimeout("inApertura = false",1000);
		if ($(idDiv).style.display=="none") {
			Effect.SlideDown($(idDiv),{ duration: 0.8});
			$(idDiv+'Button').removeClassName('newMenuLevel1');
			$(idDiv+'Button').addClassName('newMenuLevel1s');
		} else {
			Effect.SlideUp($(idDiv),{ duration: 0.8});
			$(idDiv+'Button').removeClassName('newMenuLevel1s');
			$(idDiv+'Button').addClassName('newMenuLevel1');
		}
	}
}


function newLogin(){
 	$('boxLogin').hide();
	$('msgLogin').show();
	$('msgLogin').innerHTML = '<img src="/css/newimg/ajax-loader.gif" alt="Load" class="" title="Loader" height="31" width="31" style="margin-top:70px;" />';
	var utente = $('userUser').value;
	var password = $('pwdUser').value;
 	
	new Ajax.Request("/newInclude/ajaxLogin.asp",{
								method: "post",
								parameters: {u: utente, p:password},
								onSuccess: function(transport) {
									var resText=transport.responseText;
									if (resText=='OK'){
										$('msgLogin').innerHTML = '</p>Utente riconosciuto.</p>'
										document.location.reload();
									} else {
										$('msgLogin').innerHTML= '<p>Utente o Password errati<div style="margin:10px;text-align:right"><a href="javascript:$(\'msgLogin\').hide();javascript:$(\'boxLogin\').show();void(0)">riprova</a></div></p>';
									}
								}
							})
}

function Old_iniziaRicerca(vPage,pkey){
 	$('areaSearch').show();
	$('areaContenuto').hide();
	$('areaSearch').innerHTML = '<div style="text-align:center;margin:20px;"><img src="/css/newimg/ajax-loaderBIG.gif" alt="Load" class="" title="Loader" height="66" width="66" style="margin-top:70px;" /></div>';
	var q = $('q').value;
	var titolo_i = $('titolo_i').value;
	var titolo_ori = $('titolo_ori').value;
	var regista= $('regista').value;
	var cast = $('cast').value;
	var vgenere = $('vgenere').value;
	var disponibile = $('disponibile').value;
	var page = vPage;
 
	new Ajax.Updater("areaSearch","/newInclude/resultRicerca.asp",{
								method: "post",
								parameters: {q: q, disponibile:disponibile,vgenere:vgenere,cast:cast,regista:regista,titolo_ori:titolo_ori,titolo_i:titolo_i, pag:page,keyTema:pkey},
								onSuccess: function(transport) {
								}
								
							})
}


function iniziaRicerca(vPage,pkey){
	var q = $('q').value;
	var titolo_i = $('titolo_i').value;
	var titolo_ori = $('titolo_ori').value;
	var regista= $('regista').value;
	var cast = $('cast').value;
	var vgenere = $('vgenere').value;
	var disponibile = $('disponibile').value;
	var page = vPage;
	$('ricercaFilmHe').submit();
}


// function vediBoxRicerca(boxRic){
// 	if (!inApertura) {
// 		inApertura = true;
// 		setTimeout("inApertura = false",800);
// 		if ($(boxRic).style.display=="none") {
// 			new Effect.SlideDown(boxRic,{ duration: 0.8});
// 			if (boxRic == 'nRicercaTema') {loadKeyWord('A')} 
// 		} else {
// 			new Effect.SlideUp(boxRic,{ duration: 0.8});
// 		}
// 	}
// }

function vediBoxRicerca(boxRic){
	if(boxRic==''){
		if($('nRicercaAdv').style.display==''){
			new Effect.SlideUp('nRicercaAdv',{ duration: 0.8});
		}
		if($('nRicercaTema').style.display==''){
			new Effect.SlideUp('nRicercaTema',{ duration: 0.8});
		}
	}else{
		var boxToClose = $((boxRic == 'nRicercaTema') ? 'nRicercaAdv' : 'nRicercaTema');
		$('hrefnRicercaTema').href = 'javascript:void(0)'
		$('hrefnRicercaAdv').href = 'javascript:void(0)'
		inChiusura = false;
		if(boxToClose.style.display==''){
			new Effect.SlideUp(boxToClose,{ duration: 0.8});
			inChiusura = true;
			window.setTimeout("inChiusura = false", 800);	
		}
		var timerBoxRicerca = window.setInterval(
			function(){
				if(boxToClose.style.display=='none' && !inChiusura){
					clearInterval(timerBoxRicerca)
					if($(boxRic).style.display == 'none'){
						new Effect.SlideDown(boxRic,{ duration: 0.8});
						if (boxRic == 'nRicercaTema') {loadKeyWord('A')}
					}else{
						new Effect.SlideUp(boxRic,{ duration: 0.8});
					}
					window.setTimeout(
						function(){
							$('hrefnRicercaTema').href = 'javascript:vediBoxRicerca(\'nRicercaTema\');'
							$('hrefnRicercaAdv').href = 'javascript:vediBoxRicerca(\'nRicercaAdv\');'
						}
					, 200);		
		
				}		
			}
		, 100)
	}
}


function changeIcon(aChi,ilBottone, SeAperto,SeChiuso){
 
	if($(aChi).style.display==''){
		new Effect.SlideUp(aChi,{ duration: 0.8});
		$(ilBottone).src = SeAperto;
	} else {
		new Effect.SlideDown(aChi,{ duration: 0.8});
		$(ilBottone).src = SeChiuso;
	}
}

function loadKeyWord(lettera){
	new Ajax.Updater("paroleKeyWord","/newInclude/ajaxKeyWord.asp",{
							method: "get",
							parameters: {l:lettera},
							onSuccess: function(transport) {
							}
						})
}

function filmHomoPromo(boxId,pagina,id250,tipo){
	if (pagina!='first'){
		if (tipo == 'PromoScrollHome1') {
			my_glider1.stop();
			} else {
			my_glider2.stop();
			}
		if (pagina=='next') {
			pagCorr = parseInt($('Page'+boxId).value) + 1
		} else {
			if (pagCorr > 1) {
				pagCorr = parseInt($('Page'+boxId).value) - 1
			} else {
				pagCorr = 1;
			}
		}
	} else {
		pagCorr = 1
	}
	$('Page'+boxId).value = pagCorr;
				new Ajax.Updater(boxId,"/newInclude/homoPromoCnt.asp",{
										method: "get",
										evalScripts:true,
										parameters: {pag:pagCorr,id:id250,TipoElenco:tipo,boxId:boxId},
										onSuccess: function(transport) {
										}
									})
}


function viewDvdDetails(pageGo,id,colore,idColorare,nMax){
	$('cntSchedaDetFilm').hide();
	$('cntSchedaDetFilmWait').show();
	for (cnt=1;cnt<nMax;cnt++){
		$('bottScheda'+cnt).style.backgroundColor='#b3b3b3';
	}
	$('bottScheda'+idColorare).style.backgroundColor=colore;
	var PageFinal= '/newInclude/f_'+ pageGo +'.asp'
	new Ajax.Updater("cntSchedaDetFilm",PageFinal,{
							method: "get",
							evalScripts:true,
							parameters: {id:id},
							onComplete: function(transport) {
								$('cntSchedaDetFilm').show();
								$('cntSchedaDetFilmWait').hide();
							}
						})
}

function openPressLogin(box){
	if (!inApertura) {
		inApertura = true;
		setTimeout("inApertura = false",800);
		if ($(box).style.display=="none") {
			new Effect.SlideDown(box,{ duration: 0.8});
		} else {
			new Effect.SlideUp(box,{ duration: 0.8});
		}
	}
}

function newPressLogin(){
 	$('boxPressLogin').hide();
	$('msgPressLogin').show();
	$('msgPressLogin').innerHTML = '<div style="text-align:center;"><img src="/css/newimg/ajax-loader.gif" alt="Load" class="" title="Loader" height="31" width="31" style="margin-top:70px;" /></div>';
	var utente = $('userPress').value;
	var password = $('pwdPress').value;
	new Ajax.Request("/newInclude/ajaxPressLogin.asp",{
								method: "post",
								parameters: {u: utente, p:password},
								onSuccess: function(transport) {
									
									var resText=transport.responseText;
									if (resText=='OK'){
										$('msgPressLogin').innerHTML = '<p>Utente riconosciuto.</p>'
										document.location.href='/pressarea/';
									} else {
										$('msgPressLogin').innerHTML= '<p>Utente o Password errati<div style="margin:10px;text-align:right"><a href="javascript:$(\'msgPressLogin\').hide();javascript:$(\'boxPressLogin\').show();void(0)">riprova</a></div></p>';
									}
								}
							})
}


function vediClassifica(cosa){
	if (cosa=='DVD'){ altraCosa = 'BLURAY';} else { altraCosa = 'DVD';}
	
	$('Classifica_'+ cosa +'menu').show();
	$('Classifica_'+ altraCosa +'menu').hide();
		
	$('Classifica_'+ cosa).show();
	$('Classifica_'+ altraCosa).hide();
		
	}

function vediPromo(idu,azione){
	if (azione=='apri'){ 
			$('onBannerPromozionale'+ idu ).hide();
			$('offBannerPromozionale'+ idu ).show();
			$('BannerPromozionale'+ idu ).show();
		} else {
			$('onBannerPromozionale'+ idu ).show();
			$('offBannerPromozionale'+ idu ).hide();
			$('BannerPromozionale'+ idu ).hide();
	}
	
	}
	

function searchActor(nome){
	ilForm = $('ricercaFilmHe');
	ilForm['q'].value = nome;
	iniziaRicerca(0,'');
}
 

													var caricatodoc=false
													function mostraDoc() {
														var imagedoc=document.getElementById('downarea')
														//if (imagedoc.src.indexOf('/css/img/view.gif')>0) {
														//	imagedoc.src='/css/img/noview.gif';
														//} else {
														//	imagedoc.src='/css/img/view.gif';
														//}
														if (!caricatodoc) {
															caricatodoc=true
															new Ajax.Updater("downloadarea", "/downloadfilm.asp?ID_001=<%=ID_001%>" , {
																						asynchronous:true,
																						evalScripts:true
																					}
															);
															Effect.Appear('downloadarea',{duration:1, from:0, to:1})
														} else {
															caricatodoc=false
															document.getElementById('downloadarea').innerHTML='';
															$("downloadarea").hide();
														}
													}
												function scorriDoc(pagina) {
													
														new Ajax.Updater("downloadarea", "/downloadfilm.asp?ID_001=<%=ID_001%>&pag="+pagina , {
																					asynchronous:true,
																					evalScripts:true
																				}
														);
												
												}




function altriCommenti(quanti,quale){
	$('cntCommentiDelFilmWait').show(); 
	new Ajax.Updater('cntCommentiDelFilm', '/newInclude/f_commentiutenti.asp?nmax='+quanti+'&id='+ quale , {
														asynchronous:true,
														evalScripts:true,
														onComplete: function(transport) {
															$('cntCommentiDelFilm').show();
															$('cntCommentiDelFilmWait').hide();
														}
														}
					);
	return false;
}



//-->
