function preload_images()
{

  image1on = new Image();
  image1on.src = "/images/but1b.jpg";

  image2on = new Image();
  image2on.src = "/images/but2b.jpg";

  image3on = new Image();
  image3on.src = "/images/but3b.jpg";

  image4on = new Image();
  image4on.src = "/images/but4b.jpg";

  image5on = new Image();
  image5on.src = "/images/but5b.jpg";

  image6on = new Image();
  image6on.src = "/images/but6b.jpg";

  image7on = new Image();
  image7on.src = "/images/but7b.jpg";

  image8on = new Image();
  image8on.src = "/images/but8b.jpg";

  image9on = new Image();
  image9on.src = "/images/but9b.jpg";

  image10on = new Image();
  image10on.src = "/images/but10b.jpg";

  image11on = new Image();
  image11on.src = "/images/but11b.jpg";

  image12on = new Image();
  image12on.src = "/images/but12b.jpg";

  image13on = new Image();
  image13on.src = "/images/but13b.jpg";

  image14on = new Image();
  image14on.src = "/images/but14b.jpg";

  image99on = new Image();
  image99on.src = "/images/golf_clubs_on.gif";

  image1off = new Image();
  image1off.src = "/images/but1a.jpg";

  image2off = new Image();
  image2off.src = "/images/but2a.jpg";

  image3off = new Image();
  image3off.src = "/images/but3a.jpg";

  image4off = new Image();
  image4off.src = "/images/but4a.jpg";

  image5off = new Image();
  image5off.src = "/images/but5a.jpg";

  image6off = new Image();
  image6off.src = "/images/but6a.jpg";

  image7off = new Image();
  image7off.src = "/images/but7a.jpg";

  image8off = new Image();
  image8off.src = "/images/but8a.jpg";

  image9off = new Image();
  image9off.src = "/images/but9a.jpg";

  image10off = new Image();
  image10off.src = "/images/but10a.jpg";

  image11off = new Image();
  image11off.src = "/images/but11a.jpg";

  image12off = new Image();
  image12off.src = "/images/but12a.jpg";

  image13off = new Image();
  image13off.src = "/images/but13a.jpg";

  image14off = new Image();
  image14off.src = "/images/but14a.jpg";

  image99off = new Image();
  image99off.src = "/images/golf_clubs_off.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("<center><font size=2 face=arial><b>"+day_of_week+"</b><br>"+today+"</font></center><hr>");
}

function horizontal_menu()
{
  document.write("<table width=\"780\" height=\"46\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
  document.write("<td><img src=\"/images/topleft.jpg\" width=\"595\" height=\"46\"></td>");
  document.write("<td><a href=\"/about/\" onMouseOver=\"turnOn('image1')\" onMouseOut=\"turnOff('image1')\"><img src = \"/images/but1a.jpg\" name=\"image1\" border=\"0\" width=\"64\" height=\"46\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/contact_us.htm\" onMouseOver=\"turnOn('image2')\" onMouseOut=\"turnOff('image2')\"><img src = \"/images/but2a.jpg\" name=\"image2\" border=\"0\" width=\"61\" height=\"46\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/\" onMouseOver=\"turnOn('image3')\" onMouseOut=\"turnOff('image3')\"><img src = \"/images/but3a.jpg\" name=\"image3\" border=\"0\" width=\"60\" height=\"46\" align=\"bottom\"></a></td>");
  document.write("</tr></table>");
}

function vertical_menu()
{
  document.write("<table width=\"194\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
  document.write("<tr><td><a href=\"\/about/\" onMouseOver=\"turnOn('image12')\" onMouseOut=\"turnOff('image12')\"><img src = \"/images/but12a.jpg\" name=\"image12\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"/ministries/\" onMouseOver=\"turnOn('image4')\" onMouseOut=\"turnOff('image4')\"><img src = \"/images/but4a.jpg\" name=\"image4\" border=\"0\" width=\"194\" height=\"23\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/bulletin/\" onMouseOver=\"turnOn('image6')\" onMouseOut=\"turnOff('image6')\"><img src = \"/images/but6a.jpg\" name=\"image6\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"/calendar/\" onMouseOver=\"turnOn('image5')\" onMouseOut=\"turnOff('image5')\"><img src = \"/images/but5a.jpg\" name=\"image5\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"/donate/\" onMouseOver=\"turnOn('image7')\" onMouseOut=\"turnOff('image7')\"><img src = \"/images/but7a.jpg\" name=\"image7\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/~stanews/\" onMouseOver=\"turnOn('image8')\" onMouseOut=\"turnOff('image8')\"><img src = \"/images/but8a.jpg\" name=\"image8\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/photo/\" onMouseOver=\"turnOn('image11')\" onMouseOut=\"turnOff('image11')\"><img src = \"/images/but11a.jpg\" name=\"image11\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/sermons/\" onMouseOver=\"turnOn('image14')\" onMouseOut=\"turnOff('image14')\"><img src = \"/images/but14a.jpg\" name=\"image14\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/faith/\" onMouseOver=\"turnOn('image10')\" onMouseOut=\"turnOff('image10')\"><img src = \"/images/but10a.jpg\" name=\"image10\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"\/archive/\" onMouseOver=\"turnOn('image13')\" onMouseOut=\"turnOff('image13')\"><img src = \"/images/but13a.jpg\" name=\"image13\" border=\"0\" width=\"194\" height=\"22\" align=\"bottom\"></a></td></tr>");
  document.write("<tr><td><a href=\"http://www.pasadenagreekfest.org/\" onMouseOver=\"turnOn('image9')\" onMouseOut=\"turnOff('image9')\" target='_blank'><img src = \"/images/but9a.jpg\" name=\"image9\" border=\"0\" width=\"194\" height=\"25\" align=\"bottom\"></a></td></tr>");
//  document.write("<tr><td style='padding: 3px;'><hr size='2' color='#BE7070'></td></tr>");
  document.write("</table>");

  document.write("<div align='center' style='padding-top: 15px;'><img src='/images/st_anthony_icon.jpg' border=0 alt=[Icon]></div>");

  document.write("<table border=0 cellpadding=8>");
  document.write("<tr><td style='color: #005984; font: 10pt arial, helvetica, sans serif;'>");
  document.write("<b>St. Anthony's Greek Orthodox Church</b><br>");
  document.write("778 S. Rosemead Blvd.<br>");
  document.write("Pasadena, CA 91107<br>");
  document.write("(626) 449-6943<br>");
  document.write("</td></tr></table><br>");
}

function golf_menu()
{
  document.write("<a href=\"/~golf/\" onMouseOver=\"turnOn('image99')\" onMouseOut=\"turnOff('image99')\"><img src = \"/images/golf_clubs_off.gif\" name=\"image99\" border=\"0\" width=\"105\" height=\"118\" align=\"bottom\"></a>");
}

function player_ipod_sermons()
{
  document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0' width='277' height='284' id='wimpy' align='center'>");
  document.write("<param name='allowScriptAccess' value='always' />");
  document.write("<param name='movie' value='mp3s/wimpy.swf' />");
  document.write("<param name='loop' value='false' />");
  document.write("<param name='menu' value='false' />");
  document.write("<param name='quality' value='high' />");
  document.write("<param name='scale' value='noscale' />");
  document.write("<param name='salign' value='lt' />");
  document.write("<param name='bgcolor' value='ffffff' />");

  document.write("<param name=\"flashvars\" value=\"wimpyReg=M2VpY0phJTNDTEslN0UlM0Q4JTNBd3I1bHglM0UyJTgwdnhtJTNFeiUyODBYJTNCJTI1JTdDJTNFJTNBWUhX&wimpyApp=mp3s/wimpy.php&wimpySkin=mp3s/skin_itunes7.xml&startPlayingOnload=yes\" />");
  document.write("<embed src=\"mp3s/wimpy.swf\" flashvars=\"wimpyReg=M2VpY0phJTNDTEslN0UlM0Q4JTNBd3I1bHglM0UyJTgwdnhtJTNFeiUyODBYJTNCJTI1JTdDJTNFJTNBWUhX&wimpyApp=mp3s/wimpy.php&wimpySkin=mp3s/skin_itunes7.xml&startPlayingOnload=yes\" loop=\"false\" menu=\"false\" quality=\"high\" width=\"277\" height=\"284\" scale=\"noscale\" salign=\"lt\" name=\"wimpy4573\" align=\"center\" bgcolor=\"000000\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");

  document.write("</object>");
}