/*var min=8;
var max=18;
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"
   }
}
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"
   }   
}

<script type="text/javascript">
		var parentDivId = "content"
             
             var minFontSizeLevel      = 0;
             var normalFontSizeLevel= 1;
             var currFontSizeLevel  = 2;
             var maxFontSizeLevel      = 5;
             var fontSizeProportion = 1.2;
             
             var tags = new Array("div", "p", "span", "li", "a", "h1", "h2", "h3", "h4","strong", "u", "em");
             var tagsFontSize = new Array();
             tagsFontSize["div"]     = 11;
             tagsFontSize["p"]     = 11;
             tagsFontSize["span"]= 11;
             tagsFontSize["li"]     = 11;
             tagsFontSize["strong"] = 11;
             tagsFontSize["u"]     = 11;
             tagsFontSize["em"]     = 11;
             tagsFontSize["a"]     = 11;
             tagsFontSize["h1"]     = 16;
             tagsFontSize["h2"]     = 15;
             tagsFontSize["h3"]     = 14;
             tagsFontSize["h4"]     = 12;
             
             function increaseFontSize()
             {
                 if(currFontSizeLevel < maxFontSizeLevel)
                 {
                     currFontSizeLevel++;
                     for(var i = 0; i < tags.length; i++)
                     {
                         var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                         for(var j = 0; j < children.length; j++)
                         {
                             children[j].style.fontSize = tagsFontSize[tags[i]] * Math.pow(1.2, currFontSizeLevel - 1)+"px";
                         }
                     }
                 }
             }
             
             function decreaseFontSize()
             {
                 if(currFontSizeLevel > minFontSizeLevel)
                 {
                     currFontSizeLevel--;
                     for(var i = 0; i < tags.length; i++)
                     {
                         var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                         for(var j = 0; j < children.length; j++)
                         {
                             children[j].style.fontSize = tagsFontSize[tags[i]] * Math.pow(1.2, currFontSizeLevel - 1)+"px";
                         }
                     }
                 }
             }
             
             function normalFontSize()
             {
             	currFontSizeLevel = normalFontSizeLevel;
                 for(var i = 0; i < tags.length; i++)
                 {
                    var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                    for(var j = 0; j < children.length; j++)
                    {
                        children[j].style.fontSize = tagsFontSize[tags[i]]+"px";
                    }
                }
             }
             
             var el = document.getElementById("entirebody")
             getAllChildren(el);
             function getAllChildren(el)
             {
                 var teste = el.childNodes;
                 for(var i=0;i<teste.length;i++)
                 {
                     var tag = teste[i].tagName;
                     if(tag != undefined)
                     {
                         document.write(tag+teste[i].style.fontSize+"<br />");
                         teste[i].style.fontSize = (teste[i].style.fontSize + 12)+"px";
                     }
                     if(true)
                     {
                         var chld = teste[i].childNodes;
                         if(chld.length > 0)
                             getAllChildren(teste[i]);
                     }
                 }
             }*/

		var parentDivId = "content"
             
             var minFontSizeLevel      = 0;
             var normalFontSizeLevel= 1;
             var currFontSizeLevel  = 2;
             var maxFontSizeLevel      = 5;
             var fontSizeProportion = 1.2;
             
             var tags = new Array("div", "p", "span", "li", "a", "h1", "h2", "h3", "h4","strong", "u", "em");
             var tagsFontSize = new Array();
             tagsFontSize["div"]     = 11;
             tagsFontSize["p"]     = 11;
             tagsFontSize["span"]= 11;
             tagsFontSize["li"]     = 11;
             tagsFontSize["strong"] = 11;
             tagsFontSize["u"]     = 11;
             tagsFontSize["em"]     = 11;
             tagsFontSize["a"]     = 11;
             tagsFontSize["h1"]     = 16;
             tagsFontSize["h2"]     = 15;
             tagsFontSize["h3"]     = 14;
             tagsFontSize["h4"]     = 12;
             
             function increaseFontSize()
             {
                 if(currFontSizeLevel < maxFontSizeLevel)
                 {
                     currFontSizeLevel++;
                     for(var i = 0; i < tags.length; i++)
                     {
                         var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                         for(var j = 0; j < children.length; j++)
                         {
                             children[j].style.fontSize = tagsFontSize[tags[i]] * Math.pow(1.2, currFontSizeLevel - 1)+"px";
                         }
                     }
                 }
             }
             
             function decreaseFontSize()
             {
                 if(currFontSizeLevel > minFontSizeLevel)
                 {
                     currFontSizeLevel--;
                     for(var i = 0; i < tags.length; i++)
                     {
                         var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                         for(var j = 0; j < children.length; j++)
                         {
                             children[j].style.fontSize = tagsFontSize[tags[i]] * Math.pow(1.2, currFontSizeLevel - 1)+"px";
                         }
                     }
                 }
             }
             
             function normalFontSize()
             {
             	currFontSizeLevel = normalFontSizeLevel;
                 for(var i = 0; i < tags.length; i++)
                 {
                    var children = document.getElementById(parentDivId).getElementsByTagName(tags[i]);
                    for(var j = 0; j < children.length; j++)
                    {
                        children[j].style.fontSize = tagsFontSize[tags[i]]+"px";
                    }
                }
             }
