// JavaScript Document
/* one */
$(document).ready(function(){
	//  Initialize xBreadcrumbs
	$('#breadcrumbs-2').xBreadcrumbs({ collapsible: false });
});
/* two */


  $(function(){
    $(".myMenu").buildMenu(
    {
      template:"menuVoices.html",
      additionalData:"pippo=1",
      menuWidth:200,
      openOnRight:false,
      menuSelector: ".menuContainer",
      iconPath:"ico/",
      hasImages:true,
      fadeInTime:100,
      fadeOutTime:300,
      adjustLeft:2,
      minZindex:"auto",
      adjustTop:10,
      opacity:.95,
      shadow:false,
      shadowColor:"#FFFFFF",
      hoverIntent:0,
      openOnClick:false,
      closeOnMouseOut:true,
      closeAfter:1000,
      submenuHoverIntent:200
    });
  });

  //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"));
  }

  function recallcMenu(el){
    if (!el) el= $.mbMenu.lastContextMenuEl;
    var cmenu=+$(el).attr("cmenu");
    $(cmenu).remove();
  }

  function notify(msg){
    var msgBox=$("<div>").addClass("msgBox");
    $("body").append(msgBox);
    msgBox.append("Μόλις αλλάξατε την ρύθμιση: "+msg+"<br /><br />");
    setTimeout(function(){msgBox.fadeOut(500,function(){msgBox.remove();})},3000)
  }
