var myDomain = document.referrer;function hideLayer(layername) {	if (document.getElementById){		document.getElementById(layername).style.display = "none";		}	else if (document.all){		document.all[layername].style = "none";		}	else if (document.layers){		document.layers[whichLayer].style = "none";	}		}function showLayer(layername) {	/*document.all[layername].style.display = "block";	*/	//alert(layername);	showBanner();		initAnimation();	window.scrollTo(1,1);		if (document.getElementById){		document.getElementById(layername).style.display = "block";		}	else if (document.all){		document.all[layername].style = "block";		}	else if (document.layers){		document.layers[whichLayer].style = "block";	}	}function showBanner(){	var depCity;    	if(document.flightsearch) {  		depCity = document.flightsearch.departureCity.value;		arrCity = document.flightsearch.arrivalCity.value;  	}else if (document.flighsearch){  		depCity = document.flighsearch.departureCity.value;		arrCity = document.flighsearch.arrivalCity.value;  	}else{  		return;  	}  			/*var depCities 		= "milano,mil,torino,trn,bologna,blq,verona,vrn,venezia,vce";	var arrCitiesUsa 	= "new york,nyc,washington,was";	var arrCitiesSpain 	= "madrid,mad,barcellona,bcn";	var arrCitiesFrance	= "parigi,par";	var arrCitiesItaly	= "roma,rom,fco";	var arrCitiesGeneric = "berlino,ber,amsterdam,ams,bruxelles,bru";*/			depCity		= depCity.toLowerCase();	arrCity		= arrCity.toLowerCase();		/*alert(depCity + " - " + arrCity);		if ((depCities.indexOf(depCity) > -1) && (arrCitiesUsa.indexOf(arrCity) > -1)) {			showEnoUsa();		hideEdreams();	}		if ((depCities.indexOf(depCity) > -1) && (arrCitiesSpain.indexOf(arrCity) > -1)) {			showEnoSpain();		hideEdreams();	}		if ((depCities.indexOf(depCity) > -1) && (arrCitiesFrance.indexOf(arrCity) > -1)) {			showEnoFrance();		hideEdreams();	}		if ((depCities.indexOf(depCity) > -1) && (arrCitiesItaly.indexOf(arrCity) > -1)) {			showEnoItaly();		hideEdreams();	}		if ((depCities.indexOf(depCity) > -1) && (arrCitiesGeneric.indexOf(arrCity) > -1)) {			showEnoGeneric();		hideEdreams();	}*/			/*if ((depCity == "roma") || (depCity == "rom") || (depCity == "rome") || (depCity == "fiumicino") || (depCity == "fco") || (depCity == "ciampino") || (depCity == "cia")){				if (document.getElementById){			document.getElementById("bannerADR").style.display = "block";			}		else if (document.all){			document.all['bannerADR'].style = "block";			}		else if (document.layers){			document.layers['bannerADR'].style = "block";		}			hideEdreams();			}*/		  	}function showEnoUsa(){	if (document.getElementById) document.getElementById("bannerEnoUsa").style.display = "block";		else if (document.all) document.all['bannerEnoUsa'].style = "block";				else if (document.layers) document.layers['bannerEnoUsa'].style = "block";}function showEnoSpain(){	if (document.getElementById) document.getElementById("bannerEnoSpain").style.display = "block";		else if (document.all) document.all['bannerEnoSpain'].style = "block";				else if (document.layers) document.layers['bannerEnoSpain'].style = "block";}function showEnoFrance(){	if (document.getElementById) document.getElementById("bannerEnoFrance").style.display = "block";		else if (document.all) document.all['bannerEnoFrance'].style = "block";				else if (document.layers) document.layers['bannerEnoFrance'].style = "block";}function showEnoItaly(){	if (document.getElementById) document.getElementById("bannerEnoItaly").style.display = "block";		else if (document.all) document.all['bannerEnoItaly'].style = "block";				else if (document.layers) document.layers['bannerEnoItaly'].style = "block";}function showEnoGeneric(){	if (document.getElementById) document.getElementById("bannerEnoGeneric").style.display = "block";		else if (document.all) document.all['bannerEnoGeneric'].style = "block";				else if (document.layers) document.layers['bannerEnoGeneric'].style = "block";}function hideEdreams(){	if (document.getElementById) document.getElementById("bannerEdreams").style.display = "none";		else if (document.all) document.all['bannerEdreams'].style = "none";				else if (document.layers) document.layers['bannerEdreams'].style = "none";}function openCenteredPopUp(myurl,mywidth,myheight) {	alert(myurl + ' - ' + mywidth + ' - ' + myheight);	crwin = window.open(myurl,'popeDreams','menubar=0,titlebar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,width='+mywidth+',height='+myheight+',top='+((screen.availHeight - myheight)/2)+',left='+((screen.availWidth - mywidth)/2));   	crwin.focus();}function showLayerGeneral(layername) {	if (document.getElementById){		document.getElementById(layername).style.display = "block";		}	else if (document.all){		document.all[layername].style = "block";		}	else if (document.layers){		document.layers[whichLayer].style = "block";	}	}
