
var currentBackground = 0;
var backgrounds = [];
backgrounds[0] = 0;
backgrounds[1] = 170;
backgrounds[2] = 340;
backgrounds[3] = 510;
backgrounds[4] = 680;

function changeBackground() { 



    currentBackground++;
	
	
	
    if(currentBackground > 4) {currentBackground = 0;}
	
	
    $('body #divRotator').fadeOut(200,function() {
        $('body #divRotator').css({
            'background-position' : '0 -'+ backgrounds[currentBackground]+'px' 
			
        });
	
		
        $('body #divRotator').fadeIn(100);
		
    });
	
	

    setTimeout("changeBackground();", 6000);
}
	
