//Tutorial from http://www.switchonthecode.com/tutorials/jquery-creating-a-slideshow



		var totalSlides = 0;
		var currentSlide = 1;
		var contentSlides = "";
		
		jQuery(document).ready(function() {
			  jQuery("#slideshow-previous").click(showPreviousSlide);
			  jQuery("#slideshow-next").click(showNextSlide);
			 
			  var totalWidth = 0;
			  contentSlides = jQuery(".slideshow-content");
			  contentSlides.each(function(i){
				totalWidth += this.clientWidth;
				totalSlides++;
			  });
			  jQuery("#slideshow-holder").width(totalWidth);
			  jQuery("#slideshow-scroller").attr({scrollLeft: 0});
			  updateButtons();
		});
		
		function showPreviousSlide() {
		  currentSlide--;
		  updateContentHolder();
		  updateButtons();
		}
		
		function showNextSlide() {
		  currentSlide++;
		  updateContentHolder();
		  updateButtons();
		}
		
		function updateContentHolder() {
		  var scrollAmount = 0;
		  contentSlides.each(function(i){
			if(currentSlide - 1 > i) {
			  scrollAmount += this.clientWidth;
			}
		  });
		  jQuery("#slideshow-scroller").animate({scrollLeft: scrollAmount}, 1000);
		}
		
		function updateButtons() {
		  if(currentSlide < totalSlides) {
			jQuery("#slideshow-next").show();
		  } else {
			jQuery("#slideshow-next").hide();
		  }
		  if(currentSlide > 1) {
			jQuery("#slideshow-previous").show();
		  } else { 
			jQuery("#slideshow-previous").hide();
		  }
		}

