div#buttons {
	position: relative;
	text-align: right;
	width: 500px;
}

div#buttons a {
	border: none;
}

div#buttons a span {
	text-align: left;
	visibility: hidden;
	position: absolute;
	left: 0;
	top: 0;
}

div#buttons a span.selected {
	visibility: visible;
	z-index: -1;	
}

div#buttons a > span.selected {
	z-index: 1;	
}

div#buttons > a:hover{
	border: none;
}
div#buttons a:hover span{
	visibility: visible;
	width: 50%;
	background-color: white;
	color: #003366;
	z-index: 2;
}