/*

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 changes to show/hide menus.

If you want to extend this layout, one good resource for UL/LI formatting is:
    http://www.alistapart.com/articles/taminglists/
Alternatively, you can use any other CSS dropdown layout instead. More here:
    http://www.alvit.de/css-showcase/
Consult your favourite CSS reference for customising fonts/borders/etc.

Otherwise, you can just change the #RGB border/background colours where
suitable to customise for your site -- easy :).

*/



/**************************************************************\
* LEVEL 1                                                      *
\**************************************************************/


/* HORIZONTAL FREESTYLE MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.menulist,
.menulist  ul
{
 margin: 0;
 padding: 0;
 list-style: none;
 font-size: 8pt;
}

/*
 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;
 display: block;
 position: relative;
 background: #475355;
 width: 155px;
 height: 38px;
 margin-right: 5px;
 padding:0px;
}

.menulist li.last
{
	margin-right: 0px;
}

/* Links inside the menu */
.menulist a,
.menulist a:visited
{
 display: block;
 padding: 0px;
 margin: 0px;
 color: #fff;
 text-decoration: none;
 font-weight:bold;
}

.menulist li a
{
 	height: 38px;
}

.menulist li a span
{
display:block;
padding: 8px 0px 0px 14px;
}

.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus, .menulist a.highlighted, .menulist li.current a {
 color: #475355;
 background-color: #80c31c;
}

/**************************************************************\
* LEVEL 2 UND 3                                                *
\**************************************************************/

.menulist ul
{
 display: none;
 position: absolute;
 top: 36px;
 left: 0px;
 width: 155px;
}

.menulist ul li a span
{
	display: block;
}

/**************************************************************\
* LEVEL 2                                                      *
\**************************************************************/

.menulist li.current ul.level2
{
	display:block;
}

.menulist ul.level2
{
	top: 37px;
	font-size: 7.5pt;
}

.menulist ul.level2 li
{
  margin: 0px;
 padding: 0px;
 margin-bottom: -1px;
 margin-top: 1px;

 padding: 0;
 height: 20px;
	width: 80px;
	background: none;
}

.menulist ul.level2 li.last
{
	width: 75px;
}

.menulist ul.level2 a, .menulist ul.level2 a:hover, .menulist ul.level2 a.highlighted:hover, .menulist ul.level2 a:focus, .menulist ul.level2 a.highlighted, .menulist ul.level2 li.current a {
 color: #fff;
 background: none;
}

.menulist ul.level2 a span
{
 background: #475355;
 border-color:#FFF;
 border-style:solid;
 border-width: 0px;
 border-top-width: 5px;
 border-right-width: 5px;
	padding: 4px 0px 6px 14px;
}

.menulist ul.level2 li.last
{
	text-align:right;
}

.menulist ul.level2 li.last a span
{
	padding-left: 0px;
	padding-right: 14px;
}

.menulist ul.level2 li.last a span
{
	border-right-width: 0px;
}

.menulist ul.level2 a:hover span, .menulist ul.level2 a.highlighted:hover span, .menulist ul.level2 a:focus span, .menulist ul.level2 a.highlighted span, .menulist ul.level2 li.current a span {
 color: #475355;
 background-color: #80c31c;
}

/**************************************************************\
* LEVEL 3                                                      *
\**************************************************************/

.menulist ul.level3
{
	font-size: 8pt;
}

.menulist li.current ul.level3
{
	display: block;
}

.menulist li.current ul.level2 ul.level3
{
	display: none;
}

.menulist ul.level2 li.current ul.level3
{
	/*display:block;*/
}

.menulist ul.level2 li.expanded ul.level3
{
	display:block;
}

.menulist ul.level2 ul.level3
{
	top:26px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.menulist ul.level3 li
{
 float: none;
 margin: 0px;
 padding: 0px;
 margin-bottom: -1px;
 margin-top: 1px;
 background:none;
 color:#475355;
 border-bottom: solid 1px #475355;
 font-size:8pt;
 padding: 0;
 /*height: 18px;*/
 height: auto;
 background-color:#FFF;
 width: 155px;
 text-align: left;
}

.menulist ul.level3 li.last
{
	text-align: left;
}

.menulist ul.level2 li.last ul.level3 li
{
	text-align:right;
}

.menulist ul.level3 li.last a span
{
	padding-left: 14px;
	padding-right: 0px;
}

.menulist ul.level2 li.last ul.level3 li a span
{
	padding-left: 0px;
	padding-right: 14px;
}

.menulist ul.level3 li.first
{
	height: 22px;
}

.menulist ul.level3 li.last
{
	width: 155px;
}

.menulist ul.level2 li.last ul.level3
{
	left: -80px;
}

.menulist ul.level3>li:last-child
{
	margin-bottom: 1px; /* Mozilla fix */
}

.menulist ul.level3 li a,
.menulist ul.level3 li a:visited
{
	color: #475355;
	height: auto;
}

.menulist ul.level3 li.first a
{
	height: 22px;
}

.menulist ul.level3 a span
{
	border: none;
	padding: 3px 0px 1px 14px;
}

.menulist ul.level3 li.first a span
{
	padding: 7px 0px 0px 14px;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */


.menulist ul.level3 a
{
 background:none;
}

.menulist ul.level3 a span,
.menulist li.current ul.level3 a span
{
	background-color:#fff;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulist ul.level3 li a:hover, .menulist ul.level3 li a.highlighted:hover, .menulist ul.level3 li a:focus, .menulist ul.level3 li a.highlighted, .menulist ul.level3 li.current a {
 color: #80c31c;
 background: none;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulist ul.level3 li a:hover span, .menulist ul.level3 li a.highlighted:hover span, .menulist ul.level3 li a:focus span, .menulist ul.level3 li a.highlighted span, .menulist ul.level3 li.current a span {
 color: #80c31c;
 background-color: #FFF;
}

































/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.menulist a {
 float: left;
}
.menulist ul a {
 float: none;
}
/* \*/
.menulist a {
 float: none;
}
/* */


/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .menulist ul li {
 float: left;
 width: 100%;
}

* html .menulist ul li {
 float: left;
 height: 1%;
}
* html .menulist ul a {
 height: 1%;
}
* html .menulist li.current a span
{
 color: #475355;
}
* html .menulist ul li a:hover span,
* html .menulist ul li a.highlighted:hover span,
* html .menulist ul li a:focus span,
* html .menulist ul li a.highlighted span,
* html .menulist ul li.current a span
{
 color: #80c31c;
}
/* End Hacks */
