// Author: Dirceu Pauka Júnior
// E-mail: dirceuu@gmail.com
//show... only
function s_show(name) {
	//instance the object link for function getPageOffsetLeft use and hover use
	link = document.getElementById(name);
	//hoover class (define in your css)
	link.className = "over";
	//horizontal position (x) of <a> 'father' (link) + width of them + offset define for left (offsetx)
	x = getPageOffsetLeft(link) + link.offsetWidth;
	//vertical position (y) of <a> 'father' + offset define for top (offsety)
	y = getPageOffsetTop(link);
	//instance the sub-menu HTML Element and apply the position
	var osub = document.getElementById("sub_"+name);
	osub.style.left = x + "px";
	osub.style.top  = y + "px";
	//set for display
	osub.style.display = "block";
}
//hide... only
function s_hide(name){
	//instance the object link for un-hover
	link = document.getElementById(name);
	link.className = " ";
	//instanciar o objeto que é o submenu
	var osub = document.getElementById("sub_"+name);
	//colocar um estilo css para ele sumir
	osub.style.display = "none";
}
//getting the positions
function getPageOffsetLeft(_){var q;q=_.offsetLeft;if(_.offsetParent!=null)
q+=getPageOffsetLeft(_.offsetParent);return q}
function getPageOffsetTop(_){var q;q=_.offsetTop;if(_.offsetParent!=null)
q+=getPageOffsetTop(_.offsetParent);return q}