#gallery {width:534px; position:relative; height:62px; padding-top:356px; margin:5px 80px 0px 80px;}

#gallery img.left {width:55px; height:62px; background:#99f; float:left;cursor:pointer;}
#gallery img.right {width:55px; height:62px; background:#99f; float:left; cursor:pointer;
}

#gallery ul {list-style:none; padding:0; margin:0; float:left; background:#99f; border:2px solid #99f; border-width:5px 2px;}
#gallery ul li {display:inline; width:50px; height:50px; float:left; margin:0 4px; border:1px solid #99f; cursor:pointer;}

#gallery ul li.hide {display:none;}

/* using background images */
#gallery ul li.th1 {background:url(thumbs/img1.jpg);}
#gallery ul li.th2 {background:url(thumbs/img2.jpg);}
#gallery ul li.th3 {background:url(thumbs/img3.jpg);}
#gallery ul li.th4 {background:url(thumbs/img4.jpg);}
#gallery ul li.th5 {background:url(thumbs/img5.jpg);}
#gallery ul li.th6 {background:url(thumbs/img6.jpg);}
#gallery ul li.th7 {background:url(thumbs/img7.jpg);}
#gallery ul li.th8 {background:url(thumbs/img8.jpg);}


/* remove visibility:hidden; if you want to use the original images as thumbnails */
#gallery ul li img {display:block; width:50px; height:50px;}

#gallery ul li.chosen {border-color:#fff; cursor:default;}
#gallery ul li.chosen div {position:absolute; left:0px; top:0px; width:532px; height:355px; background:#fff; border:1px solid #999; border-width:1px 1px 0 1px;}
#gallery ul li.chosen div i {width:530px; height:355px; vertical-align:middle; text-align:center; background-color:} 
#gallery ul li.chosen div i img {visibility:visible; width:auto; height:auto; border:1px solid #000; margin:0 auto;}
#gallery ul li.chosen span {display:block;}
