function theRotator() {
	// opacity
	$('div#rotator ul li').css({opacity: 0.0});
 
	// load first img
	$('div#rotator ul li:first').css({opacity: 1.0});
 
	// load rotate for slide, 5000 = 5 sec
	setInterval('rotate()',5000);
}
 
function rotate() {	
	// first img
	var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));
 
	// rot img
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
 
	// show img rnd
	// var sibs = current.siblings();
	// var rndNum = Math.floor(Math.random() * sibs.length );
	// var next = $( sibs[ rndNum ] );
 
	// load effect
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
 
	// hide img
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
};
 
$(document).ready(function() {		
	// slide
	theRotator();
});
