/* CSS Menu */

#menu {
	width: 760px;
	height: 31px;
	}	
	
#menu2 {
	width: 159px;
	height: 31px;
	margin-top: 11px;
	margin-left: 16px;
	}

#nav ul {
	list-style-type: none;
	}

#nav li {
	float: left;
	display: block;
	position: relative;
	z-index: 99999;
	min-height: 31px;
	}	
	
#nav li li {
	min-height: 22px;
	margin-left: 0px;
	}	

* html #nav li {
	height: 31px;
	}	
	
* html #nav li li {
	height: 5px;
	margin-left: 0px;
	}	

#nav span {
	display: none;
	}	

#nav a:hover {
	background-position: 50% -31px;
	}	

/*grouped elements from main buttons*/
#mm_home,
#mm_about,
#mm_buying,
#mm_renting,
#mm_selling,
#mm_property,
#mm_commercial,
#mm_news,
#mm_contact {
	display: block;
	height: 31px;
	background-position: 50% 0;
	background-repeat: no-repeat;
	}	
	
#mm_why,
#mm_team,
#mm_test,
#mm_recent,
#mm_our,
#mm_res,
#mm_open,
#mm_auct,
#mm_email,
#mm_ren,
#mm_ten,
#mm_teny,
#mm_tenap,
#mm_main,
#mm_mark,
#mm_scm,
#mm_lcm,
#mm_bus,
#mm_advocacy,
#mm_area {
	display: block;
	height: 31px;
	background-position: 50% 0;
	background-repeat: no-repeat;
	}

/*main menu buttons*/
#mm_home {
	background-image: url(../img/nav_01.jpg);
	width: 63px;
	}

#mm_about {
	background-image: url(../img/nav_02.jpg);
	width: 71px;
	}

#mm_buying {
	background-image: url(../img/nav_03.jpg);
	width: 59px;
	}
	
#mm_renting {
	background-image: url(../img/nav_04.jpg);
	width: 60px;
	}

#mm_selling {
	background-image: url(../img/nav_05.jpg);
	width: 55px;
	}

#mm_property {
	background-image: url(../img/nav_06.jpg);
	width: 152px;
	}

#mm_commercial {
	background-image: url(../img/nav_07.jpg);
	width: 90px;
	}

#mm_news {
	background-image: url(../img/nav_08.jpg);
	width: 50px;
	}
	
#mm_contact {
	background-image: url(../img/nav_09.jpg);
	width: 91px;
	}
	
/* sub-level menu */	
	
#mm_why {
	background-image: url(../img/sbnav_01.gif);
	width: 159px;
	}
	
#mm_team {
	background-image: url(../img/sbnav_02.gif);
	width: 159px;
	}
	
#mm_test {
	background-image: url(../img/sbnav_03.gif);
	width: 159px;
	}
	
#mm_recent {
	background-image: url(../img/sbnav_04.gif);
	width: 159px;
	}
	
#mm_our {
	background-image: url(../img/sbnav_05.gif);
	width: 159px;
	}
	
#mm_res {
	background-image: url(../img/sbnav_06.gif);
	width: 159px;
	}
	
#mm_open {
	background-image: url(../img/sbnav_07.gif);
	width: 159px;
	}
	
#mm_auct {
	background-image: url(../img/sbnav_08.gif);
	width: 159px;
	}
	
#mm_email {
	background-image: url(../img/sbnav_09.gif);
	width: 159px;
	}
	
#mm_ren {
	background-image: url(../img/sbnav_10.gif);
	width: 159px;
	}
	
#mm_ten {
	background-image: url(../img/sbnav_11.gif);
	width: 159px;
	}
	
#mm_teny {
	background-image: url(../img/sbnav_12.gif);
	width: 159px;
	}
	
#mm_main {
	background-image: url(../img/sbnav_13.gif);
	width: 159px;
	}
	
#mm_mark {
	background-image: url(../img/sbnav_14.gif);
	width: 159px;
	}
	
#mm_scm {
	background-image: url(../img/sbnav_15.gif);
	width: 159px;
	}
	
#mm_lcm {
	background-image: url(../img/sbnav_16.gif);
	width: 159px;
	}
	
#mm_bus {
	background-image: url(../img/sbnav_19.gif);
	width: 159px;
	}
	
#mm_area {
	background-image: url(../img/sbnav_17.gif);
	width: 159px;
	}
	
#mm_advocacy {
	background-image: url(../img/sbnav_18.gif);
	width: 159px;
	}
	
#mm_tenap {
	background-image: url(../img/sbnav_20.gif);
	width: 159px;
	}
	
/* second-level lists */		
#nav li ul { 
	position: absolute; 
	text-transform: lowercase;
	padding:0; 
	margin:0;
	width: 150px;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	}

#nav ul li { /* all list items */
	width: 10em; /* width needed or else Opera goes nuts */	
	}

#nav ul li a {
	display: block; 
	width: 150px; 
	padding: 4px;
	font-size: 1.1em;
 	border: 1px solid #3F3F3F;
 	background: #1F1F1F;
	color: #FFFFFF;
	text-decoration: none; 
	min-height: 15px;
	-moz-opacity:.9;
    filter:alpha(opacity=90);
	}

* html #nav ul li a {
	height: 15px;
	}
		
#nav ul li a:hover {
	border: 1px solid #FFFFFF;
	background: #009764;
	color: #FFFFFF;
	}

#nav li ul ul { /* third-and-above-level lists */
	margin: -1.9em 0 0 141px;
	}

* html #nav li ul ul {/* For IE5*/
	margin: -1.9em 0 0 141px;
	}

#nav  li:hover ul ul, #nav li.sfhover ul ul {
	left: -999em;
	}

#nav li:hover ul, 
#nav li li:hover ul, 
#nav li.sfhover ul, 
#nav li li.sfhover ul { /* lists nested under hovered list items */
	left: auto;
	}	
	
/*Activates main button*/
body#home #mm_home,
body#about #mm_about,
body#buying #mm_buying,
body#renting #mm_renting,
body#selling #mm_selling,
body#property #mm_property,
body#commercial #mm_commercial,
body#news #mm_news,
body#contact #mm_contact {
	background-position: 50% -31px;
	}	
	
body.why #mm_why,
body.team #mm_team,
body.test #mm_test,
body.recent #mm_recent,
body.our #mm_our,
body.res #mm_res,
body.open #mm_open,
body.auct #mm_auct,
body.email #mm_email,
body.ren #mm_ren,
body.ten #mm_ten,
body.teny #mm_teny,
body.tenap #mm_tenap,
body.main #mm_main,
body.mark #mm_mark,
body.scm #mm_scm,
body.lcm #mm_lcm,
body.bus #mm_bus,
body.advocacy #mm_advocacy,
body.area #mm_area {
	background-position: 50% -31px;
	}
