/*popuppe menu*/
#popupmenu{
	float: left; /* to keep the other floating objects contained*/
	position:absolute; /* This can also be fixed or absolute*/
	top:270px;
	right:0px;
	width: 70%;
		
	/*Format */
	background-color:#0099FF;
	color:#FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size:16px;
	border-style: solid;
	border-width: 1px 0 1px 0;	
}

#popupmenu ul{
	float: left;
	white-space: nowrap;
	margin: 0;  
	padding: 0;
	text-align:center;
	
}


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


/* add more for each extra submenu level*/
#popupmenu ul li ul,
#popupmenu ul:hover li ul li ul {
    display:none;
	z-index: 1000;
}



/* 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.*/
	top: 25px; /* 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.*/
	
}



/* 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;
    top:0em;	
	width: 170px;
	left: 170px;
	bottom: 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-align:center;
	width:170px;
	height:25px;
	text-decoration: none;
	color:#FFFFFF;
	padding-top:3px;
	border-bottom:#FFFFFF thin solid;
	border-top:#FFFFFF thin solid;
	border-left:#FFFFFF thin solid;
	border-right:#FFFFFF thin solid;
	/*padding: 0 4.5em 0 4.5em;*/
}

/* 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{
	background-color:#00CCFF;
	color: White;
}
#popupmenu ul li a:hover
{ 
	background-color:#0066FF; 
	color: White;
}

#popupmenu ul li ul li a{ 
	float: none;
 	background-color: #00CCFF;
 	color: #345D84;
 	font-size:16px;
 	white-space: normal;
 }

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

