jQuery(document).ready(function($) { 
    $(".footer-content").hide();   
    $(".homepage-h1 span").fadeIn(3000, function () {
    //no function needed 
    });
    $(".footer-content").fadeIn(2000);

    $("#wrapper").css("display", "none");
      $("#wrapper").slideDown("slow");
$("a").click(function(event){
    event.preventDefault();
    linkLocation = this.href;
      $("#wrapper").slideUp("slow", redirectPage);
      $(".footer-content").fadeOut(1000);
      $("body").fadeOut(1000);
});

function redirectPage() {
  window.location = linkLocation;
}

/* footer links */
	  $(".what-content").addClass("position");
	  $(".why-content").addClass("position");
	  $(".who-content").addClass("position");

	$(".what").click(function(event){
	    event.preventDefault();
	  $(".what-content").fadeIn("slow");
	  $(".why-content").fadeOut("slow");
	  $(".who-content").fadeOut("slow");
	});
	$(".why").click(function(event){
	    event.preventDefault();
	  $(".why-content").fadeIn("slow");
	  $(".what-content").fadeOut("slow");
	  $(".who-content").fadeOut("slow");	
	  });
	$(".who").click(function(event){
	    event.preventDefault();
	  $(".who-content").fadeIn("slow");
	  $(".what-content").fadeOut("slow");
	  $(".why-content").fadeOut("slow");
	});


} );

