/* 
 *	Vertical, left-2-right menu
 *	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *	(c) 2004 - Aleksandar Vacic, www.aplus.co.yu
 * Some rights reserved, http://creativecommons.org/licenses/by/2.0/
 *	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 */

@import url( ../../../MenuIcons.css );

/*		------	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.
	*/
	display: block;
	float:left;
}

#menu ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
}

#menu li {
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	position: relative;
}

#menu a {
	display: block;
}

#menu li {
	width: 100%;
}

/* fix the position for 2nd level submenus. first make sure no horizontal scrollbars are visible on initial page load... */
#menu li ul {
	top: 0;
	left: 0;
}

/* ...and then place it where it should be when shown */
#menu li:hover ul {
	left: 100%;
}

/* initialy hide all sub menus */
#menu li ul {
	display: none;
	position: absolute;
	z-index: 10;
}

/* display them on hover */
#menu li:hover>ul {
	display: block;
}

/* this is needed if you want to style #menu div - force containment of floated LIs inside of main UL */
#menuList:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}

/* Clear-fix for IE5/Mac \*//*/
#menuList {
	display: inline-block;
}
/*  */

/*		------   Make-up	--------			*/

#menu {
	font-family: Tahoma, sans-serif;
	font-size: 1em;
	color: #000000;
	width: 139px;	/* 	this width must exist (with any value you need). see note above	 */
	margin-left:5px;
}

#menu a {
	text-decoration: none;
	text-align: center;
	color: #000000;
	padding: 8px 5px 5px;
}

#menu li {
	height: 24px;
	background-image:url(images/tab.gif);
	background-repeat:no-repeat;
}

#menu li:hover {
	padding: 0;
	font-weight: bold;

}

/* 	we can't use 100% because LIs have margin and padding (although latter is more important) */
#menu li {
	width: 139px;
	height: 34px;
	font-weight:normal;

	margin-bottom: 13px;
}

#menu li ul {
	color: #000;
	background-color: #FFFFFF;

	background-repeat: repeat-y;
	width: 139px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #666666;
	border-bottom-color: #666666;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-left-color: #CCCCCC;
}

#menu li ul a {
	text-align: left;
	padding-left: 10px;
}

#menu li ul a:hover {
	text-align: left;
}

#menu li.submenu {
	background-image: url(images/arrow-w.gif);
	background-repeat: no-repeat;
	background-position: right;
}

#menu li.submenu>a {
	background: url(images/arrow-b.gif) no-repeat right;
}

#menu li.submenu:hover>a {
	background-image: none;

}

#menu li.section_welcome{
	background-image:url(images/welcome.jpg);
	background-repeat:no-repeat;
}
#menu li.section_products{
	background-image:url(images/products.jpg);
	background-repeat:no-repeat;
}
#menu li.section_continuing_ed{
	background-image:url(images/continuing_ed.jpg);
	background-repeat:no-repeat;
}
#menu li.section_accreditation{
	background-image:url(images/accreditation.jpg);
	background-repeat:no-repeat;
}
#menu li.section_registration{
	background-image:url(images/registration.jpg);
	background-repeat:no-repeat;
}
#menu li.section_certification{
	background-image:url(images/certification.jpg);
	background-repeat:no-repeat;
}
#menu li.section_site_map{
	background-image:url(images/site_map.jpg);
	background-repeat:no-repeat;
}
#menu li.section_forum{
	background-image:url(images/forum.jpg);
	background-repeat:no-repeat;
}
#menu li.section_contact_us{
	background-image:url(images/contact_us.jpg);
	background-repeat:no-repeat;
}
/*
		------   Specific fixes	(thank to W3C 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{
	margin-left:3px;
	margin-top: 5px;
	padding:0px;
	width:139px;
}

