/*
// Taken from http://www.aplus.co.yu/ADxMenu/
// Aleksandar Vacic
// Used under Creative Commons License
*/

/*		------	Basic style	------		*/
#menu {
	/*
	width: ??;
	YOU MUST specify some width, otherwise menu would span whole page.
	Since this depends on design, do it in make-up section.
	*/
	height: auto;
	display: block;
}

#menu ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
}

#menu li {
	margin: 0;
	padding: 0;
	border: 0;
	width: auto;
	display: block;
	position: relative;
}

#menu a {
	display: block;
}

/* Fix IE6's inability to expand clickable area */
/*
* html #menu li a {
	position: relative;
}
 */

/*
#menu li ul {
	visibility: hidden;
	position: absolute;
	z-index: 10;
}
 */

/*
	using display is better (no scrollbars when page loads),
	but IE can't handle it, so only good browsers should see this
html>body #menu li ul {
	display: none;
}
 */


/* fix the position 
#menu li ul {
	top: 0;
	left: 0;
}
#menu li:hover ul {
	top: 0;
	left: 100%;
}
*/

/* simulate child selector for IE 
div#menu li:hover ul,
#menu li:hover li:hover ul,
#menu li:hover li:hover li:hover ul {
	visibility: visible;
}
div#menu li:hover li ul,
#menu li:hover li:hover li ul,
#menu li:hover li:hover li:hover li ul {
	visibility: hidden;
}
*/

/* do the normal show, with increased specificity, for good browsers 
#menu ul#menuList li:hover>ul {
	display: block;
	visibility: visible;
}
*/

/*		------   Make-up	--------			*/

#menu {
	font-family: Tahoma, sans-serif;
	font-size: 11px;
	color: #000;
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	width: 130px;	/* 	this width must exist (with any value you need). see note above	 */
}

#menu a {
	text-decoration: none;
	color: #000;
	background-color: transparent;
	padding: 4px 5px 5px;
}

#menu li {
	margin: 2px;
	padding: 1px;
}

#menu li:hover {
	background-color: #ddd;
	padding: 0;
	border: 1px solid #ccc;
}

#menu li li {
	width: 124px;/* 	we can't use 100% because LIs have margin and padding (although latter is more important) */
}

#menu li ul {
	color: #000;
	background-color: #fff;
	background-image: url(images/iconbg.gif);
	background-repeat: repeat-y;
	border: 1px solid #ccc;
	width: 130px;
}

#menu li ul a {
	text-align: left;
	padding-left: 29px;
}

#menu a.submenu {
	background-image: url(images/arrow.gif);
	background-repeat: no-repeat;
	background-position: 100% 5px;
}


/*		------   Specific fixes	(thank to W3C box model makers for these) --------			*/
/* 
		I'm gonna move the submenus 5px up
		5px works fine here and it is roughly calculated as:
			padding-bottom + margin-bottom + border-bottom of the LI
			+
			*-top values of the LI
			
		Mostly it needs a bit of trial and error.
		Basic idea is to remove the scrollbar when menu script re-positioning is applied.
		Of course, script could take care of that, but that takes too much code - this is easier.
#menu li ul {
	margin-top: -5px;
}
*/

/*		------   Fixes	for IE	--------			
* html #menu li:hover ul {
	left: 124px;
}
*/
/* if 100%, then menu will disappear because of margin-right=2px */