function showAccessibleVersion(){
	//randomFigure =  Math.floor(Math.random()*parseInt(7).toFixed(0)+1); //1...8  
	//randomBanner = '<img src="template/images/slideshow/img'+ randomFigure +'.jpg" alt="Photo" />';
	//jQuery('.sample').html(randomBanner);
	//alert(randomFigure);
}


function ouvrirMenu2(num_menu, nb_menu){
	alert(num_menu+" "+nb_menu); 
	for(i = 0; i < num_menu; i++){

		document.getElementById('menu' + i).style.display = 'none';

	}
	document.getElementById('menu' + num_menu).style.display = 'block';

	for(i = num_menu + 1; i < nb_menu; i++){

		document.getElementById('menu' + i).style.display = 'none';

	}
	
	return false; 
}


jQuery.noConflict();
jQuery(document).ready(function(){
	// get all images which end by puce1.gif, puce2.gif , apply the "img_pad_bottom" class button to them,
	// so that they are aligned with the text.  
	jQuery(this).find("img[src$=puce1.gif],img[src$=puce2.gif],img[src$=puce.gif]").each(function() {
	   jQuery(this).addClass("img_pad_bottom");
	});

	var loopOnce = false;
	jQuery(this).find("ul ul").each(function() {
	   //KO
	   //console.log(jQuery(this).parent().get(0).innerHTML); 
	   //add a z-index to prevent "puce" to appear on top of the menu items. 
	   jQuery(this).css("z-index","100");
	   //&& (jQuery.browser.version==7)
	   if((jQuery.browser.msie)&& (Math.floor(jQuery.browser.version)==7) ){//fix a display bug on IE 7: add a width offset equal to the parent <A>'s width of the current UL UL element
		jQuery(this).css("margin-left",-jQuery(this).siblings("a").width()-20);
	   }				  
	   
	   if((jQuery.browser.msie)&& (Math.floor(jQuery.browser.version)==6) ){//fix as IE 6 cannot show submenus !
		
		if(loopOnce == false){ //do once and for all. 
			randomFigure =  Math.floor(Math.random()*parseInt(7).toFixed(0)+1); //1...8  
			randomBanner = '<img src="template/images/slideshow/img'+ randomFigure +'.jpg" alt="Photo" />';
			//alert(randomBanner); 
			//jQuery('.sample').html(randomBanner);
			loopOnce = true;
		}
		jQuery(this).siblings("a").attr('href','javascript:void(0);'); 
		jQuery(this).siblings("a").click(function(e){
		 jQuery(".buffer").html('<ul class="lameMenu">'+jQuery(this).siblings("ul ul").get(0).innerHTML +'</ul>'); 
		 e.stopPropagation(); 
		}); 
	   }				  
   });	 
});