
	// Udm Menu functions - JavaScript Document

	// Open menu with given ID 
	function openMenu(menuID,linkObj,pos_type)
	{
		//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')
				};
				
			if(pos_type == "v")
			{
				coords.x += (193 - 30);
				coords.y = coords.y;
			}
			
			if(pos_type == "h")
			{
				coords.x += (-1);
				coords.y += (linkObj.offsetHeight + 1);
			}
			
			//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);
		}
	}
