function sommaire_show(id)
{
 if (document.getElementById(id).style.display=="block"){
 	document.getElementById(id).style.display="none";
 }else{
	 document.getElementById(id).style.display="block";
 }
}
              

function changerTaille(modif) {
	setCook('nom',modif);
	
   document.getElementsByTagName("body")[0].style.fontSize = getCook('nom') + "em";           

}        

//Pour ecrire le cookie 

function setCook(nom,valeur) {
        document.cookie = nom + "=" + escape(valeur)
		
	if( getCook('nom')=="0.65")
	{
		texte="";
		
			
		  	texte+='<ul><li><a href="#" style="font-size:9px" onclick="changerTaille(0.65);changer_taille_police(0.65); return false;"><strong>a</strong></a></li>';
			texte+='<li><a href="#" style="font-size:11px"onclick="changerTaille(0.8); changer_taille_police(0.8);return false;">a</a></li>';
			texte+='<li><a href="#" style="font-size:13px"onclick="changerTaille(0.95); changer_taille_police(0.95);return false;">a</a></li></ul>';
		
	}
	if( getCook('nom')=="0.8")
	{texte="";
			
		  	texte+='<ul><li><a href="#" style="font-size:9px" onclick="changerTaille(0.65);changer_taille_police(0.65); return false;">a</a></li>';
			texte+='<li><a href="#" style="font-size:11px"onclick="changerTaille(0.8); changer_taille_police(0.8);return false;"><strong>a</strong></a></li>';
			texte+='<li><a href="#" style="font-size:13px"onclick="changerTaille(0.95); changer_taille_police(0.95);return false;">a</a></li></ul>';
	}
	if( getCook('nom')=="0.95")
	{texte="";
			
		  	texte+='<ul><li><a href="#" style="font-size:9px" onclick="changerTaille(0.65);changer_taille_police(0.65); return false;">a</a></li>';
			texte+='<li><a href="#" style="font-size:11px"onclick="changerTaille(0.8); changer_taille_police(0.8);return false;">a</a></li>';
			texte+='<li><a href="#" style="font-size:13px"onclick="changerTaille(0.95); changer_taille_police(0.95);return false;"><strong>a</strong></a></li></ul>';
	}
	
	ecritCalque("taille_p",texte)
       
		}

//pour lire un cookie

function getCook(nom) {
        deb = document.cookie.indexOf(nom + "=")
	
        if (deb >= 0) {
            deb += nom.length + 1
            fin = document.cookie.indexOf(";",deb)
            if (fin < 0) fin = document.cookie.length
            return unescape(document.cookie.substring(deb,fin))
            }
	    
        return "0.65"
}
	
function body_onload(){
	
	//document.getElementsByTagName("body")[0].style.fontSize = getCook('nom') + "em";		
	
			
	if( getCook('nom')=="0.65")
	{
		texte="";
		
			texte+="Taille du texte test";
		  	texte+='<a href="#" onclick="changerTaille(0.65); return false;"><strong>a</strong></a>';
			texte+='<a href="#" onclick="changerTaille(0.8); return false;">a</a>';
			texte+='<a href="#"onclick="changerTaille(0.95); return false;">a</a>';
		
	}
	if( getCook('nom')=="0.8")
	{texte="";
			texte+="Taille du texte test";
		  	texte+='<a href="#" onclick="changerTaille(0.65); return false;">a</a>';
			texte+='<a href="#" onclick="changerTaille(0.8); return false;"><strong>a</strong></a>';
			texte+='<a href="#"onclick="changerTaille(0.95); return false;">a</a>';
	}
	if( getCook('nom')=="0.95")
	{texte="";
			texte+="Taille du texte test";
		  	texte+='<a href="#" onclick="changerTaille(0.65); return false;">a</a>';
			texte+='<a href="#" onclick="changerTaille(0.8); return false;">a</a>';
			texte+='<a href="#"onclick="changerTaille(0.95); return false;"><strong>a</strong></a>';
	}
	
	ecritCalque("taille_p",texte)
}

//