	function shifter(element,axis) {
		$('.items').css({'overflow':'hidden'});
		var splitIt = $('#' + element).find('li');
		var transition		= 'false';
	
	// Get the links
		var linkPrev = $(splitIt[0]).find('a');
		var linkNext = $(splitIt[2]).find('a');
		
	// Get the thumbs and container
		var container		= $(splitIt[1]).children();
		var layoutItems 	= $(container).parent().width();
		var thumbsList		= $(container).children();
		var count			= thumbsList.length;
		
		if(axis == 'horizontal') {
			var layoutTotal		= $(thumbsList[0]).width() * thumbsList.length;
			$(container).css({ 'width': layoutTotal + 'px' });
			var step			= $(thumbsList[0]).width();
			var layoutVisible	= $(splitIt[1]).width();
		} else {
			var layoutTotal		= $(thumbsList[0]).height() * thumbsList.length;
			$(container).css({ 'height': layoutTotal + 'px' });
			var step			= $(thumbsList[0]).height();
			var layoutVisible	= $(splitIt[1]).height();
		}
		
	// Specify the settings variable
		var layoutHidden	= layoutTotal - layoutVisible;
		var thumbsVisible	= Math.floor(layoutVisible / step);
		var thumbsHidden	= Math.ceil(layoutHidden / step);
		var thumb			= (layoutTotal / count) * thumbsHidden;

		if(layoutTotal > layoutItems) {
			$(linkPrev).show().unbind('click').click(function() {
				this.blur();
				if(transition == 'false') {
					transition 	= 'true';
					if(axis == 'horizontal') {
						var position	= parseInt($(container).css('left'));
						if(position < 0) {
							var newPos = position + step;
						} else {
							var newPos = 0;
						}
						$(container).animate({ left: newPos + 'px' }, 300, function() { transition = 'false'; });
					} else {
						var position	= parseInt($(container).css('top'));
						if(position < 0) {
							var newPos = position + step;
						} else {
							var newPos = 0;
						}
						$(container).animate({ top: newPos + 'px' }, 300, function() { transition = 'false'; });
					}
				}
				return false;
			});
			$(linkNext).show().unbind('click').click(function() {
				this.blur();
				if(transition == 'false') {
					transition 	= 'true';
					if(axis == 'horizontal') {
						var position	= parseInt($(container).css('left'));
						if(position > (thumb * -1)) {
							var newPos = position - step;
						} else {
							var newPos = (thumb * -1);
						}
						$(container).animate({ left: newPos + 'px' }, 300, function() { transition = 'false'; });
					} else {
						var position	= parseInt($(container).css('top'));
						if(position > (thumb * -1)) {
							var newPos = position - step;
						} else {
							var newPos = (thumb * -1);
						}
						$(container).animate({ top: newPos + 'px' }, 300, function() { transition = 'false'; });
					}
				}
				return false;
			});
		} else {
			$(linkPrev).hide();
			$(linkNext).hide();
		}
	}
	
	
	var activeImg = 0;
	
	function recipeImage(thumbsId,mainId) {
		
		var thumbsList 	= $('#' + thumbsId).find('img');
		var mainList 	= $('#' + mainId).find('img');
		
		$(thumbsList).each(function(i) {
			$(thumbsList[i]).mouseover(function() {
				$(mainList[activeImg]).hide();
				activeImg = i;
				$(mainList[i]).show();

			});
		});
	}
