/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.stunicholls.com/menu/skeleton.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
#nav_main{
padding: 0 62px;
background: none;
top: -2em;
position: relative;
z-index: 8;
}

#nav {padding:0 0 0px 0; margin:0; list-style:none; font: 11pt verdana, sans-serif; border:none; background:none; position:relative; z-index:200;
font-weight: bold;} 
#nav ul {padding:0 0 10px 0; margin:0; list-style:none; font: 10pt verdana, sans-serif; border:none; background: none; position:relative; z-index:200;
font-weight: bold;
}
#nav {height:20px; padding:0;}

#nav li {float:left;
width: 126px;
margin: 0 1px;
}

#nav li ul {
width: auto;
}
#nav li li {float:none; 
background:none;
}
/* a hack for IE5.x and IE6 */
* html #nav li li {float:left;}

#nav li a {display:block; float:left; color:#fff; margin:0 25px 0 10px; height:30px; line-height:30px; text-decoration:none; white-space: nowrap;}
#nav li li a {height:30px; line-height:30px; float:none;}

#nav li:hover {position:relative; z-index:300;}
#nav li:hover ul {left:0; top:27px;}
/* another hack for IE5.5 and IE6 */
* html #nav li:hover ul {left:10px;}

#nav ul {position:absolute; left:-9999px; top:-9999px;
width: 900px;
}

/* yet another hack for IE5.x and IE6 */
* html #nav ul {width:1px;}

/* it could have been this simple if all browsers understood */
/* show next level */
#nav li:hover li:hover > ul {left:-15px; margin-left:100%; top:-1px;}
/* keep further levels hidden */
#nav li:hover > ul ul {position:absolute; left:-9999px; top:-9999px; width:auto;
}
/* show path followed */
#nav li:hover > a {text-decoration:underline; color:#b75;}


/* but IE5.x and IE6 need this lot to style the flyouts and path followed */
/* show next level */
#nav li:hover li:hover ul,
#nav li:hover li:hover li:hover ul,
#nav li:hover li:hover li:hover li:hover ul,
#nav li:hover li:hover li:hover li:hover li:hover ul
{left:-15px; margin-left:100%; top:-1px;}

/* keep further levels hidden */
#nav li:hover ul ul,
#nav li:hover li:hover ul ul,
#nav li:hover li:hover li:hover ul ul,
#nav li:hover li:hover li:hover li:hover ul ul
{position:absolute; left:-9999px; top:-9999px;}

/* show path followed */
#nav li:hover a,
#nav li:hover li:hover a,
#nav li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover li:hover li:hover a
{text-decoration:none; color:#fff;}

#nav li:hover a{
background: none;
}
#nav li:hover li:hover a, #nav li:hover li:hover li:hover a{
color: #fff;
}

/* hide futher possible paths */
#nav li:hover li a,
#nav li:hover li:hover li a,
#nav li:hover li:hover li:hover li a,
#nav li:hover li:hover li:hover li:hover li a,
#nav li:hover li:hover li:hover li:hover li:hover li a
{text-decoration:none; color:#fff;}


#nav li#Mater li {
background: #6f6f6f;
}
#nav li#Mater li:hover{
background: #373737;
}
#nav li#Mater li:hover a{
color: #6f6f6f;
}

#nav li#Serveis li {
background: #0767d7;
}
#nav li#Serveis li:hover{
background: #07376f;
}
#nav li#Serveis li:hover a{
color: #0767d7;
}

#nav li#Instal·lacions li{
background: #248907;
width: 140px;
}
#nav li#Instal·lacions li:hover{
background: #174707;
}
#nav li#Instal·lacions li:hover a{
color: #248907;
}

#nav li#Departaments li{
background: #d70707;
}
#nav li#Departaments li:hover{
background: #6f0707;
}
#nav li#Departaments li:hover a{
color: #d70707;
}

#nav li#Recursos li{
background: #d7179f;
width: 200px;
}
#nav li#Recursos li:hover{
background: #6f0f4f;
}
#nav li#Recursos li:hover a{
color: #d7179f;
}

#nav li#Noticies li{
background: #e3501e;
}
#nav li#Noticies li:hover{
background: #9e3715;
}
#nav li#Noticies li:hover a{
color: #e3501e;
}

#nav li#Contacte li{
background: ;
}
