/*



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 :).



*/







/* HORIZONTAL FREESTYLE MENU LAYOUT */





/* All <ul> tags in the menu including the first level */

.menulist, .menulist  ul {

	margin: 0;

	padding: 0;

	list-style: none;

}

.menulist{

	position:absolute;

	top:0px;

	left:0;

	height:33px;

	z-index:1000000;

	width:673px;

	background:url(images/bg_main_nav_li.png) right top no-repeat;

}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */

.menulist ul {

	display:none;

	position: absolute;

	top:28px; /* I'm using ems and px to allow people to zoom their font */

	left:0px;

	background:#404040 url(images/bg_main_nav_li_a2.png) 74px top no-repeat;

	width:309px;

	padding:9px 1px 1px 1px;

}

.menulist ul ul{

background:#404040;

	left:309px;

	width:309px;

	padding:0 1px 1px 1px;

	top:-1000px;

}



.menulist .page-item-14 ul{width:154px;}

/* Second and third etc. level submenus - position across from parent instead */

.menulist .page-item-8 ul { display:none; position:absolute; left:-9999px; top:-9999px;}

/*

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;

	height:33px;

	line-height:28px;

	background:url(images/bg_main_nav_li.png) left top no-repeat;

	font-size:16px;

	font-weight:bold;

	padding-left:1px;

	text-align:center;

}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */

.menulist ul li {

	float:none;

	padding:0px;

	padding-top:1px;

	font-size:12px;

	height:auto;

	line-height:normal;

	background:none;

	text-align:left;

}

.menulist li ul .last{

	border:0;

}

.menulist ul>li:last-child {

	margin-bottom: 1px; /* Mozilla fix */

}



/* Links inside the menu */

.menulist a {

	display:block;

	float:left;

	width:154px;

	color:#424242;

	height:33px;

	background: url(images/bg_main_nav_li_a1.png) bottom center no-repeat;

}

.menulist a:hover{

	color:#013b62;

	background:#FFF url(images/bg_main_nav_li_a2.png) bottom center no-repeat;

}



.menulist li li a{

	padding:3px 0px 3px 17px;

	background:#e0e0e0 url(images/bg_main_nav_li_a3.png) 9px 9px no-repeat;

	color:#424242;

	height:auto;

	width:auto;

	float:none;

} 

.menulist li li a:hover{

	background:#fff url(images/bg_main_nav_li_a3.png) 9px 9px no-repeat;

	color:#013b62;

} 

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

.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {

	color:#013b62;

	text-decoration:none;

	background:#FFF url(images/bg_main_nav_li_a2.png) bottom center no-repeat;

}

.menulist a.highlighted {

	color:#013b62;

	text-decoration:none;

	background:#FFF url(images/bg_main_nav_li_a2.png) bottom center no-repeat;

}





.menulist li li a:hover, .menulist li li a.highlighted:hover, .menulist li li a:focus {

	background:#fff url(images/bg_main_nav_li_a3.png) 9px 9px no-repeat;

	color:#013b62;

}

.menulist li li a.highlighted {

	background:#fff url(images/bg_main_nav_li_a3.png) 9px 9px no-repeat;

	color:#013b62;

}







.menulist .page-item-4 a{

	text-indent:-999999px;

	outline-style:none;

	width:51px;

	height:28px;

	background:url(images/bg_nav_home.png) center 8px no-repeat;

}

.menulist .page-item-3 a:hover{

	background:#FFF url(images/bg_nav_home.png) center 8px no-repeat;

}

.menulist li.page-item-8 a{ background:none; height:28px;}

.menulist li.page-item-8 a:hover{ background:#FFF;}

/*

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: block;

	float: right;

}





/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */

.menulist a {

	float: left;

}

.menulist ul a {

	float: none;

}

/* \*/

.menulist a {

}

/* */





/*

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%;

}

/* End Hacks */



