$(document).ready(function() {

    
	
  	/*jQuery('#MainContent').masonry({ 
						  columnWidth: 50,
						  itemSelector: '.Box',
						   resizeable: true,
							// Binds a Masonry call to window resizes 
						  // so layout appears fluid.
						  // default: true
						  gutterWidth:5,

						  animate: true
						  // Animates layout rearrangements.
						  // default: false
						  });*/
						  
						  
	$('#Register').hover(function() {
  $('#Register .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
});	
$('#Track').hover(function() {
  $('#Track .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
});	
$('#Rolling').hover(function() {
  $('#Rolling .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
});
$('#facility').hover(function() {
  $('#facility .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
});
$('#Visit').hover(function() {
  $('#Visit .hiddenTextgrey').slideDown('slow', function() {
    // Animation complete.
  });
});
$('#track-facility').hover(function() {
  $('#track-facility .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
});
$('#track-Register').hover(function() {
  $('#track-Register .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
  });
  $('#track-Rolling').hover(function() {
  $('#track-Rolling .hiddenText').slideDown('slow', function() {
    // Animation complete.
  });
  });

$('.hiddenText').hide();
  $('.hiddenTextgrey').hide();


   //$("body").css("display", "none");
	
	/*$("body").css("margin-left", "100%");
	$("body").animate({
    marginLeft: "0",
  }, 1500);
  //$("body").fadeIn(1000);
 
    $("a.transition").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("body").fadeOut(1000, redirectPage);
    });
 
    function redirectPage() {
        window.location = linkLocation;
    }

	function setPage(){
		jQuery('#MainContent').masonry({ 
						  columnWidth: 50,
						  itemSelector: '.Box',
						   resizeable: true,
						   gutterWidth:5,
						  animate: true
						  });
	}*/
	
	/*jQuery(function() {
	// OPACITY OF BUTTON SET TO 50%
	jQuery(".Box").css("opacity","0");
	
	jQuery(".Box").stop().animate({
	opacity: 0.5
	}, 900);
	
	// fade in node image
	jQuery(".field-item").css("opacity","0");
	jQuery(".field-item").stop().animate({
	opacity: 1.0
	}, "slow");
	 
	// ON MOUSE OVER
	jQuery(".Box").hover(function () {
	 
	// SET OPACITY TO 100%
	jQuery(this).stop().animate({
	opacity: 1.0
	}, "slow");
	},
		 
	// ON MOUSE OUT
	function () {
	 
	// SET OPACITY BACK TO 50%
	jQuery(this).stop().animate({
	opacity: 0.5
	}, "slow");
	});
	});*/

});
