// deals with increasing font size.

$(document).ready(function(){
  // Reset Font Size
  var font1=false;
  var font2=false;
  var originalFontSize = $('html').css('font-size');
	$("#home").mouseover(function(){
		 $('#home_icon').css('display','');
	});
	
	$("#home").mouseout(function(){
		 $('#home_icon').css('display','none');
	});

  $(".resetFont").click(function(){
	  $('html').css('font-size', originalFontSize);
	  font1=false;font2=false;
  });
// Increase Font Size Plus 1
  $(".decreaseFont").click(function(){
	if(!font1){
		var currentFontSize = originalFontSize;//$('html').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.2;
		$('html').css('font-size', newFontSize);
		font1=true;
		return false;
	}
  });
  
  // Increase Font Size Plus 2
  $(".increaseFont").click(function(){
	if(!font2){
		var currentFontSize = originalFontSize;//$('html').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.4;
		$('html').css('font-size', newFontSize);
		font2=true;
		return false;
	}
  });
});
