function preload_images()
{
  image1on = new Image();
  image1on.src = "/images/Films_On.jpg";

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

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

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

}

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 james_restaurant_masthead_home()
{
  document.write("<table width='780' border='0' cellpadding='0' cellspacing='0' align='center' style='background: url(/images/bg.gif) repeat-y;'>");
  document.write("<tr valign='top' style='margin: 0; padding: 0;'>");
  document.write("<td valign='top'>");
  document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0' width='635' height='215'>");
  document.write("<param name=movie value='/james_restaurant_home.swf'>");
  document.write("<param name=menu value='false'>");
  document.write("<param name=quality value='high'>");
  document.write("<param name=wmode value='transparent'>");  
  document.write("<embed src='/james_restaurant_home.swf' menu='false' quality='high' wmode='transparent' width='635' height='215' name='james_restaurant_home' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
  document.write("</embed></object>");
  document.write("</td>");
  document.write("<td valign='top'><img src='/images/menu.jpg' width='145' height='215' border='0' usemap='#map'><br></td>");
  document.write("</tr></table>");
}

function james_restaurant_masthead()
{
  document.write("<table width='780' border='0' cellpadding='0' cellspacing='0' align='center' style='background: url(/images/bg.gif) repeat-y;'>");
  document.write("<tr valign='top' style='margin: 0; padding: 0;'>");
  document.write("<td valign='top'>");
  document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0' width='635' height='215'>");
  document.write("<param name=movie value='/james_restaurant.swf'>");
  document.write("<param name=menu value='false'>");
  document.write("<param name=quality value='high'>");
  document.write("<param name=wmode value='transparent'>");  
  document.write("<embed src='/james_restaurant.swf' menu='false' quality='high' wmode='transparent' width='635' height='215' name='james_restaurant' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
  document.write("</embed></object>");
  document.write("</td>");
  document.write("<td valign='top'><img src='/images/menu.jpg' width='145' height='215' border='0' usemap='#map'><br></td>");
  document.write("</tr></table>");
}

function footer()
{
  document.write("<table width='780' border='0' cellpadding='0' cellspacing='0' align='center' style='background: url(/images/bg.gif) repeat-y; padding-top: 0;'>");
  document.write("<tr valign='top' align='center'>");
  document.write("<td colspan='2' height='151' style='padding-top: 15px; background: url(/images/botBG.jpg) no-repeat; padding-left: 295px;'>");
  document.write("<a href='/' class='arr2'>Home</a><a href='/menu/' class='arr2'>Our Menus</a><a href='/specials/' class='arr2'>Specials</a><a href='/photo/' class='arr2'>View Photos</a><a href='/about/contact_us.htm' class='arr2'>Contact Us</a><br>");
  document.write("<a href='#top' class='arrow_3' style='font-size: 9pt;'>Top of Page</a>");
  document.write("</td></tr></table>");

  document.write("<map name='map'>");
  document.write("<area shape='rect' alt='Contact Us' coords='75,152,106,182' href='/about/contact_us.htm'>");
  document.write("<area shape='rect' alt='Photo Gallery' coords='37,152,68,182' href='/photo/'>");
  document.write("<area shape='rect' alt='Home' coords='0,153,31,183' href='/'>");
  document.write("</map>");
}

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>");
}
