
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.wt = 70;
menu.home.ht = 26;
menu.home.path = "/index.shtml";

menu.device =	new Object();
menu.device.on =	new Image();
menu.device.on.src = "graphics/device1.jpg";
menu.device.off =	new Image();
menu.device.off.src = "graphics/device0.jpg";
menu.device.ht = 150;
menu.device.ht = 26;
menu.device.path = "/device.shtml";

menu.company =	new Object();
menu.company.on =	new Image();
menu.company.on.src = "graphics/company1.jpg";
menu.company.off =	new Image();
menu.company.off.src = "graphics/company0.jpg";
menu.company.ht = 150;
menu.company.ht = 26;
menu.company.path = "/company.shtml";

menu.investor =	new Object();
menu.investor.on =	new Image();
menu.investor.on.src = "graphics/investor1.jpg";
menu.investor.off =	new Image();
menu.investor.off.src = "graphics/investor0.jpg";
menu.investor.ht = 150;
menu.investor.ht = 26;
menu.investor.path = "/investor.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.ht = 148;
menu.contact.ht = 26;
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 + '" height="' + menu[cur].ht + '" border="0" name="' + cur + '"></a>');
}
