#MAINMENU {
	position:relative;
	z-index:100;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

/* remove all the bullets, borders and padding from the default list styling */
#MAINMENU ul {
padding:0;
margin:0;
list-style-type:none;
}

/*#MAINMENU ul ul {
width:150px;
}*/

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
#MAINMENU li {
float:left;
position:relative;
}

/* style the links for the top level */
#MAINMENU a, #MAINMENU a:visited {
	display:block;
	color:#D81F27;
	height:20px;
	border:1px solid #fff;
	border-width:1px 0 0 0;
	background:#FFFFFF url(../3_pictures/layout/separator_mainmenu.png) no-repeat right center;
	padding:0 10px;
	line-height:19px;
	text-decoration: none;
}

/* style the links for the top level */
#MAINMENU .last {
	background:#FFFFFF url(none);
}

#MAINMENU a.nowrap, #MAINMENU a:visited.nowrap {
white-space:nowrap;
}

#MAINMENU li.nowrap a{
white-space:nowrap;
}


#MAINMENU li.nowrap li a{
white-space:normal;
}


/* a hack so that IE5.5 faulty box model is corrected */
* html #MAINMENU ul a, * html #MAINMENU ul a:visited {
w\idth: 1px;
}

/* style the second level background 
#MAINMENU ul ul a.drop, #MAINMENU ul ul a.drop:visited {
background:#d4d8bd url(drop.gif) bottom right no-repeat;
}*/

/* style the second level hover 
#MAINMENU ul ul a.drop:hover{
background:#c9ba65 url(drop.gif) bottom right no-repeat;
}*/

/*#MAINMENU ul ul :hover > a.drop {
background:#c9ba65 url(drop.gif) bottom right no-repeat;
}*/


/* style the third level background 
#MAINMENU ul ul ul a, #MAINMENU ul ul ul a:visited {
background:#e2dfa8;
}*/

/* style the third level hover 
#MAINMENU ul ul ul a:hover {
background:#b2ab9b;
}*/


/* hide the sub levels and give them a positon absolute so that they take up no room */
#MAINMENU ul ul {
visibility:hidden;
position:absolute;
height:0;
top:21px;
/* left:0; */
width:150px;
}

/* another hack for IE5.5 */
* html #MAINMENU ul ul {
top:21px;
t\op:21px;
}

/* position the third level flyout menu 
#MAINMENU ul ul ul{
left:150px; 
top:0;
width:150px;
}*/

/* position the third level flyout menu for a left flyout 
#MAINMENU ul ul ul.left {
left:-150px;
}*/

/* style the table so that it takes no ppart in the layout - required for IE to work */
#MAINMENU table {
position:absolute; 
top:0; 
left:0;
}

/* style the second level links */
#MAINMENU ul ul a, #MAINMENU ul ul a:visited {
background:#D81F27; 
color:#FFFFFF; 
height:auto; 
line-height:1em; 
padding:5px 10px; 
width:129px
}

/* yet another hack for IE5.5 */
* html #MAINMENU ul ul a{
width:150px;
w\idth:129px;
}


/* style the top level hover */
#MAINMENU a:hover, #MAINMENU a:hover.nowrap {
color:#000; 
float:none;
}

#MAINMENU ul ul a:hover{
color:#fff; 
background:#AD161B;
}



#MAINMENU :hover > a {
color:#004E1D;
}

#MAINMENU ul ul :hover > a {
color:#fff;
background:#AD161B;
}



/* make the second level visible when hover on first level list OR link */
#MAINMENU ul li:hover ul,
#MAINMENU ul a:hover ul{
visibility:visible; 
z-index: 100;
}

/* keep the third level hidden when you hover on first level list OR link */
#MAINMENU ul :hover ul ul{
visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
#MAINMENU ul :hover ul :hover ul{ 
visibility:visible;
z-index: 100;
}
