tms=new Array()

//Mostra o submenu no mouseover
function over(n){
	for (i=1;i<7;i++) {
		document.getElementById('sub'+i).style.visibility = "hidden"
	}
	document.getElementById('menu'+n).style.background = "#595959 url(_imgs/menu_divisao.gif) no-repeat"
	if (typeof(tms[n])!="undefined") clearTimeout(tms[n]);
	document.getElementById("sub"+n).style.visibility = "visible"
}
//Esconde o submenu no mouseout
function out(n){
	document.getElementById('menu'+n).style.background = "#595959 url(_imgs/menu_divisao.gif) no-repeat"
	tms[n]=setTimeout('document.getElementById("sub'+n+'").style.visibility="hidden"',500);
}
//Rollover do submenu
function subover(obj){
	obj.style.background = "#595959 url(_imgs/menu_sub_bullet.gif) no-repeat"
	obj.style.cursor = 'hand';
}
//Rollout do submenu
function subout(obj){
	obj.style.background = "#595959 url(_imgs/menu_sub_bullet.gif) no-repeat"
	obj.style.cursor = 'default';
}