function mioNavLoc(idPrefix,className){
	className = ' '+className;
	//first try window.mioNavPageId
	if(mioNavCheck(idPrefix+'_p'+window.mioNavPageId)){
		//alert(idPrefix+'_p'+window.mioNavPageId);
		document.getElementById(idPrefix+'_p'+window.mioNavPageId).className += className;
		return true;
	}
	
	//check by category
	if(mioNavCheck(idPrefix+'_c'+window.mioNavCatId)){
		document.getElementById(idPrefix+'_c'+window.mioNavCatId).className += className;
		return true;
	}
	
	//match based on filename
	for(var x in window.mioNavAllIds ){
		if(mioNavCheck(idPrefix+'_p'+window.mioNavAllIds[x])){
			document.getElementById(idPrefix+'_p'+window.mioNavAllIds[x]).className += className;
			return true;
		}
	}
		
	//match on last clicked element
	if(mioNavCheck(idPrefix+'_c'+window.mioNavLast)){
		document.getElementById(idPrefix+'_c'+window.mioNavLast).className += className;
		return true;
	}
	
	//could not rectify
	return false;
}
function mioNavCheck(id){
	if(typeof document.getElementById(id) != 'undefined' && document.getElementById(id) != null) return true;
	return false;
}
