if (document.domain == "www.wedding-invite.co.uk") {
  var site_prefix = "http://www.wedding-invite.co.uk/"
}
else {
  var site_prefix = ""
}

if (document.images) {
menu_b1_off  = new Image(); menu_b1_off.src  = site_prefix+"menu/menu_b1.gif"
menu_b1_over = new Image(); menu_b1_over.src = site_prefix+"menu/menu_b1_over.gif"
menu_b2_off  = new Image(); menu_b2_off.src  = site_prefix+"menu/menu_b2.gif"
menu_b2_over = new Image(); menu_b2_over.src = site_prefix+"menu/menu_b2_over.gif"
menu_b3_off  = new Image(); menu_b3_off.src  = site_prefix+"menu/menu_b3.gif"
menu_b3_over = new Image(); menu_b3_over.src = site_prefix+"menu/menu_b3_over.gif"
menu_b4_off  = new Image(); menu_b4_off.src  = site_prefix+"menu/menu_b4.gif"
menu_b4_over = new Image(); menu_b4_over.src = site_prefix+"menu/menu_b4_over.gif"
}

function turn_off(ImageName) {
  if (document.images != null) {
    document[ImageName].src = eval(ImageName + "_off.src");
  }
}

function turn_over(ImageName) {
  if (document.images != null) {
    document[ImageName].src = eval(ImageName + "_over.src");
  }
}

function showtitle()
{
  document.writeln('<img src="images/title2.gif" width=527 height=72>')
}

function showfooter()
{
  document.writeln('<hr>')
  document.writeln('<center><p class="text2">Copyright 2003 - wedding-invite.co.uk &nbsp; &nbsp; &nbsp; Email: <b><a href="mailto:enquires@wedding-invite.co.uk" style="color=#c040C0">enquires@wedding-invite.co.uk</a></b></p></center>')
}
function showmenu()
{
  document.writeln('<TABLE width=161 border="0" cellspacing="0" cellpadding="0" style="margin-top:0px; margin-bottom:0px;">');
  document.writeln('<tr>');
  document.writeln('<td width=154 valign=bottom><img src="'+site_prefix+'images/clear.gif" width=2 height=9><img src="'+site_prefix+'menu/menu_top.gif" alt="" width="141" height="33"></td></tr>');
  document.writeln('<tr><td width=154><img src="'+site_prefix+'images/clear.gif" width=2 height=26><a onFocus="this.blur();" href="'+site_prefix+'index1.htm" onmouseout="turn_off(\'menu_b1\')" onmouseover="turn_over(\'menu_b1\')" ><img name="menu_b1" src="'+site_prefix+'menu/menu_b1.gif" alt="Intro" width="141" height="41" border="0"></a></td></tr>');
  document.writeln('<tr><td width=154><img src="'+site_prefix+'images/clear.gif" width=2 height=26><a onFocus="this.blur();" href="'+site_prefix+'styles.htm" onmouseout="turn_off(\'menu_b2\')" onmouseover="turn_over(\'menu_b2\')" ><img name="menu_b2" src="'+site_prefix+'menu/menu_b2.gif" alt="Style" width="141" height="41" border="0"></a></td></tr>');
  document.writeln('<tr><td width=154><img src="'+site_prefix+'images/clear.gif" width=2 height=26><a onFocus="this.blur();" href="'+site_prefix+'prices.htm" onmouseout="turn_off(\'menu_b3\')" onmouseover="turn_over(\'menu_b3\')" ><img name="menu_b3" src="'+site_prefix+'menu/menu_b3.gif" alt="Prices" width="141" height="41" border="0"></a></td></tr>');
  document.writeln('<tr><td width=154><img src="'+site_prefix+'images/clear.gif" width=2 height=26><a onFocus="this.blur();" href="'+site_prefix+'contact.htm" onmouseout="turn_off(\'menu_b4\')" onmouseover="turn_over(\'menu_b4\')" ><img name="menu_b4" src="'+site_prefix+'menu/menu_b4.gif" alt="Contact Us" width="141" height="41" border="0"></a></td></tr>');
  document.writeln('<td width=154 height=10 valign=top><img src="'+site_prefix+'images/clear.gif" width=2 height=9><img src="'+site_prefix+'menu/menu_bottom.gif" alt="" width="141" height="33"></td>');
  document.writeln('<td>&nbsp;</td>');
  document.writeln('</tr>');
  document.writeln('</TABLE>');
}

function show_longdate(fcolor) 
{
   var now = new Date();
   var month = now.getMonth();
   var date = now.getDate();
   var day = now.getDay();
   var monthname;
   var dayname;

   if (month == 0) monthname = "Jan";
   if (month == 1) monthname = "Feb";
   if (month == 2) monthname = "Mar";
   if (month == 3) monthname = "Apr";
   if (month == 4) monthname = "May";
   if (month == 5) monthname = "Jun";
   if (month == 6) monthname = "Jul";
   if (month == 7) monthname = "Aug";
   if (month == 8) monthname = "Sep";
   if (month == 9) monthname = "Oct";
   if (month == 10) monthname = "Nov";
   if (month == 11) monthname = "Dec";

   if (day == 0) dayname = "Sun";
   if (day == 1) dayname = "Mon";
   if (day == 2) dayname = "Tue";
   if (day == 3) dayname = "Wed";
   if (day == 4) dayname = "Thu";
   if (day == 5) dayname = "Fri";
   if (day == 6) dayname = "Sat";
   
    var year = now.getFullYear();

   document.write("<font face='Arial' size='3' color="+fcolor+"><b>&nbsp;");
   document.write(dayname + "&nbsp; "+ date + "&nbsp; " + monthname +  "," + "&nbsp;" + year);
   document.write("</b></font>");
}

