<!--

//constructor:
function ImageSwapObject(onPath,offPath,imgName,imgPath)
{
	if(document.images){
		this.on=new Image();
		this.on.src="../images/"+ imgPath + "/" + onPath;
		this.off=new Image();
		this.off.src="../images/"+imgPath + "/" + offPath;
		this.imageName=imgName;
	}
}


//force prototype creation:
new ImageSwapObject("on","off","name","path");

//functions:
function ImageSwapObject_turnOn()
{
	if(document.images){
		if(!document.layers){
			document.images[this.imageName].src=this.on.src;
		}
		else{
			document.images[this.imageName].src=this.on.src;
		}
	}
}

function ImageSwapObject_turnOff()
{
	if(document.images){
		if(!document.layers){
			document.images[this.imageName].src=this.off.src;
		}
		else{
			document.images[this.imageName].src=this.off.src;
		}
	}
}

//turn functions into methods:
ImageSwapObject.prototype.turnOn=ImageSwapObject_turnOn;
ImageSwapObject.prototype.turnOff=ImageSwapObject_turnOff;


//create objects:
//top menu items
var mOrder,mAbout,mVideo,mFeatures,mDirections,mGallery,mContact,mLinks,mHome;

//top menu items
mOrder = new ImageSwapObject("orderon.gif","orderoff.gif","menuOrder","menu");
mAbout = new ImageSwapObject("abouton.gif","aboutoff.gif","menuAbout","menu");
mVideo = new ImageSwapObject("videoon.gif","videooff.gif","menuVideo","menu");
mFeatures = new ImageSwapObject("featureson.gif","featuresoff.gif","menuFeatures","menu");
mDirections = new ImageSwapObject("directionson.gif","directionsoff.gif","menuDirections","menu");
mGallery = new ImageSwapObject("galleryon.gif","galleryoff.gif","menuGallery","menu");
mContact = new ImageSwapObject("contacton.gif","contactoff.gif","menuContact","menu");
mLinks = new ImageSwapObject("linkson.gif","linksoff.gif","menuLinks","menu");
mHome = new ImageSwapObject("homeon.gif","homeoff.gif","menuHome","menu");


//-->