$().ready(function() {
	
	$(function() {
		$('#nav a').bind('click',function(event){
			var $anchor = $(this);
			/*
			if you want to use one of the easing effects:
			$('html, body').stop().animate({
				scrollLeft: $($anchor.attr('href')).offset().left
			}, 1500,'easeInOutExpo');
			 */
			$('html, body').stop().animate({
				scrollTop: $($anchor.attr('href')).offset().top
			}, 500);
			
			//event.preventDefault();
			//window.location = "http://www.cougarcomedian.com/" + $($anchor.attr('href'));
		});
	});
	
	$(function() {
		$('#back-to-top a').bind('click',function(event){
			var $anchor = $(this);
			/*
			if you want to use one of the easing effects:
			$('html, body').stop().animate({
				scrollLeft: $($anchor.attr('href')).offset().left
			}, 1500,'easeInOutExpo');
			 */
			$('html, body').stop().animate({
				scrollTop: 0
			}, 500);
			
			event.preventDefault();
		});
	});
	
	$("#twitter").getTwitter({
		userName: "cougarcomedian",
		numTweets: 1,
		loaderText: "Loading tweets...",
		slideIn: true,
		slideDuration: 750,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true,
		showTimestamp: true
	});
	
});

