   ns4 = (document.getElementById)? true:false;
   ie4 = (document.all)? true:false;
   mouseX=0;
   mouseY=0;
   bVisible = false;
   myw = 0;

   var h = new Object();
   var hc = new Object();
   var hp = new Object();
   var hr = new Object();
   var hnp = new Object();
   var cat = new Object();

   function init() {
      if (ie4) document.onmousemove=mousemove;
      else {
         document.captureEvents(Event.MOUSEMOVE);
         document.onmousemove=mousemove;
      }
   }

   function mousemove(e) {
      if (ns4 && !ie4) {mouseX=e.pageX; mouseY=e.pageY}
      if (ie4) {
         mouseX=(event.clientX + document.body.scrollLeft);
         mouseY=(event.clientY + document.body.scrollTop);
      }
      if (bVisible) {
         if (ns4) d = self.document.getElementById("altdiv");
         if (ie4) d = eval('document.all.altdiv');
          var top = mouseY;
          var height = d.scrollHeight;
          var maxTop = window.document.body.scrollHeight -height;
          if( ie4 ) maxTop -= 20;

         if( top > maxTop ) top = maxTop;
         d.style.top = top +'px';
         d.style.left = mouseX+10+'px';
      }
   }
   function ShowAltdiv( _strHTML, width, disp ) {
      if (ns4) d = self.document.getElementById("altdiv");
      if (ie4) d = eval('document.all.altdiv');

      bVisible = true;

      if (d != null) d.innerHTML = _strHTML;

      var top = mouseY;
      var height = d.scrollHeight;
      var maxTop = window.document.body.scrollHeight -height;
      if( ie4 ) maxTop -= 20;
      if( top > maxTop ) top = maxTop;
      d.style.top = top +'px';
      d.style.left = mouseX+10+'px';
   }

   function HideAltdiv() {
      if (ns4) d = document.getElementById("altdiv");
      if (ie4) d = eval('document.all.altdiv');
      d.innerHTML = '';
      bVisible = false;
      d.style.left = 0;
      d.style.top = 0;
   }

   function MO(name) {
      myname = unescape(name);
      myname = myname.replace(/\+/g , ' ');
      myname = myname.replace(/\\\\/g , '');
      strCLS = 'quick_alt';
      myw = 160 // valore originale 10 * myname.length;

	if (myname=="Buenos Aires"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Vallazze - 1 *</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/vallazze.jpg" align="left" border="1" height="65" width="65">Semplice ed economico. Chi cerca questa soluzione, l\'Hotel Vallazze risponde a queste richieste.<br>Situato vicino all\' <b>Università</b> ed ai più importanti <b>Ospedali</b> Milanesi.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}


	//strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      //strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Dorè - 3 ***</FONT></b></td></tr>';
	//strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/dore.jpg" align="left" border="1" height="65" width="65">Completamente rinnovato, l\'<b>Hotel Dorè</b> offre ai propri clienti tutti i comfort.<br>L\'Albergo è situato nelle immediate vicinanze di <u>Corso Buenos Aires</u> (<i>la via dello shopping milanese</i>) ed a due passi dalla <u>Stazione Centrale</u>...</td></tr>';
	//strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 65</b></td></tr></tbody></table>';
	//}


	else 	if (myname=="Centro"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Brasil - 1 *</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/brasil.jpg" align="left" border="1" height="65" width="65">A poca distanza dal centro storico, la gestione dell\'<b>Hotel Brasil</b> Vi attende per farvi trascorrere un piacevole soggiorno in un\'ambiente confortevole e familiare curato nei particolari...</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 39</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Città Studi"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Ideale - 3 ***</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/ideale.jpg" align="left" border="1" height="65" width="65">Chi vuole il massimo, l\'<b>Hotel Ideale</b> è il massimo. Sia come servizi (<i>dispone dei più moderni comfort</i>), sia come posizione. E\' nelle vicinanze dell\'Università Statale, dell\'Aeroporto di Linate, nonchè a pochi minuti dalla Stazione Centrale e da Corso Buenos Aires...l\'<b>IDEALE</b> per te.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Vittoria"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Delizia - 2 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/delizia.jpg" align="left" border="1" height="65" width="65">Silenzioso ed ben collegato...queste sono le parole d\'ordine, per chi desidera muoversi attraverso la grande città, ma non desidera il frastuono delle metropoli..l\'<b>Hotel Delizia</b> fà per voi.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Stazione Centrale"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Bernina - 3 ***</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/bernina.jpg" align="left" border="1" height="65" width="65">L\'Hotel Bernina accoglie i propri ospiti in un\'ambiente arredato elegantemente e fornito di ogni tipo di comfort..<br>Situato davanti alla Stazione Centrale ed a pochi minuti dal <b>Centro Storico</b>...</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Lambrate"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Sabatino - 2 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/sabatino.jpg" align="left" border="1" height="65" width="65"><b>Cortesia</b> e <b>Simpatia</b>, queste sono le parole d\'ordine del nostro hotel.. abbinate a dei <b>prezzi vantaggiosi</b> durante tutto l\'anno..</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Porta Genova"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Five - 3 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/five.jpg" align="left" border="1" height="65" width="65">A pochi passi dal <b>Centro di Milano</b>, in una zona ricca di ristoranti e wine bar dove trascorrere piacevoli serate, l\'<b>Hotel Five</b> vi attende per offrirVi un servizio di prima categoria..</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}


//versione inglese

	else if (myname=="B.Aires"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Vallazze - 1 *</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/vallazze.jpg" align="left" border="1" height="65" width="65">Simple and cheap.<br>Who looks for this solution, the Hotel Vallazze responds to these requests.<br>Situated next to the <b>University</b> and to the most important <b>Hospitals</b> of Milan.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 40</b></td></tr></tbody></table>';
	}


	//strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      //strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Dorè - 3 ***</FONT></b></td></tr>';
	//strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/dore.jpg" align="left" border="1" height="65" width="65">Completely renewed, the <b>Hotel Dorè</b> offers all the comforts to own guests.<br>The hotel is situated in the proximities of <u>Corso Buenos Aires</u> (<i>the street of the shopping</i>) and a stonesthrow from the <u>Central Railway Station</u>...</td></tr>';
	//strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 65</b></td></tr></tbody></table>';
	//}

	else 	if (myname=="Center"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hostel Brasil - 1 *</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/brasil.jpg" align="left" border="1" height="65" width="65">Next to the historical center, the management of the <b>Hostel Brasil</b> waits yourself to make a pleasant stay spend you in a comforting and family atmosphere...</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 39</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Studi"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Ideale - 3 ***</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/ideale.jpg" align="left" border="1" height="65" width="65">Who wants the maximum one, the <b>Hotel Ideale</b> is the maximum one. Both as services (<i>it\'s furnished of the most modern comforts</i>), both as position. Just a few minutes from the Università Statale, from Linate Airport, as well as to few minutes from the Central Station and from Corso Buenos Aires...the <b>Ideal</b> for you.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Victory"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Delizia - 2 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/delizia.jpg" align="left" border="1" height="65" width="65">Silent and well connected...these are the words of order, for the one who desires to stir through the great city, but it doesn\'t desire the noise of the metropolis..the <b>Hotel Delizia</b> make for you.</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Railway Station"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Bernina - 3 ***</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/bernina.jpg" align="left" border="1" height="65" width="65">The Hotel Bernina welcomes his guests in an environment elegantly furnished and furnished of every type of comfort..<br>Situated in front of the Central Station and to few minutes from the <b>Historical Center</b>...</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="St.Lambrate"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Sabatino - 2 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/sabatino.jpg" align="left" border="1" height="65" width="65"><b>Courtesy</b> and <b>Liking</b>, these are the words of order of our hotel... combine to the <b>advantageous prices</b> during the whole year...</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Rates from &#8364; 40</b></td></tr></tbody></table>';
	}
	else 	if (myname=="Genova"){
	strHTML = '<TABLE border="0" cellpadding="0" cellspacing="0" width="'+myw+'" class="'+strCLS+'"><tbody>';
      strHTML = strHTML + '<tr><TD align="center" valign="middle" class="corpo1" height="15" bgcolor="#cc0000"><b><FONT color="#ffffff">Hotel Five - 3 **</FONT></b></td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top"><img src="img/five.jpg" align="left" border="1" height="65" width="65">A few steps from <b>Center Milan</b>, in an area full of restaurants and wine bar where you can spend pleasant evenings, the <b>Hotel Five</b> offers you a first class service..</td></tr>';
	strHTML = strHTML + '<tr><TD class="corpo1" align="left" valign="top" height="10"><b>Prezzi a partire da &#8364; 40</b></td></tr></tbody></table>';
	}

	else {
      strHTML = '<table width="'+myw+'" height="150" class="'+strCLS+'"><tr align=center><td><b>'+myname+'</b></td></tr></table>';
	}
      ShowAltdiv(strHTML, myw);
	}

   function MF(name) {
      myw=0;
      HideAltdiv();
	}



// funzione per far comparire il pop-up della privacy
function popup(page,w,h){
var winOpenVideo;
winOpened = window.open(page,"Video","directories=no,status=no,statusbar=no,resizable=no,menubar=no,scrollbars=yes,toolbar=no,width="+ w +",height="+ h +"");
}


//funzione che mi permette di centrare la popup
function resizeWin(Altezza,Larghezza){
var sizeH= Altezza;
var sizeW= Larghezza;
var posH=0;
var posW=0;

if (sizeH<=screen.height)
sizeH=30+sizeH;
if (sizeW<=screen.width)
sizeW=30+sizeW
self.resizeTo(sizeW,sizeH);
if (((screen.height-sizeH)/2)>0)
posW=((screen.height-sizeH)/2);
if (((screen.width-sizeW)/2)>0)
posH=((screen.width-sizeW)/2);
self.moveTo(posW,posH);
}