
// ***********************************************************************************

// PRELOAD PULSANTI ROLLOVER

pulsanteitaoff = new Image; pulsanteitaoff.src = "images/pulsante_ita_off.png"
pulsanteitaon = new Image; pulsanteitaon.src = "images/pulsante_ita_on.png"

pulsantedeuoff = new Image; pulsantedeuoff.src = "images/pulsante_deu_off.png"
pulsantedeuon = new Image; pulsantedeuon.src = "images/pulsante_deu_on.png"

pulsantefraoff = new Image; pulsantefraoff.src = "images/pulsante_fra_off.png"
pulsantefraon = new Image; pulsantefraon.src = "images/pulsante_fra_on.png"

pulsanteengoff = new Image; pulsanteengoff.src = "images/pulsante_eng_off.png"
pulsanteengon = new Image; pulsanteengon.src = "images/pulsante_eng_on.png"

pulsantehomeoff = new Image; pulsantehomeoff.src = "images/pulsante_home_off.png"
pulsantehomeon = new Image; pulsantehomeon.src = "images/pulsante_home_on.png"

pulsantecontattioff = new Image; pulsantecontattioff.src = "images/pulsante_contatti_off.png"
pulsantecontattion = new Image; pulsantecontattion.src = "images/pulsante_contatti_on.png"

pulsantesuoff = new Image; pulsantesuoff.src = "images/pulsante_su_off.png"
pulsantesuon = new Image; pulsantesuon.src = "images/pulsante_su_on.png"



// ***********************************************************************************


// FUNZIONI APERTURA FINESTRE POPUP

function popup540(pagina540) {
newWindow = window.open(pagina540,'pagina540','width=540,height=460,left=50,top=50')
newWindow.focus()
}

function popup700(pagina700) {
newWindow = window.open(pagina700,'pagina700','width=700,height=510,left=50,top=50')
newWindow.focus()
}

function zoomImage(immagine)
   {   fin=open('','zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=50,top=50,width=600,height=600');
   fin.document.open();
   fin.document.write("<html><head><title>Zoom immagine</title>");
   fin.document.write("<link rel='stylesheet' type='text/css' href='popup.css'>");
   fin.document.write("</head><body><div align='center'>");
   fin.document.write("<img src="+immagine+"><br><br>");
   fin.document.write("<span class='testo'>&copy; Hotel Solidea &nbsp;&nbsp; </span>");
   fin.document.write("<a href='Javascript:window.close()'>Chiudi finestra</a>");
   fin.document.write("</div></body></html>");
   fin.document.close();
   fin.focus()
   }


// ***********************************************************************************

// Aggiunta da Deep per lo show/hide delle email
function toggleLayer(whichLayer) {
  var elem, vis;
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichLayer);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function nascondi()
{
	//var emaildiv = document.getElementById(email);
	email.style.display='none';
}

function elimina_email(id)
{
	if (confirm('ATTENZIONE !\n\nCONFERMI ELIMINAZIONE ?'))
	{
		window.location.href='./core/funz/cancella.php?id='+id+'&classe=newsletter';
	}
}
