Event.observe(window,'resize',mcheight);
var udLeftWidth = 0;

function mcheight () {
	VPheight = $("default").offsetHeight;
	Mainheight= VPheight-180;
	$("udmainwrapper").style.height = Mainheight + "px";
	udLeftWidth = $('udleft').getWidth();
}

function menuIN (menid,subid) {
	var subtest = $(subid);	
	if (subtest.style.visibility != "visible" ) {		
		var idelem = $(menid);
		yoff = idelem.getHeight();	
		xyC = idelem.offsetLeft;
		$(subid).style.left = udLeftWidth + xyC + "px";
		$(subid).style.top = (145 + yoff-1) + "px";
		$(subid).style.visibility = "visible";
		$(menid).style.backgroundColor = '#f00';
	}
}
function menuOUT (menid,subid,myEvent) {
		if(navigator.appName == "Netscape"){
			menx = Event.pointerX(myEvent);
			meny = Event.pointerY(myEvent);
			if (!Position.within($(subid),menx,meny)) { 
				$(menid).setStyle({
					backgroundColor: 'transparent'
				});
				$(subid).style.visibility = "hidden";
			}
		}else{
			$(menid).setStyle({
					backgroundColor: 'transparent'
				});
				$(subid).style.visibility = "hidden";
		}		
}
function menupOUT (menid,subid,myEvent) {
			menx = Event.pointerX(myEvent);
			meny = Event.pointerY(myEvent);
			if (!Position.within($(subid),menx,meny)) { 
				$(menid).setStyle({
					backgroundColor: 'transparent'
				});
				$(subid).style.visibility = "hidden";
			}
}



