
var portpath =	location.pathname;

var portmenu =	new Object();

portmenu.cindykelly = new Object();
portmenu.cindykelly.wd = "106";
portmenu.cindykelly.on = new Image();
portmenu.cindykelly.on.src = "/graphics/cindy1.jpg";
portmenu.cindykelly.off = new Image();
portmenu.cindykelly.off.src = "/graphics/cindy0.jpg";
portmenu.cindykelly.path = "/portfolio0.shtml";

portmenu.taskforce = new Object();
portmenu.taskforce.wd = "198";
portmenu.taskforce.on = new Image();
portmenu.taskforce.on.src = "/graphics/task1.jpg";
portmenu.taskforce.off = new Image();
portmenu.taskforce.off.src = "/graphics/task0.jpg";
portmenu.taskforce.path = "/portfolio1.shtml";

portmenu.ncl = new Object();
portmenu.ncl.wd = "176";
portmenu.ncl.on = new Image();
portmenu.ncl.on.src = "/graphics/ncl1.jpg";
portmenu.ncl.off = new Image();
portmenu.ncl.off.src = "/graphics/ncl0.jpg";
portmenu.ncl.path = "/portfolio2.shtml";

portmenu.phxenergy = new Object();
portmenu.phxenergy.wd = "168";
portmenu.phxenergy.on = new Image();
portmenu.phxenergy.on.src = "/graphics/phxes1.jpg";
portmenu.phxenergy.off = new Image();
portmenu.phxenergy.off.src = "/graphics/phxes0.jpg";
portmenu.phxenergy.path = "/portfolio4.shtml";

portmenu.pilot = new Object();
portmenu.pilot.wd = "130";
portmenu.pilot.on = new Image();
portmenu.pilot.on.src = "/graphics/pilot1.jpg";
portmenu.pilot.off = new Image();
portmenu.pilot.off.src = "/graphics/pilot0.jpg";
portmenu.pilot.path = "/portfolio5.shtml";

function portrollOn(cur) {
	if (document.images) {
		if (portmenu[cur].path !== portpath) {
			document[cur].src = portmenu[cur].on.src;
		}
	}
}

function portrollOff(cur) {
	if (document.images) {
		if (portmenu[cur].path !== portpath) {
			document[cur].src = portmenu[cur].off.src;
		}
	}
}

function portmenuItem(cur) {
	var portimgsrc;
	if (portmenu[cur].path == portpath) {
		portimgsrc = portmenu[cur].on.src;
	}
	else {
		portimgsrc = portmenu[cur].off.src;
	}
	document.write('<a href = "' + portmenu[cur].path + '" onMouseOver = "portrollOn(\'' + cur + '\')" onMouseOut = "portrollOff(\'' + cur + '\')"><img src="' + portimgsrc + '" width="' + portmenu[cur].wd + '" height="11" border="0" name="' + cur + '"></a>');
}
