//--==Select Current Page==--
function selectCurrentPage(menuNum) {
	var sUrl = document.URL;
	var iLastSlash = sUrl.lastIndexOf("/");
	var sLocation = sUrl.substr(iLastSlash+1);													
	var oMenu = document.getElementById("jump_menu" + menuNum)
	var iLen = oMenu.options.length;
	sLocation = sLocation.replace(location.hash,"");
	for (i=0;i<=oMenu.length-1;i++) {
		if (oMenu.options[i].value==sLocation) {
			oMenu.options.selectedIndex = i;
			break;
			}
		}
		
	//Hide previous or next button if on first or last page
	if (oMenu.options.selectedIndex==0)
		document.getElementById("prev" + menuNum).style.display="none";
	if (oMenu.options.selectedIndex==iLen-1)
		document.getElementById("next" + menuNum).style.display="none";
}

function goToSection(menuNum,action) {									
	var oMenu = document.getElementById("jump_menu" + menuNum)
	var iIndex = oMenu.options.selectedIndex;	
	var iLen = oMenu.options.length;
	switch (action) {
		case "previous" :
			if (iIndex>0) {
			  iIndex = oMenu.options.selectedIndex-1;	
				window.location = oMenu.options[iIndex].value;
			}
			break;
		case "next" :
			if (iIndex<iLen-1) {
				iIndex = oMenu.options.selectedIndex+1;	
				window.location = oMenu.options[iIndex].value;
			}
		  break;
	}
}