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

.menulist, .menulist  ul{
 margin: 0;
 padding: 0;
 list-style: none;
 z-index:1000;
}
.menulist, .menulist  ul{
	float:left;
	text-align:left;
}
.menulist{
	padding-right: 7px;
	padding-left: 7px;
	padding-top: 2px;
	*padding-top: 4px;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.menulist ul {
 visibility: hidden;
 position: absolute;
 top:31px;
 left: 0px;
 width: 150px;
}
.menulist ul.end{
 width: 100px;
}

/* Second and third etc. level submenus - position across from parent instead */
.menulist ul ul{
 top: 0px;
 left: 150px;
}
.menulist li ul {
 background-color:#fff;
}
.menulist li ul ul {
 background-color:#38c4ff;
}
/*.leftmenu li ul ul {
 background-color:#38c4ff;
}*/

/*
 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;
	margin-right: -1px;
}

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

}
.menulist ul>li:last-child {
}

/* Links inside the menu */
.menulist a:link,
.menulist a:visited {
	float:left;
	display:block;
	text-decoration:none;
	/*width:139px; */
	height:30px;
	border:1px solid #fff;
	border-width:0px 1px 1px 1px;
	padding-left:6px;
	line-height:29px;
	padding-right: 6px;
}
.menulist a.right,
.menulist a.right:visited {
 background: none;
}

.menulist li ul li{
 line-height:18px;
 }

.menulist li li a:link,
.menulist li li a:visited {
	color:#000;
	height:auto;
	line-height:1em;
	padding:5px 10px;
	width:129px;
	background-color: #ccc;/* yet another hack for IE5.5 */

}


/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.menulist a:hover/*, .menulist a.highlighted:hover, .menulist a:focus */{	
	color:#fff;
	background-color: #FF0000;
	text-decoration:none;
}

.menulist li li a:hover/*, .menulist li li a.highlighted:hover, .menulist li li a:focus */{
	/*background-color:#1180D1;*/
	color:#fff;
	background-color: #999;
	text-decoration:none;
}
.menulist li li ul a:hover/*, .menulist li li a.highlighted:hover, .menulist li li a:focus */{
	background-color:#f1c683;
	color:#646464;
}

/*.menulist  a.highlighted {
 color: #FF9C00;
 background-color: #FFffff;
}
.menulist li li a.highlighted {
 color: #646464;
 background-color: #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{
 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 */


