/* SWIM2.0 :: Simple website menu
****************************************************************
* DOM scripting by brothercake -- http://www.brothercake.com/
* Licensed under GPL -- http://www.gnu.org/copyleft/gpl.html
****************************************************************
* For professional menu solutions visit -- http://www.udm4.com/ 
****************************************************************
*/

#menu {/*background-color: red !important;*/}

/* tame the lists */
ul.horizontal, ul.horizontal li {
	margin:0px;
	padding:0px;
	padding-left:0px;
	margin-left: -1px;
	list-style-type:none;
	font-size:100%;
	z-index: 100 !important;		
	}

/* navbar list */
ul.horizontal {
	position: absolute;
	margin-left: 3px;
	padding-left: 0px;
	width: 822px;
	cursor:default;
	z-index:2000 !important;
	
	/* navbar top position 
	   this DOES NOT already include 1px compensation 
	   on TOP, for list-item border collapse 
	   (1px defaults to around 0.05em) */
	top: 0px;
	left: -119px;
	}

	/* navbar list-items */
ul.horizontal li {
	float:left;
	cursor:pointer;
	cursor:hand;
	text-align:left;
	
	/* navbar items' left position relative to the container
	   this DOES NOT already include 1px compensation 
	   on LEFT, for list-item border collapse 
	   (1px defaults to around 0.05em) */
	/*left:10.55em;*/
	
	/* shift list-items to collapse borders horizontally */
	margin:0 0 0 -1px;
	padding-left: 1px;

	}

ul[class^="horizontal"] li {
	margin:0 -10.55em 0 10.45em;
	left:0.05em;
	}

/* menu lists */
ul.horizontal ul {

/*border-style: solid; border-color: blue; border-left-width: 0px; border-right-width: 0px; border-top-width: 1px; border-		 bottom-width: 0px; */

	z-index:2020;
	padding: 0;
	cursor:default;
	position:absolute;
	top:auto;
	/* menu width */
	width:8.2em;
	
	/* menu offset, which already includes 1px compensation 
	   for list-item border collapse */
	
	/* 
	position menus off the screen to hide 
	because using display, visibility, overflow or clip,  
	would hide them from browser-based screenreaders as well 
	using left this time because top doesn't work correctly in safari
	and using px because left:-Nem causes a horizontal scrollbar in some opera builds
	it also has the advantage that menus which might extend beyond the window
	won't create a horizontal scrollbar unless they're open
	*/
	background-image: none !important;
	
	/*padding-top: 27px;*/
	padding-top: 1px;
	margin-top: -2px;
	display: none;
	/*border-top: 1px solid #FFFFFF;*/

	
	}

/* menu list-items */
ul.horizontal ul li {
	/* duplicate menu width */
	width: 8.2em;
	display: none;
	/* compensate for navbar positioning */
	left: auto;
	
	/* shift list-items to collapse borders vertically */
	margin:-1px 0 0 0;
	
	}

ul.horizontal li:hover ul li {display:block;}

/* you can use <ul> classes to specify different menu widths */
ul.horizontal ul.wider, ul.horizontal ul.wider li {
	width:12.2em;
	}


/* further child-menu offset */
ul.horizontal ul ul {
	/* this DOES NOT already include 1px compensation 
	   on TOP and LEFT, for list-item border collapse 
	   (1px defaults to around 0.05em) */
	margin:-0.45em 0 0 7.65em;
	/* overlapping the menus improves usability */
	}


/* menu triggers -- position menus back on the screen to show 
   hide these from safari < 1.2 because of it's "sticky hover" bug 
   and because the menu positioning doesn't work
   using the "@media with Media Type in Mixed Case" hack
   http://www.dithered.com/css_filters/css_only/media_mixed_case.html */
@media Screen, Projection { 
	ul.horizontal li:hover > ul { left:auto; }
	ul.horizontal ul li:hover > ul { top:0; }
	}


/* links */
ul.horizontal a, ul.horizontal a:visited {
	display:block !important;
	cursor:pointer;
	cursor:hand;	
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	margin-top: 0px;
	padding-bottom: 0px;
	margin-bottom: 0px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	text-decoration: none;
	z-index: 100 !important;

	}
	
/* rollover pseudo-classes, and scriptable persistence class */
ul.horizontal a:hover, ul.horizontal a:focus, ul.horizontal a.rollover, ul.horizontal a.rollover:visited {
	color: red;
	}
	
	/* sublinks */
ul.horizontal ul a, ul.horizontal ul a:visited {
	display:block !important;
	cursor:pointer;
	cursor:hand;
	z-index: 100 !important;
	
	
	font-size: 10px;
	font-weight: bold;
	color: #FFFFFF;
	background-color: #474747;
	cursor: hand;
	width: 150px;
	text-indent: 10px;
	line-height: 18px;
	border-top: 1px solid #757575;
	
	
	}
	
	/* sublinksrollover pseudo-classes, and scriptable persistence class */
ul.horizontal ul a:hover, ul.horizontal ul a:focus, ul.horizontal ul a.rollover, ul.horizontal ul a.rollover:visited {
	display: block !important;
	z-index: 100 !important;
	
	font-size: 10px;
	font-weight: bold;
	color: #FFFFFF;
	background-color: #757575;
	cursor: hand;
	width: 150px;
	text-indent: 10px;
	line-height: 18px;
	border-top: 1px solid #757575;
	

	
		
	}
	

/* opera 5 and 6, and mac/ie5, need float on the links */
ul.horizontal a { float:left;  display: block !important;}

/* but it would break other browsers, so we need to negate it
   using a rule that's hidden from them with the "@media with Media Type in Mixed Case" hack
   http://www.dithered.com/css_filters/css_only/media_mixed_case.html */
@media Screen, Projection { ul.horizontal a { float:none; } }

/* msn/osx can see through that, but needs the float as well, 
   so re-apply it using the "not my child" hack
   http://www.jasonkarldavis.com/articles/notmychild/ */
ul.horizontal a:not(:nth-child(n)) { float:left; display: block !important; }

/* compensate submenus, using !important to increase specificity for osx/msn */
ul.horizontal ul a { float:none !important; }

/* hacks for win/ie to cure 'excess hidden margins' and 'double margin float' bugs */
@media screen, projection {
	* html ul.horizontal li {
		/* for ie5.0 */
		display:inline; 
		/* for ie5.5+ */
		f\loat:left; 
		/* this cures 'events fall through the menu' bug in ie6 
		   you can can change the color, but don't remove it or use an image */ 
		/*background:#019092;; */
		}
	}

/* use different comparative positioning for ie, 
   to avoid problems with virtual z-ordering */
* html ul.horizontal li { position:static; }
* html ul.horizontal a { position:relative; }

/* hide menus from konqueror < 3.2 */
ul[class^="horizontal"] ul { display:none; }
ul[class^="horizontal"] ul { displa\y:block; }

