	function mycarousel_initCallback(carousel)
	{
	    // Disable autoscrolling if the user clicks the prev or next button.
	    carousel.buttonNext.bind('click', function() {
	        carousel.startAuto(0);
	    });
	
	    carousel.buttonPrev.bind('click', function() {
	        carousel.startAuto(0);
	    });
	
	    // Pause autoscrolling if the user moves with the cursor over the clip.
	    carousel.clip.hover(function() {
	        carousel.stopAuto();
	    }, function() {
	        carousel.startAuto();
	    });
	};
	
	
	
	jQuery(document).ready(function() {
		
			$('#monDiv').hide();
			$('#declencheur').show();
			$('#declencheur').click(function () {
				$('#monDiv').toggle('normal');
				$('#declencheur').hide();
			});
		
	    jQuery('#mycarousel').jcarousel({
	        auto: 5,
	        wrap: 'last',
	        scroll: 2,
	        initCallback: mycarousel_initCallback
	    });

    lastBlock = $("#a1");
    maxWidth = 210;
    minWidth = 55;	

    $("#tabsgoodies ul li a").hover(
      function(){
        $(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
		$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
		lastBlock = this;
      }
    );
});
    var xhr = null;function getXhr(){   if(window.XMLHttpRequest)xhr = new XMLHttpRequest();   else if(window.ActiveXObject){	  try{		 xhr = new ActiveXObject("Msxml2.XMLHTTP");	  }catch (e){		 xhr = new ActiveXObject("Microsoft.XMLHTTP");	  }   }else{	  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");	  xhr = false;   }}function ShowVideo(start,nb,cat,console,evenement,idJeu){   getXhr()   xhr.onreadystatechange = function(){	  if(xhr.readyState == 4 && xhr.status == 200){		 document.getElementById('page').innerHTML=xhr.responseText; 	  }   }   xhr.open("GET","http://www.p-nintendo.com/fichiers/accueil-5-5/ajax.php?start="+start+"&nb="+nb+"&cat="+cat+"&console="+console+"&evenement="+evenement+"&idJeu="+idJeu,true);   xhr.send(null);}