
//open menu with given ID
function openMenu(menuID,linkObj,menuX,menuY)
{
    //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 + 4);
	
	//activate menu at returned co-ordinates
	um.activateMenu(menuID, coords.x + menuX + 'px', coords.y + menuY + 'px');
    }
}
												    
//close menu with given ID
function closeMenu(menuID)
{
    //if the menu code is ready
    if(um.ready)
    {
	//deactive menu
	um.deactivateMenu(menuID);
    }
}

//zoli:)
function openlink2state(url, state) {
	if (state == 'y') {
		open(url);
	}
	else {
		window.location.href = url;
	}
}
