// JavaScript Document

function posicionarSubMenu(evt, idObjDest, idObjOrig) {
	
	var offsetTrail = document.getElementById(idObjOrig);
    var offsetLeft = 0;
    var offsetTop = 0;
    while (offsetTrail) {
        offsetLeft += offsetTrail.offsetLeft;
        offsetTop += offsetTrail.offsetTop;
        offsetTrail = offsetTrail.offsetParent;
    }
    if (navigator.userAgent.indexOf("Mac") != -1 && 
        typeof document.body.leftMargin != "undefined") {
        offsetLeft += document.body.leftMargin;
        offsetTop += document.body.topMargin;
    }
    

	if (navigator.appName=="Microsoft Internet Explorer"){
		document.getElementById(idObjDest).style.left = offsetLeft;
		document.getElementById(idObjDest).style.top = offsetTop+24;
		document.getElementById(idObjDest).style.width = 111;		
	} else {
		document.getElementById(idObjDest).style.left = offsetLeft + 'px';
		document.getElementById(idObjDest).style.top = offsetTop+25+"px";
		document.getElementById(idObjDest).style.width = 111+"px";
	}
	
	document.getElementById(idObjDest).style.display = "block";
	document.getElementById(idObjDest).onmouseover = function(){
		this.style.display = "block";
	}
	
	document.getElementById(idObjDest).onmouseout = function(){
		this.style.display = "none";
		
	}
}