function slideSwitch() {

  var $active = $('.cheesy_photo div.active');
  var $next =  $active.next().length ? $active.next() : $('.cheesy_photo div:first');

	$next.removeClass('inactive').addClass('next');		    
    $next.css({opacity: 1.0});

	$active.animate({opacity: 0.0}, 500, function() {
		$active.removeClass('active').addClass('inactive');
		$next.removeClass('next').addClass('active');
	});

}

if (!$.browser.msie || $.browser.version.substr(0,1)>6) {
	$(document).ready(function(){ setInterval('slideSwitch()', 5000); });
}
