N#menu, #menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
	
}
#menu 
{
    width: 100%;
    margin: 0;
	top:20;
    background-image: linear-gradient(#444, #111);
    border-radius: 0px;
    box-shadow: 0 1px 1px #777;
	color:#FFF;
	position:static;
}


#menu:before,
#menu:after {
    content: "";
    display: table;
	position:fixed;
	}

#menu:after {
    clear: both;
	position:fixed;
	
}
/*caracteristicas del menu principal*/
#menu {
    zoom:1;
	 background:#663384;
  position:absolute;
  left:20;
  top:20;
  right:20;
  z-index: 1000;
  
  }

#menu li {
    float: left;
    border-right: 0px solid #222;
    box-shadow: 1px 0 0 #444;
    position: relative;
}

#menu a {
    float: left;
    padding: 5px 20px;/*Para modificar el ancho y la separacion de los items del menu*/
    color: white;
    text-transform: uppercase;
    font: open sans;
    text-decoration: none;
    text-shadow: 0 1px 0 #000;
}

#menu li:hover > a {
    color: white;
	display:block;
	transition:all 0.4s linear;
	border-radius:5px;
	 background:#D8ABEB;
 color:white;
 padding:10px 15px;
	
}

*html #menu li a:hover { /* IE6 only */
    color: #fafafa;
}

#menu ul {
    
    _margin: 0; /*IE6 only*/
	width:auto;
    opacity: 0;
    visibility: hidden;
    position:absolute;
    top: 38px;
    left: 140;
    z-index: 1;    
    background:#663384;   
    background: linear-gradient(#663384, #F9ACE6);
    box-shadow: 0 -1px 0 rgba(255,255,255,.3); 
    transition: all .2s ease-in-out;
	display:block;
	border-radius:5px;
 color:white;
 padding:10px 15px;
list-style: none;
}


#menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    margin: 0;
}

#menu ul ul {
    top: 0;
	float:none;
	/*left hay que manipularlo para que se adapte el segundo nivel del menu*/
    left:50px;
    margin: 0 0 0 0;
    _margin: 0; /*IE6 only*/
    box-shadow: -1px 0 0 rgba(255,255,255,.3);      
	display:inline-block;
	position:absolute;
}

#menu ul li {
    float: none;
    display: block;
    border: 0;
    _line-height: 0; /*IE6 only*/
    box-shadow: 0 1px 0 #111, 0 2px 0 #666;
	

}

#menu ul li:last-child {   
    box-shadow: none;    
}

/*sombreado para los items del submenu*/
#menu ul a {    
    padding: 8px;
    width:auto;
    _height: 10px; /*IE6 only*/
    display: block;
    white-space: nowrap;
    float: none;
    text-transform: none;
	border-radius:5px;
}

#menu ul a:hover {
    background-color: #F9ACE6;
    background-image: linear-gradient(#F9ACE6, #F9ACE6);
}

#menu ul li:first-child > a {
    border-radius: 3px 3px 0 0;
}

#menu ul li:first-child > a:after {
    content: '';
    position: absolute;
    left: 40px;
    top: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #444;
}

#menu ul ul li:first-child a:after {
    left: -6px;
    top: 50%;
    margin-top: -6px;
    border-left: 0; 
    border-bottom: 6px solid transparent;
    border-top: 6px solid transparent;
    border-right: 6px solid #3b3b3b;
}

#menu ul li:first-child a:hover:after {
    border-bottom-color: #04acec; 
}

#menu ul ul li:first-child a:hover:after {
    border-right-color: #0299d3; 
    border-bottom-color: transparent;   
}

#menu ul li:last-child > a {
    border-radius: 0 0 3px 3px;
}