window.addEvent('domready', function(){
        
    
    var step1 = new Fx.Tween('step1');
    var step2 = new Fx.Tween('step2');
    var step3 = new Fx.Tween('step3');
    var step4 = new Fx.Tween('step4');
    var one = function() { 
            this.start('background-color', '#e1e1e1', '#d1d1d1'); 
    }; 
    var two = function() { 
            this.start('background-color', '#d1d1d1', '#e1e1e1'); 
    };
    
    var chainIt = function(){
        var x = new Chain(); 
        x.chain(one.bind(step1)); 
        x.chain(two.bind(step1));
        x.chain(one.bind(step2)); 
        x.chain(two.bind(step2));
        x.chain(one.bind(step3)); 
        x.chain(two.bind(step3));
        x.chain(one.bind(step4)); 
        x.chain(two.bind(step4));
        
        x.callChain(); 
        x.callChain.delay(2000, x); 
        x.callChain.delay(2500, x); 
        x.callChain.delay(4500, x); 
        x.callChain.delay(5000, x); 
        x.callChain.delay(7000, x); 
        x.callChain.delay(7500, x); 
        x.callChain.delay(9000, x); 
    }
    
    var fx = function() {
        chainIt();
        
    }
    
    chainIt();
    periodical = fx.periodical(10000);

});
