function openMenu(menuID,linkObj)
{
	//if the menu code is ready
	if(um.ready)
	{
		//find co-ordinates of link object
		var coords = {
			'x' : um.getRealPosition(linkObj,'x'),
			'y' : um.getRealPosition(linkObj,'y')
			};

		//increase y-position to place it below the link
		coords.y += (linkObj.offsetHeight -20);
		coords.x += (linkObj.offsetWidth -5);

		//activate menu at returned co-ordinates
		um.activateMenu(menuID, coords.x + 'px', coords.y + 'px');
	}
}
//close menu with given ID
function closeMenu(menuID)
{
	//if the menu code is ready
	if(um.ready)
	{
		//deactive menu
		um.deactivateMenu(menuID);
	}
}

function openW(mypage,myname,w,h,features) {
	if(screen.width){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
	}else{winl = 0;wint =0;}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}

