
	function slideSwitch() {
	
		var box = $('.content-area');
		var theWidth = box.width();
		var $active = $('#jg-slide-wrapper li.active');

		if ( $active.length == 0 ) $active = $('#jg-slide-wrapper li:last');

		var $next =  $active.next().length ? $active.next()
			: $('#jg-slide-wrapper li:first');

		$active.addClass('last-active');
		
		box.animate({left: -theWidth},500, function(){
		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 500, function() {
				box.animate({left: 0}, 1000, "easeOutBounce");
				$active.removeClass('active last-active');
			});
		});
	}

	$(function() {
		setTimeout(function(){
			setInterval("slideSwitch()", 5000);
		},10000);
	});

