	/**
	 *	fonction js pour gerer le menu flottant	
	 */
	
	var d = null;
	var delais = 500;
	var timeOut = null;
	
	var elementNiv1 = null;
	var isDernier = false;
	
	function montre(id) {
		annulerCache();
		if (d) {d.style.display='none';}
		d = document.getElementById(id);
		if (d) {d.style.display='block';}
	}
	function cacheDelais(id){
		//cacheMenu() ;
		timeOut = setTimeout('cacheMenu()', delais);
	}
	function cacheMenu(){
		if (d) {d.style.display='none';}
		if(elementNiv1){
			if (isDernier){
				elementNiv1.className = 'dernier niv1' ;
			}else{
				elementNiv1.className = 'niv1' ;
			}
		}
	}
	function annulerCache(){
		if(timeOut){
			clearTimeout(timeOut);
		}
	}
	function clear_hover_n1_on(){
		if(elementNiv1){
			if (isDernier){
				elementNiv1.className = 'dernier niv1' ;
			}else{
				elementNiv1.className = 'niv1' ;
			}
		}
		elementNiv1 = null;
	}
	function set_hover_n1(html_obj, dernier){
		if(elementNiv1){
			if (isDernier){
				elementNiv1.className = 'dernier niv1' ;
			}else{
				elementNiv1.className = 'niv1' ;
			}
		}
		if(html_obj){
			if(dernier){
				var prefix = 'dernier niv1';
			}else{
				var prefix = 'niv1';
			}
			html_obj.className = prefix+'_on ' ;
		}
		elementNiv1 = html_obj;
		isDernier = dernier;
	}
	function clear_hover(html_obj, indice){
		html_obj.className = 'niv'+indice ;
		$(html_obj).find('ul').css('display','none') ;
	}
	function clear_niv3(html_obj){
		$(html_obj).find('ul').css('display','none') ;
	}
	function set_hover(html_obj, indice){
		html_obj.className = 'niv'+indice+'_on ' ;
		$(html_obj).find('ul').css('display','block') ;
		if(elementNiv1)set_hover_n1(elementNiv1,isDernier);
		
	}
	function clic_hover(html_obj){
		table_html_a = html_obj.getElementsByTagName("a");
		window.location.replace(table_html_a[0].getAttribute("href"));
	}
	
	/**
	 * permet de gerer l'impression des actu etc ...
	 *
	 */
	function getParamUrl(){
		var prm = new Object();
		var url = window.location;
		var tmp = unescape(url.toString()).split("?");
		if ( tmp[1] ) {
			tmp = tmp[1].split("&");
			for ( i=0; i<tmp.length; i++){
				var spl = tmp[i].split('=');
				prm[spl[0]] = spl[1];
			}
		}
		return prm;
	}
	function impression(){
		$_GET = getParamUrl();
		var lien = document.getElementById('ht_impression');
		var str_url=lien.getAttribute("href");
		if ( $_GET && $_GET['n'] ) {
			str_url +='&n=' + $_GET['n'] ;
		}
		lien.setAttribute("href", str_url) ;
	}
	function globalAttachEvent(oElt, sEvt, fFct) {
		if ( typeof(oElt)=='object' && sEvt.length ) {
			if (document.all) {
				oElt.attachEvent(sEvt, fFct);
			} else {
				sEvt = sEvt.replace(/^on/, '') ;
				oElt.addEventListener(sEvt, fFct, false);
			}
		}
	}
	globalAttachEvent(window,'onload',impression);
	
	
	/*
	init = function(){
		
		$('#pane2').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
	}
	
	$( init );
	
	*/
	