.bg_thumbs, .box_next_in, a.next_in, .box_previous_in, a.previous_in, .img_box, .thumbs_close {
    position:absolute;
}
.bg_thumbs, .img_box  {
    position:fixed!important;
}
.bg_thumbs {
    top:0;
    left:0!important;
    width:100%;
    z-index:1001;
}
.box_next_in, a.next_in, .box_previous_in, a.previous_in {
	display:block;
}
.box_next_in, .box_previous_in, .img_box {
	overflow:hidden;
}
.box_next_in {
	top:0;
	right:0;
	z-index:1010;
	background:none;
}
a.next_in, a.previous_in {
	right:-20px;
}
a.next_in {
	z-index:1011;
	background:url(next_tt.gif) top right no-repeat;
}
.box_previous_in {
	top:0;
	z-index:100012;
	left:0;
	background:none;
}
a.previous_in {
    z-index:100013;
	background:url(prev_tt.gif) top left no-repeat;
}
.box_next, .box_previous {	
	height:18px;
	width:81px;
}
a.next_in, a.previous_in {
	text-indent:-999em;
}
.img_box {
	top:50%;
	left:50%;
	margin-top:-18px;
	margin-left:-25px;
	width:50px;
	height:50px;
	border:solid 1px;
	z-index:1002;
}
.img_box img {
	position:relative;
	top:0;
	left:0;
	z-index:1003;
}
.thumbs_close {
	bottom:0;
	right:0;
	color:#fff;
	cursor:pointer;
	margin:0 5px 3px 0;
	z-index:100014;
	background:url(close_t.gif) center right no-repeat;
	background-size: contain !important;
}
.bg_thumbs, .img_box, .thumbs_close, .pre {
	visibility:hidden;
}
.bg_thumbs, .box_next, .box_previous, a.next, a.previous, .pre, .end, .begin {
	display:none;
}
.gallery_in {
	height:100%!important;
	height:auto;
}
.bg_thumbs, .gallery_in, .gallery_in ul, .img_box, .img_box img {
	padding:0;
}
.bg_thumbs, .gallery_in, .gallery_in ul, .gallery_in img {
	margin:0;
}
.gallery_in ul, .gallery_in li {
	list-style-type:none;
} 
.gallery_in, .gallery_in li, .gallery_in li a, .gallery_in li a:hover {
	float:left;
}