 function preload_images()
{

  image1on = new Image();
  image1on.src = "/images/nav_on-01-01.gif";

  image2on = new Image();
  image2on.src = "/images/nav_on-01-02.gif";

  image3on = new Image();
  image3on.src = "/images/nav_on-01-03.gif";

  image4on = new Image();
  image4on.src = "/images/nav_on-01-04.gif";

  image5on = new Image();
  image5on.src = "/images/nav_on-01-05.gif";

  image6on = new Image();
  image6on.src = "/images/nav_on-01-06.gif";

  image7on = new Image();
  image7on.src = "/images/nav_on-01-07.gif";

  image1off = new Image();
  image1off.src = "/images/nav_off-01-01.gif";

  image2off = new Image();
  image2off.src = "/images/nav_off-01-02.gif";

  image3off = new Image();
  image3off.src = "/images/nav_off-01-03.gif";

  image4off = new Image();
  image4off.src = "/images/nav_off-01-04.gif";

  image5off = new Image();
  image5off.src = "/images/nav_off-01-05.gif";

  image6off = new Image();
  image6off.src = "/images/nav_off-01-06.gif";

  image7off = new Image();
  image7off.src = "/images/nav_off-01-07.gif";
}

function turnOn(imagename) {
  if (document.images) {
    document[imagename].src = eval(imagename + "on.src");
  }
}

function turnOff(imagename) {
  if (document.images) {
    document[imagename].src = eval(imagename + "off.src");
  }
}

function show_date()
{
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
// today =  days[now.getDay()] + ", " +
//               months[now.getMonth()] + " " +
//                date + ", " +
//                 (fourdigits(now.getYear())) ;
// 
day_of_week = days[now.getDay()]
today =  months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

// Print out the data.
document.write("<font size=2 face=arial><b>"+day_of_week+", "+today+"</b></font>");
}

function horizontal_menu()
{
  document.write("<br><table width=\"621\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
  document.write("<tr><td colspan=\"1\">");
  document.write("<img src=/images/banner2.gif border=\"0\" alt=\"[Marmarinon Benevolent Society Banner]\">"); 
  document.write("</td></tr></table>");
  document.write("<table width=\"621\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
  document.write("<tr>"); 
  document.write("<td width=\"2\" height=\"36\"><img src=\"/images/spacer.gif\"></td>"); 
  document.write("<td width=\"11\" height=\"36\"><img src=\"/images/nav_off-01-00.gif\"></td>"); 
  document.write("<td><a href=\"/\" onMouseOver=\"turnOn('image1')\" onMouseOut=\"turnOff('image1')\"><img src = \"/images/nav_off-01-01.gif\" name=\"image1\" border=\"0\" width=\"83\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/\" onMouseOver=\"turnOn('image2')\" onMouseOut=\"turnOff('image2')\"><img src = \"/images/nav_off-01-02.gif\" name=\"image2\" border=\"0\" width=\"86\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/by_laws.htm\" onMouseOver=\"turnOn('image3')\" onMouseOut=\"turnOff('image3')\"><img src = \"/images/nav_off-01-03.gif\" name=\"image3\" border=\"0\" width=\"86\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/benevolent_activities.htm\" onMouseOver=\"turnOn('image4')\" onMouseOut=\"turnOff('image4')\"><img src = \"/images/nav_off-01-04.gif\" name=\"image4\" border=\"0\" width=\"86\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/photo/\" onMouseOver=\"turnOn('image5')\" onMouseOut=\"turnOff('image5')\"><img src = \"/images/nav_off-01-05.gif\" name=\"image5\" border=\"0\" width=\"86\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/links/\" onMouseOver=\"turnOn('image6')\" onMouseOut=\"turnOff('image6')\"><img src = \"/images/nav_off-01-06.gif\" name=\"image6\" border=\"0\" width=\"86\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/contact_us.htm\" onMouseOver=\"turnOn('image7')\" onMouseOut=\"turnOff('image7')\"><img src = \"/images/nav_off-01-07.gif\" name=\"image7\" border=\"0\" width=\"84\" height=\"36\" align=\"bottom\"></a></td>");
  document.write("<td width=\"11\" height=\"36\"><img src=\"/images/nav_off-01-08.gif\"></td>"); 
  document.write("</tr></table>");
}
