function rotate() {	
	var current = ($('div.rotator ul li.show')?  $('div.rotator ul li.show') : $('div.rotator ul li:first'));
    if ( current.length == 0 ) current = $('div.rotator ul li:first');
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator ul li:first') :current.next()) : $('div.rotator ul li:first'));	
	next.addClass('show').fadeIn();
	current.fadeOut().removeClass('show');	
	
};


function rotate3() {	
	var current = ($('div.rotator3 ul li.show')?  $('div.rotator3 ul li.show') : $('div.rotator3 ul li:first'));
    if ( current.length == 0 ) current = $('div.rotator3 ul li:first');
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator3 ul li:first') :current.next()) : $('div.rotator3 ul li:first'));	
	next.addClass('show').fadeIn();
	current.fadeOut().removeClass('show');	
	
};



$(document).ready(function() {	
	
    $(window).blur(function(){
	setInterval('rotate()',100000000000000);
	setInterval('rotate3()',10000000000000);
        });
    $(window).focus(function(){
        });
		
	
	//theRotator();
	rotate();
	rotate3();
	setInterval('rotate()',10000);
	setInterval('rotate3()',9000);
});





$().ready(function() {
       $('#coda-slider-2').codaSlider({
           autoSlide: true,
           autoSlideInterval: 3000,
           autoSlideStopWhenClicked: false
       });
   });

































