setCurrency("");
if ( pageparameter!="collect" ) {
  var pagepath=window.location.pathname;
  var pagedirectory=pagepath.split('/');
  var i=pagepath.lastIndexOf('/')+1;
  var pagefile=pagepath.substring(i);
  pageheight=10+getObject("header").offsetHeight+getObject("menus").offsetHeight;
  if ( getObject("content") ) pageheight+=getObject("content").offsetHeight;
  if ( getObject("wrapper") ) pageheight+=getObject("wrapper").offsetHeight;
  screenheight=(typeof window.innerHeight!='undefined'?window.innerHeight:document.body.offsetHeight);
  var topbuttons=new Array('Top','scroll(0,0)');
  document.write('<div id="footer" width="100%">');
  if ( pageheight>screenheight ) {
    document.write('<div class="floatleft">'+showButtons("topmenu",topbuttons,true,0,5)+'</div>');
    document.write('<div class="floatright">'+showButtons("topmenu",topbuttons,true,0,5)+'</div>'); }
  dw=33;
  if ( pagename=="default" ) dw=25;
  document.write('<h3 align="center">Proprietors: <span class="notranslate">Carole </span>and <span class="notranslate">Vic Boyles, Estrada do T&uacute;nel 6, Lameirinha, 2435-575 Sei&ccedil;a, </span>Portugal</h3>');
  document.write('<hr /><table width="100%"><tr><td class="tds">Designed And Maintained by</td>');
  document.write('<td class="tds">Currency Conversion by</td>');
  document.write('<td class="tds">Geolocation by</td>');
  document.write('<td class="tds">Hosted by</td>');
  if ( pagename=="default" ) document.write('<td class="tdsl" rowspan="2"><img src="http://www.hit-counter-download.com/cgi-bin/image.pl?URL=99961-2317" alt="free hit counter code account login" border="0" onclick="displayWebPage(\'www.hit-counter-download.com\')" /></td>');
  document.write('</tr><tr><td class="tds"><span class="sl" onclick="changePage(6)">Vic Boyles</span></td>');
  document.write('<td class="tds"><span class="sl" onclick="displayWebPage(\'www.coinmill.com\')">coinmill.com</span></td>');
  document.write('<td class="tds"><span class="sl" onclick="displayWebPage(\'www.geoplugin.com\')">geoplugin.com</span></td>')
  document.write('<td class="tds"><span class="sl" onclick="displayWebPage(\'www.streamline.net/?aff=8dfbb37d01fa5fa17aeefea91b74b0c3\')">streamline.net</span></td></tr></table>');
  if ( pagename=="default" ) {
    document.write('<hr><table align="center"><tr>');
    for ( i in menus ) document.write('<td class="bm"><a href="'+menus[i][1]+'" target="_parent"><small>'+menus[i][0]+'</small></a></td>');
    document.write('</tr></table><table align="center"><tr>');
    for ( i=0;i<order.length-1;i++ ) {
      vt="";
      temp=new Array();
      if ( villas[order[i]][7]!="SC" ) temp=villas[order[i]][18].split("/");
      if ( villas[order[i]][7]=="SCA" ) vt=" Apartments";
      if ( villas[order[i]][7]=="SCA"&&temp[0]==1 ) vt=" Apartment";
      if ( villas[order[i]][0]=="live" ) document.write('<td class="bm"><a href="'+villas[order[i]][1]+'.htm" target="_parent"><small>'+villas[order[i]][2]+vt+'</small></a></td>'); }
    document.write('</tr></table>'); }
  document.write('</div>');
  if ( pagemessage.length>0 ) showMessages(pagemessage,true); }
if ( pageparameter=="collect" ) {
  createCookie("Villatitle",trim(document.title));
  createCookie("Villadescription",trim(getinnerHTML("description"))); }
if ( pageparameter=="preview" ) {
  title[villa]=document.title;
  document.title="Preview : "+title[villa]; }
if ( location.protocol!="file:" ) {
  try {
    var pageTracker = _gat._getTracker("UA-3031143-4");
    pageTracker._trackPageview(); }
  catch(err) {} }
