function menuFX1(var1) {
	document.getElementById(var1).style.backgroundImage="url('imgs/transbg_gray.png')";
}
function menuFX2(var1) {
	document.getElementById(var1).style.backgroundImage="none";
}

    $(function(){
      $(".myMenu").buildMenu(
      {
        template:"menuVoices.html",
        additionalData:"pippo=1",
        menuWidth:300,
        openOnRight:false,
        menuSelector: ".menuContainer",
        iconPath:"imgs/ico/",
        hasImages:true,
        fadeInTime:100,
        fadeOutTime:300,
        adjustLeft:2,
        minZindex:"auto",
        adjustTop:10,
        opacity:.95,
        shadow:true,
        shadowColor:"#999",
        hoverIntent:0,
        openOnMouseOver:true,
        closeOnMouseOut:true,
        closeAfter:1000
      });
   });
	    //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"));
    }
