
var curpath =	location.pathname;

var menu =	new Object();

menu.home =	new Object();
menu.home.on =	new Image();
menu.home.on.src = "graphics/home1.jpg";
menu.home.off =	new Image();
menu.home.off.src = "graphics/home0.jpg";
menu.home.wd = 117;
menu.home.path = "/index.shtml";

menu.loeil =	new Object();
menu.loeil.on =	new Image();
menu.loeil.on.src = "graphics/tromploeil1.jpg";
menu.loeil.off =	new Image();
menu.loeil.off.src = "graphics/tromploeil0.jpg";
menu.loeil.wd = 117;
menu.loeil.path = "/portloeil.shtml";

menu.kids =	new Object();
menu.kids.on =	new Image();
menu.kids.on.src = "graphics/theme1.jpg";
menu.kids.off =	new Image();
menu.kids.off.src = "graphics/theme0.jpg";
menu.kids.wd = 117;
menu.kids.path = "/portkids.shtml";

menu.canvas =	new Object();
menu.canvas.on =	new Image();
menu.canvas.on.src = "graphics/faux1.jpg";
menu.canvas.off =	new Image();
menu.canvas.off.src = "graphics/faux0.jpg";
menu.canvas.wd = 117;
menu.canvas.path = "/faux.shtml";

menu.artist =	new Object();
menu.artist.on =	new Image();
menu.artist.on.src = "graphics/artist1.jpg";
menu.artist.off =	new Image();
menu.artist.off.src = "graphics/artist0.jpg";
menu.artist.wd = 117;
menu.artist.path = "/artist.shtml";

menu.faq =	new Object();
menu.faq.on =	new Image();
menu.faq.on.src = "graphics/faq1.jpg";
menu.faq.off =	new Image();
menu.faq.off.src = "graphics/faq0.jpg";
menu.faq.wd = 80;
menu.faq.path = "/faq.shtml";

menu.contact =	new Object();
menu.contact.on =	new Image();
menu.contact.on.src = "graphics/contact1.jpg";
menu.contact.off =	new Image();
menu.contact.off.src = "graphics/contact0.jpg";
menu.contact.wd = 115;
menu.contact.path = "/contact.shtml";

if (curpath == "/") {
	curpath = menu.home.path;
}

function rollOn(cur) {
	if (document.images) {
		if (menu[cur].path !== curpath) {
			document[cur].src = menu[cur].on.src;
		}
	}
}

function rollOff(cur) {
	if (document.images) {
		if (menu[cur].path !== curpath) {
			document[cur].src = menu[cur].off.src;
		}
	}
}

function menuItem(cur) {
	var imgsrc;
	if (menu[cur].path == curpath) {
		imgsrc = menu[cur].on.src;
	}
	else {
		imgsrc = menu[cur].off.src;
	}
	document.write('<a href = "' + menu[cur].path + '" onMouseOver = "rollOn(\'' + cur + '\')" onMouseOut = "rollOff(\'' + cur + '\')"><img src="' + imgsrc + '" width="' + menu[cur].wd + '" height="21"  border="0" name="' + cur + '"></a>');
}
