 sfHover = function() {
   var meh = document.getElementById("nav");
   if(meh){
     var sfEls = document.getElementById("nav").getElementsByTagName("LI");
     for (var i=0; i<sfEls.length; i++) {
	      sfEls[i].onmouseover=function() {
		      this.className+=" sfhover";
	      }
	      sfEls[i].onmouseout=function() {
		      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
	      }
	   }
	 }
 }

if (window.attachEvent) window.attachEvent("onload", sfHover);

    var min=11;
    var max=21;
    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 = 13;
        }
        if(s!=max) {
          s += 2;
        }
      p[i].style.fontSize = s+"px"
    }
  }
  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 = 11;
      }
      if(s!=min) {
         s -= 2;
      }
      p[i].style.fontSize = s+"px"
   }   
}
