// JScript File

<!--
function getPageOffsetLeft(el) {
	var x;
	// Return the x coordinate of an element relative to the page.
	x = el.offsetLeft;
	if (el.offsetParent != null){
		x += getPageOffsetLeft(el.offsetParent);
		}
	return x;
	}

function getPageOffsetTop(el) {
	var y;
	// Return the y coordinate of an element relative to the page.
	y = el.offsetTop;
	if (el.offsetParent != null){
		y += getPageOffsetTop(el.offsetParent);
		}
	return y;
	}

function ViewMenu(elnum){
	var xx;
	var yy;
	var hh;
	var ww;
	
	xx = getPageOffsetTop(eval("elemento" + elnum));
	yy = getPageOffsetLeft(eval("elemento" + elnum));
	
	//hh = eval("elemento" + elnum + ".offsetHeight;");
	ww = eval("elemento" + elnum + ".offsetWidth;");
	
	if (elnum == 1){
        	hh = xx - 2;
	}
	if (elnum == 2){
	        hh = xx - 2;
	}
	if (elnum == 3){
	        hh = xx - 2;
	}
	if (elnum == 4){
	        hh = xx - 29;
	}
	if (elnum == 5){
	        hh = xx - 164;
	}
	
	eval("menulev_" + elnum + ".style.display = '';");
	eval("menulev_" + elnum + ".style.top = hh");
	eval("menulev_" + elnum + ".style.left = yy + 189;");
	//eval("menulev_" + elnum + ".style.height = hh;");
	//eval("menulev_" + elnum + ".style.width = ww;");
	
	}

function HideMenu(elnum){
	eval("menulev_" + elnum + ".style.display = 'none';");
	}
	
//-->

