function initPage()
{
	var _body = document.body;
	var _main = document.getElementById("main");
	_body_height1 = _body.offsetHeight;
	_height1 = _main.offsetHeight;
	if (_body.offsetHeight < _main.offsetHeight) {
		_body.style.height = "auto";
	}
}

if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);

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!=18) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
   
   var h2 = document.getElementsByTagName('h2');
   for(i=0;i<h2.length;i++) {
      if(h2[i].style.fontSize) {
         var s = parseInt(h2[i].style.fontSize.replace("px",""));
      } else {
         var s = 15;
      }
      if(s!=21) {
         s += 1;
      }
      h2[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!=8) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
   
   var h2 = document.getElementsByTagName('h2');
   for(i=0;i<h2.length;i++) {
      if(h2[i].style.fontSize) {
         var s = parseInt(h2[i].style.fontSize.replace("px",""));
      } else {
         var s = 15;
      }
      if(s!=11) {
         s -= 1;
      }
      h2[i].style.fontSize = s+"px"
   }      
}