
/* function valide_conn(form)

{

if (navigator.cookieEnabled==false) 

{alert ("Vous devez accepter les cookies pour pouvoir vous connecter !");

return false;}

else

{

return true;

}



} */
/* function ChangeLink(eltId) {
	arrLinkId = new Array('rub_0','rub_1','rub_2','rub_3');
	intNbLinkElt = new Number(arrLinkId.length);
	arrClassLink = new Array('current','ghost');
	
	
	if (document.getElementById) {
	for (i=0; i<intNbLinkElt; i++) {
		
		
		
									if ( arrLinkId[i] == eltId ) {
										document.getElementById(arrLinkId[i]).className = arrClassLink[0];
										
									} else {
										document.getElementById(arrLinkId[i]).className = arrClassLink[1];
										
									}
								}
							document.getElementById("exple_commerce").style.display="none";	
		}else if (document.all) {
		for (i=0; i<intNbLinkElt; i++) {
		strContent = "menu"+arrLinkId[i];
					if ( arrLinkId[i] == eltId ) {
										document.all[arrLinkId[i]].className = arrClassLink[0];
										document.all[strContent].className = 'on content';
									} else {
										document.all[arrLinkId[i]].className = arrClassLink[1];
										document.all[strContent].className = 'off content';
									}
								}
							document.all["exple_commerce"].style.display="none";	
				}else if (document.layers) {
					for (i=0; i<intNbLinkElt; i++) {
						strContent = "menu"+arrLinkId[i];
						if ( arrLinkId[i] == eltId ) {
										document.layers[arrLinkId[i]].className = arrClassLink[0];
										document.layers[strContent].className = 'on content';
									} else {
										document.layers[arrLinkId[i]].className = arrClassLink[1];
										document.layers[strContent].className = 'off content';
									}
								}
							document.layers["exple_commerce"].style.display="none";	
					}
}


 */
function showId(id) {
				 
		if (document.getElementById) {
		document.getElementById(id).style.display="block";
		document.getElementById(id).style.visibility="visible";
		/* for(var i=0;i<5;i++){
				document.getElementById('niveau_'+i).style.backgroundColor="#096CB4"; // bleu					
				}
				document.getElementById('niveau_'+n).style.backgroundColor="#EBEAE9";//gris
				document.getElementById('niveau_'+n).style.color="#096CB4";//gris */
		} else if (document.all) {
		document.all[id].style.display="block";
		document.all[id].style.visibility="visible";
		} else if (document.layers) {
		document.layers[id].display="block";
		document.layers[id].style.visibility="visible";
		}
}
 

/* function showIdModifyLink(id,idsub) 
{				 
		
	if (document.getElementById) {
		document.getElementById(id).style.display="block";
		document.getElementById(id).style.visibility="visible";
		
		
			if(idsub == 1){
				document.getElementById(id).innerHTML = '<div><a href="http://localhost/www.cfssm.com/primaire/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/primaire/formules.html" title="" onfocus="this.blur()">Formules</a></div>';				
				document.getElementById(id).style.left="226px";				
			}
			else if (idsub == 2){
				document.getElementById(id).innerHTML = '<div><a href="http://localhost/www.cfssm.com/college/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/college/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/college/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/college/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
				document.getElementById(id).style.left="405px";
			}
			else if(idsub == 3){
				document.getElementById(id).innerHTML = '<div><a href="http://localhost/www.cfssm.com/lycee/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/lycee/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/lycee.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/lycee/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
				document.getElementById(id).style.width="179px"; 
				document.getElementById(id).style.left="584px";
			}
			else if (idsub == 4){
				document.getElementById(id).innerHTML = '<div><a href="http://localhost/www.cfssm.com/superieur/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/superieur/formules.html" title="" onfocus="this.blur()">Formules</a></div>';				
				document.getElementById(id).style.width="180px"; 
				document.getElementById(id).style.left="764px";
			}
		}
	 
	else if (document.all) {
		document.all[id].style.display="block";
		document.all[id].style.visibility="visible";
		
		if(idsub == 1){
			document.all[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/primaire/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/primaire/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
			document.all[id].style.left="226px";				
		}
			
		else if (idsub == 2){
			document.all[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/college/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/college/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/college/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/college/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
			document.all[id].style.left="405px";				
		}
		else if(idsub == 3){
			document.all[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/lycee/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/lycee/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/lycee/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/lycee/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
			document.all[id].style.width="179px"; 
			document.all[id].style.left="584px";
		}
		else if (idsub == 4){
			document.all[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/superieur/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/superieur/formules.html" title="" onfocus="this.blur()">Formules</a></div>';				
			document.all[id].style.width="180px"; 
			document.all[id].style.left="764px";
		}
	
	} else if (document.layers) {
		document.layers[id].display="block";
		document.layers[id].style.visibility="visible";	

		if(idsub == 1) 		document.layers[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/primaire/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/primaire/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/primaire/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
		else if(idsub == 2) document.layers[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/college/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/college/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/college/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/college/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
		else if(idsub == 3) document.layers[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/lycee/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/lycee/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/lycee/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/lycee/formules.html" title="" onfocus="this.blur()">Formules</a></div>';
		else if(idsub == 4) document.layers[id].innerHTML = '<div><a href="http://localhost/www.cfssm.com/superieur/presentation.html" title="" onfocus="this.blur()">Présentation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/organisation.html" title="" onfocus="this.blur()">L\'organisation</a></div><div><a href="http://localhost/www.cfssm.com/superieur/avantages.html" title="" onfocus="this.blur()">Avantages</a></div><div><a  href="http://localhost/www.cfssm.com/superieur/formules.html" title="" onfocus="this.blur()">Formules</a></div>';				
	}
} */

function hideId(id) 
{				 
	if (document.getElementById) {
	document.getElementById(id).style.display="none";	
	} 
	else if (document.all) {
	document.all[id].style.display="block";
	document.all[id].style.visibility="visible";
	
	} else if (document.layers) {
	document.layers[id].display="block";
	document.layers[id].style.visibility="visible";
	
	}
}

function navURI() { 
var c = '';
var z = document.location.href; // capture de l'adresse
var s = z.split('/');// split de HREF représentant l'adresse
for (var i = 0; i < (s.length - 1); i++) { 
   // Je dépose la variable i qui est le compteur  pour faire le split
   // si on ne désire pas le protocole avec, inscrire la valeur de i à 1 en initial
   // etc... il suffit de règler les informations que l'on désire
var o;
      o = '<a href="*/">*</a>* | '; // dépose d'une variable conteneur :
o = o.split('*'); // je splitte la variable pour pouvoir obtenir mes informations
c+= o[0] + z.substring(0,z.indexOf(s[i]) + // ecriture du chemin
s[i].length) + o[1] + s[i] + o[2] + o[3]; }
document.writeln(c); 
} // ecriture dans la page