/* ================================================================ 
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-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/* remove all the bullets, borders and padding from the default list styling */
ul#main {padding:0;margin:0;list-style-type:none;}
ul#main ul {width:160px; left: 0;}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {float:left;width:160px;position:relative;margin: 0; padding: 0;}
/* style the links for the top level */
.menu li {display:block;font-size:11px;text-decoration:none; color:#fff; width:158px; height:auto; border:1px solid #808080; border-width:0px 1px 0px 1px; background:#fff; padding-left:0px;}
/*
.menu ul a, .menu ul a:visited {display:block;font-size:11px;text-decoration:none; width:138px; border:1px solid #000; border-width:1px 0 1px 1px;  padding-left:0px;}
*/
/* a hack so that IE5.5 faulty box model is corrected */
* html ul#main a, * html ul#main a:visited {width:160px; w\idth:158px;}

/* style the second level background 
ul#main ul a.drop, ul#main ul a.drop:visited {background:#fff url(http://www.cssplay.co.uk/graphics/drop.gif) bottom right no-repeat;}
*/
/* style the second level hover */
ul#main ul a.drop:hover{background:#fff url(http://www.cssplay.co.uk/graphics/drop.gif) bottom right no-repeat;}
ul#main ul :hover > a.drop {background:#fff url(http://www.cssplay.co.uk/graphics/drop.gif) bottom right no-repeat;}
/* style the third level background */
ul#main ul ul a, ul#main ul ul a:visited {}
/* style the third level hover */
ul#main ul ul a:hover {}


/* hide the sub levels and give them a positon absolute so that they take up no room */
ul#main ul {visibility:hidden;position:absolute;height:0;top:31px;left:0; width:160px;border-top:0px solid #808080;}
ul#main ul li.first{
	border-top: 1px solid #808080;
}
ul#main ul li.last{

	border-bottom: 1px solid #808080;
}
ul#main li.menu ul li.last a{
	border: 0;
}
/* another hack for IE5.5 */
* html ul#main ul {top:37px;t\op:38px;}

/* position the third level flyout menu */
ul#main ul ul{left:160px; top:-1px; width:160px;}

/* position the third level flyout menu for a left flyout */
ul#main ul ul.left {left:-160px;}

/* style the table so that it takes no ppart in the layout - required for IE to work */
li.menu{
	position: relative;
}
li.menu ul{
	margin: 8px 0 0 0;
	padding: 0;
}
* html li.menu ul{
	margin: 0 0 0 40px;
	padding: 0;
}
/* it is absolute in relation to li.menu */
ul#main table {position:absolute; top:0px; left:-40px; border-collapse:collapse;}
* html li.menu table td{
	text-indent: 0;
}
/* style the second level links */
ul#main ul a, ul#main ul a:visited { height:auto; padding:0; width:160px;border-width:0 1px 0px 1px;}
ul#main li.menu ul a{
display: block;
	width: 75%;
	margin: 0 auto;
	padding: 10px 0;
border-bottom: solid 1px #808080;
text-decoration: none;
}
/* yet another hack for IE5.5 
* html ul#main ul a, * html ul#main ul a:visited {width:150px;w\idth:128px;}
*/
/* style the top level hover */
ul#main a:hover, ul#main ul a:hover{color:#000; background:#fff; text-decoration: underline;}
ul#main :hover > a, ul#main ul :hover > a {text-decoration: underline;}

/* make the second level visible when hover on first level list OR link */
ul#main li:hover ul,
ul#main a:hover ul{visibility:visible; }
/* keep the third level hidden when you hover on first level list OR link */
ul#main :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
ul#main :hover ul :hover ul{ visibility:visible;}