/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

#nav { padding:0 20px; width: 705px; float: right; font-size:1.1em; }

/************** ALL LEVELS  *************/ /* Style consistent throughout all nav levels */
#nav li { position:relative; text-align:left; }
#nav li.over { z-index:999; }
#nav a,
#nav a:hover { display:block; line-height:1.3em; text-decoration:none; }
#nav span { display:block; cursor:pointer;  }
#nav li ul span {white-space:normal; }

/************ 0 LEVEL  ***************/
#nav li { 
	display: block;
	position: relative;
	float:left; 
	width: 100px; 
	height: 47px;
	background-color: #808080; 
	margin-right: 5px;
	margin-top: 27px;
	background-position: 0 -47px;
}
#nav li.over,
#nav li:hover,
#nav li.active { 
	background-color:#adadad;
	background-position: 0 0;
}
#nav a { 
	display: block;
	padding: 0;
	height: 100%;
	width: 100%; 
	color: #979797; 
	font-size: 1px;
	overflow: hidden;
	text-indent: -999px;
}

#nav li.nav-building,
#nav li.nav-hardware,
#nav li.nav-garden-outdoor,
#nav li.nav-decorator,
#nav li.nav-homeware,
#nav li.nav-catalog
{
	background-image: url(../images/magnet_mart/sprite_tabs.gif);
	background-repeat: no-repeat;
	width: 111px;
	height: 52px;
}

#nav li.nav-building		{ background-position: 0 0; }
#nav li.nav-hardware		{ background-position: -116px 0; }
#nav li.nav-garden-outdoor	{ background-position: -232px 0; }
#nav li.nav-decorator		{ background-position: -348px 0; }
#nav li.nav-homeware		{ background-position: -464px 0; }
#nav li.nav-catalog			{ background-position: -579px 0; }

#nav li.nav-building.active,
#nav li.nav-building.over		{ background-position: 0 -55px; }
#nav li.nav-hardware.active,
#nav li.nav-hardware.over		{ background-position: -116px -55px; }
#nav li.nav-garden-outdoor.active,
#nav li.nav-garden-outdoor.over	{ background-position: -232px -55px; }
#nav li.nav-decorator.active,
#nav li.nav-decorator.over		{ background-position: -348px -55px; }
#nav li.nav-homeware.active,
#nav li.nav-homeware.over		{ background-position: -464px -55px; }
#nav li.nav-catalog.active,
#nav li.nav-catalog.over		{ background-position: -579px -55px; }



/************ 1ST LEVEL ************/
#nav ul
{
	margin-top: 20px;
	width: 170px;
	margin-right: 0;
	margin-left: -1px;
	padding-right: 0;
	padding-left: 0;
	background-color: transparent;
	background-image: url(../images/magnet_mart/header-container_bg.gif);
	background-repeat: repeat-x;
	background-position: bottom left;
	padding-bottom: 3px;
	
	border-style: solid;
	border-color: #797979;
	border-width: 1px;
}

#nav ul li,
#nav ul li.active { 
	margin: 0;
	width: 170px;
	height: auto;
	font-size: 12px;
	float:none; 
	background-color: #adadad;
	border-style: solid;
	border-color: #797979;
	border-width: 0 0 1px 0;
}

#nav ul li.last {
	border-top-width: 0; 
}

#nav ul a,
#nav ul a:hover { 
	float:none; 
	padding: 6px 0;
	font-size: 12px;
	color: #fff;
	text-indent: 0;
}
#nav ul li a { font-weight:normal !important; }
#nav ul li a:hover { background:#797979; }

#nav ul li span
{
	width: 170px;
}

/************ 2ND LEVEL ************/
#nav ul { position:absolute; top:25px; left:-10000px;  }

#nav ul ul {
	margin-top: 0;
	padding-bottom: 0;
}

/* Show menu */
#nav li.over > ul { left:0; }
#nav li.over > ul li.over > ul { left:100px; }
#nav li.over ul ul { left:-10000px; }

/*
#nav ul li a { background:#ecf3f6; }
#nav ul li a:hover { background:#d5e4eb; }
#nav ul li a,
#nav ul li a:hover { color:#2f2f2f !important; }
*/
#nav ul span, #nav ul li.last li span { padding:3px 15px 4px 15px;}

/************ 3RD+ LEVEL ************/
#nav ul ul { top:5px; }