var fonte = 11;
function tamanhoFonte(tipo,id) {
	$(id).find('*').each(function(t) { t = parseFloat($(this).css('font-size'), 10); 
	  if (tipo == '+') {
	    if (t < 18) {
		t++;
	    }
	  } else {
	    if (t > 7) {
		t--;
	    }
	  }
          $(this).css({ fontSize: t+'px' }) } );
}
$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('.fontresize').css('font-size');
  $(".resetFont").click(function(){
    $('.fontresize').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('.fontresize').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('.fontresize').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('.fontresize').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('.fontresize').css('font-size', newFontSize);
    return false;
  });
});
