	
	$(document).ready(function() {
		
		//twitter
		
		  $.fn.twitterlasttweet = function(settings) {
		    var tweetElement = $(this);
		    var url = 'http://twitter.com/statuses/user_timeline/'+ settings.screenName + '.json?callback=?';
		    $.getJSON(url, function(statuses) {
		      tweetElement.text(statuses[0].text);
		    });
		    return this;
		  };
		
		$("#last_tweet").twitterlasttweet({screenName: "topspeednc"});
		
		$("#twitter_feed").fadeIn("slow");
			
		//info when hovering over navigation
		
		//Home
		$(".page-item-6").hover(
			function() {
				$("#captions").html("<p>The Home page of Top Speed Performance.</p>");
			},
			function() {
				$("#captions").empty();
			});
		
		//Products
		$(".page-item-8").hover(
			function() {
				$("#captions").html("<p>Products made in-house at Top Speed Performance.</p>");
			},
			function() {
				$("#captions").empty();
			});
			
		//Services
		$(".page-item-10").hover(
			function() {
				$("#captions").html("<p>A run-down of the services offered here at Top Speed Performance.</p>");
			},
			function() {
				$("#captions").empty();
			});
		
		//Blog
		$(".page-item-12").hover(
			function() {
				$("#captions").html("<p>Our blog. Used to inform, enlighten and teach visitors of Top Speed Performance.</p>");
			},
			function() {
				$("#captions").empty();
			});
			
		//Online Store
		$(".rpmware").hover(
			function() {
				$("#captions").html("<p>From brakes to wheels for your vehicle, we've got it all.</p>");
			},
			function() {
				$("#captions").empty();
			});
		
		//RSS
		$("#rss").hover(
			function() {
				$("#captions").html("<p>Subscribe to our RSS feed for updates!</p>");
			},
			function() {
				$("#captions").empty();
			});
		
		//Mailing List
		$("#mail").hover(
			function() {
				$("#captions").html("<p>Subscribe to our mailing list!</p>");
			},
			function() {
				$("#captions").empty();
			});			
	});