$(document).ready(function() {
	/* For ease of editing by 3rd parties */
	var transition_time = 1000 /* the amount of time it takes to fade out an image and in to another */
	var interval_time = 5000 /* The amount of time an image stays on the screen before it starts to fade out and into the next one */
	
	/* Do not edit below this line! */
	var _container = $('#banner');
	var _banners = _container.find('div.banner');
	_banners.hide();
	_banners.eq(0).show().addClass('selected');

	setInterval(function() {
		var _current = _container.find('div.selected');
		if(!_current.next('div').hasClass('banner')) {
			var _next = _banners.eq(0);
		} else {
			var _next = _current.next('div');
		};

		_current.removeClass('selected');
		_next.addClass('selected');
		_current.fadeOut(transition_time, function() {
			_next.fadeIn(transition_time);
		});
	}, interval_time);
});
