function montre(id){var d=document.getElementById(id);for(var i=1;i<=40;i++){if(document.getElementById('smenu'+i)){document.getElementById('smenu'+i).style.display='none';}}
if(d){d.style.display='block';}}
function ExtraireURL(url){var separateur=" > ";var tjs=url.indexOf("/",7)
var tjs2=0;var domaine=url.substring(7,url.indexOf("/",7));document.write("<A href='"+url.substring(0,tjs)+"'>Accueil</A>");while(tjs>1){tjs2=url.indexOf("/",tjs+1);if(tjs2>0){rep=url.substring(tjs+1,tjs2);document.write(separateur+"<A href='"+url.substring(0,tjs2)+"'>"+rep+"</A>");}else{rep=url.substring(tjs+1,9999);document.write(separateur+"<A href='"+url.substring(0,9999)+"'>"+window.document.title+"</A>");}
tjs=url.indexOf("/",tjs+1);}}
// Pour afficher bouton facebook
function facebook()
{
    document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode($_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=150&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0? allowTransparency="true" style="border:none; overflow:hidden; width:150px; height:25px;"></iframe>');}
}

/***********************************************************************************************************************
DESCRIPTION: This is the JavaScript required to create the accordion style menu.  Requires jQuery library
NOTE: Because of a bug in jQuery with IE8 we had to add an IE stylesheet hack to get the system to work in all browsers. I hate hacks but had no choice :(.
************************************************************************************************************************/
$(document).ready(function() {
//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
$('.accordionButton').click(function() {
//REMOVE THE ON CLASS FROM ALL BUTTONS
$('.accordionButton').removeClass('on');
//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
$('.accordionContent').slideUp('normal');
//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
if($(this).next().is(':hidden') == true) {
//ADD THE ON CLASS TO THE BUTTON
$(this).addClass('on');
//OPEN THE SLIDE
$(this).next().slideDown('normal');
//HIDE THE BUTTON
$('.accordionButton span').hide();
} 
});
/********************************************************************************************************************
CLOSES ALL S ON PAGE LOAD
********************************************************************************************************************/	
$('.accordionContent').hide();
});

