var Pos = 1;

function slideshow(TotalItems){
	jQuery('#slideshowItem' + Pos).fadeOut(400, function(){
		Pos++;
		if(Pos > TotalItems)
			Pos = 1;
		jQuery('#slideshowItem' + Pos).fadeIn(400);
	});
}

 function startSlideshowTimer(maxSlideshowItems){
		jQuery(document).everyTime(8500, "slideshowTimer", function() {
			if(Pos <= maxSlideshowItems){
				slideshow(maxSlideshowItems);
			}else{
				Pos = 1;
				slideshow(maxSlideshowItems);
			}
		},0);
  
  }

