// Script library v1.3
// ©2004, Lynmar Computer Solutions


function doheader() {
 var x='';
 x+='<table border=0 width=100% cellspacing=0 cellpadding=03>';
 x+='<tr height=24 bgcolor=black><td colspan=2 bgcolor=black> &nbsp; </td></tr>';
// x+='<tr><td><img src="images/esf.gif" height="100" alt="ESF Properties Logo"><br clear=all>';
 x+='<tr><td><img src="images/newlogo.gif" height="100" width="297" alt="ESF Properties Logo"><br clear=all>';
 x+='<div class=subhead>&nbsp;Residential&nbsp;Property&nbsp;Lettings&nbsp;&amp;&nbsp;Management</div>';
 x+='</td><td align=right>';
 x+='<img src="images/pic1.jpg" height="75" alt="Housing" border=0>&nbsp;';
 x+='<img src="images/pic2.jpg" height="75" alt="Letting" border=0>&nbsp;';
 x+='<img src="images/pic3.jpg" height="75" alt="Rentals" border=0>&nbsp;';
 x+='</td></tr></table>';
// x+='<table width=100% bgcolor=white><tr><td> &nbsp; </td></tr></table>';
 x+='<table width=100%><tr><td> &nbsp; </td></tr></table>';
 document.writeln(x);
}


function domenu() {
 var x='';
 x+='<table class=menu width=150 height=95% align=left border=0 cellspacing=02 cellpadding=04>';
 x+='<tr height=30><td class=menutop> CONTENTS </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'home.html\'"> <a class=menu href=home.html title="Main starting page">HOME</a> </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'landlord.html\'"> <a class=menu href=landlord.html title="Landlord Information">LANDLORDS</a> </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'tenant.html\'"> <a class=menu href=tenant.html title="Tenant Information">TENANTS</a> </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'tolet.html\'"> <a class=menu href=tolet.html  title="Current Properties Available to Let">TO&nbsp;LET</a> </td></tr>';
// x+='<tr height=30><td class=menuopt> &nbsp; </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'links.html\'"> <a class=menu href=links.html title="Useful web sites, contacts and services">USEFUL&nbsp;LINKS</a> </td></tr>';
 x+='<tr height=30><td class=menuopt onMouseOver="className=\'menusel\'" onMouseOut="className=\'menuopt\'" onClick="location=\'contact.html\'"> <a class=menu href=contact.html title="How to contact us (address, telephone, e-mail, etc.)">CONTACT&nbsp;US</a> </td></tr>';
// x+='<tr><td class=menuopt> &nbsp; </td></tr>';
 x+='<tr><td> &nbsp; </td></tr>';
 x+='</table>';
 x+='<table border=0 align=left width=20 height=100%><tr><td>&nbsp; </td></tr></table>';
 document.writeln(x);
}


function dofooter() {
 var x='';
 x+='<table width=100% height=24 border=01 cellspacing=0 cellpadding=0><tr><td class=credits align=center>';
 x+='<center>Site design \&copy;2008, ';
 x+='<a class=credits href="http://www.seawebs.com" title="SeaWebs\nWebsite Design, Consultancy and Support">SeaWebs</a>. ';
 x+='All rights reserved. Updated : ' +shortdate(new Date(document.lastModified))+ '. Please report any errors to the ';
 x+='<a class=credits href="mailto:info\@esfproperties.com?subject=ESF Properties Website" title="Email any problems or errors to the WebSite Designer">Webmaster</a>.</div>';
 x+='</td></tr></table>';
 document.writeln(x);
}


//text = email name/string to be displayed - e.g sales, info, etc.
function doemail(email) {
  var x='';
  var domain='ESFproperties.com';
  if(email==null) { email='info' }
  email+='\@'+domain;
  x+='<a href="mailto:' + email +'" title="Email us at: ' + email + '">' + email + '</a>';
  document.writeln(x);
}



function docopyright() {
 var x;
 x = "<br clear=all><hr size=1 noshade><div class=credits><center>Site design \&copy;2008, ";
 x+= "<a href=\"http://www.seawebs.com\" title=\"SeaWebs Consultants\nWebsite Design, Consultancy and Support\">SeaWebs Consultants</a>. ";
 x+= "All rights reserved. "; 
 x+= "Updated: " + shortdate(new Date(document.lastModified)) + ". ";
 x+= "Please report any errors to the <a href=\"mailto:info\@esfproperties.com?subject=SeaWebs Systems Website\" title=\"Email any problems or errors to the WebSite Designer\">Webmaster</a>.</div>";
// x = "<br><div class=footer><hr size=1 noshade>&copy;2008, <a href=\"mailto:webmaster\@esfproperties.com\">SeaWebs</a>. All rights reserved. ";
// x+= "Updated: " ? ". All trademarks duly recognised. (E.\&amp; O.E.) </div>"
 document.write(x);
}

function domenufooter() {
var p = window.location.pathname;
var q = p.lastIndexOf("\\");	//in case it's file://w:\ventam\home.html
if(q>0) { p = p.substring(q+1) }
q = p.lastIndexOf("/");	//in case it's www.ventam.com/home.html
if(q>0) { p = p.substring(q+1) }
 var t = "<p class=datetime align=center><br>";
 var i;
 mRef = createmenuarray();
 for(var i=0; i < mRef.length; i++) {
  if(mRef[i][0] > "") {
if(mRef[i][1] == p) { 
 t += "[<font color='#404040'><i>" + mRef[i][0] + "</i></font>]";
} else {
     t += "[<a href=\"" + mRef[i][1] + "\" title=\"" + mRef[i][2] + "\">" + mRef[i][0] + "</a>]";
}
     if(((i+1)/8)==Math.floor((i+1)/8)) {
        t += "<br>";
     } else {
     	t += " &nbsp;";
     }
  }
 }
 t += "</p>";
 document.write(t); 
}

//
function fulldate(d) {
// var d = new Date();
 var h = d.getHours();
 var m = d.getMinutes();
 if(h < 10) { h = "0" + h }
 if(m < 10) { m = "0" + m }
 var x= h + ":" + m + ", " + Date().substr(0,10) + "," + Date().substr(19,5)
 return x;
}

//
function shortdate(d) { 
 var x = d.getDate();
 var m = d.getMonth();
 if(x < 10) { x = "0" + x }
 x += "-";
 switch(m) { 
  case 0:  x+="Jan"; break
  case 1:  x+="Feb"; break
  case 2:  x+="Mar"; break
  case 3:  x+="Apr"; break
  case 4:  x+="May"; break
  case 5:  x+="Jul"; break
  case 6:  x+="Jul"; break
  case 7:  x+="Aug"; break
  case 8:  x+="Sep"; break
  case 9:  x+="Oct"; break
  case 10: x+="Nov"; break
  case 11: x+="Dec"; break
  default: x+="???"
 }
 x += "-" + d.getYear(); 
 return x;
}


//eof.
