var min=10;
var max=26;
var normal = 16;

function increaseFontSize() {
   var children = jQuery('#bodycontent').find('*');
   jQuery.each(children, function(i, val) {
	  var prev = 0;
	  if(jQuery(this).css('font-size')) {
		  var s = jQuery(this).css('font-size').replace("px","");
	  } else {
		  var s = normal;
	  }
	  prev = s;
	  s = Math.round(s *1.1);
	  if(s > max) { s = max; }
	  if(s < min) { s = min; }	  
	  jQuery(this).css('font-size', s+"px");
	  console.log(prev + " " + s);
   });
}
function decreaseFontSize() {
   var children = jQuery('#bodycontent').find('*');
   jQuery.each(children, function(i, val) {
	  var prev = 0;
	  if(jQuery(this).css('font-size')) {
		  var s = jQuery(this).css('font-size').replace("px","");
	  } else {
		  var s = normal;
	  }
	  prev = s;
	  s = Math.round(s / 1.1);
	  if(s > max) { s = max; }
	  if(s < min) { s = min; }
	  jQuery(this).css('font-size', s+"px");
	  console.log(prev + " " + s);
   });
}

$(document).ready(function() {
    $('.FontSizeInc').bind('click', function() {
        increaseFontSize();
        return false;
    });
    $('.FontSizeDec').bind('click', function() {
        decreaseFontSize();
        return false;
    });
});