// JavaScript Document
	
	
	function afficheAutre(){
		cc = document.getElementById('connu').value;
		aa = document.getElementById('autre');
		
		if(cc == "8"){
			aa.style.visibility = "visible";
		}else{
			aa.style.visibility = "hidden";
		}
	}
	
	//Different Scroll localise (haut, equipe dirigeante, ...)
	 jQuery ( function( $ ) {
		$('.contenu .cont-milieu .block-texte .titre .right a').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		$('.contenu .cont-milieu center a').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		$('.contenu .cont-droite .cadre-texte .block-texte a').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		$('#map-nosmetiers area').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		$('.contenu .cont-milieu .texte-intro h2 a').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		$('.contenu .cont-droite .cadre-texte .block-texte ul li a').click(function() {
			$.scrollTo( this.hash, 800);
			return false;
		});
		
	}); 
	
	//Deroule rrenroule liste dans Approche Qualite
	function show(id){
		$('#'+id).toggle('normal');
	}
	
	//Cache les element id Flash pour ne pas gener l'affichage des thickbox
	function hideFlash(){
		id = document.getElementById("flash");
		if(id) id.style.visibility="hidden";
	}
	
	//Affiche le flash qui a put etre cache pour une thickbox
	function showFlash(){
		id = document.getElementById("flash");
		if(id) id.style.visibility="visible";
	}
	
	
	function testEntree(url, titre){
		if(typeof(parent.entree)=="undefined"){ 
			document.getElementById("moteur").style.display="block";
			
			//On appel de l'ajax pour créer une session contenant
			//les parametre interessant pour réouvrir la thickbox en bon uniforme
			gerer_home('create_session', url, titre, 'moteur');
		}else{
			document.getElementById("moteur").style.display="none";
		}
	}
	
	/*
		Fonction associe au shell et puces
	*/
	function affichemenu(id){ document.getElementById(id).style.visibility="visible"; }
	function cachemenu(id){ document.getElementById(id).style.visibility="hidden"; }
	
	function puceOn(id){ document.getElementById(id).style.listStyle="disc"; }
	function puceOff(id){ document.getElementById(id).style.listStyle="circle"; }
	
	function puceOnPlan(id){ document.getElementById(id).style.listStyle="circle"; }
	function puceOffPlan(id){ document.getElementById(id).style.listStyle="disc"; }
	
	/* Menu deroulant : Bug ie */
	
	function forceOpaciteOut(id){
		document.getElementById(id).style.backgroundImage="url(../images/shell/fnd-menu-off.png)";	
	}
	
	function forceOpaciteOver(id){
		document.getElementById(id).style.backgroundImage="url(../images/shell/fnd-menu-on.png)";
	}