//
jQuery(function(){           
         jQuery('#slideshow ul').cycle({      
            timeout: 5000,  // milliseconds between slide transitions (0 to disable auto advance)      
            fx:      'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...                  
            pager:   '#pager',  // selector for element to use as pager container      
            pause:   0,	  // true to enable "pause on hover"      
			cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)      
            pauseOnPagerHover: 0 // true to pause when hovering over pager link      
        });      
		   
		if(jQuery('#mainmenu'))   
             makePOSTRequest("/modules/menus/mb.menu/menu.php?action=main","",'DoActionsJs' ,'build_menu_mb_act()');  
      
			jQuery('#content-right, .button, #imgs_droite, #imgs_gauche, #imgs_droite_anglais').corner();      
    		  
			jQuery("#menu_link_site").html('');  
			  
			//setTimeout("build_menu_mb()",500);    
      
		});      
function build_menu_mb_act(){  
	jQuery("#mainmenu").html(jQuery("#DoActionsJs").val());  
	var options = {};  
	jQuery("#menu-search").show("blind", options, 1000, build_menu_mb );  
  
	if(jQuery('#sidebar-box'))   
       makePOSTRequest("/modules/menus/box.menu/menu.php?action=main","",'put_content_page_xhtml' ,'sidebar-box');  
	//build_menu_mb();  
}  
function build_menu_mb(){  
	jQuery(".myMenu").buildMenu(      
			{      
				template:"modules/menus/mb.menu/menu.php?action=submain",      
				//additionalData:"pippo=1",      
				menuWidth:200,      
				openOnRight:false,      
				menuSelector: ".menuContainer",      
                containment:"wrapper",      
				iconPath:"images/",      
				hasImages:true,      
				fadeInTime:100,      
				fadeOutTime:300,      
				adjustLeft:2,      
				minZindex:"auto",      
				adjustTop:10,      
				opacity:.95,      
				shadow:true,      
				closeOnMouseOut:true,      
				closeAfter:1000      
			});  
} 

