.tab{
border-bottom:solid 1px #DEDEDE;
height:29px;
padding-left:20px;
}
.tab li{
float:left;
margin-right:2px;
list-style:none
}
.tab a:link, .tab a:visited{
background:url(http://www.alchemy-lab.com/tab-round.png) no-repeat right -30px;
color:#666666;
float:left;
height:30px;
font-weight:bold;
text-decoration:none;
padding:0 14px 0 0;
}
.tab a span{
background:url(http://www.alchemy-lab.com/tab-round.png) no-repeat left -30px;
float:left;
padding:0 0 0 14px;
line-height:30px;
cursor:pointer
}
.tab a:hover{
background-position:right -60px;
}
.tab a:hover span{
background-position:left -60px;
}
.tab .active a, .tab .active a:hover{
background-position:right 0;
}
.tab .active a span, 
ul.tab .active a:hover span{
background-position:left 0;
}