#gallery {position:relative; width:440px; height:450px; margin:10px;}
#gallery b {width:440px; text-align:center; position:absolute; top:200px; left:0; z-index:1;}

a.gallery, a.gallery:visited {display: inline; color:#440000; text-decoration:none; border:1px solid #660000; width:75px; height:75px; float:left; margin:7px 34px; position:relative; cursor:default;}

a.slidea {background:url(images/t_pic1.jpg);}
a.slideb {background:url(images/t_pic1.jpg);}
a.slidec {background:url(images/t_pic2.jpg);}
a.slided {background:url(images/t_pic3.jpg);}
a.slidef {background:url(images/t_pic4.jpg);}
a.slideg {background:url(images/t_pic5.jpg);}
a.slideh {background:url(images/t_pic6.jpg);}

a.gallery span {visibility:hidden; display:block; position:absolute; width:440px; height:320px; top:189px; left:9px; color:#000; text-align:center; cursor:default;}

a.slideb span {left:-36px; top:180px;}
a.slidec span {left:-179px; top:180px;}
a.slided span {left:-322px; top:180px;}
a.slidef span {left:-36px; top:91px;}
a.slideg span {left:-179px; top:91px;}
a.slideh span {left:-322px; top:91px;}

a.gallery:hover {white-space:normal; border:1px solid #990000; z-index:100;}

a.gallery:hover span {visibility:visible; z-index:100;}

a.gallery:hover span img {margin:10px; border:1px solid #660000; position:relative; z-index:100;}

a.gallery:active, a.gallery:focus {border:1px solid #c00; z-index:10;}

a.gallery:active span, a.gallery:focus span {visibility:visible; z-index:10;}

a.gallery:active span img, a.gallery:focus span img {border:1px solid #660000; position:relative; margin:10px; z-index:10;}