var min=50;
var max=150;
function increaseFontSize() {
   var p = document.body;
	if(p.style.fontSize) {
		var s = parseInt(p.style.fontSize.replace("%",""));
	 } else {
		 var s = 100;
	 }
     if(s!=max) {
         s += 10;
     }
      p.style.fontSize = s+"%"
	  putVar("Size",s);
}
function decreaseFontSize() {
   var p = document.body;
      if(p.style.fontSize) {
         var s = parseInt(p.style.fontSize.replace("%",""));
      } else {
         var s = 100;
      }
      if(s!=min) {
         s -= 10;
      }
      p.style.fontSize = s+"%" 
	  putVar("Size",s);
}
function normalFontSize() {
	var p = document.body;
	var s = 80;
	p.style.fontSize = s+"%" 
	putVar("Size",s);
}
function putVar(nom, valeur){
	var argv=putVar.arguments;
	var argc=putVar.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=nom+"="+escape(valeur)+
	((expires==null) ? ("; expires="+new Date()) : ("; expires="+expires.toGMTString()))+
	((path==null) ? "" : ("; path="+path))+
	((domain==null) ? "" : ("; domain="+domain))+
	((secure==true) ? "; secure" : "");
}
function getCookieVal(offset){
	var endstr=document.cookie.indexOf (";", offset);
	if (endstr==-1) endstr=document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr)); 
}
function getVar(nom){
	var arg=nom+"=";
	var alen=arg.length;
	var clen=document.cookie.length;
	var i=0;
	while (i<clen){
		var j=i+alen;
		if (document.cookie.substring(i, j)==arg) return getCookieVal(j);
		i=document.cookie.indexOf(" ",i)+1;
		if (i==0) break;
		}
	return null; 
}
function EffaceCookie(nom){
	date=new Date;
	date.setFullYear(date.getFullYear()-1);
	EcrireCookie(nom,null,date); 
}
var CurS=getVar("Size");
if (CurS) {document.body.style.fontSize = CurS+"%";}
function Cinfo(){
	document.getElementById('Cinf').innerHTML=" ";
}
function CinfoPlus(){
	document.getElementById('Cinf').innerHTML="Augmenter ";
}
function CinfoZero(){
	document.getElementById('Cinf').innerHTML="Initialize ";
}
function CinfoMoins(){
	document.getElementById('Cinf').innerHTML="Diminuer   ";
}
