function showLayer(idLayer,idTrigger){
	if (document.getElementById(idTrigger).className == 'lev-0') {document.getElementById(idTrigger).className = 'lev-0 c mark';
	document.getElementById(idLayer).className = 'dropdown showLayer';}
}
function hideLayer(idLayer,idTrigger){
	if (document.getElementById(idTrigger).className == 'lev-0 c mark') {document.getElementById(idTrigger).className = 'lev-0';
	document.getElementById(idLayer).className = 'dropdown hideLayer';}
}
function doLoad() {
	//loaded = true;
	document.getElementById("nav1").onmouseover = changeService1;
	document.getElementById("nav1").onfocus = changeService1;
	document.getElementById("nav1").onmouseout = start_Timeout1;
	document.getElementById("nav1").onmousemove = clear_Timeout1;
	document.getElementById("nav2").onmouseover = changeService2;
	document.getElementById("nav2").onfocus = changeService2;
	document.getElementById("nav2").onmouseout = start_Timeout2;
	document.getElementById("nav2").onmousemove = clear_Timeout2;
	document.getElementById("nav3").onmouseover = changeService3;
	document.getElementById("nav3").onfocus = changeService3;
	document.getElementById("nav3").onmouseout = start_Timeout3;
	document.getElementById("nav3").onmousemove = clear_Timeout3;
	document.getElementById("nav4").onmouseover = changeService4;
	document.getElementById("nav4").onfocus = changeService4;
	document.getElementById("nav4").onmouseout = start_Timeout4;
	document.getElementById("nav4").onmousemove = clear_Timeout4;
}
function changeService1(){
	showLayer('nav1-drop','nav1')
}
function changeService2(){
	showLayer('nav2-drop','nav2')
}
function changeService3(){
	showLayer('nav3-drop','nav3')
}
function changeService4(){
	showLayer('nav4-drop','nav4')
}
function start_Timeout1(){
	if (timer1) window.clearTimeout(timer1);
	timer1 = window.setTimeout("hideLayer('nav1-drop','nav1')",100);
}
function clear_Timeout1(){
	if (timer1) window.clearTimeout(timer1);
}
function start_Timeout2(){
	if (timer2) window.clearTimeout(timer2);
	timer2 = window.setTimeout("hideLayer('nav2-drop','nav2')",100);
}
function clear_Timeout2(){
	if (timer2) window.clearTimeout(timer2);
}
function start_Timeout3(){
	if (timer3) window.clearTimeout(timer3);
	timer3 = window.setTimeout("hideLayer('nav3-drop','nav3')",100);
}
function clear_Timeout3(){
	if (timer3) window.clearTimeout(timer3);
}
function start_Timeout4(){
	if (timer4) window.clearTimeout(timer4);
	timer4 = window.setTimeout("hideLayer('nav4-drop','nav4')",100);
}
function clear_Timeout4(){
	if (timer4) window.clearTimeout(timer4);
}

var timer1 = 1;
var timer2 = 1;
var timer3 = 1;
var timer4 = 1;

window.onload = doLoad;
