//function initPage()
//{
//	var nod = document.getElementById("font-size");
//	if(nod)
//	{
//		nodes = nod.getElementsByTagName("a");
//		nods = nod.getElementsByTagName("li");
//		for (var i=0; i<nodes.length; i++)
//		{
//			nodes[i].onclick = function ()
//			{
//				for (k = 0; k < nods.length; k++) {nods[k].className = nods[k].className.replace("active", ""); }
//				this.parentNode.className += " active ";
//				if(this.className.indexOf("min") !=-1){ document.body.style.fontSize = "7px";}
//				if(this.className.indexOf("medium") !=-1){ document.body.style.fontSize = "10px";}
//				if(this.className.indexOf("large") !=-1){ document.body.style.fontSize = "30px";}
//				if(this.className.indexOf("max") !=-1){ document.body.style.fontSize = "17px";}
//			}
//		}
//	}
//}
//if (window.addEventListener){
//	window.addEventListener("load", initPage, false);
//	}
//else if (window.attachEvent){
//	window.attachEvent("onload", initPage);
//	}
var min=12;
var max=22;
function incF() {
   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"
   }
   return false;
}
function decF() {
   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"
   }   
   return false;
}


//if(element.addEventListener) element.addEventListener("click", function(event) { 
//		/*do stuff*/}, false);
//else element.attachEvent("onclick", function(event) { /*do stuff*/ }