//Resize Text Function written in jquery
//Changes any text size of 16px or less to 1.5 times bigger, 
//if font size is greater then 16px it is resized to 1.5 times smaller.
//Alexander Di Battista 2008-08-27

$(document).ready(function(){  
  $(".changeFont").click(function(){   
    var currentFontSize = $('html').css('font-size');
    if (currentFontSize <= "16px"){
      var currentFontSizeNum = parseFloat(currentFontSize, 10);
      var newFontSize = currentFontSizeNum*1.5;
      $('html').css('font-size', newFontSize); 
    }   
    else{
      var $this = $(this);
      var currentFontSize = $('html').css('font-size');      
      var currentFontSizeNum = parseFloat(currentFontSize, 10);
      var newFontSize = currentFontSizeNum/1.5;
      $('html').css('font-size', newFontSize);    
    }
  });
    return false;
});

