$(document).ready( function() {
	
	$("a, img").click(function(){
		$(this).blur();
	});
	
	$(".untermenu").mouseover( function() {
		$(this).stop().animate({height:"200px"},{queue:false, duration:400, easing: 'easeInOutQuart'});
	});		
	
	$(".untermenu").mouseout( function() {
		$(this).stop().animate({height:"58px"},{queue:false, duration:400, easing: 'easeInOutQuart'});									
	});		
	
	$(".untermenupunkt").mouseover( function() {
		$(this).css({background: "url(images/braun_hover.png) repeat top left"});
	});
	
	$(".untermenupunkt").mouseout( function() {
		$(this).css({background: "url(images/braun_trans.png) repeat top left"});
	});
	
	$(".untermenu li:first-child").mouseover( function() {
		$(this).css({background: "url(images/braun_hover.png) repeat top left"});
	});
	
	$(".untermenu li:first-child").mouseout( function() {
		$(this).css({background: "none"});
	});
	
	$(".hauptmenu li").mouseover( function() {
		$(this).css({background: "url(images/braun_hover.png) repeat top left"});
	});
	
	$(".hauptmenu li").mouseout( function() {
		$(this).css({background: "none"});
	});
	
	$(".next").mouseover( function() {
		$(this).attr("src", "images/next2.png");							   
	});
	
	$(".next").mouseout( function() {
		$(this).attr("src", "images/next.png");							   
	});
	
	$(".prev").mouseover( function() {
		$(this).attr("src", "images/prev2.png");							   
	});
	
	$(".prev").mouseout( function() {
		$(this).attr("src", "images/prev.png");							   
	});
	
});


(function($) {
        function init() {
                                                 
          $("#slideshow .effectContainer").fadeTransition({pauseTime: 4000,
                                                  transitionTime: 1500,
                                                  delayStart: 0,
												  pauseOnMouseOver: true,
                                                  manualNavigation: false});
                                                  
          var slideshow = $("#slideshow .effectContainer").fadeTransition().fader();          
          $("#back").click(function(e) { slideshow.prev(); e.preventDefault(); });
          $("#next").click(function(e) { slideshow.next(); e.preventDefault(); });
        } 
        
        $(document).ready(init);
      })(jQuery);
