// JavaScript Document
$(document).ready(function() {

	//cufon replacement
     Cufon.replace('h1, h2, h3, p.spec01');
     //$('p.spec01').css({lineHeight: '120px', fontSize: '120%'});
     //Cufon.replace('.MainMenu li span', { fontFamily: 'Georgia', hover: true, hoverables: { span: true } });

     $("span.hLink").click(function(){
          $(".ContentBox").hide(); 
          $(".spacer").height("0px");
     });

     /* short element */
     y = $(document).height();
     x = $("#ContentFoundation").height();
     z = $(".Footer").height();
     Height = y-(x+265);
     //alert(y+' '+x+' '+z);

     $("span#tornante").click(function(){
          $(".ContentBox").hide(); 
          $(".spacer").height("0px");
          $("#ContentTornate").show(); 
          $(".MainMenu span").removeClass("Active");
          $(this).addClass("Active");
          $("body").scrollTo( $("div.MainMenu"), 250);
     });
     $("span#foundation").click(function(){
          $(".ContentBox").hide(); 
          $(".spacer").height(Height+"px");
          $("#ContentFoundation").show(); 
          $(".MainMenu span").removeClass("Active");
          $(this).addClass("Active");
          $("body").scrollTo( $("div.MainMenu"), 250);
     });
     $("span#publications").click(function(){
          $(".ContentBox").hide(); 
          $(".spacer").height("0px");
          $("#ContentPublications").show(); 
          $(".MainMenu span").removeClass("Active");
          $(this).addClass("Active");
          $("body").scrollTo( $("div.MainMenu"), 250);
     });
     $("span#bio").click(function(){
          $(".ContentBox").hide(); 
          $(".spacer").height("0px");
          $("#ContentBio").show(); 
          $(".MainMenu span").removeClass("Active");
          $(this).addClass("Active");
          $("body").scrollTo( $("div.MainMenu"), 250);
     });
	
     //9a9a9a

});

