function showNav(id, count) {
	
	if(t!==null){
		clearTimeout(t);
	}
	for (var i=0; i < count; i++){
		if (i == id){
			document.getElementById("nav" + i).className = "current";
		}else{
			document.getElementById("nav" + i).className = "";
		}
	}
}

var t = null;
// This function calls showNav with the specified id and count
function delayHide(id, count) {
	if(t!==null){
		clearTimeout(t);
	}
	t = setTimeout("showNav("+id+", "+count+")", 2000);
}


