$(function(){
		$(window).unload(function() {
			$("#navigation ul li").children("UL").each(function(){
				$(this).css( {"visibility": "hidden"} );
			});
		});
		
		$("#navigation li.parent-list-item").mouseover(function(){
			var that = $(this);
			var children = that.children("ul.navigation-children");
			that.css("z-index", 2);
			children.css( "visibility", "visible" );
			
		}).mouseout(function(){
			var that = $(this);
			var children = that.children("ul.navigation-children");
			that.css("z-index", 1);
			children.css( "visibility", "hidden" );
		});
		
		
		if($.browser.msie) {
			$("ul.navigation-children").hover(function(){
				var a = $(this).prev();
				a.children("span").css('background', 'url("../images/core/navigationSpan.jpg") no-repeat;');
				a.css('background', 'url("../images/core/navigationA.jpg") top right no-repeat');
			}, function(){
				var a = $(this).prev();
				a.children("span").removeAttr("style");
				a.removeAttr("style");
			});
		} 
});
