$("document").ready(function() {

	$('.how-it-works-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#how-it-works-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });
	 
	$('.confirm-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#confirm-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });
	 
	$('.rent-landing-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#rent-landing-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });	 
	 
	$('.payment-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#payment-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });
	 
	$('.monthly-total-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#monthly-total-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });
	 
	$('.back-to-top-link').click(
	function(){
							   
		$('html, body').animate({
			scrollTop: $("#back-to-top-anchor").offset().top
		}, {
			duration: 1250,
			easing: 'easeOutQuint'
		});					   
		 
							   
	 });		 	 		 	 
	 
 	$('.games-on-shelf-button').click(function(){
							   
		$('html, body').animate({
			scrollTop: $("#shelf-anchor").offset().top
		}, 500);				   
		 
							   
	 });
	 
	 $('.share-trigger').mouseover(
	 function(){
	 	var el = $(this).attr("id");	 	
	 	var elArray = el.split("_");
	 	
	 	var shareTextBg = "#share-text-bg-" + elArray[1];
	 	var shareText = "#share-text-" + elArray[1];
	 	var shareArrow = "#share-arrow" + elArray[1];
	 	var priceText = "#price-text-" + elArray[1];
	 	var priceTextDollar = "#price-text-dollar-" + elArray[1];
	 	var priceTextPrice = "#price-text-price-" + elArray[1];
	 	
		$(shareTextBg).stop().animate({opacity: 1,height: '60px'}, {duration: 500,easing: 'easeOutQuint'});	
		$(shareText).stop().animate({bottom: '15',fontSize: '13px'}, {duration: 250, easing: 'easeOutQuint'});	
		$(shareArrow).stop().animate({bottom: '10', right: '10', opacity: '1'}, {duration: 250, easing: 'easeOutQuint'});	
		$(priceText).stop().animate({top: '49', fontSize: '18px'}, {duration: 250,easing: 'easeOutQuint'});		
		$(priceTextDollar).stop().animate({fontSize: '16px'}, {duration: 250,easing: 'easeOutQuint'});	
		$(priceTextPrice).stop().animate({fontSize: '22px'}, {duration: 250,easing: 'easeOutQuint'});		 	
	 									 
	 });	
	 
	 $('.share-trigger').mouseout(
	 function(){
	 
	 	var el = $(this).attr("id");	 	
	 	var elArray = el.split("_");
	 	
	 	var shareTextBg = "#share-text-bg-" + elArray[1];
	 	var shareText = "#share-text-" + elArray[1];
	 	var shareArrow = "#share-arrow" + elArray[1];
	 	var priceText = "#price-text-" + elArray[1];
	 	var priceTextDollar = "#price-text-dollar-" + elArray[1];
	 	var priceTextPrice = "#price-text-price-" + elArray[1];
	 		 
		$(shareTextBg).stop().animate({opacity: .5, height: '50px'}, {duration: 500,easing: 'easeOutQuint'});			
		$(shareText).stop().animate({bottom: '11',fontSize: '12px'}, {duration: 250,easing: 'easeOutQuint'});	
		$(shareArrow).stop().animate({bottom: '15',right: '15',opacity: '0'}, {duration: 250,easing: 'easeOutQuint'});
		$(priceText).stop().animate({top: '59', fontSize: '14px'}, {duration: 250,easing: 'easeOutQuint'});		
		$(priceTextDollar).stop().animate({fontSize: '12px'}, {duration: 250,easing: 'easeOutQuint'});	
		$(priceTextPrice).stop().animate({fontSize: '18px'}, {duration: 250,easing: 'easeOutQuint'});	
	 });	  
	 	 
});	 
