if (document.images) {
homeon = new Image();
homeon.src = "./images/home-over.gif";
homeoff = new Image();
homeoff.src = "./images/home-off.gif";
ourstoryon = new Image();
ourstoryon.src = "./images/ourstory-over.gif";
ourstoryoff = new Image();
ourstoryoff.src = "./images/ourstory-off.gif";
thankyouon = new Image();
thankyouon.src = "./images/thankyou-over.gif";
thankyouoff = new Image();
thankyouoff.src = "./images/thankyou-off.gif";
bridalpartyon = new Image();
bridalpartyon.src = "./images/bridalparty-over.gif";
bridalpartyoff = new Image();
bridalpartyoff.src = "./images/bridalparty-off.gif";
eventson = new Image();
eventson.src = "./images/events-over.gif";
eventsoff = new Image();
eventsoff.src = "./images/events-off.gif";
giftson = new Image();
giftson.src = "./images/gifts-over.gif";
giftsoff = new Image();
giftsoff.src = "./images/gifts-off.gif";
incubaon = new Image();
incubaon.src = "./images/incuba-over.gif";
incubaoff = new Image();
incubaoff.src = "./images/incuba-off.gif";
intorontoon = new Image();
intorontoon.src = "./images/intoronto-over.gif";
intorontooff = new Image();
intorontooff.src = "./images/intoronto-off.gif";
rsvpon = new Image();
rsvpon.src = "./images/rsvp-over.gif";
rsvpoff = new Image();
rsvpoff.src = "./images/rsvp-off.gif";
guestbookon = new Image();
guestbookon.src = "./images/guestbook-over.gif";
guestbookoff = new Image();
guestbookoff.src = "./images/guestbook-off.gif";
photoon = new Image();
photoon.src = "./images/photo-over.gif";
photooff = new Image();
photooff.src = "./images/photo-off.gif";
contactson = new Image();
contactson.src = "./images/contacts-over.gif";
contactsoff = new Image();
contactsoff.src = "./images/contacts-off.gif";
backon = new Image();
backon.src = "./images/back-over.gif";
backoff = new Image();
backoff.src = "./images/back.gif";
nexton = new Image();
nexton.src = "./images/next-over.gif";
nextoff = new Image();
nextoff.src = "./images/next.gif";
photoalbumbackon = new Image();
photoalbumbackon.src = "./images/photoalbumback-over.gif";
photoalbumbackoff = new Image();
photoalbumbackoff.src = "./images/photoalbumback.gif";
photoalbumnexton = new Image();
photoalbumnexton.src = "./images/photoalbumnext-over.gif";
photoalbumnextoff = new Image();
photoalbumnextoff.src = "./images/photoalbumnext.gif";

}
function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
	}
}
function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
	}
}

<!--
// written by Steve Hideg (after viewing some free countdown Javascripts on the web)
function countBack() {
        // get a new date object
        var weddingDay = new Date("October, 12, 2006");
		var today = new Date();
		var married = new Date ("October, 13, 2006");

        // get today's time in milliseconds since some epoch (1 Jan 1970 00:00:00)
        var todayInMS = today.getTime();

        // get milliseconds for the wedding from the date object
        var weddingDayInMS = weddingDay.getTime();

        var marriedInMS =  married.getTime();
        
        if (todayInMS < weddingDayInMS)
        	{
			
			// calculate total number of seconds until the wedding
	        var countTotalSec = (weddingDayInMS - todayInMS) / 1000;
	        // calculate days until wedding
	        var countDays = Math.floor(countTotalSec / 86400);
	        // calculate hours until the wedding
	        countTotalSec = countTotalSec - (countDays * 86400);
	        var countHours = Math.floor(countTotalSec / 3600);
	        // calculate minutes until the wedding
	        countTotalSec = countTotalSec - (countHours * 3600);
	        var countMinutes = Math.floor(countTotalSec / 60);
			// write out output as HTML
			var countWeeks = Math.floor(countDays / 7);
			var countMonths = Math.floor (countWeeks * 12 / 52);
			var countYears = Math.floor(countWeeks / 52 * 100) / 100;
			document.write("<FONT SIZE=2 FACE='ARIAL, HELVETICA'><b>Wedding Countdown</b>:&nbsp;" + countDays + " days (" + countMonths + " months)</FONT>");
			}
		else if ((todayInMS >= weddingDayInMS) && (todayInMS <= marriedInMS))
			{
			// the wedding is in progress
			
			document.write("<CENTER><FONT SIZE=2 FACE='ARIAL, HELVETICA'>Today is our Wedding.</FONT></CENTER>");
			}
		else if (todayInMS > marriedInMS)
			{
			// after everything, just report how long they've been married
		    // calculate total number of seconds since marriage
			var countTotalSec = (todayInMS - marriedInMS) / 1000;
	        // calculate days since marriage
	        var countDays = Math.floor(countTotalSec / 86400);
	        // calculate hours since marriage
	        countTotalSec = countTotalSec - (countDays * 86400);
	        var countHours = Math.floor(countTotalSec / 3600);
	        // calculate minutes since marriage
	        countTotalSec = countTotalSec - (countHours * 3600);
	        var countMinutes = Math.floor(countTotalSec / 60);
			// write out output as HTML
			document.write("<FONT SIZE=1 FACE='ARIAL, HELVETICA'><br>we've been married for <br>" + countDays + " days, " + countHours + " hours, and " + countMinutes +  " minutes" + "</FONT>");
			var countWeeks = Math.floor(countDays / 7);
			var countYears = Math.floor(Math.floor(countWeeks / 52 * 100) / 100);
			document.write("<br><FONT SIZE=2 FACE='ARIAL, HELVETICA'>Approximately " + countYears + "&nbsp; years,</FONT>");
			document.write("<FONT SIZE=1 FACE='ARIAL, HELVETICA'><br>Approximately " + countWeeks + " weeks</FONT>");
			var countMonths = Math.floor (countWeeks * 12 / 52);
			document.write("<FONT SIZE=1 FACE='ARIAL, HELVETICA'>&nbsp;and " + countMonths + " months</FONT>");
			}
			
}	
//-->