//Nav menu functions
document.menuTimer = 0;	
function menuShow(currSub,currMenu,currLink,currClass){
	clearTimeout(document.menuTimer);
	document.getElementById(currLink).className='topNavOn';
	document.getElementById(currSub).className='subnavOn';
	document.getElementById(currMenu).className=currClass;
}
function menuOut(){
	document.menuTimer = setTimeout('menuShowDefault()', 1250);
}
function menuHide(){
	for (i = 1; i < 5; i++){ //8 is number of nav items plus 1
       	document.getElementById('nav'+i).className='subnavOff';
       	document.getElementById('link'+i).className='topNav';
	}
	for (i = 1; i < 3; i++){ //3 is number of products plus 1
       	document.getElementById('prod'+i).className='topNavProduct';
	}
	for (i = 3; i < 5; i++){ //
       	document.getElementById('cat'+i).className='topNavCategory';
	}
}	
function menuShowDefault() {	
	menuHide();
	if (sectionNum != '0'){
		if (sectionType == 'Product'){
			menuShow('nav'+sectionNum,'prod'+sectionNum,'link'+sectionNum,'topNav'+sectionType+'Over');
			}else{
			menuShow('nav'+sectionNum,'cat'+sectionNum,'link'+sectionNum,'topNav'+sectionType+'Over');
		}
	}
}
