// JavaScript Document

$(document).ready(function(){
	$("ul.performance_b").css({ display: "none" });
	$("ul.performance_p").css({ display: "none" });
	$("ul.performance_w").css({ display: "none" });
	$("ul.performance_k").css({ display: "none" });
						   
						   
	$("#box_inner_text_leistungen_b").click(function () {
		if ( $("#box_inner_text_leistungen_b").hasClass("notselected")) {
			//$("#box_inner_text_leistungen_b").css({ backgroundColor: "red" })
			$("ul.performance_b").slideDown("normal")
			$("#box_inner_text_leistungen_b").removeClass("notselected")
			$("#box_inner_text_leistungen_b").addClass("selected");
			//$(".box_inner_leistungen .tooltip").css("display","none");
		} else {
			//$("#box_inner_text_leistungen_b").css({ backgroundColor: "#2c2c2c" });
			$("ul.performance_b").slideUp("normal");
			$("#box_inner_text_leistungen_b").removeClass("selected");
			$("#box_inner_text_leistungen_b").addClass("notselected");
		}
	}); 
	
	$("#box_inner_text_leistungen_p").click(function () {
		if ( $("#box_inner_text_leistungen_p").hasClass("notselected")) {
			//$("#box_inner_text_leistungen_p").css({ backgroundColor: "red" })
			$("ul.performance_p").slideDown("normal")
			$("#box_inner_text_leistungen_p").removeClass("notselected")
			$("#box_inner_text_leistungen_p").addClass("selected");
		} else {
			//$("#box_inner_text_leistungen_p").css({ backgroundColor: "#2c2c2c" });
			$("ul.performance_p").slideUp("normal");
			$("#box_inner_text_leistungen_p").removeClass("selected");
			$("#box_inner_text_leistungen_p").addClass("notselected");
		}
	});
	
	$("#box_inner_text_leistungen_w").click(function () {
		if ( $("#box_inner_text_leistungen_w").hasClass("notselected")) {
			//$("#box_inner_text_leistungen_w").css({ backgroundColor: "red" })
			$("ul.performance_w").slideDown("normal")
			$("#box_inner_text_leistungen_w").removeClass("notselected")
			$("#box_inner_text_leistungen_w").addClass("selected");
		} else {
			//$("#box_inner_text_leistungen_w").css({ backgroundColor: "#2c2c2c" });
			$("ul.performance_w").slideUp("normal");
			$("#box_inner_text_leistungen_w").removeClass("selected");
			$("#box_inner_text_leistungen_w").addClass("notselected");
		}
	});
	
	$("#box_inner_text_leistungen_k").click(function () {
		if ( $("#box_inner_text_leistungen_k").hasClass("notselected")) {
			//$("#box_inner_text_leistungen_k").css({ backgroundColor: "red" })
			$("ul.performance_k").slideDown("normal")
			$("#box_inner_text_leistungen_k").removeClass("notselected")
			$("#box_inner_text_leistungen_k").addClass("selected");
		} else {
			//$("#box_inner_text_leistungen_k").css({ backgroundColor: "#2c2c2c" });
			$("ul.performance_k").slideUp("normal");
			$("#box_inner_text_leistungen_k").removeClass("selected");
			$("#box_inner_text_leistungen_k").addClass("notselected");
		}
	});
});
