#gallery {width:690px; padding:8px; position:relative; border: 1px solid #789; background: #fff; height: 550px;}
#gallery b.default {position:absolute; width:560px; height:360px; text-align:center;}
#gallery b.default img {display:block; margin:0 auto 10px auto; border:1px solid #259;}
#gallery b.default span {display:block; color: #147; margin: 6px auto; font: normal 12px verdana,sans; background: #FFF;}

#gallery ul {list-style:none; padding:0; margin:0px; width:130px; position:relative; float:right;}
#gallery ul li {display:inline; width:50px; height:50px; float:left; margin:0 0 10px 10px;}
#gallery ul li a {display:block; width:50px; height:50px; text-decoration:none; border:1px solid #147; background: #eaeef3 url(images/gallery/arrow.gif) no-repeat;}
#gallery ul li a span {display:none;}
#gallery ul li a img {display:block; width:50px; height:50px; border:0;}
#gallery ul li a:hover {white-space:normal;}
#gallery ul li a:hover b {position:absolute; left:-560px; top:0; width:560px; height: 500px; text-align:center; z-index:20; background: #FFF;}
#gallery ul li a:hover span {display:block; color: #147; margin: 6px auto 0px auto; font: normal 12px verdana,sans; background: #FFF; }
#gallery ul li a:hover img {margin: 0 auto 10px auto; width: auto; height: auto; border: 1px solid #259;}

#gallery ul li a:active, #gallery ul li a:focus {white-space:normal; background: #FFF url(images/gallery/arrow.gif) no-repeat;}
#gallery ul li a:active b, #gallery ul li a:focus b {position:absolute; left:-560px; top:0; width:560px; height: 500px; text-align:center; z-index:10; background: #FFF;}
#gallery ul li a:active span, #gallery ul li a:focus span {display:block; color: #147; margin: 6px auto 0px auto; font: normal 12px verdana,sans; background: #FFF; }
#gallery ul li a:active img, #gallery ul li a:focus img{margin:0 auto 10px auto; width:auto; height:auto; border: 1px solid #789;}