$(document).ready(function(){
        
		 $('.homeLink').click(function(){
               $.scrollTo( '#wrapper', 800, {axis:'y'} );
			   return(false);
        });
		
        $('.portfolioLink').click(function(){
               $.scrollTo( '#portfolio', 800, {axis:'y'} );
			   return(false);
        });
		
		$('.aboutLink').click(function(){
               $.scrollTo( '#about', 800, {axis:'y'} );
			   return(false);
        });
		
		$('.contactLink').click(function(){
               $.scrollTo( '#contact', 800, {axis:'y'} );
			   return(false);
        });
		
		 $('.backTop').click(function(){
               $.scrollTo( '#wrapper', 600, {axis:'y'} );
			   return(false);
        });
		
		$('ul.portfolioContainer > li').hover(function(e){
				$(this).children('h4').slideToggle("fast");
        });
				
		$('.flickrContainer').jflickrfeed({
			limit: 4,
			qstrings: {
				id: '7279418@N03'
			},
			useTemplate: false,
			itemCallback: function(item){
				$(this).append("<li><a href='http://www.flickr.com/photos/croakx/'><img src='" + item.image_m + "' alt=''/></a></li>");
			}
		});
		
		$("a[rel=gallery]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
		});
		
		$("#twitter").getTwitter({
			userName: "Croakx",
			numTweets: 1,
			loaderText: "Loading tweets...",
			slideIn: true,
			showHeading: true,
			headingText: "Latest Tweets",
			showProfileLink: true
		});
		
});
