/* ----[ LINKS ]----*/
#menu{
	height: 150px;
	background-image: url(../images/header_bg.png);
	background-repeat: no-repeat;
	background-position: right top;
	width: 698px;
	margin-top: 0px;
	z-index: 99;
	position: absolute;
	margin-right: 0px;
	margin-left: 283px;
	float: right;
}

.nav_inicio{
	background:url(../images/nav_inicio.jpg) top left no-repeat;
	height:80px;
	width:81px;
}
.nav_anuncios{
	background:url(../images/nav_anuncios.jpg) top left no-repeat;
	height:80px;
	width:115px;
}
.nav_comunidades{
	background:url(../images/nav_comunidades.jpg) top left no-repeat;
	height:80px;
	width:130px;
}
.nav_usuario{
	background:url(../images/nav_usuario.jpg) top left no-repeat;
	height:80px;
	width:162px;
}
.nav_contact {
	height:80px;
	width:183px;
	background-image: url(../images/nav_contact.jpg);
	background-repeat: no-repeat;
	background-position: left top;
}

#act{ background-position:left top;}

.nav_inicio:hover, .nav_anuncios:hover, .nav_comunidades:hover, .nav_usuario:hover, .nav_contact:hover { background-position:bottom left;}
a, input{ outline:none}


/* all menu links */
#nav a, #subMenusContainer a{
	text-decoration:none;
	display:block;
	padding:0px;
	/*background-color:#fff ;*/	
}

/* Just main menu links --[for non-javascript users this applies to submenu links as well]*/
#nav a{
	margin:0;
	float:left;	
}

/* Just sub menu links */
#subMenusContainer a, #nav li li a{
	text-align:left;
	color:#333;
	margin-left: 10px;
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 20px;
	background-image: url(../images/arrow_submenu.jpg);
	background-repeat: no-repeat;
	background-position: left center;
}


.nav_anuncios.mainMenuParentBtnFocused{ background:url(../images/nav_anuncios.jpg) bottom left no-repeat; height:80px; width:130px;}
.nav_comunidades.mainMenuParentBtnFocused{ background:url(../images/nav_comunidades.jpg) bottom left no-repeat; height:80px; width:130px;}
.nav_usuario.mainMenuParentBtnFocused{ background:url(../images/nav_usuario.jpg) bottom left no-repeat; height:80px; width:130px;}
.nav_contact.mainMenuParentBtnFocused{ background:url(../images/nav_contact.jpg) bottom left no-repeat; height:80px; width:130px;}


/* sub menu links on hover or focus */
#subMenusContainer a:hover, 
#subMenusContainer a:focus, 
#subMenusContainer a.subMenuParentBtnFocused{
	color:#000000;
	background-image: url(../images/bg_submenu.jpg);
	background-repeat: no-repeat;
	background-position: left center;
}


/* ----[ OLs ULs, LIs, and DIVs ]----*/

/* Submenu Outer Wrapper - each submenu is inside a div with this class - javascript users only */
.smOW{ 
	display:none; 
	position: absolute; 
	overflow:hidden; 
	/*the 2px left & right padding lets you have a 1px border 
	  on the ul or ol inside since overflow is set to hidden*/
	padding:0 2px;
	margin:0 0 0 -2px;
}


/* All ULs and OLs */
#nav, #nav ul, #nav ol, #subMenusContainer ul, #subMenusContainer ol { 
	padding: 0;
	margin: 0;
	list-style: none;
	line-height: 1em;
}

/* All submenu OLs and ULs */
#nav ol, #nav ul, #subMenusContainer ul, #subMenusContainer ol {
	/*border:1px solid #C3D46A;*/
	left:0;
	background-color: #FFF;
}

/* List items in main menu --[for non-javascript users this applies to submenus as well]  */
#nav li { 
	/*great place to use a background image as a divider*/
	display:block;
	list-style:none;
	position:relative;
	float:left;
}

#subMenusContainer li{
	list-style: none;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
}

/* main menu ul or ol elment */
#nav{
	display:block;
	position: relative;
	list-style:none;
	z-index:5;
	text-align: center;
	display:block;
	margin: 0;
	float: right;
}

#subMenusContainer{	display:block; 	position:absolute;	top:0;	left:0;	width:100%;	height:0;	overflow:visible;	z-index:1000000000; }



/* --------------------------[ The below is just for non-javscript users ]--------------------------*/
#nav li li{	float:none; }

#nav li li a{ /* Just submenu links*/	
	position:relative;
	float:none;
}


#nav li ul { /* second-level lists */
	position: absolute;
	width: 10em;
	margin-left: -1000em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
	margin-top:2.2em;	
}

/* third-and-above-level lists */
#nav li ul ul { margin: -1em 0 0 -1000em; }
#nav li:hover ul ul {	margin-left: -1000em; }

 /* lists nested under hovered list items */
#nav li:hover ul{	margin-left: 0; }
#nav li li:hover ul {	margin-left: 10em; margin-top:-2.5em;}

/* extra positioning rules for limited noscript keyboard accessibility */
#nav li a:focus + ul {  margin-left: 0; margin-top:2.2em; }
#nav li li a:focus + ul { left:0; margin-left: 1010em; margin-top:-2.2em;}
#nav li li a:focus {left:0;  margin-left:1000em; width:10em;  margin-top:0;}
#nav li li li a:focus {left:0; margin-left: 2010em; width: 10em;  margin-top:-1em;}
#nav li:hover a:focus{ margin-left: 0; }
#nav li li:hover a:focus + ul { margin-left: 10em; }
