$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".typo_bigger").click(function(){
    $('.bodytext').css('font-size', '14px');
    $('.bodytext b').css('font-size', '14px');
    $('h1').css('font-size', '22px');
    $('h1 b').css('font-size', '22px');
    return false;
  });
  // Decrease Font Size
  $(".typo_smaller").click(function(){
    $('.bodytext').css('font-size', '12px');
    $('.bodytext b').css('font-size', '12px');
    $('h1').css('font-size', '18px');
    $('h1 b').css('font-size', '18px');
    return false;
  });
});

/*
$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".typo_bigger").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".typo_smaller").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('html').css('font-size', newFontSize);
    return false;
  });
});
*/
