	
	
				// TWITTER
				$(document).ready(function() {
							$("#twitter").getTwitter({
								userName: "grhymey",
								numTweets: 4,
								loaderText: "Loading tweets...",
								slideIn: true,
								slideDuration: 750,
								showHeading: false,
								headingText: "Latest Tweets",
								showProfileLink: true,
								showTimestamp: true
							});
						});




				// SLIDESHOW
				$(document).ready(function(){	
					$(".reviewSlideshow").easySlider({
						auto: true, 
						continuous: true,
						numeric: false,
						nextId: "slider1next",
						prevId: "slider1prev"
					});
				});	
				
				
				// TRACK NAVIGATION
				$(document).ready(function(){	
						$('#jPlayerWrapper').scrollTo( 0 );
						$('p.listenNext').click(function(){
							$('#jPlayerWrapper').stop().scrollTo( '800px', 800 );
						});
						$('p.listenPrev').click(function(){
							$('#jPlayerWrapper').stop().scrollTo( '0px', 800 );
						});						
				});
				
				
				
				
				
				// ANIMATED SCROLLING
				 $(document).ready(function(){
 //back to top scroll function. Any link with a hash (#) will scroll to that id on the page
  $('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, 500);
    return false;
   }
 }
  });
});
				 
				 
				 
				 
				 
				 // AJAX SIGN UP FORM
				 
				 $(function() {
				  $('.error').hide();
				 
				
				  $(".signupBtn").click(function() {
						// validate and process form
						// first hide any error messages
					$('.error').hide();
						
				
						var email = $("input#email").val();
						if (email == "") {
						  $("span#email_error").show();
						  $("input#email").focus();
						  return false;
						}
					
						
						var dataString = 'email=' + email;
						//alert (dataString);return false;
						
						$.ajax({
					  type: "POST",
					  url: "process.php",
					  data: dataString,
					  success: function() {
						$('#contact_form').html("<p class='formThanks'>Thanks for signing up!</p>")
						.hide()
						.fadeIn(1500, function() {
						  $('#contact_form');
						});
					  }
					 });
					return false;
					});
				});

