  /*  DEFAULT OPTIONS
   options: {
   template:"yourMenuVoiceTemplate",		--> the url that returns the menu voices via ajax. the data passed in the request is the "menu" attribute value as "menuId"
   additionalData:"",								--> if you need additional data to pass to the ajax call
   menuSelector:".menuContainer",		--> the css class for the menu container
   menuWidth:150,										--> min menu width
   openOnRight:false,								--> if the menu has to open on the right insted of bottom
   iconPath:"ico/",									--> the path for the icons on the left of the menu voice
   hasImages:true,									--> if the menuvoices have an icon (a space on the left is added for the icon)
   fadeInTime:100,									--> time in milliseconds to fade in the menu once you roll over the root voice
   fadeOutTime:200,									--> time in milliseconds to fade out the menu once you close the menu
   menuTop:0,										--> top space from the menu voice caller
   menuLeft:0,											--> left space from the menu voice caller
   submenuTop:0,										--> top space from the submenu voice caller
   submenuLeft:4,										--> left space from the submenu voice caller
   opacity:1,												--> opacity of the menu
   shadow:false,										--> if the menu has a shadow
   shadowColor:"black",							--> the color of the shadow
   shadowOpacity:.2,								--> the opacity of the shadow
   openOnClick:true,								--> if the menu has to be opened by a click event (otherwise is opened by a hover event)
   closeOnMouseOut:false,						--> if the menu has to be cloesed on mouse out
   closeAfter:500,									--> time in millisecond to whait befor closing menu once you mouse out
   minZindex:"auto", 								--> if set to "auto" the zIndex is automatically evaluate, otherwise it start from your settings ("auto" or int)
   hoverInted:0, 										--> if you use jquery.hoverinted.js set this to time in milliseconds to delay the hover event (0= false)
   onContextualMenu:function(o,e){} --> a function invoked once you call a contextual menu; it pass o (the menu you clicked on) and e (the event)
   },
   */
   
navigator.browsername= function(){
    var N= navigator.appName;
    var ua= navigator.userAgent, M;
    if(/opera/i.test(ua)) M= ua.match(/(opera)\/? *(\.?\d+(\.\d+)*)/i);
    else{
        M= ua.match(/(applewebkit|firefox|seamonkey|netscape)\/ *(\.?\d+(\.\d+)*)/i);
        if(M){
            if(/safari/i.test(ua)) M[1]= 'Safari';
            var tem= ua.match(/version\/(\.?\d+(\.\d+)?)/i);
            if(tem)M[2]= tem[1];
        }
        else{
            M= ua.match(/ms(ie) *(\d+(\.\d+)*)/i);
        }
    }
    var tempString=(M)? [M[1]]: [N];
    tempString=tempString+"";

    return tempString.toLowerCase();
}

  $(function(){
  
    $(".myMenu").buildMenu(
    {
		/*menuWidth:200,*/
		menuWidth:178,		
		openOnRight:false,
		menuSelector: ".menuContainer",
		iconPath:"ico/",
		/*hasImages:true,*/
		hasImages:false,
		/*fadeInTime:100,*/
		fadeInTime:300,
		/*fadeOutTime:300,*/
		fadeOutTime:0,
		/*adjustLeft:2,*/
		minZindex:"auto",
		/*adjustTop:50,*/
		opacity:.75,
		/*openOnClick:true,*/
		openOnClick:false,
		/*closeOnMouseOut:false,*/
		closeOnMouseOut:true,
		closeAfter:0,
		/*hoverIntent:50,	
		submenuHoverIntent:50,*/
		menuTop:0,			  
		menuLeft:0,			  
		submenuTop:0,		  
		submenuLeft:2
    });
    
	$(".header_top_Menu").buildMenu(
	    {
			/*menuWidth:200,*/
			/*menuWidth:178,*/
			menuWidth:203,
			openOnRight:false,
			menuSelector: ".menuHeaderTopContainer",
			iconPath:"ico/",
			/*hasImages:true,*/
			hasImages:false,
			/*fadeInTime:100,*/
			fadeInTime:300,
			/*fadeOutTime:300,*/
			fadeOutTime:0,
			/*adjustLeft:2,*/
			minZindex:"auto",
			/*adjustTop:50,*/
			opacity:.75,
			/*openOnClick:true,*/
			openOnClick:false,
			/*closeOnMouseOut:false,*/
			closeOnMouseOut:true,
			closeAfter:0,
			/*hoverIntent:50,	
			submenuHoverIntent:50,*/
			menuTop: (navigator.browsername()=='firefox')?0:2,			  
			menuLeft:0,			  
			submenuTop:0,		  
			submenuLeft:2
	    });

    
    $(".header_contact_Menu").buildMenu(
    {
		/*menuWidth:200,*/
		menuWidth:178,		
		openOnRight:false,
		menuSelector: ".menuHeaderTopContactContainer",
		iconPath:"ico/",
		/*hasImages:true,*/
		hasImages:false,
		/*fadeInTime:100,*/
		fadeInTime:300,
		/*fadeOutTime:300,*/
		fadeOutTime:0,
		/*adjustLeft:2,*/
		minZindex:"auto",
		/*adjustTop:50,*/
		opacity:.75,
		/*openOnClick:true,*/
		openOnClick:false,
		/*closeOnMouseOut:false,*/
		closeOnMouseOut:true,
		closeAfter:0,
		/*hoverIntent:50,	
		submenuHoverIntent:50,*/
		menuTop: (navigator.browsername()=='firefox')?0:2,		  
		menuLeft:-12,			  
		submenuTop:0,		  
		submenuLeft:2
    });
    
    
	
    $(".vertMenu").buildMenu(
    {
		menuWidth:130,
		openOnRight:true,
		menuSelector: ".vecticalMenuContainer",
		iconPath:"ico/",
		hasImages:false,
		fadeInTime:300,
		fadeOutTime:0,
		opacity:.75,
		openOnClick:false,
		minZindex:200,
		shadow:false,
		hoverIntent:300,
		closeOnMouseOut:true,
		menuTop:0,			  
		menuLeft:0,			  
		submenuTop:0,		  
		submenuLeft:2	  
    });
	
  });

