/* 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/ 
****************************************************************
*/

/* tame the lists */
ul.vertical, ul.vertical li {
	margin:0;
	padding:0 3 0 2;
	list-style-type:none;
	font-size:100%; /* fix for win/ie's "non-linear text scaling" bug */
	}

/* tame the lists */
ul.vertical li.category{
	margin:0;
	padding:0 3 0 10;
	list-style-type:none;
	font-size:100%; /* fix for win/ie's "non-linear text scaling" bug */
	}

/* navbar list */
ul.vertical {
	position:absolute;
	z-index:1000;
/*	cursor:default;
*/	
	/* navbar width 
	width:133px;*/

	/* navbar left and top position 
	   this DOES NOT already include 1px compensation 
	   on TOP, for list-item border collapse 
	   (1px defaults to around 0.05em) */
	/*left:1em;*/
	/*top:45.05em;*/
}

/* navbar list-items */
ul.vertical li {
	position:relative;
	text-align:left;
	cursor:pointer;
	cursor:hand;
	
	/* navbar width */
	width:133px;
	
	/* shift list-items to collapse borders vertically */
	margin:7 0 7 0;
}

/* menu lists */
ul.vertical ul {
	z-index:1020;
	cursor:default;
	position:absolute;
	
	/* menu width 
	width:180px;*/
	
	/* menu offset, which already includes 1px compensation 
	   on TOP, for list-item border collapse */
	margin:0 0 0 133px;
	/* overlapping the menus improves usability */
	
	/* 
	position menus off the screen to hide 
	because using display, visibility, overflow or clip,  
	would hide them from browser-based screenreaders as well 
	*/
	top:-100em;
	
	/* shift menus to collapse navbar->menu borders 
	left:-1px;
	*/
	/* compensate for list-item border collapse */
	padding:0px 0 0 0;
	}
	
/* menu list-items */
ul.vertical ul li.sub {
	/* duplicate menu width */
	width:180px;
	position:relative;
	text-align:left;
	cursor:pointer;
	cursor:hand;
	border: 0px solid #41345F;
	
	/* duplicate navbar width
	width:133px; */
	
	/* shift list-items to collapse borders vertically */
	margin: 0 0 0 5;
}

/* navbar list-items */
ul.vertical li.tocCurrent a.tocCurrent{
	position:relative;
	text-align:left;
	cursor:pointer;
	cursor:hand;
	
	/* shift list-items to collapse borders vertically */
	margin:0 0 0 0;
	background:#E5E5E5;
	border:1px solid #41345F;
	color:#000000;	
}


/* menu triggers -- position menus back on the screen to show 
   hide these from safari < 1.2 because of it's "sticky hover" bug 
   that would make it difficult or impossible to close the menus 
   we're hiding it 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.vertical li:hover > ul { top:0; }
	}


/* links */
ul.vertical a {
	display:block;
	cursor:pointer;
	cursor:hand;
	
	background:#ffffff;
	border:1px solid #E5E5E5;
	padding:1px 7px;
	text-decoration:none;
	font-weight:bold;
	color:#000000;
	
}

/* tame the lists */
ul.vertical li.category a {
	display:block;
	cursor:pointer;
	cursor:hand;
	
	background:#ffffff;
	border:1px solid #ffffff;
	padding:1px 7px;
	text-decoration:none;
	color:#8c8c8c;
	}
	
/* rollover pseudo-classes, and scriptable persistence class */
ul.vertical li a:hover, ul.vertical a:focus, ul.vertical a.rollover {
	background:#E5E5E5;
	border:1px solid #41345F;
	color:#000000;
}

/* menu list-items */
ul.vertical ul li.sub a{
	background:#CC0000;
	border:1px solid #000000;
	color:#ffffff;
}

ul.vertical ul li.sub a:hover{
	background:#FFBFBF;
	border:1px solid #CC0000;
	color:#CC0000;
}


/* hacks for win/ie to cure 'excess hidden margins' bug */
@media screen, projection {
	* html ul.vertical li {
		/* for ie5.0 */
		display:inline; 
		/* for ie5.5+ */
		f\loat:left; 
		/* this cures 'events fall through the menu' bug in ie6 */
		background:#ffffff; 
		}
	}
	
/* use different comparative positioning for ie, 
   to avoid problems with virtual z-ordering */
* html ul.vertical li { position:static; }
* html ul.vertical a { position:relative; }

/* hide menus from konqueror < 3.2 */
ul[class^="vertical"] ul { display:none; }
ul[class^="vertical"] ul { displa\y:block; }
