function BranchenBuchNavi(){
	
    this.init = function(){
    	(function($) {
    		
    		if($('.noJs').length > 0){
    			$('.noJs').each(function(k, v){
    				$(v).removeClass('noJs')
    			});
    		}
    		$('.tab').bind('mouseenter', function(e) { branchenBuchNavi.open(e); });
    		$('.tab').bind('mouseleave', function(e) { branchenBuchNavi.close(e); });
    		//alert("TEST");
  
    	})(jQuery);	
    }
     
    this.open = function(e){    	
    	(function($) {
    		//$(e.currentTarget).stop(true, true);
    		$(e.currentTarget).children().slideDown();
       	})(jQuery);	
    }
    
    this.close = function(e){
    	//$(e.currentTarget).stop(true, true);
    	$(e.currentTarget).children('.submenu').stop(true, true).slideUp();
    }
    
    var self = this;
}

var branchenBuchNavi = new BranchenBuchNavi();

(function($) {
	$(document).ready(function(){
		branchenBuchNavi.init();
	});

})(jQuery);
