var overColor = new Array
overColor[0] = "#F4F4F4"
overColor[1] = "#F4F4F4"
overColor[2] = "#F4F4F4"
overColor[3] = "#B7D5FF"
overColor[4] = "#B7D5FF"

var normalColor = new Array
normalColor[0] = "#B7D5FF"
normalColor[1] = "#A3C0E9"
normalColor[2] = "#A3C0E9"
normalColor[3] = "#FFFFFF"
normalColor[4] = "#F8FFDF"

var selectColor = new Array
selectColor[0] = "#EFFFB7"
selectColor[1] = "#EFFFB7"
selectColor[2] = "#EFFFB7"

var currentMenu = new Array



function highlightMenu(n,w){
	document.getElementById(n).style.background = selectColor[w];
	currentMenu[w] = document.getElementById(n)
}

function highlightMenuItem(n,w){
	if (currentMenu[w] != document.getElementById(n)) {
		document.getElementById(n).style.background = overColor[w];
	}

}
function normalMenuItem(n,w){
	if (currentMenu[w] == document.getElementById(n)) {
		document.getElementById(n).style.background = selectColor[w];
	}
	else {
		document.getElementById(n).style.background = normalColor[w];
	}
}



var speed=15;

var i=10;
var intHide;
var intShow;
var ht;

function hidemenu(){
clearTimeout(ht);
ht = setTimeout("delayhide()",300);
}


function showmenu(){
clearTimeout(ht);
clearInterval(intHide);
clearInterval(intShow);
intShow=setInterval("show()",10);
}


function delayhide(){
clearInterval(intShow);
clearInterval(intHide);
intHide=setInterval("hide()",35);
}

function show(){
if (i<155)
	{
	i=i+speed;
	document.getElementById('specProgMenu').style.left=i
	}else{clearInterval(intShow);}
}

function hide(){
	if (i>5){
		i=i-speed;	
		document.getElementById('specProgMenu').style.left=i;
	}else{clearInterval(intHide);}
}
var i1=10;
var intHide1;
var intShow1;
var ht1;


function hidemenu1(){
clearTimeout(ht1);
ht1 = setTimeout("delayhide1()",300);
}


function showmenu1(){
clearTimeout(ht1);
clearInterval(intHide1);
clearInterval(intShow1);
intShow1=setInterval("show1()",10);
}


function delayhide1(){
clearInterval(intShow1);
clearInterval(intHide1);
intHide1=setInterval("hide1()",35);
}

function show1(){
if (i1<155)
	{
	i1=i1+speed;
	document.getElementById('supportMenu').style.left=i1;
	}else{clearInterval(intShow1);}
}

function hide1(){
	if (i1>5){
		i1=i1-speed;	
		document.getElementById('supportMenu').style.left=i1;
	}else{clearInterval(intHide1);}
}
