var demo = {
	//colorIndex:0,
	interval:0,
	element:null,
	getRandom:function(){
		//return Math.ceil(Math.random()*4) + 2;
		return 2;
	},
	size1:function(){
		bytefx.size(demo.element, {width:500,height:250,$width:260,$height:200,height$:400}, 9, demo.move1);
	},
	move1:function(){
			bytefx.move(demo.element, {x: 500,y: 87}, 12, demo.fade2);
		},
	fade2:function(){
			bytefx.fade(demo.element, 30, 90, 1, '');
		},
	fade1:function(){
			bytefx.fade(demo.element, 100, 30, 7, demo.move1);
		},
	start:function(element){
		this.element = element;
		this.fade1();
		//this.color();
		bytefx.drag(this.element,function(){
				//bytefx.clear(demo.fade1);
				//bytefx.clear(demo.size1);bytefx.clear(demo.move1)
				// you could clear span clor too
				// [i.e. bytefx.clear(document.getElementById("text"))]
			},					
			function(){
				//demo.size1()
			}
		);
	}
}; 
onload = function() {
	demo.start(document.getElementById("bytefx"));
};
