#gallery {width:620px;min-height: 400px;height: auto !important; height: 400px;margin:0 10px 0 15px;padding:5px 0 5px 0;}
#gallery ul {list-style:none; padding:0; margin:0; width:240px; position:relative; float:left;}
#gallery ul li {display:inline; width:52px; height:52px; float:left; margin:0 0 5px 5px;}
#gallery ul li a {display:block; width:50px; height:50px; text-decoration:none; border:1px solid #000;}
#gallery ul li a img {display:block; width:50px; height:50px; border:0;}
#gallery ul li a:hover {white-space:normal; border-color:#ddd;}
#gallery ul li a:focus {white-space:normal; border-color:#ff0000;}
#gallery ul li a:hover img, #gallery ul li a:focus img {position:absolute; left:240px; top:0px; width:auto; height:auto; border:1px solid #000;}