// Opens the social media icon grid
$("#submit").click(function(){
	$.scrollTo($('#applyForBetaAccess'), 800)
	$("#socialGrid").animate({
    	height: "290px",
  	}, 400 );
  	$("#socialGrid").css('display', 'block');
  	return false;
});

// When you click an image in the social media grid, it shows the troll div
$('#socialGrid table img').click(function(){
	$('#troll').show();
});

// Sets the height of the troll div to the height of the document
(function(){
	var windowHeight = $(document).height();
	$("#troll").css('height', windowHeight);
})();

// Closes the troll div if you click on it
$('#troll').click(function(){
	$(this).hide();
});

// SCROLLLLLL LINKSSSSS (Just sets up the scrollto plugin for a couple links

function easyRider(link){
	var destination = $(link.attr('href'));
	link.click(function(){
		$.scrollTo(destination, 800);
		return false;
	});
};

easyRider($('.betaLink'));
easyRider($('.featuresLink'));
easyRider($('.faqLink'));
