



window.addEvent('domready', function(){
	var slideact	= 0;
/*	var mySlide		= new Fx.Morph('versteckt'); */
	var animation = new Fx.Morph($('head'), {
		duration : '1000',
		/*
		 transition: 'bounce:out'
		 */
		 
		 transition: 'back:out',
		 onComplete: function(){
		 	
		 }
	});
	var morphStart = function(){
		if(slideact == 0){
			this.start({
				'margin-top': '-30px'
			});
			slideact = 1;
		} else {
			this.start({
				'margin-top': '-163px'
			});
			slideact = 0;
		}
		
	}
 	
 	$('top_button').addEvent('click', morphStart.bind(animation));
 	
 	/*
	$('top_button').addEvent('click', function(e){
		
		var head = new Fx.Morph($("head"), "height", {duration: 2000})
			
		head.start(200);
	
		
		morphStart.bind(animation);
		
		var head = $('head');
		if(slideact == 0){
			slideact = 1;
			head.tween('height',200);
		} else {
			head.tween('height',67);
			slideact = 0;
		}
		
	});
	*/
/*
	var map = $$('div#nav_sitemap ul li a');
	map.each(function(element) {
		var fx = new Fx.Morph(element, {duration:200, wait: false});
		
		element.addEvent('mouseenter', function(){
			fx.start({
				'font-size': '18px',
				'color': '#F26D7D'
			});
		});
		
		element.addEvent('mouseleave', function(){
			fx.start({
				'font-size': '12px',
				'color': '#FFF'
			});
		});
 
	});
*/
});