/* ================================================================ 
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_drop.html
Copyright (c) 2005-2008 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
 
/* hack to correct IE5.5 faulty box model */

/* remove all the bullets, borders and padding from the default list styling */
#main_navigation ul {
  padding: 0px;
  margin: 0px;
  list-style-type: none;
  list-style-image: none;
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
  #main_navigation ul li {
    float: left;
    position: relative;
    padding: 0px;
    margin: 0px;
    list-style-image: none;
  }
/* style the links for the top level */
    #main_navigation a {
      display: inline-block;
      padding: 0px;
      color: #FFF;
      border-right: 1px solid #FFF;
      text-decoration: none;
      background: #6494C7;
      line-height: 30px;
      padding: 0 10px 0 9px;
    }
    #main_navigation a#id_11 {
      border: none;
      padding: 0 19px 0 19px;
    }
      #main_navigation a:hover {
        color: #FFF;
        background: #B9CCFF;
      }
/* a hack so that IE5.5 faulty box model is corrected */
/** html #main_navigation a, * html #main_navigation a:visited {width:149px; w\idth:138px;}*/
 
/* style the second level background */
#main_navigation ul li ul {
  visibility: hidden;
  position: absolute;
  top: 30px;
  left: 0px;
  width: 189px;
  padding: 10px 0;
  border: 1px solid #FFF;
  margin-left: -1px;
  background: #6494C7;
  text-transform: none;
  list-style-position: inside;
}
  #main_navigation ul li ul.last {
    position: absolute;
    right: 20px;
    float: right;
  }
  #main_navigation ul li ul li {
    display: block;
    float: left;
    padding: 0px;
    margin: 0px;
    line-height: normal;
    font-weight: normal;
    background: url(../images/dropdown_point.gif) 15px 11px no-repeat;
  }
  #main_navigation ul li ul li ul {
    margin-left: -11px;
    margin-top: -10px;
    width: 189px;
  }
  /*#main_navigation ul li ul li ul li {
    background: red;
    margin-left: -10px;
  }*/
    #main_navigation ul li ul li a {
      display: block;
      border: none;
      line-height: normal;
      font-size: 90%;
      width: 165px;
      padding: 4px 2px 4px 22px;
      color: #000;
      background: none;
    }
      #main_navigation ul li ul li a:hover {
        color: #FFF; 
        background: #B9CCFF;
      }
/* style the second level hover */
/*#main_navigation ul ul a.drop:hover{background:#c8bd94 url(http://www.cssplay.co.uk/menus/breadcrumbs/blue-arrow.gif) no-repeat 130px center;}
#main_navigation ul ul :hover > a.drop {background:#c8bd94 url(http://www.cssplay.co.uk/menus/breadcrumbs/blue-arrow.gif) no-repeat 130px center;}
/* style the third level background */
/*#main_navigation ul ul ul a, #main_navigation ul ul ul a:visited {background:#d44b07;}*/
/* style the third level hover */
/*#main_navigation ul ul ul a:hover {background:#c8bd94;}*/

/* hide the sub levels and give them a positon absolute so that they take up no room */

/* another hack for IE5.5 */
* html #main_navigation ul ul {top:30px;t\op:31px;}
 
/* position the third level flyout menu */
#main_navigation ul ul ul {left: 200px; top:-1px; width:200px;}
 
/* position the third level flyout menu for a left flyout */
#main_navigation ul ul ul.left {left: 200px;}
 
/* style the table so that it takes no ppart in the layout - required for IE to work */
#main_navigation table {position:absolute; top:0; left:0; border-collapse:collapse;}
 
/* style the second level links */
/*#main_navigation ul ul a, #main_navigation ul ul a:visited {background:#d44b07; color:#fff; height:auto; line-height:1em; padding:5px 10px; width:128px;border-width:0 1px 1px 1px;}
/* yet another hack for IE5.5 */
/** html #main_navigation ul ul a, * html #main_navigation ul ul a:visited {width:150px;w\idth:128px;}*/
 
/* style the top level hover */

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

li.headlink ul { display: none; z-index: 2; }
li.headlink:hover ul { display: block; }

  /*#main_navigation ul li ul li ul li ul { visibility: hidden !important;}*/
