$(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;
	}
  });

	if($("#expand_links")){
//	  expand_links = "<div class=\"expand_links\" id=\"expand_links\">[<a href=\"#\" class=\"expand\">Show All Answers</a> ] [ <a href=\"#\" class=\"collapse\">Close All Answers</a>]</div>";
	  $("dd").hide();
	  $("div.expand_links a.expand").click( function() {
		$("dd").show(); return false;
	  });
	  $("div.expand_links a.collapse").click( function() {
		$("dd").hide(); return false;
	  });
		$("dl.faq_expand dt").wrapInner("<a href=\"#\" title=\"click to display answer\"></a>").click( function() {
		$(this).next("dd").toggle(); return false;
	  }).addClass("link");

	}
});
