function theRotator() {
	$('div.rotator1 ul li').css({opacity: 0.0});
	$('div.rotator1 ul li:first').css({opacity: 1.0});
	$('div.rotator2 ul li').css({opacity: 0.0});
	$('div.rotator2 ul li:first').css({opacity: 1.0});
	$('div.rotator3 ul li').css({opacity: 0.0});
	$('div.rotator3 ul li:first').css({opacity: 1.0});
	setInterval('rotate()',5000);
}
function rotate() {
	/// SlideShow1
    var current1 = ($('div.rotator1 ul li.show')?  $('div.rotator1 ul li.show') : $('div.rotator1 ul li:first'));
    if ( current1.length == 0 ) current1 = $('div.rotator1 ul li:first');
	var next = ((current1.next().length) ? ((current1.next().hasClass('show')) ? $('div.rotator1 ul li:first') :current1.next()) : $('div.rotator1 ul li:first'));
	var sibs = current1.siblings();
    var rndNum = Math.floor(Math.random() * sibs.length );
    var next = $( sibs[ rndNum ] );
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 700);
	current1.animate({opacity: 0.0}, 700)
	.removeClass('show');

    /// SlideShow2
    var current2 = ($('div.rotator2 ul li.show')?  $('div.rotator2 ul li.show') : $('div.rotator2 ul li:first'));
    if ( current2.length == 0 ) current2 = $('div.rotator2 ul li:first');
	var next = ((current2.next().length) ? ((current2.next().hasClass('show')) ? $('div.rotator2 ul li:first') :current2.next()) : $('div.rotator2 ul li:first'));
	var sibs = current2.siblings();
    var rndNum = Math.floor(Math.random() * sibs.length );
    var next = $( sibs[ rndNum ] );
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 700);
	current2.animate({opacity: 0.0}, 700)
	.removeClass('show');

    /// SlideShow3
    var current3 = ($('div.rotator3 ul li.show')?  $('div.rotator3 ul li.show') : $('div.rotator3 ul li:first'));
    if ( current3.length == 0 ) current3 = $('div.rotator3 ul li:first');
	var next = ((current3.next().length) ? ((current3.next().hasClass('show')) ? $('div.rotator3 ul li:first') :current3.next()) : $('div.rotator3 ul li:first'));
	var sibs = current3.siblings();
    var rndNum = Math.floor(Math.random() * sibs.length );
    var next = $( sibs[ rndNum ] );
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 700);
	current3.animate({opacity: 0.0}, 700)
	.removeClass('show');

};
$(document).ready(function() {
	theRotator();
	$('div.rotator1').fadeIn(700);
    $('div.rotator1 ul li').fadeIn(700); // tweek for IE
    $('div.rotator2').fadeIn(700);
    $('div.rotator2 ul li').fadeIn(700); // tweek for IE
    $('div.rotator3').fadeIn(700);
    $('div.rotator3 ul li').fadeIn(700); // tweek for IE
});
