$(document).ready(function() {
   $("ul#nav li a.nav-top").each(function (){
      $(this).html("");
   });
   $("#print-email #send_mail").click(function (){
      var message = $('#emailToFriend').clone().removeClass("hidden");
      $.blockUI({ message: message, css: { width: '300px', height: '350px' } });
    });
   // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('#subContent').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	$('#subContent').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('#subContent').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$('#subContent').css('font-size', newFontSize);
	return false;
  });

});
function validateETF(tf)
{
   if($(tf).validate().form())
   {
       alert("Thank you.  Your message has been sent.");
       submitETF(tf);
   }
   return false;
}

function unBlock()
{
   $.unblockUI();
   return false;
}

function changeBanner2(offset)
{
	var x = 0;

	$("#banners li").each(function()
	{
		if(x == offset)
		{
			$(this).css("display", "list-item");
			$(this).css("opacity", "1.0");
		}
		else
			$(this).css("display", "none");

		x = x + 1;
	})
}

