// JavaScript Document// Banner Ad Rotationlinks = new Array;description = new Array;onclick = new Array;var i = 1;numbanners = 2;banner1 = new Image();                     banner1.src = 'banners/wasabi.jpg';                     links[1] = 'http://www.wasabisushi.com/';                     onclick[1] = "";                     description[1] = 'Wasabi';banner2 = new Image();                     banner2.src = 'banners/crepeaway.jpg';                     links[2] = 'http://www.crepeaway.com/';                     onclick[2] = "";                     description[2] = 'Crepe';banner3 = new Image();                     banner3.src = 'banners/snapBanner.jpg';                     links[3] = 'http://www.snapcrepes.com/';                     onclick[3] = "";                     description[3] = 'Snap';                     banner4 = new Image();                     banner4.src = 'banners/JuiceZone.jpg';                     links[4] = 'http://www.juicezone.com/';                     onclick[4] = "";                     description[4] = 'JuiceZone';                     banner5 = new Image();                     banner5.src = 'banners/pangea.gif';                     links[5] = 'http://gwired.gwu.edu/gwdining/dining_city_all.html';                     onclick[5] = "";                     description[5] = 'Pangea';function startTime(){        var time= new Date();        hours= time.getHours();        mins= time.getMinutes();        secs= time.getSeconds();        closeTime=hours*3600+mins*60+secs;        closeTime+=6;	// How many seconds til the next rotation        Timer();}function Timer(){        var time= new Date();        hours= time.getHours();        mins= time.getMinutes();        secs= time.getSeconds();        curTime=hours*3600+mins*60+secs        if (curTime>=closeTime){		if (i < numbanners){	// This number is the amount of banners that you have			i++;			document.banner.src = eval("banner" + i + ".src");		}		else{			i = 1;			document.banner.src = eval("banner" + i + ".src");		}		startTime();	}        else{                window.setTimeout("Timer()",1000)}}function clickLink() {	if (onclick[i]) {		newWindow = eval("window.open("+onclick[i]+")")	} else {		top.location = links[i]	}}function descript(){	window.status = description[i]}