var id =1;


while(eval("window.submenu" + id + "_text"))
{

document.write("<DIV STYLE='position:absolute;visibility:hidden;cursor:hand' ID=men" + id + " onmouseout='CloseIt(men" + id + ")' onmouseover='ShowIt(men" + id + ",topmen" + id + ")' >  <TABLE class='smenu'  width='110px' BORDER='0' CELLPADDING='3' cellspacing='0'><TR  height='21px' width='80px' bgcolor='#666633'><td width='80px'><FONT color='#ffffcc'> <a href='" + eval('submenu' + id + '_link') + "' class='topmen'> " + eval('submenu' + id + '_text') + "</a></FONT></td></TR>");
var id2 = 1;
while(eval("window.submenu" + id + "_" + id2 + "_text"))
{
document.write("<TR ><TD  background = 'DropDown.jpg' bgcolor='ffffcc'><a href=" +eval('submenu' + id + '_' + id2 +'_link') + " class='smallgreen'>" + eval('submenu' + id + '_' + id2 +'_text')+ " </a></TD></TR><TR height='1px' bgcolor='#666633'><TD></TD></TR>");
id2++;
}
document.write("</TABLE></DIV>");
id ++;
}


var oversub = false;
function ShowIt(id,placer)
{

	oversub = true;


id.style.top = SDDM_getCoordinates(placer).y -4;
id.style.left = SDDM_getCoordinates(placer).x - 3;



	id.style.visibility='visible';


}

function SDDM_getCoordinates(obj)
{
	var newObj = new Object();
	newObj.x = obj.offsetLeft;
	newObj.y = obj.offsetTop;
	theParent = obj.offsetParent;
	while(theParent != null)
	{
		newObj.y += theParent.offsetTop;
		newObj.x += theParent.offsetLeft;
		theParent = theParent.offsetParent;
	}
	return newObj;
};

	function CloseIt(divid)
	{
		oversub=false;

		if(!oversub)
			{
				divid.style.visibility = 'hidden';
			}

		//TheTip.innerHTML = "";
		//TheTip.outerHTML = "";

	};


