function zIndexWorkaround()
{
    // If the browser is IE,
    if(navigator.userAgent.match(/MSIE \d\.\d+/))
    {
        /*
        ** For each div with class menu (i.e.,
        ** the thing we want to be on top),
        */
        $("#main_navi ul").parents().each(function() {
            var p = $(this);
            var pos = p.css("position");
 
            // If it's positioned,
            if(pos == "relative" ||
               pos == "absolute" ||
               pos == "fixed")
            {
                /*
                ** Add the "on-top" class name when the
                ** mouse is hovering over it, and remove
                ** it when the mouse leaves.
                */
                p.hover(function() {
                        $(this).addClass("on-top");
                    },
                    function() {
                        $(this).removeClass("on-top");
                    });
            }
        });
    }
}

$(function() {
	// this is for you, lte ie7
	zIndexWorkaround();
	
	// this is for you, ie6
	$("#standort-0").show().addClass("on-top");

	$('#main_navi li.inactive').
		mouseenter(function() {
			$(this).addClass('hover');
		}).
		mouseleave(function() {
			$(this).removeClass('hover');
		});
});
