function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

//window.onLoad = rotator();

//var c = 0

//var s

//function rotator() {
//	if (c%5==0) {
//		document.getElementById('slide').src = "images/rotator-images/image-rotator-1.jpg";
//	}
//	if (c%5==1) {
//		document.getElementById('slide').src = "images/rotator-images/image-rotator-2.jpg";
//	}
//	if (c%5==2) {
//		document.getElementById('slide').src = "images/rotator-images/image-rotator-1.jpg";
//	}
//	if (c%5==3) {
//		document.getElementById('slide').src = "images/rotator-images/image-rotator-2.jpg";
//	}
//	
//	c = c+1
//	
//	s = setTimeout("rotator()",3000)
//}


