/*#popupmenu{
	float: left; 
	position: relative; 
	width: 100%;
	
	font:13px Arial;
	border-style:none;
	border-width:0;	
	padding-top:3px;
}*/

#popupmenu{
	font:13px Arial;
	text-align:center;
}

#popupmenu ul{
	white-space: nowrap;
	margin:0;
	padding:0 1.5em 0 0;  
}

/* add more for each extra submenu level*/
#popupmenu ul li
{ 
	margin: 0;
	padding: 0 1em 0 0 ;
	float: left;
	list-style-type: none;
	position: relative;  
	text-align:center;
}

#popupmenu ul li ul li,
#popupmenu ul li ul li ul li,
#popupmenu ul li ul li ul li ul li
{ 
	margin: 0;
	padding: 0 ;
	float: left;
	list-style-type: none;
	position: relative;
}
/* add more for each extra submenu level*/
#popupmenu ul li ul,
#popupmenu ul:hover li ul li ul,
#popupmenu ul:hover li ul li ul li ul,
#popupmenu ul:hover li ul li ul li ul li ul
{ 
	display: none;
	z-index: 1000;
}

#popupmenu ul li ul,
#popupmenu ul li.fhover ul li ul,
#popupmenu ul li.fhover ul li ul li ul,
#popupmenu ul li.fhover ul li ul li ul li ul
{ 
	display: none;
	z-index: 1000;
}


#popupmenu ul li ul.fhover
{ 
	display: block; /*unhide it*/
	
	float: right;	
	position: absolute; /* It needs to be absolute
	for the effect to work.*/
	
	width: 11em;
	left: 0em;
	top: 1.15em; /* This places the the bottom of the 
	ul 1.1em from the bottom of the enclosing li. This 
	is the important part of the effect.*/
	background: #000000;
	margin:0;
	padding:0;
	z-index: 1000;
}

#popupmenu ul li ul li ul.fhover
{ 
	display: block; /*unhide it*/
	z-index: 1000;
	
	float: right;	
	position: absolute; /* It needs to be absolute
	for the effect to work.*/
	
	width: 11em;
	left: 11em;
	top: 0em; /* This places the the bottom of the 
	ul 1.1em from the bottom of the enclosing li. This 
	is the important part of the effect.*/
	background: #000000;
}

#popupmenu ul li ul.fhover li
{ 
	z-index: 1000;
	width: 11em;
	white-space:normal;
}

#popupmenu ul li ul li ul.fhover li
{ 
	width: 11em;
	white-space:normal;
	z-index: 1005;
}

/* First submenu level*/
#popupmenu  > ul > li:hover > ul{
	display: block; /*unhide it*/
	
	float: right;	
	position: absolute; /* It needs to be absolute
	for the effect to work.*/
	
	width: 11em;
	top: 1.1em; /* This places the the bottom of the 
	ul 1.1em from the bottom of the enclosing li. This 
	is the important part of the effect.*/

	left: 0em;
	
}
/* For the remaining submenu levels*/
/* add more for each extra submenu level*/
#popupmenu  ul  li  ul  li:hover  ul,
#popupmenu  ul  li  ul li ul li:hover  ul,
#popupmenu  ul  li  ul li ul li ul li:hover  ul{
	float: right;
	display: block;
	position: absolute;

	width: 11em;
/*	left: 7.5em;*/
	left: 5em;
	top: 3px; /* Required with some value or
	the effect will not work*/
}
#popupmenu ul li:hover ul li{ 
	display: block;
 	float: left;   
 	width: 100%;
}



#popupmenu ul li a{
	float: left;
	display: block;
	
	text-decoration: none;
	color: yellow;
	padding: 0 .5em 0 .5em;
	border:none;
}
/* The on state for the link when you are on the submenu.
This should be before the hover state for the link itself*/
#popupmenu ul li:hover > a{
	color: black;
	background: #bbbbbb;
}
#popupmenu ul li a:hover
{ 
	color: black;
	background: #bbbbbb;
}

#popupmenu ul li ul li a{ 
	float: none;
	
	border-color: gray;  
	border-style: solid; 
 	border-width: 1px 1px 1px 1px;  


 	background-color: black;
 	color: yellow;
	
 	font-size: 100%;
 	white-space: normal;
 }

#popupmenu ul li ul li:first-child a{
/*	border-width: 1px 1px 1px 1px;*/
}
