/* ================================================================ 
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 {
	background: #cccccc url(../img/template/menu_bg.gif) repeat-x;
	height: 26px;
}
/* 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:13px;
text-decoration:none; 
color:#000; 
height:21px;
padding-top: 5px; 
/*background:#bbb; */
/*padding-left:10px; */
text-align: center;
line-height:16px;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .main_menu a, * html .main_menu a:visited {
width:240px;
w\idth:150px;

}

/* style the second level background */
.main_menu ul ul a.drop, .main_menu ul ul a.drop:visited {
background-color: #cccccc;
color: #000;
border-bottom: 1px solid #999999;
padding-top: 6px;
height: 17px;
}
/* style the second level hover */
.main_menu ul ul a.drop:hover{
color: #fff;
background-color:#616161;
border-bottom: 1px solid #999999;
text-decoration:none;
}
.main_menu ul ul :hover > a.drop {
background-color:#616161;
border-bottom: 1px solid #999999;
color: #fff;
}
/* style the third level background */
.main_menu ul ul ul a, .main_menu ul ul ul a:visited {
color: #000;
background:#97BAFF;
height: 18px;
padding-top: 7px;
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:26px;
left:0px; 
width:240px;
}
/* another hack for IE5.5 */
* html .main_menu ul ul {
top:26px;
t\op:26px;
}

/* 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:#616161; 
color:#fff; 
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:#fff; 
background-color: #616161;
text-decoration:none;
}
.main_menu :hover > a, .main_menu ul ul :hover > a {
color:#fefefe;
background-repeat: no-repeat;
background-color: #414141;
}

/* 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;
}
