/******** STRUCTURAL REQUIREMENTS FOR TOOLS POPUP MENU *********/
/*
Based on the Suckerfish dropdown menu.
http://www.alistapart.com/articles/dropdowns/
*/

ul#toolsbutton, ul#toolsbutton ul { /* all lists */
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 1;
}

ul#toolsbutton li { /* all list items */
	float: right;
	position: relative;
	width: 15em;
  text-align: right;
}

ul#toolsbutton li ul { /* second-level lists */
	display: none;
	position: absolute;
	top: 1em;
	right: 0;
}

/* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left
Seems unnecessary, actually....
 */
/*ul#toolsbutton li>ul { 
	top: auto;
	right: auto;
} */

ul#toolsbutton li:hover ul,
ul#toolsbutton li.over ul { /* lists nested under hovered list items */
	display: block;
}

.main {
	clear: right;
}


/*********** APPEARANCE OF TOOLS POPUP MENU *********************/

ul#toolsbutton ul {
  padding-top: 4px;
}

ul#toolsbutton ul li {
  border-bottom: 1px solid #fff;
  border-right:  1px solid #fff;
  border-left:   1px solid #fff;
}

ul#toolsbutton ul li.first {
		border-top: 1px solid #fff;
}

ul#toolsbutton a:link,
ul#toolsbutton a:visited,
ul#toolsbutton a:active,
ul#toolsbutton a:hover {
	display: block;
  height: 21px;
  margin: 0;
  padding: 2px 4px;
  text-align: left;
	background-color: #d5d5d5;
  color: #333;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 17px;
  text-decoration: none;
}

ul#toolsbutton a:hover {
	background-color: #eaeaea;
}

ul#toolsbutton a img {
	border: none;
  margin: 0;
  padding: 0;
}