<!--
 
function showTip(obj) 
{   if  (document.layers) 
    {   if  (document.layers[obj] != null) document.layers[obj].visibility = 'visible';
    }
    else 
    if  (document.all) document.all[obj].style.visibility = 'visible';
}
 
function hideTip(obj) 
{   if  (document.layers) 
    {   if (document.layers[obj] != null) document.layers[obj].visibility = 'hidden';
    }
    else 
    if  (document.all)
        document.all[obj].style.visibility = 'hidden';
}
 
function showTip(obj) 
{   if  (document.layers) 
    {   if  (document.layers[obj] != null) document.layers[obj].visibility = 'visible';
    }
    else 
    if  (document.all) document.all[obj].style.visibility = 'visible';
}
 
 
function  opentable(){
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="780" height="100%">');
document.write('  <tr>');
document.write('    <td align="right" valign="top" colspan="2">&nbsp;</td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('   <td height="95%" colspan="2" align="center" valign="middle">');
}

function  opentable1(){
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" >');
document.write('  <tr bgcolor="#d4d0c8">');
document.write('    <td align="left" height="24"><a href="#page"><u>visual weblink</u></a> is brought to you');
document.write('     by our sponsor.&nbsp;</td>');
document.write('   <td align="right" height="24"><a href="http://www.blueconsultants.com" target="_blank"><u>blue advertising</u></a>');
document.write('   </td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('   <td height="95%" colspan="2" align="center" valign="middle">');
}

function  closetable(){
document.write('</td>');
document.write('  </tr>');

document.write('</table>');
document.write('</div> ');
} 
 
function  inheader(lang,lev1,lev2,lev3){

  if (document.referrer.indexOf("search")!=-1){
  var allcookies = document.cookie;
  var pos = allcookies.indexOf("blueadv=1");
  
  if(pos != -1) {
  		var start = pos +8;
  		var end = allcookies.indexOf (";", start);
  		if (end == -1) end = allcookies.lenght;
  		var value = allcookies.substring (start, end);
  		value = unescape (value);
  		opentable1();
  		closetable();
  	} else {
  		document.cookie = "blueadv=1"; 
  		
  		
  		
  		
  		if (lev1!="Roma" && lev1!="Ancona" && lev1!="Senigallia"){
  		document.write('<SCRIPT SRC="/j/alberghi.js"></SCRIPT>');
      document.write('<SCRIPT SRC="/j/alberghi_popuplayer.js"></SCRIPT>');
      } else {
      document.write('<SCRIPT SRC="/j/'+lev1+'.js"></SCRIPT>');

      }
  		
  	}
  }
}
 


//-->
