function displayMenu(menuId, type){

		//	Instantiate a Menu.  The first argument passed to the 
		//	constructor is the id of the element in the DOM that represents 
		//	the root Menu instance.
	    
	    
	    //manageLanguages();
	    
	    if(type == "menu")
	    	this[menuId] = new YAHOO.widget.Menu(menuId, {position: "static", lazyload:true, autosubmenudisplay: true, clicktohide: true, constraintoviewport:false, minscrollheight: 900});
	    else
	   		this[menuId] = new YAHOO.widget.MenuBar(menuId, {autosubmenudisplay: true, minscrollheight: 900});
	    
	    
		//	Call the "render" method with no arguments since the markup for 
		//	this Menu instance already exists in the DOM.
	
	    this[menuId].render();
	    
	    // Show the Menu instance
	    
	    this[menuId].show();
	            
	    return this[menuId];

}

function checkSelected(menuId){
	
	var href = window.location.href;
	var menuItems = this[menuId].getItems();
	
	for(x=0; x < menuItems.length; x++){
		
		var attributes = menuItems[x].srcElement.attributes;
		
		for(y=0; y < attributes.length; y++){
			if(attributes[y].name == 'select'){
				var selectValueArr = attributes[y].value.split(",");
				for(z=0; z < selectValueArr.length; z++){
					if(href.indexOf(selectValueArr[z]) > -1)
						menuItems[x].cfg.setProperty("selected", true);
				}
			}
		}
	}
	
}

