/**
 * Fonctions du Menu
 */

function clear_li(li,indice){
	li.className='niv'+indice ;
}

function over_li(li,indice){
	li.className='niv'+indice+'_on' ;
}

function clic_li(li){
	x = li.getElementsByTagName("a");
	window.location.replace(x[0].getAttribute("href"));
}


/**
 * Fonctions des Actualités
 */


function getParamUrl(){
	var prm = new Array();
	var tmp = unescape(window.location.search).substr(1).split("&");
	var inter;
	for ( i=0; i<tmp.length; i++){
		inter=tmp[i].indexOf("=");
		if ( inter>=0 ){
			prm[tmp[i].substr(0,inter)]=tmp[i].substr(inter+1)
		}else {
			prm[tmp[i]]="";
		}
	}
	return prm;
}
				
				
function impression(){
	$_GET = getParamUrl();

	var lien = document.getElementById('cad_imp');
	var str_url=lien.getAttribute("href");
	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);
