(function( $ ){
	$.fn.thumbnail = function(){
		return this.each(function(){
			if( jQuery(this).hasClass( 'selected' ) ) return;
			jQuery(this).find('.image-container a').css( { background : "url("+jQuery(this).find('img').attr('src')+") 0 -176px" } );
			jQuery(this).hover(
				function(){
					jQuery( this ).find('img').stop(true).animate({
						top	: "0px"
					}, 300, "easeOutQuint" );
				},
				function(){
					jQuery( this ).find('img').stop(true).animate({
						top	: "-88px"
					}, 300, "easeOutQuint");
				});
		});
	};
})( jQuery );
