/* ================================================================ 
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/flyout2.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.
=================================================================== */

#main-nav {
	z-index:1000;
	font-weight: bold;
	padding: 32px 0 0 0;
	width: 189px;
	float: left;
	background: #008ed5 url(gr_main-nav-top.gif) no-repeat top left;
}
#main-nav h2 {display: none;}
#main-nav .inner {
	padding: 0 0 10px 10px;
	background: #008ed5 url(gr_main-nav-bottom.gif) no-repeat bottom left;
}

/* remove all the bullets, borders and padding from the default list styling */
#main-nav ul {
	padding:0;
	margin:0;
	list-style-type:none;
	width:170px;
}

#main-nav li {
	position: relative;
	z-index: 21;
}

/* hack for IE5.5 */
* html #main-nav ul {
	margin-left:-16px; 
	ma\rgin-left:0;
}
/* position relative so that you can position the sub levels */
#main-nav li {
	position:relative;
	margin-bottom: 4px; 
}
#main-nav li.last {margin-bottom: 0px;}

/* get rid of the table */
#main-nav table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:10000; font-size:1em;}

/* style the links */
#main-nav li a, #main-nav li a:visited {
	display:block; 
	text-decoration:none;
	width:170px;
	color:#0858a8;
	padding: 4px 0 0 0;
	background: #ffffff url(gr_main-nav-item_top.gif) no-repeat 0 0;
} 
#main-nav li.hover a,
#main-nav li a:hover {
	background: #0858A8 url(gr_main-nav-item_top-hover.gif) no-repeat 0 0
}
#main-nav li.hover a span,
#main-nav li a span {
	display: block; 
	background: url(gr_main-nav-item_bottom.gif) no-repeat bottom left;
	padding: 0 0 4px 10px;
}
#main-nav li.hover a:hover span,
#main-nav li a:hover span {
	color: #ffffff;
	background: url(gr_main-nav-item_bottom-hover.gif) no-repeat bottom left;
}

#main-nav li.sub a:hover {
	background: #0858A8 url(gr_main-nav-item_top-hover.gif) no-repeat 0 0
}
/* nosub item */ 
#main-nav li.nosub.hover a,
#main-nav li.nosub a:hover {
	background: #0858A8 url(gr_main-nav-item_nosub-top-hover.gif) no-repeat 0 0
}
#main-nav li.nosub.hover a:hover span,
#main-nav li.nosub a:hover span {
	color: #ffffff;
	background: url(gr_main-nav-item_nosub-bottom-hover.gif) no-repeat bottom left;
}

/* hack for IE5.5 */
* html #main-nav a, * html #main-nav a:visited { width:170px; w\idth:170px;}
/* style the link hover */
* html #main-nav a:hover {color:#fff;}
/* fix for two cols - floating ul */
* html #main-nav ul div ul li {list-style: outside;}

#main-nav li.hover.sub > a,
#main-nav li.sub:hover > a { 
	color: #ffffff;
	background: #0858A8 url(gr_main-nav-item_top-hover.gif) no-repeat 0 0;
}
#main-nav li.hover.sub > a span,
#main-nav li.sub:hover > a span { 
	background: url(gr_main-nav-item_bottom-hover.gif) no-repeat bottom left;
}

.inner table td{

}


/* hide the sub levels and give them a positon absolute so that they take up no room */
#main-nav ul div.sub-container {
	visibility: hidden;
	position: absolute;
	top:0;
	left:170px;
	width: 337px;
	float: left;
	z-index:1000;
}
	#main-nav ul div .sub-inner {
		float: left;
	}
		#main-nav ul div .sub-inner-padding {
			padding: 20px;
			background: #0858A8 url(gr_main-nav-subnav-right.gif) repeat-y top right;
			float: left;
		}
		#main-nav ul div .sub-nav-top {
			background: url(gr_main-nav-subnav-top.gif) no-repeat top right;
			height: 3px !important;
			width: 337px;
			font-size: 1px;
		}
		#main-nav ul div .sub-nav-bottom {
			background: url(gr_main-nav-subnav-bottom2.gif) no-repeat bottom left;
			height: 3px !important;
			width: 337px;
			font-size: 1px;		
		}

#main-nav ul div ul {
	float: left;
	display: inline;
	width: 143px;
	margin-left: 11px;
}
#main-nav ul div ul.first {
	margin-left: 0px;
}
/* make the second level visible when hover on first level list OR link */
#main-nav ul li:hover div,
#main-nav ul a:hover div,
#main-nav ul li.sub.hover div {
visibility:visible;
}

/* second level */
#main-nav .sub ul li {
	color: #FFF;
	margin: 0;
	background: #0858A8 url(gr_main-nav-subnav-arrow.gif) no-repeat 0 5px; 
	padding-left: 10px;
	clear: left;
	float: left;
	width: 127px;
	margin-bottom: 3px;
}
#main-nav .sub ul li a {
	height: auto;
	color: #FFF; 
	background-image: none; 
	padding: 0px;
	text-indent: 0;
	width: auto;
	background-color :#0858a8 !important;
}
#main-nav .sub ul li a:hover {
	text-decoration: underline;
	background: none;
}
* html #main-nav .sub ul li {background-position: 0 6px;}
* html #main-nav .sub ul li a, 
* html #main-nav .sub ul li a:visited {
	color: #FFF; 
	margin: 0;
	width: auto !important;
	display: inline;
	background-image: none;
	line-height: 1.5em; 
}
/* style the link hover */
* html #main-nav .sub ul li a:hover {
	color:#fff; 
	text-decoration: underline;
}
</style>
<!--[if lte IE 7]>
<style type="text/css">
#main-nav ul div .sub-inner-padding {padding-bottom: 0px;}
</style>
<![endif]-->