// JavaScript Document
$(function(){
	$(".myMenu").buildMenu(
	{
		additionalData:"pippo=1",
		menuWidth:170,
		openOnRight:false,
		menuSelector: ".menuContainer",
		containment:"wrapper",
		hasImages:false,
		fadeInTime:150,
		fadeOutTime:250,
		openOnClick:false,
		adjustLeft:2,
		minZindex:"auto",
		adjustTop:10,
		shadow:true,
		closeOnMouseOut:true,
		closeAfter:50
	});

});


//this function get the id of the element that fires the context menu.	
function testForContextMenu(el){
	if (!el) el= $.mbMenu.lastContextMenuEl;
	alert("the ID of the element is:   "+$(el).attr("id"));
}
