/*

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 */
#menu {
	border: 0;
	margin: 0;
	padding: 0;
	height: 30px;
	
	float:left;
	width:100%;
	background:#FBFBFB url(/img/layout/header-bg.gif) repeat-x 0 -1px;
	border-top:2px solid #673566;
	border-bottom:2px solid #673566;
	margin: 1px 0;
	overflow:hidden;
	position:relative;
	
   
}

#menu ul {
	clear:left;
   float:left;
   list-style:none;
   margin:0;
   padding:0;
   position:relative;
   left:50%;
   text-align:center;
   
}


#menu ul li {
   display:block;
   float:left;
   list-style:none;
   margin:0;
   padding:0;
   position:relative;
   right:50%;
}
#menu ul li a {
   display:block;
   margin:0 0 0 1px;
/*   padding:3px 10px;*/
   color:#333;
   text-decoration:none;

}



/*#menu { margin-left: 23px;}
 All <ul> tags in the menu including the first level */
#menu ul, 
#menu ul  ul {
	margin:  0;
	padding: 0;
	list-style: none;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
#menu ul ul {
	visibility: hidden;
	position: absolute;
	top: 2.1em; /* I'm using ems rather than px to allow people to zoom their font */
	left: 0px;
	width: 140px;
}

/* Second and third etc. level submenus - position across from parent instead */
#menu ul ul ul {
	top: 0px;
	left: 140px;
	width: 200px;
}


/*
 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.
*/
#menu ul li {
	float: left;
	position: relative;

	/*border: 1px solid #330;*/
	margin-right: -1px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
#menu ul ul li {
	float: none;
	margin-right: 0;
	background: #DDD;
	margin-bottom: -1px;
}

#menu ul ul>li:last-child {
 	margin-bottom: 1px;
}

/* Links inside the menu */
#menu ul a {
 	margin: 0px 1px 0px;
	display: block;
	padding: 0 15px;
	height: 30px;
	font: 13px/2.3em Arial, Helvetica, sans-serif; 
	color: #221E1F;
	text-decoration: none;
}

#menu ul a:visited{ color: #221E1F;text-decoration: none;}
#menu ul a:active{ color: #221E1F;text-decoration: none;}
#menu ul ul li a{	
	height: 17px;
	font: 10px/1.5em Arial, Helvetica, sans-serif; 
	margin: 0;
	color: #221E1F;
}

#menu ul li.current a{
 	color: #FFF;
	background: #673566 url(/img/navigation/hover.png) repeat-x;
}

#menu ul li.current ul li a{  	color: #221E1F;}


#menu ul li.current ul li a:hover,
#menu ul li ul li.current a:hover,
#menu ul li ul li.current a{
 	color: #FFF;
	background: #673566 url(/img/navigation/hover.png) repeat-x;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
#menu ul a:hover, 
#menu ul  a.highlighted,
#menu ul a.highlighted:hover, 
#menu ul a:focus {
	color: #673566;

}
/*
 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:
    #menu ul a#xyz {
      background-image: url(out.gif);
    }
    #menu ul a#xyz:hover, #menu ul a.highlighted#xyz, #menu ul a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
#menu ul a .subind {
 display: none;
}
#menu ul ul a .subind {
 display:  block;
 float: right;
 margin-top: 4px;
}

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


/* This semi-commented section exists to fix bugs in IE/Windows (the 'Holly Hack'). \*/
* html #menu ul  ul li {
 float: left;
 height: 1%;
}
* html #menu ul  ul a {
 height: 1%;
}
/* End Hack */