tms=new Array()
//Mostra o submenu no mouseover
function over(topicImage){
    if(typeof(tms[topicImage])!="undefined")
    	clearTimeout(tms[topicImage])
    var obj=document.getElementById(topicImage);
    document.getElementById('div_'+topicImage).style.left = obj.offsetLeft; //findPosX(obj);
    document.getElementById('div_'+ topicImage).style.visibility="visible"
    
}
//Esconde o submenu no mouseout
function out(topicImage){
    tms[topicImage]=setTimeout('document.getElementById("div_'+ topicImage + '").style.visibility="hidden"',0)
}
//Troca a cor dos links do menu
function troca(topicImage){
	document.getElementById(topicImage).style.color="#000000";
}
function destroca(topicImage){
	document.getElementById(topicImage).style.color="#ffffff";
}

function mudaMenuCor(obj) {
	
	switch (obj.className) {
		case 'TxtMenu':
			obj.className = 'TxtMenu_over';
			break;
		case 'TxtMenu_over':
			obj.className = 'TxtMenu';
			break;
	}
}

function mudaMenuSubCor(obj) {
	
	switch (obj.className) {
		case 'TxtMenuSub':
			obj.className = 'TxtMenuSub_over';
			break;
		case 'TxtMenuSub_over':
			obj.className = 'TxtMenuSub';
			break;
	}
}