/* 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:0px;
	padding:0px;
	list-style-type:none;
	font-size:100%; /* fix for win/ie's "non-linear text scaling" bug */
}

/* navbar list */
ul.vertical {
	z-index:1000;
	cursor:default;
	position:relative;
	
	margin-left:5px; margin-top:5px; margin-bottom:2px;
	font-family: "Lucida Sans", "Segoe UI", "Trebuchet MS", Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	padding:4px;
	width:170px;
}

/* navbar list-items */
ul.vertical li {
	text-align:left;
	cursor:pointer;
	cursor:hand;
	position:relative;
	/* IE8 hack */
	position/*\**/: static\9;
	
	color: black;
	background: #fff url("../images/menuitembgpattern.png") top left repeat-x;

	/* duplicate navbar width */
	width:170px;
	
	/* shift list-items to collapse borders vertically */
	margin: -1px 0px 0px 0px;
	padding: 0px;

	}


/* menu lists */
ul.vertical ul {
	z-index:1020;
	cursor:default;
	position:absolute;
	
	/* menu width */
	width:170px;
	
	/* menu offset, which already includes 1px compensation 
	   on TOP, for list-item border collapse */
	margin:-6px 0 0 160px;
	/* 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;
	}
	
/* menu list-items */
ul.vertical ul li {
	/* duplicate menu width */
	width:170px;
	}


/* further child-menu offset */
ul.vertical ul ul {
	/* this already includes 1px compensation 
	   for list-item border collapse */
	margin:-6px 0 0 160px;
	/* 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 
   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, ul.vertical a:visited {
	display:block;
	cursor:pointer;
	cursor:hand;
	
	color: black;
	padding:5px 7px;
	text-decoration:none;
	border: 2px solid white;
}

ul.vertical a.subind {
	background: url("../images/menuarrow.png") 156px 6px no-repeat;
}
	
/* rollover pseudo-classes, and scriptable persistence class */
ul.vertical a:hover, ul.vertical a:focus, ul.vertical a.rollover, ul.vertical a.rollover:visited {
	color:#fff;
	background-color:#58ab27;
	text-decoration:none;
	}



/* 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: #fff url("../images/menuitembgpattern.png") top left repeat-x;
		}
	}
	
/* 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; }
