var demo = {
	colorIndex:0,
	interval:1,
	element:null,
	getRandom:function(){
		return Math.ceil(Math.random()*8) + 1;
	},

	fade1:function(){bytefx.fade(document.getElementById("rou"), 60, 0, 1, demo.color1);},
	color1:function(){bytefx.color(document.getElementById("rou"), "backgroundColor", "#cc0066", "#cc0066", 0, demo.move1);},
	move1:function(){bytefx.move(document.getElementById("rou"), {x:500,y:0}, 180, demo.fade2);},
	fade2:function(){bytefx.fade(document.getElementById("rou"), 0, 60, 1, demo.fade3);},
	fade3:function(){bytefx.fade(document.getElementById("ver"), 60, 0, 1, demo.color2);},
	color2:function(){bytefx.color(document.getElementById("ver"), "backgroundColor", "#99CC33", "#99CC33", 0, demo.move2);},
	move2:function(){bytefx.move(document.getElementById("ver"), {x:250,y:0}, 180, demo.fade4);},	
	fade4:function(){bytefx.fade(document.getElementById("ver"), 0, 60, 1, demo.fade5);},
	fade5:function(){bytefx.fade(document.getElementById("blu"), 60, 0, 1, demo.color3);},
	color3:function(){bytefx.color(document.getElementById("blu"), "backgroundColor", "#3399CC", "#3399CC", 0, demo.move3);},
	move3:function(){bytefx.move(document.getElementById("blu"), {x:0,y:0}, 180, demo.fade6);},
	fade6:function(){bytefx.fade(document.getElementById("blu"), 0, 60, 1, demo.fade7);},
    fade7:function(){bytefx.fade(document.getElementById("bla1"), 0, 0, 1, demo.move4);},
	move4:function(){bytefx.move(document.getElementById("bla1"), {x:750,y:127}, 180, demo.fade8);},
    fade8:function(){bytefx.fade(document.getElementById("bla1"), 0, 80, 1, demo.fade9);},
    
    
    fade9:function(){bytefx.fade(document.getElementById("rou"), 60, 0, 1, demo.color4);},
	color4:function(){bytefx.color(document.getElementById("rou"), "backgroundColor", "#cc0066", "#cc0066", 0, demo.move5);},
	move5:function(){bytefx.move(document.getElementById("rou"), {x:250,y:0}, 180, demo.fade10);},
	fade10:function(){bytefx.fade(document.getElementById("ver"), 60, 0, 1, demo.fade11);},
	fade11:function(){bytefx.fade(document.getElementById("rou"), 0, 60, 1, demo.color5);},
	color5:function(){bytefx.color(document.getElementById("ver"), "backgroundColor", "#99CC33", "#99CC33", 0, demo.move6);},
	move6:function(){bytefx.move(document.getElementById("ver"), {x:0,y:0}, 180, demo.fade12);},
	fade12:function(){bytefx.fade(document.getElementById("blu"), 60, 0, 1, demo.fade13);},
	fade13:function(){bytefx.fade(document.getElementById("ver"), 0, 60, 1, demo.color6);},
	color6:function(){bytefx.color(document.getElementById("blu"), "backgroundColor", "#3399CC", "#3399CC", 0, demo.move7);},
	move7:function(){bytefx.move(document.getElementById("blu"), {x:750,y:0}, 180, demo.fade14);},
    fade14:function(){bytefx.fade(document.getElementById("bla1"), 80, 0, 1, demo.fade15);},
	fade15:function(){bytefx.fade(document.getElementById("blu"), 0, 60, 1, demo.fade16);},    
	fade16:function(){bytefx.fade(document.getElementById("bla2e"), 0, 0, 1, demo.move8);},
	move8:function(){bytefx.move(document.getElementById("bla2e"), {x:500,y:120}, 180, demo.fade17);},
	fade17:function(){bytefx.fade(document.getElementById("bla2e"), 0, 80, 1, demo.fade18);},

    fade18:function(){bytefx.fade(document.getElementById("rou"), 60, 0, 1, demo.color7);},
	color7:function(){bytefx.color(document.getElementById("rou"), "backgroundColor", "#cc0066", "#cc0066", 0, demo.move9);},
	move9:function(){bytefx.move(document.getElementById("rou"), {x:0,y:0}, 180, demo.fade19);},
	fade19:function(){bytefx.fade(document.getElementById("ver"), 60, 0, 1, demo.fade20);},
	fade20:function(){bytefx.fade(document.getElementById("rou"), 0, 60, 1, demo.color8);},
	color8:function(){bytefx.color(document.getElementById("ver"), "backgroundColor", "#99CC33", "#99CC33", 0, demo.move10);},
	move10:function(){bytefx.move(document.getElementById("ver"), {x:750,y:0}, 180, demo.fade21);},
	fade21:function(){bytefx.fade(document.getElementById("blu"), 60, 0, 1, demo.fade22);},
	fade22:function(){bytefx.fade(document.getElementById("ver"), 0, 60, 1, demo.color9);},
	color9:function(){bytefx.color(document.getElementById("blu"), "backgroundColor", "#3399CC", "#3399CC", 0, demo.move11);},
	move11:function(){bytefx.move(document.getElementById("blu"), {x:500,y:0}, 180, demo.fade23);},
    fade23:function(){bytefx.fade(document.getElementById("bla2e"), 80, 0, 1, demo.fade24);},
	fade24:function(){bytefx.fade(document.getElementById("blu"), 0, 60, 1, demo.fade25);},    
	fade25:function(){bytefx.fade(document.getElementById("bla3"), 0, 0, 1, demo.move12);},
	move12:function(){bytefx.move(document.getElementById("bla3"), {x:250,y:127}, 180, demo.fade26);},
	fade26:function(){bytefx.fade(document.getElementById("bla3"), 0, 80, 1, demo.fade27);},


    fade27:function(){bytefx.fade(document.getElementById("rou"), 60, 0, 1, demo.color10);},
	color10:function(){bytefx.color(document.getElementById("rou"), "backgroundColor", "#cc0066", "#cc0066", 0, demo.move13);},
	move13:function(){bytefx.move(document.getElementById("rou"), {x:750,y:0}, 180, demo.fade28);},
	fade28:function(){bytefx.fade(document.getElementById("ver"), 60, 0, 1, demo.fade29);},
	fade29:function(){bytefx.fade(document.getElementById("rou"), 0, 60, 1, demo.color11);},
	color11:function(){bytefx.color(document.getElementById("ver"), "backgroundColor", "#99CC33", "#99CC33", 0, demo.move14);},
	move14:function(){bytefx.move(document.getElementById("ver"), {x:500,y:0}, 180, demo.fade30);},
	fade30:function(){bytefx.fade(document.getElementById("blu"), 60, 0, 1, demo.fade31);},
	fade31:function(){bytefx.fade(document.getElementById("ver"), 0, 60, 1, demo.color12);},
	color12:function(){bytefx.color(document.getElementById("blu"), "backgroundColor", "#3399CC", "#3399CC", 0, demo.move15);},
	move15:function(){bytefx.move(document.getElementById("blu"), {x:250,y:0}, 180, demo.fade32);},
    fade32:function(){bytefx.fade(document.getElementById("bla3"), 80, 0, 1, demo.fade33);},
	fade33:function(){bytefx.fade(document.getElementById("blu"), 0, 60, 1, demo.fade1);},    

start:function(element){
		this.element = element;
		this.fade1();
	}
}; 
window.onload=str;
function str() {
	demo.start(document.getElementById("rou"));
}
;