$(function() {
	function slideshow() {		
			_this = $('#flashArea img');
				var _current = 0,
				_time = 3000,
				_delay = 2000,
				_total = _this.size() - 1;
		
			function loop() {
				getCurrent();
				_this.eq(_current).delay(_delay).fadeIn(_time, function() {
					_this.eq(_current - 1).css('display','none');
					loop();
				});
			}
			function getCurrent() {
				if (_current >= _total) _current = -1;
				_current++;
				_this.eq(_current - 1).css('z-index','0');
				_this.eq(_current).css('z-index','10');
			}
		
			_this.css("display", "none");
			_this.eq(_current).css("display", "block");
			_this.eq(_current).delay(_delay).fadeIn(_time, loop);
		}
		slideshow();
});
