var min=8;
var max=34;
var minh=16;
var maxh=52
//augmentation des paragraphes
function increaseFontSize() {
	
	var listeTags = new Array('p','label','input','h4','h2','h3');
		
		//augmentation des paragraphes
		
	for(j=0;j<listeTags.length;j++) {
		var div = document.getElementById('page');
	   var tag = div.getElementsByTagName(listeTags[j]);
	   
	   for(i=0;i<tag.length;i++) {
		  if(tag[i].style.fontSize) {
			 var s = parseInt(tag[i].style.fontSize.replace("px",""));
		  } else {
			 var s = 12;
		  }
		  if(s!=max) {
			 s += 1;
		  }
		  tag[i].style.fontSize = s+"px";
	   }
	}   
}



function decreaseFontSize() {
	
	var listeTags = new Array('p','label','input','h4','h2','h3');
		
	//diminution des paragraphes
	for(j=0;j<listeTags.length;j++) {
		var div = document.getElementById('page');
		var tag = div.getElementsByTagName(listeTags[j]);
	
		for(i=0;i<tag.length;i++)
		{
      		if(tag[i].style.fontSize) {
         		var s = parseInt(tag[i].style.fontSize.replace("px",""));
      		} else {
         		var s = 12;
     	 	}
      		if(s!=min) {
         		s -= 1;
      		}
      		tag[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\" title=\"Envoyer cet article à un ami\"><span>mail</span></a>';
        document.write(chaine_mail);
}




