		var j = jQuery.noConflict();
		var wait = 1;
		var modifier = 0;





		if (j.browser. msie && j.browser.version == "7.0") modifier = 2;
		function adjustPosition(items) {
			if (items.length == 0) return;
			items.each(function (index) {
				var ul = j(this).children("ul").first();
				ul.css("top", index * 30 * -1 - index - 2 - modifier - modifier * (index * 2));
				adjustPosition(ul.children("li"));
			});
		}
		j(function () {
			if (j.browser. msie && j.browser.version == "6.0") return;
			
			j(".head ul.menu > li > ul").each(function() {
				adjustPosition(j(this).children("li"));
			});
			
			j(".head ul.menu > li > ul").hide();

			// Animation 2. Ebene
			j(".head ul.menu > li").hoverIntent({
			over: function() {
				var ul = j(this).children("ul").first();
				ul.hide().fadeTo(800, 1);
				ul.children("li").stop(true, false)
				                 .css({ left: 0, top: ul.children("li").length * -30 - 30 })
				                 .delay(wait)
				                 .animate({ top: 0 }, 1000, "easeOutExpo");
			}, timeout: 500, out: function() {
				wait = 300;
				var ul = j(this).children("ul").first();
				ul.stop(true, false).show().delay(wait).fadeOut();
				ul.children("li").stop(true, false)
				                 .animate({ left: -230 }, 300, "easeOutExpo", function() { wait = 1; });
			}});

			// Animation ab 3.Ebene (easeOutElastic)
			j(".head ul.menu > li li").hover(function() {
				var ul = j(this).children("ul");
				ul.css("opacity", 0).show().animate({ opacity: 0.5 }, "slow");
			}, function() {
				var ul= j(this).children("ul");
				ul.stop(true, true).show().fadeOut(100);
			});
		});
