/* ================================================================ 
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:700px; height:680px; position:relative; background-image:url(../images/fiyah.jpg); background-repeat:no-repeat; border:1px solid #aaa;}

/* Float the ul to the right with a width to give 3 thumbnail images per row */
#gallery ul {list-style:none; padding:0; margin:25px 17px 0 0; width:180px; 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 5px 5px; border:1px solid #fff; cursor:pointer;}

/* Set up the thumbnail images as the background images */
#gallery ul li.tb1 {background:url(../images/s1t.jpg);}
#gallery ul li.tb2 {background:url(../images/s2t.jpg);}
#gallery ul li.tb3 {background:url(../images/s3t.jpg);}
#gallery ul li.tb4 {background:url(../images/s4t.jpg);}
#gallery ul li.tb5 {background:url(../images/s5t.jpg);}
#gallery ul li.tb6 {background:url(../images/s6t.jpg);}
#gallery ul li.tb7 {background:url(../images/s7t.jpg);}
#gallery ul li.tb8 {background:url(../images/s8t.jpg);}
#gallery ul li.tb9 {background:url(../images/s9t.jpg);}
#gallery ul li.tb10 {background:url(../images/s10t.jpg);}
#gallery ul li.tb11 {background:url(../images/s11t.jpg);}
#gallery ul li.tb12 {background:url(../images/s12t.jpg);}
#gallery ul li.tb13 {background:url(../images/s13t.jpg);}
#gallery ul li.tb14 {background:url(../images/s14t.jpg);}
#gallery ul li.tb15 {background:url(../images/s15t.jpg);}
#gallery ul li.tb16 {background:url(../images/s16t.jpg);}
#gallery ul li.tb17 {background:url(../images/s17t.jpg);}
#gallery ul li.tb18 {background:url(../images/s18t.jpg);}
#gallery ul li.tb19 {background:url(../images/s19t.jpg);}
#gallery ul li.tb20 {background:url(../images/s20t.jpg);}
#gallery ul li.tb21 {background:url(../images/s21t.jpg);}
#gallery ul li.tb22 {background:url(../images/s22t.jpg);}
#gallery ul li.tb23 {background:url(../images/s23t.jpg);}
#gallery ul li.tb24 {background:url(../images/s24t.jpg);}
#gallery ul li.tb25 {background:url(../images/s25t.jpg);}
#gallery ul li.tb26 {background:url(../images/s26t.jpg);}
#gallery ul li.tb27 {background:url(../images/s27t.jpg);}
#gallery ul li.tb28 {background:url(../images/s28t.jpg);}
#gallery ul li.tb29 {background:url(../images/s29t.jpg);}
#gallery ul li.tb30 {background:url(../images/s30t.jpg);}
#gallery ul li.tb31 {background:url(../images/s31t.jpg);}
#gallery ul li.tb32 {background:url(../images/s32t.jpg);}
#gallery ul li.tb33 {background:url(../images/s33t.jpg);}
#gallery ul li.tb34 {background:url(../images/s34t.jpg);}
/* 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:#000; 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:520px; height:680px;}

/* 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:520px; height:680px; 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 #fff; margin:8px 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:520px; height:680px;}
#gallery ul li.default span i {width:520px; height:680px; 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:338px; height:505px; border:1px solid #fff; margin:8px auto;}
#gallery ul li.off {display:none;}