/*

Here's a demo stylesheet used to format a menu and its content.
Feel free to alter the menu layout however you want. All you have to do is ensure the script
has the correct CSS property name (like 'visibility' or 'display') that you want it to change.

One good resource for UL/LI formatting: http://www.alistapart.com/articles/taminglists/
Consult your favourite CSS reference for editing fonts/borders/etc.

Otherwise, even if you're not very experienced at CSS, you can just go through and change
the #RGB border/background colours where suitable to customise for your site!

*/



/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.menulist {
 margin: 0;
 padding: 0;
 list-style: none;
width: 78%;	
 display: block;
 margin: 0px 0px 0px 0px;
 float: left;
 
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.menulist ul {
 margin: 0;
 padding: 0;
 list-style: none;
 float: left;
 visibility: hidden;
 position: absolute; 
 width: 16%;
 display: inline;
 margin: 0px 0px 0px 0px;
}

.menulist ul#subm1 { left: 0px; }
.menulist ul#subm2 { left: 0px; }
.menulist ul#subm3 { left: 0px; }
.menulist ul#subm4 { left: 0px; }
.menulist ul#subm5 { left: 0px; }
.menulist ul#subm6 { left: 0px; }

/* Second and third etc. level submenus - position across from parent instead */


/*
 All menu items (<li> tags). 'float: left' lines them up horizontally, and they are
 positioned relatively to correctly offset submenus. Also, they have overlapping borders.
*/
.menulist li {
	float: left;
	position: relative;
	border: 0px solid #330;		
	display: inline;
	text-align:center;
	 width: 16%;	
	background-image: url(/imagenes/ima_fondoli.gif);
	background-repeat: repeat-x;
	margin: 0px -1px -5px 0px;
}


 
/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.menulist ul li {
 float: left;
 margin-right: 0; 
 padding-bottom: 6px;
 border: 0px solid #330;
 display: inline;  
 background-image: url(/imagenes/ima_fondoulli.gif);
 background-repeat: repeat-x;
}

.menulist ul li.ultimoli{
/*background-image: url(/imagenes/ima_fondoulli_last.gif);
	background-position: top right;
	background-repeat: no-repeat;*/
	background-image: url(/imagenes/ima_fondoulli.gif);
 background-repeat: repeat-x;
 padding-bottom: 1px;
} 

/*
	Hay 600px a repartir
	2 -> 300px;
	3 -> 200px;
	4 -> 150px;
	5 -> 120px;
*/

.menulist ul#subm1 li{ width: 135px; } 
.menulist ul#subm2 li{ width: 135px; } 
.menulist ul#subm3 li{ width: 135px; } 
.menulist ul#subm4 li{ width: 135px; } 
.menulist ul#subm5 li{ width: 140px; } 
.menulist ul#subm6 li{ width: 135px; } 

/* Links inside the menu */
.menulist a {
 display: block;
 padding: 3px;
 color: #fff;
 text-decoration:  none;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulist a:hover {
  
 background-image: url(/imagenes/ima_fondoulli_hight.gif);
 background-repeat: repeat-x;
 text-decoration: none;
}

.menulist  a.highlighted, .menulist a.highlighted:hover, .menulist a:focus {
 color: #FFF;
 background-image: url(/imagenes/ima_fondoli_hight.gif);
 background-repeat: repeat-x;
}

.menulist ul li.ultimoli a:hover {
  
 /*background-image: url(/imagenes/ima_fondoulli_last_hight.gif); 
 background-position: top right;
 background-repeat: no-repeat;*/
 background-image: url(/imagenes/ima_fondoulli_hight.gif);
 background-repeat: repeat-x;
 text-decoration: none;
}



/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .menulist a#xyz {
      background-image: url(out.gif);
    }
    .menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.menulist a .subind {
 display:  none;
}
.menulist ul a .subind {
 display:  inline;
 float: right;
}

/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.menulist a {
 float: left;
}
.menulist ul a {
 float: none;
}
/* \*/
.menulist a {
 float: none;
}
/* */


/* This semi-commented section exists to fix bugs in IE/Windows (the 'Holly Hack'). \*/
* html .menulist  ul li {
 float: left;
 height: 1%;
}
* html .menulist  ul a {
 height: 1%;
}
/* End Hack */