window.defaultStatus="© Copyright 2000 - " + ThisYear() + " Pinfield Hotel";

docloc="http:\\\\www.pinfieldhotel.co.uk";
doctit="Pinfield Hotel, Farnham Common - Superior bed and breakfast.";

document.write("<style><!--a {text-decoration:none; color:blue} a:hover{text-decoration:none; color:red}--></style>");
document.write("<style fprolloverstyle>a:hover{ color: #FF0000; font-style:normal}</style>");

function SwapImage1(img){document.menu1.src = img; return true}
function SwapImage2(img){document.menu2.src = img; return true}
function SwapImage3(img){document.menu3.src = img; return true}
function SwapImage4(img){document.menu4.src = img; return true}
function SwapImage5(img){document.menu5.src = img; return true}
function SwapImage6(img){document.menu6.src = img; return true}

function Webmaster(){document.write("<h5><br>For queries regarding this page contact the <a href='mailto:webmaster@pinfieldhotel.co.uk'>Pinfield Hotel Webmaster</a></h5>")}

function LastUpdated() {
  var month_names=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var now=new Date();
  now.setTime(now.getTime());
  var prnt_stuff_date;
  var cen_str;
  var TheYear=now.getYear();
  if(TheYear>=100 && TheYear<=1999)
    cen_str=TheYear+1900;
  else
    cen_str=TheYear;  
  print_str = "1st "+month_names[now.getMonth()]+" "+cen_str;
  document.write("<p align='center'><font size='2' color='#CC0000'><br>Prices as of " + print_str + ", all prices subject to change, errors and omissions excluded.</font></p>");
}

function ThisYear() {var now=new Date();now.setTime(now.getTime()-259200000);var cen_str;var TheYear=now.getYear();if(TheYear>=100 && TheYear<=1999) cen_str=TheYear+1900;else cen_str=TheYear;return cen_str;}

function OpenMap() {window.open('../map.html','PinfieldMap','toolbar=0,location=0,status=no,scrollbars=no,menubar=no,resizable=no,copyhistory=0,width=700,height=600')}

function winclose(){if(OpenWindow != null){if (OpenWindow.open){OpenWindow.close()}}}

function printifok(){if (window.print){parent.window.print()}else{alert("Your browser is an old version which does not support this print button, you can type Ctrl P instead to print this page.");}}

function BookmarkMe(){if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4){document.write('<A HREF=\"#\" onMouseOver=\"window.status=\'Click to add the Pinfield Hotel to your favourites\';return true\" onClick=\"javascript:window.external.AddFavorite(docloc,doctit)\"><font color=\"#CC0000\" size=\"3\"><b>Click here to add to your favourites</A></b></font>');}else{var msg = "Don't forget to bookmark us!";if(navigator.appName == "Netscape") msg += "  (CTRL-D)";document.write(msg);}}

function BookmarkMe2(){if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4){document.write('<A HREF=\"#\" onMouseOver=\"window.status=\'Click to add the Pinfield Hotel to your favourites\';return true\" onClick=\"javascript:window.external.AddFavorite(docloc,doctit)\"><img border=\"0\" src=\"images/small_draw.gif\" width=\"20\" height=\"18\"></A>');}else{document.write('<img border=\"0\" src=\"images/small_draw.gif\" width=\"20\" height=\"18\">');}}
