var Timer=
{
	t:0,
	inc:function()
	{
		this.t = ++this.t % 64;
		this.objs.each(function(i,time)
		{
			//console.log(i, time);
			this.timer(time);
		},this.t);
	},
	
	intv:false,
	start:function()
	{
		if(this.intv==false)
		{
			this.intv = window.setInterval('Timer.inc()',10);
		}
	},
	
	objs:[],
	
	reg:function(obj)
	{
		this.objs.push(obj);
	}
};

Timer.start();
