
$.noConflict();
  jQuery(document).ready(function($) {
    
	jQuery.now()
	
	//initialize 
    //$('#header ul.level_1').superfish();
	
	 //get max height	
	var maxArticle = $(".mod_article").height();
	var rightHeight = $("#right").height();
	
	if (maxArticle >= rightHeight) {
		$("#right").css("height",maxArticle);
	}
	
	
	
	// menu test
	$("#header li.submenu, #header #id1").hover(function() {
		$(this).addClass("active");
		$(".level_2").filter(":visible").addClass("wasOpen").hide();
		$(this).find("ul").show();
	  }, function() {
		$(this).removeClass("active");
		$(".wasOpen").show();
		$(this).find("ul").hide();
	});
	
			
	if( $("body").hasClass("Produkte") ) {
		var produkte = $(":contains('Produkte')");
		produkte.next("ul").css("display","block");
		produkte.parent().unbind('mouseenter mouseleave');
	}
	
	if( $("body").hasClass("Loesungen") ) {
		var loesungen = $(":contains('Lösungen')");
		loesungen.next("ul").css("display","block");
		loesungen.parent().unbind('mouseenter mouseleave');
	}
	
	if( $("body").hasClass("Service") ) {
		var service = $(":contains('Service')");
		service.next("ul").css("display","block");
		service.parent().unbind('mouseenter mouseleave');
	}
	
	if( $("body").hasClass("SportMed_AG") ) {
		var SportMed_AG = $(":contains('SportMed AG')");
		SportMed_AG.next("ul").css("display","block");
		SportMed_AG.parent().unbind('mouseenter mouseleave');
	}
	
	if( $("body").hasClass("Kontakt") ) {
		var kontakt = $(":contains('Kontakt')");
		kontakt.next("ul").css("display","block");
		kontakt.parent().unbind('mouseenter mouseleave');
	}
	
	
});





