var bolShowNavProductsOverlay = true;

function initNavs()
{
	$("#navproducts-container .tab").hover(
		function()
		{
			if (bolShowNavProductsOverlay)
			{
				$(this).parent().css('z-index', 100);
				$(" > .tablist", this).css('filter', "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#606060')");
				$(" .tabimage-hover", this).fadeIn('fast');
				$(" > .tablist", this).fadeIn('fast');
				$(" .label > a", this).css('color', '#171717');
			}
		},
		function()
		{
			if (bolShowNavProductsOverlay)
			{
				$(" .tabimage-hover", this).fadeOut('fast');
				$(" > .tablist", this).fadeOut('fast', function()
					{
						$(this).parent().parent().css('z-index', 10);
					}	
				);
				$(" .label > a", this).css('color', '#ffffff');
			}
		}
	)

	$("#nav1-container .tab").hover(
		function()
		{
			$(" > .tablist", this).css('filter', "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#606060')");
			$(" .tabimage-hover", this).fadeIn('fast');
			$(" > .tablist", this).fadeIn('fast');
			$(" .label > a", this).css('color', '#171717');
		},
		function()
		{
			$(" .tabimage-hover", this).fadeOut('fast');
			$(" > .tablist", this).fadeOut('fast');
			$(" .label > a", this).css('color', '#ffffff');
		}
	)

	$(".navbutton").hover(
		function()
		{
			$(" > .tablist", this).css('filter', "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#606060')");
			$(" > .tablist", this).fadeIn('fast');
			$(" > .tabbox", this).css('filter', "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#606060')");
			$(" > .tabbox", this).fadeIn('fast');
			$(" > .label-icon img", this).attr('src', $(" > .label-icon img", this).attr('src').replace(/(\.(?:gif|png|jpg))/, '_active$1'));
		},
		function()
		{
			if ($('#user-login', this).length == 0)	//Login-Overlay nicht wieder ausblenden
			{
				$(" > .tablist", this).fadeOut('fast');
				$(" > .tabbox", this).fadeOut('fast');
				$(" > .label-icon img", this).attr('src', $(" > .label-icon img", this).attr('src').replace(/_active/, ''));
			}
		}
	)
}
