/* ================== Compact ajax gallery ================== */
	.gallery_wrapper {
		text-align: center;
		position: relative;
	}

	.gallery_wrapper.gallery_medium {
		width: 400px;
	}
	
	.gallery_large {
		width: 400px;
	}
	
	.gallery_small {
		width: 200px;
	}
	
	.compact_ajax_gallery {
		position: relative;
		overflow: hidden;
		text-align: center;
		clear: both;
	}
	
	.main_image_div {
		position: relative;
		padding: 0;
	}
	
	.compact_ajax_gallery .caption {
		position: absolute;
		bottom: 0;
		right: 0;
		text-align: right;
		background: url(../images/black_70.png) top left;
		font-size: 11px;
		width: 390px;
		padding: 2px 5px;
	}

	
	.compact_ajax_gallery .gallery_nav {
		position: absolute;
		bottom: 0;
		right: 0;
		background: url(../images/black_70.png) top left;
	}
	
	.compact_ajax_gallery div, .compact_ajax_gallery a {
		font-family: arial, helvetica, sans-serif;
		font-size: 8pt;
		color: #CCC;
	}
	
	.compact_ajax_gallery .gallery_nav div {
		float: left;
	}
	
	.compact_ajax_gallery .next_holder a, .compact_ajax_gallery .prev_holder a, .compact_ajax_gallery .next_holder span, .compact_ajax_gallery .prev_holder span {
		display: block;
		margin: 0;
		padding: 5px 5px 5px 5px;
		opacity: .7;
	}

	.compact_ajax_gallery a:hover {
		opacity: 1;
	}

	.compact_ajax_gallery .disabled {
		opacity: .3 ! important;
	}
	
	.compact_ajax_gallery .next_holder {
		border-left: 1px solid #888;
	}
	
	.compact_ajax_gallery .numbers {
		padding: 1px 5px 0 5px;
	}
	
	.compact_ajax_gallery .prev_holder {
		border-right: 1px solid #888;
	}
	
	.loading {
		opacity: .6;
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 999;
		margin: -15px 0 0 -15px;
	}

/* ========================== THUMBS ============================ */

.compact_ajax_gallery_thumbs {
	padding: 0;
	height: 60px;
	background: #DDD;
}

.compact_ajax_gallery_thumbs ul.thumbs {
	text-align: center;
	position: relative;
	padding: 5px 25px;
}

.compact_ajax_gallery_thumbs ul.thumbs li {
	display: inline;
	padding: 0 5px 0 0;
	line-height: 50px;
}

.compact_ajax_gallery_thumbs ul.thumbs li img {
	vertical-align: middle;
}

.compact_ajax_gallery_thumbs ul.thumbs li.prev {
	width: 20px;
	position: absolute;
	top: 0;
	left: 0;
	height: 54px;
	padding: 0;
}

.compact_ajax_gallery_thumbs ul.thumbs li.next {
	padding: 0;
	width: 20px;
	position: absolute;
	top: 0;
	right: 0;
	height: 60px;
}

table.thumbs_table {
	width: 100%;
	margin: 0;
}

table.thumbs_table td.button {
	/*width: 20px;*/
}

table.thumbs_table td.thumbs_wrapper {
	text-align: center;
}

table.thumbs_table td.thumbs_wrapper {
	height: 52px;
}

table.thumbs_table td.thumbs_wrapper div {
	display: inline;
	padding: 0 5px 0 0;
}

table.thumbs_table td.thumbs_wrapper a img {
	border: 1px solid #EEE ! important;
}

table.thumbs_table td.thumbs_wrapper a:hover img {
	border: 1px solid #555;
}

.compact_ajax_gallery_thumbs .disabled {
	display: none;
}

.compact_ajax_gallery_thumbs .prev a, .compact_ajax_gallery_thumbs .next a {
	opacity: .7;
	background: #555;
	margin: 0;
	padding: 22px 1px;
	display: block;
	border: 0;
}

.compact_ajax_gallery_thumbs .prev a img, .compact_ajax_gallery_thumbs next a img {
	border: 0 ! important;
}

.compact_ajax_gallery_thumbs a:hover {
	opacity: .5;
}

.compact_ajax_gallery_thumbs .next {
	margin: 0 ! important;
}