$(function() {
		var holder = $("#innerContent");
		var step = parseInt($(".scrollItem").width());
		var holderW = step * $(".scrollItem").size() + 20;
		var totalItems = $(".scrollItem").size() - 4;
		var currStep = 0;
		
		holder.css("width", holderW + "px");
		
		$("a#back, a#forward").click(function() {
				
				var direction = $(this)[0].id;
				if (direction == "back") {
					currStep--;	
				}
				else {
					currStep++;	
				}
				
				currStep = currStep < 0 ? 0: currStep;
				currStep = currStep > totalItems ? totalItems: currStep;
				
				holder.animate({left:"-" + (step * currStep) + "px"},{queue:false, complete:animateComp});
				
				return false;
		});
		function animateComp (e) {
			animating = false;	
		}
});