function WhatLevel()
{//var StrLink;
 var lev=0;
 var StrLink = location.href;
 var I;
 for(I=StrLink.length;I>7;I--){if(StrLink.charAt(I)=='/') lev++;}
return lev;
}
function CreateMenuApt()
{var Apt;
 var HP;
 Apt= document.all("AptCode").value;
 HP=document.all("HasPhoto").value;
 //alert(HP);
	document.writeln("<TABLE WIDTH=100% ALIGN=LEFT CELLSPACING=0 CELLPADDING=0 BORDER=0>");
	if(HP=="1"){
    document.writeln("  <TR>");
    document.writeln("     <TD>");
    document.writeln("         <B><A HREF='more_photos.htm'><IMG border=0 bordercolor=#97D6FF alt='More photos for apartment " + Apt + "' SRC='../images/images_icon.jpg'></A></B>");
    document.writeln("    </TD>");
    document.writeln(" </TR>");
	}
	document.writeln("<TR>");
	document.writeln("<TD>");
 
	WritePrices();
	document.writeln("</TD>");
	document.writeln("</TR>")
  document.writeln("  <TR>");
  document.writeln("     <TD>");
  document.writeln("         <B><a href='../../Book.asp?Apt="+ Apt +"'><IMG border=0 bordercolor=#97D6FF alt='Book now the apartment " + Apt + "!' SRC='../images/book_icon.jpg'></A></B>");
   document.writeln("    </TD>");
    document.writeln(" </TR>");
   document.writeln("    </TABLE>");
	
	}
function WriteMenuN()
{var Level;
 var Points="";
 Level=WhatLevel();
 //Level=Level-1; //Da rimuovere
 if (Level==1) Points="";
 if (Level==2) Points="../";
 if (Level==3) Points="../../";
 if (Level==4) Points="../../../";
 document.writeln("<table align=left  width='100%' bgcolor='#97D6FF' height='100%'  border=0 cellspacing=0 cellpadding=0>");
 document.writeln("<tr valign='top'>");
 document.writeln("<td height='300' background='"+Points+"images/v_bar.jpg'>");
 document.writeln("<table width=100% cellspacing=0 cellpadding=0>");
 document.writeln("<tr>");
 document.writeln("<td bgcolor='#97D6FF'><img src='"+Points+"images/label_venice.gif'></td>		     ");
 document.writeln("</tr>");
 document.writeln("<tr><td>");
 document.writeln("<table border=0 width=100% cellpadding=2>");
 document.writeln("<tr>");
 document.writeln("<td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•> <a class='Menu' href=Javascript:Send('Venice','')>Special Offers</a></b></font>");
 document.writeln("</td>");
 document.writeln("</tr>");
 document.writeln("</table>");  
 document.writeln("</td></tr>");
 document.writeln("<tr><td>");
 document.writeln("<table border=0 width=100% cellpadding=2>");
 document.writeln("<tr><td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•><a class='Menu' href=Javascript:Send('VeniceList','')> Apartments List</a></b></font>");
 document.writeln("</td></tr>");
 document.writeln("</table> ");
 document.writeln("</td></tr>");
 document.writeln("<tr>");
 document.writeln("<td><img src='"+Points+"images/label_rome.gif'></td>		     ");
 document.writeln("</tr>");
 document.writeln("<tr><td>");
 document.writeln("<table border=0 width=100% cellpadding=2>");
 document.writeln("<tr><td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•> <a class='Menu' href=Javascript:Send('Rome','')>Special Offers</a></b></font>");
 document.writeln("</td></tr>");
 document.writeln("</table> ");
 document.writeln("</td></tr>");
 document.writeln("<tr><td>");
 document.writeln(" <table border=0 width=100% cellpadding=2>");
 document.writeln("<tr><td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•><a class='Menu' href=Javascript:Send('RomeList','')> Apartments List</a></b></font>");
 document.writeln("</td></tr>");
 document.writeln("</table> ");
 document.writeln("</td></tr>");
 document.writeln("<tr>");
 document.writeln("<td><img src='"+Points+"images/label_tuscany.gif'></td>		     ");
 document.writeln("</tr>");
 document.writeln("<tr><td>");
 document.writeln("<table border=0 width=100% cellpadding=2>");
 document.writeln("<tr><td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•> <a class='Menu' href=Javascript:Send('Tuscany','')>Special Offers</a></b></font>");
 document.writeln("</td></tr>");
 document.writeln("</table> ");
 document.writeln("		   </td></tr>");
 document.writeln("		     <tr><td>");
 document.writeln("<table border=0 width=100% cellpadding=2>");
 document.writeln("<tr><td>");
 document.writeln("<font face='Arial' size=2 color=white><b>•> <a class='Menu' href=Javascript:Send('TuscanyList','')> Apartments List</a></b></font>");
 document.writeln("</td></tr>");
 document.writeln("</table> ");
 document.writeln("</td></tr>");
 document.writeln("</table>");
 document.writeln("</td>");
 document.writeln("</tr>");
 document.writeln("<tr><td background='"+Points+"images/v_bkg.jpg'><img src='"+Points+"images/label_av.jpg'></td></tr>");
 document.writeln("<tr valign='bottom'>");
 document.writeln("<td align=center background='"+Points+"images/v_bkg.jpg'>");
 document.writeln("<font face='Arial' size=2 color=white><b><li>We accept:</li><br></b></font>");
 document.writeln("<img src="+Points+"images/mastercard.jpg>");
 document.writeln("<img src="+Points+"images/diners.jpg>");
 document.writeln("<img src="+Points+"images/visa.jpg><br>");
 document.writeln("<font face='Arial' size=2 color=white><b>Apartmentsvacationitaly</b> - Copyright ©2004 All Right Reserved</font>");
 document.writeln("</td></tr>");
 document.writeln("</table>");
}

function WriteHeader()
{var Level;
 var Points="";
 Level=WhatLevel();
 //Level=Level-1; //Da rimuovere
 if (Level==1) Points="";
 if (Level==2) Points="../";
 if (Level==3) Points="../../";
 if (Level==4) Points="../../../";
 document.writeln("<!--TESTATA2-->");
 document.writeln("<link href='"+Points+"av.css' rel=stylesheet>");
 document.writeln("<TABLE ALIGN=CENTER WIDTH=760px BORDER=0 CELLSPACING=0 CELLPADDING=0>");
 document.writeln(" <!--TESTATA + MENU-->");
 document.writeln("  <TR>");
 document.writeln("   <TD WIDTH=*>");
 document.writeln("      <IMG SRC="+ Points +"images/header.jpg USEMAP='#headerimage' BORDER=0>");
 document.writeln("     <map name='headerimage'>");
 document.writeln("  <area shape='rect' coords='99,2,184,23' href='"+ Points +"about.htm'  title='About Us' alt='About Us'>");
 document.writeln("  <area shape='rect' coords='296,3,406,21' href='"+ Points +"rules.htm'  title='Read our Rental Rules' alt='Read our Rental Rules'>");
 document.writeln("  <area shape='rect' coords='2,3,89,22'   href='"+ Points +"index.htm' title='Return to Homepage' alt='Return to Homepage'>");
 document.writeln("  <area shape='rect' coords='191,3,291,23' href='"+ Points +"info.htm'  title='Info' alt='Info'>");
 
 document.writeln("  <area shape='rect' coords='118,25,279,85' href='"+ Points +"Tuscany/index.htm'  title='Apartments in Tuscany' alt='Apartments in Tuscany'>");
 document.writeln("  <area shape='rect' coords='277,23,398,84' href='"+ Points +"Rome/index.htm'  title='Apartments in Rome' alt='Apartments in Rome'>");
 document.writeln("  <area shape='rect' coords='1,25,119,84'   href='"+ Points +"Venice/index.htm' title='Apartments in Venice' alt='Apartments in Venice'>");
 document.writeln("    </map></TD>");
 document.writeln(" </TR>");
 document.writeln(" </TABLE>");
return;
}
function SendTo(Level,Page)
{location.href=Level + Page
}

function Send(Param,Points)
{var Level;
 Level=WhatLevel();
 //Level=Level-1; //Da rimuovere
 if (Level==1) Points="";
 if (Level==2) Points="../";
 if (Level==3) Points="../../";
 
 if (Param=="Home") location.href=Points + "index.htm";
 if (Param=="About") location.href=Points + "about.htm";
 if (Param=="Info") location.href=Points + "info.htm";
 if (Param=="Rules") location.href=Points + "rules.htm";
 if (Param=="Venice") location.href=Points + "Venice/index.htm";
 if (Param=="Rome") location.href=Points + "Rome/index.htm";
 if (Param=="RomeList") location.href=Points + "Rome/list.htm";
 if (Param=="VeniceList") location.href=Points + "Venice/list.htm";
 if (Param=="TuscanyList") location.href=Points + "Tuscany/list.htm";
 if (Param=="Tuscany") location.href=Points + "Tuscany/index.htm";
}

function WriteFooter()
{var Level;
 var Points="";
 Level=WhatLevel();
 //Level=Level-1; //Da rimuovere
 if (Level==1) Points="";
 if (Level==2) Points="../";
 if (Level==3) Points="../../";
  document.writeln("<TABLE ALIGN=CENTER CELLSPACING=2 CELLPADDING=2 BORDER=0>");
  document.writeln(" <TR>");
  document.writeln(" <TD><P ALIGN=CENTER><FONT FACE=ARIAL COLOR=#003AE5 size=2><B>- <A CLASS='Footer' HREF=Javascript:Send('Home','"+ Points +"')>Home</A></B><B> -<A CLASS='Footer'  HREF=Javascript:Send('Info','"+ Points +"')> Info</A></B><B> -<A CLASS='Footer'  HREF=Javascript:Send('About','"+ Points +"')> About Us</A></B><B> -<A CLASS='Footer'  HREF=Javascript:Send('Rules','"+ Points +"')> Rental Rules </A>-</B></FONT></P></u></TD>");
  document.writeln("</TR>");
  document.writeln("</TABLE>"); 

}

