var min=8;
var max=34;
var minh=16;
var maxh=52
//augmentation des paragraphes
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
//}
//augmentation des titre h4
//function increaseFontSize() {
   var h = document.getElementsByTagName('h4');
   for(i=0;i<p.length;i++) {
      if(h[i].style.fontSize) {
         var s = parseInt(h[i].style.fontSize.replace("px",""));
		 //alert(s);
      } else {
         var s = 20;
      }
      if(s!=maxh) {
         s += 1;
      }
      h[i].style.fontSize = s+"px"
   }
}

//diminution des paragraphes
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
//}
//diminution des titre h4
//function decreaseFontSize() {
   var h = document.getElementsByTagName('h4');
   for(i=0;i<p.length;i++) {
      if(h[i].style.fontSize) {
         var s = parseInt(h[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=minh) {
         s -= 1;
      }
      h[i].style.fontSize = s+"px"
   }   
}



function direct_email(){
        var chaine_mail = '<a rel="nofollow" href="mailto:';
        chaine_mail += '?subject= Lien : ' + encodeURIComponent( document.title );
        chaine_mail += '&amp;body= Je recommande cette page : ' + encodeURIComponent( document.title );
        chaine_mail += '. Consultable à cette adresse : ' + encodeURIComponent(window.location.href);
        chaine_mail += '"  class=\"outil_mail\">mail</a>';
        document.write(chaine_mail);
}




