var TeaserSwitch = Class.create(
{
	keyStart: 0,
	switchTime: 0,
	self: this,
	_objects: new Hash(),

		initialize: function(keyStart, timeSeconds)
		{
			this.keyStart = keyStart;
			this.counter = 0;
			
			if ($('teaserbox') && $('teaserbox').childNodes.length > 3)
			{
			
			new PeriodicalExecuter(function(pe) {
			 	//console.debug(this.counter%5);
				
				var countDivBefore = (this.counter%5)+1;
				$('teaserboxContent'+countDivBefore).fade({ duration: 2.0 });
				
				this.counter++;
				
				var countDivAfter = (this.counter%5)+1;
				$('teaserboxContent'+countDivAfter).appear({ duration: 2.0 });
				
			}.bind(this), 5);
			}
		}
	}
);