var Slideshow = function(container) {

		var delay 			= 4;
		var total_frame = 0;
		var curr_frame = 0;
		
		var items 			= null;
		
		function init() {

			items = $(container).select('li');
			
			// Hide All
			items.each(function(e) {
				e.hide()
			});
			
			// Show first
			items[0].show();
			
			total_frame = items.length - 1;
			
			// Start Timer
			new PeriodicalExecuter(next, delay);
			
			
		}

		
		function next() {

				// Hide Current
				Effect.Fade(items[curr_frame]);
				
				var frame = (curr_frame == total_frame) ? 0 : curr_frame+1;

				var lisAppear = items[frame];
				


				Effect.Appear(lisAppear);
				
				
				curr_frame = frame;

		}
	
		init();

}
