/*var min=8;
var max=24;
function increaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 18;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px";
	 // document.a.style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 14;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}
*/

$(document).ready(function(){
	var section = new Array('span','a', 'p', 'div', 'h1', 'h2', 'h3', 'li'); 
	section = section.join(',');

	// Increase Font Size
	$("#increaseFontSize").click(function(){
	var currentFontSize = $(section).css('font-size');	
	var currentFontSizeNum = parseFloat(currentFontSize, 10);
	var newFontSize = currentFontSizeNum*1.2;
	$(section).css('font-size', newFontSize);
	return false;
	});

	// Decrease Font Size
	$("#decreaseFontSize").click(function(){
	var currentFontSize = $(section).css('font-size');
	var currentFontSizeNum = parseFloat(currentFontSize, 10);
	var newFontSize = currentFontSizeNum*0.8;
	$(section).css('font-size', newFontSize);
	return false;
	});

	

});

