/**
 * Original script from: http://www.white-hat-web-design.co.uk/articles/js-fontsize.php
 * Modified to support multiple elements by ddcast@gmail.com
 */

var els_z = new Array("p", "li", "td");
var min_z = 11;
var max_z = 16;
function increaseFontSize() {
 for(c=0;c<els_z.length;c++) {
   var e = document.getElementsByTagName(els_z[c]);
   for(i=0;i<e.length;i++) {
      if(e[i].style.fontSize) {
         var s = parseInt(e[i].style.fontSize.replace("px",""));
      } else {
         var s = min_z;
      }
      if(s!=max_z) {
         s += 1;
      }
      e[i].style.fontSize = s+"px";
   }
 }
}
function decreaseFontSize() {
 for(c=0;c<els_z.length;c++) {
   var e = document.getElementsByTagName(els_z[c]);
   for(i=0;i<e.length;i++) {
      if(e[i].style.fontSize) {
         var s = parseInt(e[i].style.fontSize.replace("px",""));
      } else {
         var s = min_z;
      }
      if(s!=min_z) {
         s -= 1;
      }
      e[i].style.fontSize = s+"px";
   }
 }
}




