

		/*
			java script 
		*/			

			

		window.addEvent('domready', function() {		
		    
		    /* SmoothScroll */
		    		    
			new SmoothScroll({ duration:700, wait: false, wheelStops: true }, window);		    					                
            var myMenu = new ImageMenu($$('#imageMenu a'),{openWidth:310, border:5, onOpen:function(e,i){ location.href=e; }});
            
            /* Search Toggler */
            var myslide = new Fx.Slide($('toggler'), {mode: 'vertical'}).hide();
                
            $('trigger').addEvent('click', function(e){
                    e.stop(); myslide.toggle();                
            });  
            
                           
                        
		    /* Kompetenzen */
			$$(".clayer").each(function(container){

				container.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: 100,
							transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
						}).tween('margin-top', '0px');
					},
					'mouseleave': function(){
						// Resets the tween and changes the element back to its original size
						this.set('tween', {
							duration: 100,
							transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
						}).tween('margin-top', '10px');
					}
				});	
				
			});		    
		    			
			
			/* Toggler */	
			var yourSlides = $$('.lelement');
			var yourTriggers = $$('.ltoggler');
			
			
			yourTriggers.each(function(el, i){						
				
				var myVerticalSlide = new Fx.Slide(yourSlides[i]);				
				myVerticalSlide.hide();
				
				el.addEvent('click', function(e){				
					e.stop();
					myVerticalSlide.toggle();			
				});
						 
			});
							
			
		});	
