$(document).ready(function(){
	var originalFontSize = $('html').css('font-size');
	
	$('.font-tools').css("display", "inline");
    
	// Reset Font Size
	$(".font-small").click(function(){
    	$('html').css('font-size', originalFontSize);
  	});

  	// Increase Font Size
  	$(".font-medium").click(function(){
    	//var currentFontSize = $('html').css('font-size');
    	var newFontSize = 18;
    	$('html').css('font-size', newFontSize);
    return false;
  	});
  	// Increase Font Size
  	$(".font-large").click(function(){
    	//var currentFontSize = $('html').css('font-size');
    	var newFontSize = 21;
    	$('html').css('font-size', newFontSize);
    return false;
  	});
  
});

$(function(){
    $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                return false;
            }
        }
    });
});

