/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/final_drop2.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
/* style the outer div to give it width */
.main_menu {

}
/* remove all the bullets, borders and padding from the default list styling */
.main_menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.main_menu ul ul {
width:240px;
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.main_menu li {
float:left;
/*width:150px;*/

position:relative;

}
/* style the links for the top level */
.main_menu a, .main_menu a:visited {
padding-left: 27px;
padding-right: 27px;
display:block;
font-size:12px;
text-decoration:none; 
color:#000; 

height:21px; 
background:#e3ae37; 
/*padding-left:10px; */
text-align: center;
line-height:21px;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .main_menu a, * html .main_menu a:visited {
width:240px;
w\idth:209px;

}

/* style the second level background */
.main_menu ul ul a.drop, .main_menu ul ul a.drop:visited {
background-color: #8d6a1b;
color: #FFE098;
border-bottom: 1px solid #e3ae37;
padding-top: 6px;
height: 15px;
}
/* style the second level hover */
.main_menu ul ul a.drop:hover{
color: #FFE098;
background:#A67D20;
border-bottom: 1px solid #e3ae37;
text-decoration:none;
}
.main_menu ul ul :hover > a.drop {
background:#A67D20;
border-bottom: 1px solid #e3ae37;
color: #FFE098;
}
/* style the third level background */
.main_menu ul ul ul a, .main_menu ul ul ul a:visited {
color: #000;
background:#97BAFF;
height: 17px;
padding-top: 8px;
border-bottom: 1px solid #97BAFF;
}
/* style the third level hover */
.main_menu ul ul ul a:hover {
color: #000;
background:#83ADFF;
border-bottom: 1px solid #83ADFF;
}
.main_menu ul ul ul :hover > a {
color: #000;
background:#83ADFF;
border-bottom: 1px solid #83ADFF;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.main_menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:21px;
left:3px; 
width:240px;
}
/* another hack for IE5.5 */
* html .main_menu ul ul {
top:21px;
t\op:21px;
}

/* position the third level flyout menu */
.main_menu ul ul ul{
left:189px;
top:0;
width:240px;
}
/* position the third level flyout menu for a left flyout */
.main_menu ul ul ul.left {
left:-150px;
}

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

/* style the second level links */
.main_menu ul ul a, .main_menu ul ul a:visited {
background:#0f0; 
color:#000; 
height:auto; 
line-height:1em; 
padding:5px 10px; 
width:169px
/* yet another hack for IE5.5 */
}
* html .main_menu ul ul a{
width:240px;
w\idth:169px;
}


/* style the top level hover */
.main_menu a:hover, .main_menu ul ul a:hover{
color:#FFE098; 
background-color: #000000;
text-decoration:none;
background-image:url(../img/template/menu_item.gif);
}
.main_menu :hover > a, .main_menu ul ul :hover > a {
color:#FFE098;
background-image:url(../img/template/menu_item.gif);
background-repeat: no-repeat;
background-color: #e3ae37;
}

/* make the second level visible when hover on first level list OR link */
.main_menu ul li:hover ul,
.main_menu ul a:hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.main_menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.main_menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.main_menu ul :hover ul :hover ul{ 
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.main_menu ul :hover ul :hover ul :hover ul { 
visibility:visible;
}
