window.addEvent('domready', function(){
	//First Example
  var otherEl = $('teaser_text');
	var el = $('heightEffect'),
		color = el.getStyle('backgroundColor');
    	// Second Example
	
	// The same as before: adding events
	$('myOtherElement').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 2000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '155px'); 
     
      otherEl.set('tween', {
				duration: 2000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '100px');         
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '50px');
      otherEl.set('tween', {}).tween('height', '0px');
		}
	});
 
});

function Sichtbar(layerdiv) {
document.getElementById(layerdiv).style.visibility = 'visible';
}
