/**
 * 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;*/ /*padding: 0px 0px 0px 10px;*/ padding: 0px; /*font-size:1.1em;*/ font-family: Arial; font-size: 13px; }

/************** 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;*/ line-height: 23px; text-decoration:none; }
#nav span { display:block; cursor:pointer; white-space:nowrap; /* afegit */ padding: 5px 10px 6px 7px; /* Fi afegit */ }
#nav li ul span {white-space:normal; }

/************ 0 LEVEL  ***************/
#nav li { float:left; }
/*#nav li.active a { color:#0088B5; }*/
#nav a { float:left; /*padding:5px 12px 6px 8px;*/ /*padding: 5px 0 6px 0px;*/ padding-left: 5px; /*color:#a7c6dd;*/ color: #fff; font-weight:bold; }

/*#nav li.over a,
#nav a:hover { color:#d96708; }*/

/* Afegit */

#nav li.active a {
	color:#0088B5;
	
	background-image: url(../images/nav_over_left.gif);
	background-position: 0% -60%;
	background-repeat: no-repeat;
}

#nav li.active span {
	background-image: url(../images/nav_over_right.gif);
	background-position: 100% -60%;
	background-repeat: no-repeat;
}

#nav li.over a, #nav a:hover {
	color: #0088B5;
	
	background-image: url(../images/nav_over_left.gif);
	background-position: 0% -60%;
	background-repeat: no-repeat;
}

#nav li.over a span, #nav a:hover span {
	background-image: url(../images/nav_over_right.gif);
	background-position: 100% -60%;
	background-repeat: no-repeat;
}

/* Fi Afegit */

/************ 1ST LEVEL ************/
#nav ul li,
#nav ul li.active { float:none; margin:0; padding: 0px; background:#ecf3f6; /*padding-bottom:1px; background:#ecf3f6 url(../images/nav_divider.gif) repeat-x 0 100%;*/ }
/*#nav ul li.over { background:#d5e4eb url(../images/nav_divider.gif) repeat-x 0 100%; }*/
#nav ul li.last { background:#ecf3f6; padding-bottom:0; }

#nav ul a,
#nav ul a:hover { float:none; padding:0; /*background:none;*/ }
#nav ul li a { font-weight:normal !important; }

/************ 2ND LEVEL ************/
#nav ul { position:absolute; width:15em; /*top:25px;*/ top: 30px; left:-10000px; /*border:1px solid #899ba5;*/ }

/* 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; /* Afegit */ background-image: none !important; /* Fi Afegit */}
#nav ul span, #nav ul li.last li span { /*padding:3px 15px 4px 15px;*/ padding: 0px 15px; /* Afegit */ background-image: none !important; /* Fi Afegit */}

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