function TeaserBox(divId) {
	
	var _divId = divId;
	var _currentCat = 1;
	
	init();
	function init() {
		Event.observe(window, 'load', function() {
			showFirst();
		});
	};
	
	function showFirst() {
		var first = false;
		var elements = $$('#'+_divId+' div.teaserItem');
		var teaser = $(_divId);
		
		elements[0].setStyle({"display": "block"});
		var height = parseInt(elements[0].getStyle("height"));
		teaser.setStyle({"height": height+"px"});
		
		if( elements.length > 1 ) {
			thisObj = this;
			setTimeout(function() { thisObj.showNext();}, 8000);
		}
	};
	
	showNext = function() {
		var showElem = 0; var animated = false;
		var elements = $$('#'+_divId+' div.teaserItem');
		var teaser = $(_divId);
		elements.each(function(elem){
			showElem++;
			if( $(elem).visible() && animated == false ) {
				if( showElem < elements.length) {
					var showElemObj = elements[showElem];
				} else {
					var showElemObj = elements[0];
				}
				$(elem).fade({ duration: 0.5, from: 1.0, to: 0.0});
				$(showElemObj).setOpacity(0);
				$(showElemObj).setStyle({"display": "block"});
				$(showElemObj).fade({ duration: 0.5, from: 0.0, to: 1.0 });
				
				var height = parseInt($(showElemObj).getStyle("height"));
				teaser.setStyle({"height": height+"px"});
				animated = true;
				/*
				$(elem).fade({ duration: 0.25, from: 1.0, to: 0.0, afterFinish: function()
	                {
						$(showElemObj).setOpacity(0);
						$(showElemObj).setStyle({"display": "block"});
						$(showElemObj).fade({ duration: 0.25, from: 0.0, to: 1.0 });
	                }
				});*/
			}
		});
		thisObj = this;
		setTimeout(function() { thisObj.showNext();}, 8000);
	};
	
}
