function writeTop()
{
document.write ("<center><table width=775px class=main border=0 cellspacing=0 cellpadding=0>");
document.write ("<tr><td><table width=100% border=0 cellpadding=0 cellspacing=0>");
document.write ("<tr><td class=white height=5px colspan=3></td></tr>");
document.write ("<tr><td align=center colspan=3>&nbsp;&nbsp;&nbsp;<img src=images/logonew.gif /></td></tr>");
document.write ("<tr><td class=purple height=3px colspan=3></td></tr>");
document.write ("<tr><td colspan=3><img src=images/montage.jpg /></td></tr>");
document.write ("<tr><td class=purple height=3px colspan=3></td></tr>");
document.write ("<tr><td colspan=3 align=right class=topmenu valign=middle><a href=index.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>Home</a>&nbsp;|<a href=our_jewellery.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>&nbsp;Shop for Jewellery</a>&nbsp;|<a href=diamonds.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>&nbsp;Shop for Diamonds</a>&nbsp;|&nbsp;<a href=services.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>Services</a>&nbsp;|&nbsp;<a href=story_board.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>Story&nbsp;Board</a>&nbsp;|&nbsp;<a href=contact_us.html class=topmenu onmouseover=javascript:over(this) onmouseout=javascript:out(this)>Contact&nbsp;Us</a>&nbsp;</td></tr>");
document.write ("<tr><td class=white height=15px colspan=3></td></tr>");
document.write ("</table>");
document.write ("<table width=100% height=100% border=0 style=table-layout:fixed cellpadding=0 cellspacing=0><tr>");
}

function over(menu)
{
  menu.className = "topmenuover"
}

function out(menu){
  menu.className = "topmenu"
}

function mover(menu)
{
  menu.className = "menuover"
}

function mout(menu){
  menu.className = "menu"
}

function writeMenu(type)
{
document.write ("<td width=151px class=silverright align=left valign=top>");
  switch(type)
  {
    case "home":
      document.write ("<table border=0 cellpadding=0 cellspacing=0 class=silver width=100%>");                 
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('index.html')>Home</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('company_history.html')>Company History</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('interesting_stuff.html')>Interesting Stuff</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>"); 
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('our_jewellery.html')>Shop for Jewellery</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");  
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('diamonds.html')>Shop for Diamonds</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");   
      document.write ("</table>");
      break  
    case "contact_us":
      document.write ("<table border=0 cellpadding=0 cellspacing=0 class=silver width=100%>");            
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('contact_us.html')>Contact Us</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('useful_links.html')>Useful Links</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("</table>");
      break   
    case "services":
      document.write ("<table border=0 cellpadding=0 cellspacing=0 class=silver width=100%>");      
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services.html')>Services</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_CO.html')>Custom Orders</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_OTS.html')>Off The Shelf</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_V.html')>Valuations</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_R.html')>Restorations</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_C.html')>Corporate</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_I.html')>Insurance Claims</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");
      document.write ("<tr><td onmouseover=javascript:mover(this) onmouseout=javascript:mout(this) class=menu onclick=javascript:nav('services_MO.html')>Mail Order</td></tr>");
      document.write ("<tr><td class=purple height=1px></td></tr>");      
      document.write ("</table>");
      break   
    default:
      break    
  } 
document.write ("<img class=borderr src=images/menu.jpg></td><td width=5px></td><td height=100% valign=top align=left><div class=content>");
}

function writeBottom()
{
  document.write ("</div></td></tr>");
  document.write ("</table>");
  document.write ("</td></tr>");
  document.write ("<tr><td class=bwhite height=55px>&nbsp;</td></tr>");
  document.write ("<tr><td class=purple height=3px></td></tr>");
  document.write ("<tr><td class=bwhite align=center>&nbsp;86 High Street, Horsell GU21 4SZ <b>01483 723949</b> | 3 Clarence Street, Staines TW18 4SU <b>01784 455523</b> | <a href=mailto:info@baileysjewellery.co.uk><b>info@baileysjewellery.co.uk</b></a></td></tr>");  
  document.write ("<tr><td align=center class=bwhite><br>Site design by <a href='http://www.yourwebdesigns.co.uk' target='_new'>yourwebdesigns</a>&nbsp;<br><br></td></tr>");
  document.write ("</table>");
  document.write ("</center>");
}

function nav(nav){
  document.location.href=nav;
}