function swap(navName, path) {
	document.images[navName].src = path;
}

var curProdObj; //current detail div id
function showProdDetail(ObjID) {		
	if ( document.getElementById ) {
		var sub_objID = ObjID + "_detail"; //id for detail div section
		if ( document.getElementById(sub_objID) ) { //if detail section is avilable
			if (document.getElementById(sub_objID).style.display != "block" ) { //it's not showing
				if (curProdObj) { //if a detail div is open
					document.getElementById(curProdObj).className = "pCatLi"; // change classname
					document.getElementById(curProdObj + "_detail").style.display = "none"; //hide detail section
				}
				document.getElementById(ObjID).className = "pCatLi_cur"; //change classname
				document.getElementById(sub_objID).style.display = "block"; //show detail section			
				curProdObj = ObjID; //update curProdObj to the current
			}
			else { //detail is showing
				document.getElementById(ObjID).className = "pCatLi";
				document.getElementById(sub_objID).style.display = "none"; //hide detail section
			}
		}	
	}
}

