var currentmenuitem = new Array();
var currentarrayindex = 0;
var	currentmenuname = "identities";
var tempArray = new Array();

function advance(which) {
	tempArray = top.navFrame.currentmenuitem.items;

	if (which == "next") {
		if (top.navFrame.currentarrayindex + 4 < tempArray.length) {
			top.navFrame.currentarrayindex += 4;
			top.mainFrame.location.href = "portfolio.html";
		}
	} else {
		if (top.navFrame.currentarrayindex >= 4) {
			top.navFrame.currentarrayindex -= 4;
			top.mainFrame.location.href = "portfolio.html";
		}
	}
}

function portfolio(which, whichsub) {
	if(whichsub) {
		currentmenuitem = eval("top.navFrame." + which + "." + whichsub);
	} else {
		currentmenuitem = eval("top.navFrame." + which);
	}
	currentmenuname = which;

	currentarrayindex = 0;
	top.mainFrame.location.href = "portfolio.html";
}
