var parentDivId="text-wrapper"
var minFontSizeLevel=1;var normalFontSizeLevel=1;var currFontSizeLevel=2;var maxFontSizeLevel=4;var fontSizeProportion=1.2;var tags=new Array("div","p","span","li","a","h1","h2","h3","h4","strong","u","em","table","tbody","tr","td","th");var tagsFontSize=new Array();tagsFontSize["div"]=12;tagsFontSize["p"]=12;tagsFontSize["span"]=12;tagsFontSize["li"]=12;tagsFontSize["strong"]=12;tagsFontSize["u"]=12;tagsFontSize["em"]=12;tagsFontSize["a"]=12;tagsFontSize["h1"]=30;tagsFontSize["h2"]=22;tagsFontSize["h3"]=14;tagsFontSize["h4"]=12;tagsFontSize["tr"]=12;tagsFontSize["th"]=12;tagsFontSize["td"]=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";}}}
