/* CSS Document */

/*              ------  :hover simulator for IE         ------          */
body { behavior:url("http://www.aberdeenchristianschool.com/css/csshover.htc"); }

/*		------	Basic style	------		*/
#menu {
	height: auto;
	display: block;
	margin-top: 10px;
}

#menu ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
}

#menu li {
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	display: block;
	position: relative;
	float: left;
	clear: both;
}

#menu a {
	display: block;
}

* html #menu li a {
	position: relative;/* Fix IE6's inability to expand clickable area */
}

#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: Verdana, Arial, Helvetica, sans-serif;
        font-size: 75%;
        color: #ffffff;
        width: 175px;
}

#menu a {
	text-decoration: none;
	background-color: transparent;
        color: #ffffff;
		font-weight: bold;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 12px;
        padding-right: 10px;
}

#menu li {
	margin: 0px;
	padding: 0px;
}

#menu a:hover {
	color: #999999;
	text-decoration: underline;
}

#menu li li {
	width: 150px;/* 	we can't use 100% because LIs have margin and padding (although latter is more important) */
}

#menu li ul {
        color: #ffffff;
        background-color: #333333;
        border-top: 1px solid #000000;
        border-left: 1px solid #000000;
        border-right: 1px solid #000000;
        width: 150px;
}

#menu li ul a {
	text-align: left;
	padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 2px;
        padding-right: 2px;
        color: #FFFFFF;
        background-color: #666666;
        border-bottom: 1px solid #000000;
        text-decoration: none;
}

#menu li ul a:hover {
        background-color: #710013;
        color: #ffffff;
        text-decoration: none;
}

#menu a.submenu {
        background-image: url(../images/arrow-burg.gif);
        background-repeat: no-repeat;
        background-position: 98% 7px;
}

#menu a.divider {
        margin-top: 10px;
}

/*		------   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: -3px;
}

/*		------   Fixes	for IE	--------			*/
* html #menu li:hover ul {
	left: 150px;/* if 100%, then menu will disappear because of margin-right=2px */
}


