// JavaScript Document

function nuovaFinestra(){window.open('images/inet.jpg','','width=500, height=700,top=0,left=100')
}

function nuovaFinestra1(){window.open('images/icila.jpg','','width=500, height=700,top=0,left=100')
}

function MostraFlash() {
	document.getElementById('bg_scelta_voli').style.display='none';
	document.getElementById('bg_scelta_viaggi').style.display='none';
	document.getElementById('flash').style.display='block';
}

function Allerta() {
	document.getElementById('bg_scelta').style.display='none';
}

function vediMappa(){window.open('images/mappa.jpg','','width=760, height=480,top=0,left=100')
}

function AbilitaPulsante(se){
		if(se==1) {
		document.getElementById('conferma').disabled=false;
		document.getElementById('conferma').style.filter='alpha(opacity=100)';
		document.getElementById('conferma').style.opacity='1';
		document.getElementById('conferma').style.cursor='pointer';
		} else if(se==0) {
		document.getElementById('conferma').disabled=true;
		document.getElementById('conferma').style.filter='alpha(opacity=60)';
		document.getElementById('conferma').style.opacity='0.60';
		document.getElementById('conferma').style.cursor='default';
		document.getElementById('conferma').style.text='#FFF';
		}
	}
	
function CambiaSfondo(idrif,num) {
	var menu = document.getElementById(idrif);
	menu.style.background= 'url(images/menu_gen'+num+'.gif) bottom right no-repeat';
}

function CambiaBgVoli(idrif,stato) {
	var bg = document.getElementById(idrif);
	if(stato=='on') {
	bg.style.background= 'url(images/bg_scelta_voli_viaggi_on.jpg) top left no-repeat';
	} else if(stato=='off') {
	bg.style.background= 'url(images/bg_scelta_voli.jpg) top left no-repeat';
	}
}

function CambiaBgViaggi(idrif,stato) {
	var bg = document.getElementById(idrif);
	if(stato=='on') {
	bg.style.background= 'url(images/bg_scelta_viaggi_voli_on.jpg) top left no-repeat';
	} else if(stato=='off') {
	bg.style.background= 'url(images/bg_scelta_viaggi.jpg) top left no-repeat';
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function ActPul(Riferimento,nomeClasse){
	document.getElementById(Riferimento).className = nomeClasse;
}
function Toggle(idrif){
	if(document.getElementById(idrif).style.display=="none"){
		document.getElementById(idrif).style.display='';
	}else{
		document.getElementById(idrif).style.display='none';
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function VisualizzaElemento(objMenu)
{
	elem=window.document.getElementById(objMenu);
   if ( elem.style.display == "none")
   {
        elem.style.display = "block";
   }
   else
   {
        elem.style.display = "none";
   }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}