jQuery(function( $ ){
		//borrowed from jQuery easing plugin
		//http://gsgd.co.uk/sandbox/jquery.easing.php
		$.easing.backout = function(x, t, b, c, d){
			var s=1.70158;
			return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
		};
		
		$('#imageMenuItems').serialScroll({
			items:'li',
			prev:'#imageMenu a.prev',
			next:'#imageMenu a.next',
			offset:0, 
			start:0,
			duration:200,
			force:true,
			stop:true,
			lock:false,
			exclude:3, //ensures that 4 images are showing at all times
			cycle:false, //don't pull back once you reach the end
			easing:'',
			jump: false //don't click on the images to scroll to them
		});
	 });

	$(document).ready(function(){
		$("li").hover(
			function () {
				var width = $(this).width();
				$(this).find("p").css("width",width-20);	
				$(this).find("p").show();
			}, 
			function () {
				$(this).find("p").hide();
			}
		);
	});
