var Scroller 	= Class.create({
	initialize: function (div, prefix) {
		this.currentBloc 	= 0;
		this.prefix 		= prefix;
		this.blocs     		= $(div).childElements();
		this.totalBlocs 	= this.blocs.length;
	},

	start: function () {
		var local 	= this;

		if(this.currentBloc == this.totalBlocs) {
			this.currentBloc = 1;
		} else {
			this.currentBloc = this.currentBloc+1;
		}

		for (i = 0; i < this.totalBlocs; i++) {
			if ((i+1) == this.currentBloc) {
				Effect.SlideDown(this.prefix+'-'+this.currentBloc);
			} else {
				$(this.prefix+'-'+(i+1)).hide();
			}
		}

		this.timeout 	= setTimeout(function(){local.start();}, 10000);
	}
});

