// JavaScript WIWEX GmbH

$(document).ready(function() {

	// HAUPTMENU
	$(".lvl1").hover(function() {
		$(this).toggleClass("hidden");
	},function() {
		$(this).toggleClass("hidden");
	});

	$(".border").hover(function() {
		$(this).children(".mmod-hidden").animate({ "opacity": "show" },100 );
	},function() {
		$(this).children(".mmod-hidden").animate({ "opacity": "hide" },10 );
	});


	// MARGIN ENTFERNEN
//	$("#middle-in").children("*:first").css("margin-top","0");
//	$("#middle-in").children("*:first").children("*:first").css("margin-top","0");

	// SORTABLE BOXEN
	$(".sortablebox").sortable({
		revert: true
	});
	
	$(".klappbutton").click(function() {
		$(this).parents(".klappbox:first").find(".klappcontent").toggle();
		$(this).parents(".klappbox:first").find(".klappbutton").toggleClass("act");
	});
	
	// LOGIN
	$(".loginbutton").click(function() {
		$(this).parents("#login").find(".loginform").toggle();
		$(this).toggleClass("auf");
	});

	// LOGIN
//	$("#login").click(function() {
//		$("#login").stop().animate({ height: "43px" },200);
//	});

	// LOGIN
//	$("#login").hover(function() {
//		$("#login").stop().animate({ height: "43px" },200);
//	},function() {
//		$("#login").stop().animate({ height: "21px" },200);
//	});

});
