var jagQuery =  jQuery.noConflict();

jagQuery(function(){
	// BUTTONS
	/*
	jagQuery('.fg-button').hover(
		function(){ jagQuery(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
		function(){ jagQuery(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
	);
	*/
	// MENUS    	
	
	/**/
	jagQuery('#hierarchybreadcrumb').menu({
		content: jagQuery('#hierarchybreadcrumb').next().html(),
		backLink: false,
		width:270,
		maxHeight:290,
		positionOpts:{posX:'left',posY:'bottom',offsetX:0, offsetY:8	}
	});
	
   // memic mouse click 
   var fireOnThis = document.getElementById('hierarchybreadcrumb');
   var evt = 'click';
   
	if( document.createEvent ) {
	  var evObj = document.createEvent('MouseEvents');
	  evObj.initEvent( evt, true, false );
	  fireOnThis.dispatchEvent(evObj);
	} else if( document.createEventObject ) {
	  fireOnThis.fireEvent('on'+evt);
	}

});