function activate_teaser_box() {
	// this = element triggering hover :-)
	// Bild 2 einblenden
	if (this.fade_pic) this.fade_pic.stop();
	this.fade_pic = this.getElement('img.teaser-box-image-normal').effect('opacity', {transition: Fx.Transitions.Cubic.easeInOut, duration:400}).start('0');
	// Textelement reinfahren
	if (this.slide_text) this.slide_text.stop();
	this.slide_text = this.getElement('div.teaser-box-text').effect('top', {transition: Fx.Transitions.Cubic.easeInOut, duration:400}).start('120px');
}

function deactivate_teaser_box() {
	// Bild 2 ausblenden
	if (this.fade_pic) this.fade_pic.stop();
	this.fade_pic = this.getElement('img.teaser-box-image-normal').effect('opacity', {transition: Fx.Transitions.Cubic.easeInOut, duration:400}).start('1');
	// Textelement rausfahren
	if (this.slide_text) this.slide_text.stop();
	this.slide_text = this.getElement('div.teaser-box-text').effect('top', {transition: Fx.Transitions.Cubic.easeInOut, duration:400}).start('239px');	
}

function init_teaser_boxes() {
	var teaser_boxes;
	teaser_boxes= $$('div.teaser-box', 'div.teaser-box-breit');
	teaser_boxes.each(
		function(el) {
			el.addEvent('mouseenter', activate_teaser_box);
			el.addEvent('mouseleave', deactivate_teaser_box);
			el.addEvent('click', function(el) {
				var url = this.getElement('a');
				location.href = url;
			});
		}
	);
}

window.addEvent('domready', init_teaser_boxes);
