/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.stunicholls.com/gallery/simple.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/* The outer container with a relative position */
#gallery {width:760px; height:415px; position:relative; margin: 15px auto; float:right}

/* Float the ul to the right with a width to give 3 thumbnail images per row */
#gallery ul {list-style:none; padding:0; margin:0px 0 0 0; width:175px; float:right;}

/* Place the list items inline using display:inline for IE and float:left */
#gallery ul li {display:inline; width:50px; height:50px; float:left; margin:0 0 3px 3px; border:1px solid #2b2b2b; cursor:pointer;}

/* Set up the thumbnail images as the background images */
#gallery ul li.tb1 {background:url(../i/gallery/t1.jpg) -120px -90px;}
#gallery ul li.tb2 {background:url(../i/gallery/t2.jpg) -110px -110px;}
#gallery ul li.tb3 {background:url(../i/gallery/t3.jpg) -250px -100px;}
#gallery ul li.tb4 {background:url(../i/gallery/t4.jpg) -170px -180px;}
#gallery ul li.tb5 {background:url(../i/gallery/t5.jpg) -120px -40px;}
#gallery ul li.tb6 {background:url(../i/gallery/t6.jpg) -20px -120px;}
#gallery ul li.tb7 {background:url(../i/gallery/t7.jpg) -320px -190px;}
#gallery ul li.tb8 {background:url(../i/gallery/t8.jpg) -70px -70px;}
#gallery ul li.tb9 {background:url(../i/gallery/t9.jpg) -120px -210px;}
#gallery ul li.tb10 {background:url(../i/gallery/t10.jpg) -190px -180px;}
#gallery ul li.tb11 {background:url(../i/gallery/t11.jpg) -20px -240px;}
#gallery ul li.tb12 {background:url(../i/gallery/t12.jpg) -90px -100px;}
#gallery ul li.tb13 {background:url(../i/gallery/t13.jpg) -220px -160px;}
#gallery ul li.tb14 {background:url(../i/gallery/t14.jpg) -120px -160px;}
#gallery ul li.tb15 {background:url(../i/gallery/t15.jpg) -120px -80px;}
#gallery ul li.tb16 {background:url(../i/gallery/t16.jpg) -130px -80px;}
#gallery ul li.tb17 {background:url(../i/gallery/t17.jpg) 0 0;}
#gallery ul li.tb18 {background:url(../i/gallery/t18.jpg) -130px -30px;}

/* Hide the full size images */
#gallery ul li span i img {display:none;}

/* set up the .click style which will be added using javascript */

/* Change the li border to white */
#gallery ul li.click {border-color:#e9cd6f; cursor:default;}

/* Position the span using an absolute position and specify the width and height */
#gallery ul li.click span {position:absolute; left:0; top:0; width:582px; height:415px;}

/* Set up the i so that it is the same size as the span BUT this has a static position so that the image can be both vertically and horizontally centered in all browsers except IE using display:table-cell */
#gallery ul li.click span i {width:582px; height:413px; display:table-cell; vertical-align:middle; text-align:center;} 

/* Make the image actual size using auto width and height */
#gallery ul li.click span i img {display:block; width:auto; height:auto; border:1px solid #2b2b2b; margin:0 auto;}

/* set up the default image */
#gallery ul li.default {width:0; height:0; border:0;}
#gallery ul li.default span {position:absolute; left:0; top:0; width:582px; height:415px;}
#gallery ul li.default span i {width:582px; height:415px; display:table-cell; vertical-align:middle; text-align:center;} 
/* specify the image width and height for IE6 */
#gallery ul li.default span i img {display:block; width:580px; height:415px; border:1px solid #2b2b2b; margin:0 auto;}
#gallery ul li.off {display:none;}