/* ================================================================ 
The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/simple_vertical.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
=================================================================== */

/* Get rid of the margin, padding and bullets in the unordered lists */
#topnav, #topnav ul {padding:0; margin:0; list-style-type: none;}

/* Set up the link size, color and borders */
#topnav a, #topnav a:visited {
  display: block;
  width: 80px;
  font-size: 10pt;
  color: #fff;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 6px 8px 6px 8px;
  }

/* Set up the sub level borders */
#topnav li ul li a, #topnav li ul li a:visited {
  border-top: 1px solid #048;
  border-bottom: 1px solid #024;
  width: 130px;
  text-align: left;
  font-weight: normal;
  font-size: 9pt;
  padding: 4px 4px 4px 6px;
  }
  
#topnav li a.enclose, #topnav li a.enclose:visited {border-width:1px}

/* Set up the list items */
#topnav li {
  float: left;
  background: #036;
  }

/* For Non-IE browsers and IE7 */
#topnav li:hover {position:relative}

/* Make the hovered list color persist */
#topnav li:hover > a {
   color: #000000;
  background: #ddd;
  }
  
/* Make the hovered list color persist */
#topnav li ul li:hover > a {
  background: #ddd;
  color: #333;
  }
  
/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
#topnav li ul {display:none}
/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
#topnav li:hover > ul {display:block; position:absolute; top:-11px; left:111px; padding:10px 30px 30px 30px; background:transparent url(/images/transparent.gif); width:120px; border-width:0}
/* Position the first sub level beneath the top level links */
#topnav > li:hover > ul {left:-30px; top:16px}

/* get rid of the table */
#topnav table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em}

/* For IE5.5 and IE6 give the hovered links a position relative and a change of background and foreground color. This is needed to trigger IE to show the sub levels */
* html #topnav li a:hover {position:relative; background:#ddd; color:#333}

/* For accessibility of the top level menu when tabbing */
#topnav li a:active, #topnav li a:focus {background:#ddd; color:#333}

/* Set up the pointers for the sub level indication */
#topnav li.fly {background:#036 url(/images/topnav-fly.gif) no-repeat right center}

/* This lot is for IE5.5 and IE6 ONLY and is necessary to make the sublevels appear */

/* change the drop down levels from display:none; to visibility:hidden; */
* html #topnav li ul {visibility:hidden; display:block; position:absolute; top:-11px; left:80px; padding:10px 30px 30px 30px; background:transparent url(/images/transparent.gif); border-width:0}

/* keep the third level+ hidden when you hover on first level link */
#topnav li a:hover ul ul{
visibility:hidden;
}

/* make the second level visible when hover on first level link and position it */
#topnav li a:hover ul {
visibility:visible; left:-29px; top:15px; lef\t:-30px; to\p:16px;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
#topnav li a:hover ul a:hover ul{ 
visibility:visible; top:-11px; left:111px;
}
