#menu {
 width: 140px; /* set width of menu */
 background:#F6F1E6;
 margin-left:30px;
}
#menu ul { /* remove bullets and list indents */
 width:140px;
 list-style: none;
 margin: 0;
 padding: 0;
 text-align:right;
}
#menu ul li {
 margin-bottom:2px;
	position:relative;
}
#menu ul ul {
 border:2px solid white;
 text-align:left;
	position:absolute;
	left:139px;
	display:none;
}
#menu ul ul li {
 margin-bottom:0px;
 width:200px;
}
/* style, color and size links and headings to suit */
#menu a {
 font: bold 14px Arial, Helvetica, sans-serif;
 display: block;
 margin: 0;
 padding: 2px 3px;
 color:#900;
 background:#F6F1E6;
 text-decoration: none;
}

#menu a:hover {
 color:#FFF;
 background:#283482;
}

#menu ul ul a {
 background:#9CF;
 font-size:13px;
}

#menu ul ul a:hover {
 background:#006;
}

#menu li {
/* make the list elements a containing block for the nested lists */
position: relative;
} 

#menu ul ul {
position: absolute;
top: 0;
left: 100%; /* to position them to the right of their containing block */
width: 100%; /* width is based on the containing block */
}

div#menu ul ul, div#menu ul li:hover ul {
 display: none;
}

div#menu ul li:hover ul, div#menu ul ul li:hover ul {
 display: block;
}