function imgOverJpg(thisImg) {
	document[thisImg].src="images/navigation/" + thisImg + "-over.jpg"
}

function imgOutJpg(thisImg) {
	if(thisImg != "resume" && thisImg != "about") {
		document[thisImg].src="images/navigation/" + thisImg + "-off.jpg"
	}
	else {
		document[thisImg].src="images/navigation/" + thisImg + ".gif"
	}
}

function imgOver(thisImg) {
	document[thisImg].src="images/navigation/" + thisImg + "-over.gif"
}

function imgOut(thisImg) {
	document[thisImg].src="images/navigation/" + thisImg + "-off.gif"
}

function openurl(urlname) {
	urlWindow = window.open(urlname);
} 

function chgImgOver(thisImg) {
	parent.topframe[thisImg].src="images/navigation/" + thisImg + "-over.jpg";
}

function chgImgOut(thisImg) {
	if(thisImg != "resume") {
		parent.topframe[thisImg].src="images/navigation/" + thisImg + "-off.jpg";
	}
	else {
		parent.topframe[thisImg].src="images/navigation/" + thisImg + ".gif";
	}
}

function toggleMenu(currMenu, numMenus) {
	var thisMenu = document.getElementById( currMenu );
		if(thisMenu.style.display == "block") {
			thisMenu.style.display = "none";
		}
		else {
			thisMenu.style.display = "block";
			for(i=0; i<numMenus; i++) {
				j = i+1;
				var menu = "menu" + j;
				if(menu!=currMenu) {
					var otherMenu = document.getElementById( menu );
					if(otherMenu) {
						otherMenu.style.display = "none";
					}
				}
			}
		}
		// reset the image
		current_image = 0;
}

function hideMenus(numMenus) {
		for(i=0; i<numMenus; i++) {	
			j = i+1;
			var menu = "menu" + j;
			var currMenu = document.getElementById( menu );
			currMenu.style.display = "none";
		}
}