// UDMv4.42 //
/***************************************************************/
var um={'menuClasses':[],'itemClasses':[],'menuCode':[]};
/***************************************************************\
  ULTIMATE DROP DOWN MENU Version 4.42 by Brothercake
  http://www.udm4.com/
  
  This script may not be used or distributed without license
\***************************************************************/

/***************************************************************\
 * CORE CONFIGURATION
\***************************************************************/

//path to images folder 
um.baseSRC = "images/";

//navbar orientation
um.orientation = [ "popup", "left", "top", "absolute", "0", "0", "1000", ];

//navbar list output
um.list = [ "flexible", "yes", "no", ];

//menu behaviors	
um.behaviors = [ "200", "500", "yes", "default", ];

//reset behaviors
um.reset = [ "yes", "no", "yes", "no", ];

//horizontal continuation strip
um.hstrip = [ 'none', 'no', ];

//styles which apply to the navbar
um.navbar = [ "0", "0", "1em", ];

//styles which apply to each navbar item
um.items = [ "0", "0", "collapse", "#009cdb", "solid", "#009cdb", "solid", "#009cdb", "solid", "0", "0", "#009cdb", "#009cdb", "#009cdb", "100%", "verdana,arial,sans-serif", "normal", "none", "left", "#fff", "#fff", "#fff", "normal", "normal", "normal", "", "", "", "none", "none", "0", "", ];

//styles which apply to each menu
um.menus = [ "0", "0", "0", "#009cdb", "solid", "11em", "0", "#009cdb", "", "none", "0", "", ];

//styles which apply to each menu item
um.menuItems = [ "0", "0", "collapse", "#009cdb", "solid", "#009cdb", "solid", "#009cdb", "solid", "7", "5", "009cdb", "#087d6a", "#009cdb", "90%", "verdana,arial,sans-serif", "normal", "none", "left", "#fff", "#fff", "#fff", "normal", "normal", "normal", "", "", "", "none", "none", "0", "", ];

//open menu with given ID 
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 + 0);
		
		//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);
	}
}