/* GALLERY CSS */

.hidden {
	display: none;
	visibility: hidden;
}
.clear {
	clear: both;
}

/* GALLERY */

.gallery {
	width: 550px !important;
	margin: 9px auto;
}

.gallery h3 {
	margin-top: 15px !important;
}

.gallery td.galleryTop {
	text-align: center;
	height: 16px;
	padding: 0 0 3px 0;
}
.gallery td.galleryTop img {
	float: none !important;
	margin: 0 !important;
}

.gallery td.galleryLeft, .gallery td.galleryRight {
	width: 55px !important;
	vertical-align: middle !important;
	text-align: center !important;
}
.gallery td.galleryLeft img, .gallery td.galleryRight img {
	float: none !important;
	margin: 0 !important;
}
.gallery .wrapper {
	width: 433px;
	height: 83px;
	overflow: hidden;
}
.gallery .window {
	height: 83px;
}

.gallery .window ul{
	margin:0;
	padding:0;
}
.gallery .window ul li{
	cursor:pointer;
	width:100px;
	height:75px;
	float: left;
	list-style-type: none;
	overflow:hidden;
}

.gallery .galBtn {
	cursor: pointer;
}


/* PHOTO GALLERY COMPONENTS */

.gTable {
	width: 100%;
}
.gTable tr td {
	vertical-align: top;
	/*padding: 0 6px 6px 0;*/
}
.gTable .gImage a {
	width: 100px;
	height: 75px;
	display: block;
	border: 3px solid #EEE;
	background-position: top center;
	background-repeat: no-repeat;
	margin: 0 0 4px 0;
}
.gTable .gImage a img {
	display: none;
	visibility: hidden;
}
.gTable span {
	font-size: 75%;
}

/*  MODAL GALLERY WINDOW COMPONENTS */

.modalDiv #background {
	z-index: 0;
}

.modalBox img{
	border: none !important;
	margin: 0 !important;
	float: none !important;
}

.popBtn {
	width:100px;
	height:75px;
	list-style:none;
}

.modalBox {
	margin-top: 58px;
	margin-left: 65px;
	width: 860px;
}
.modalBox .modalBar {
	background: url("/img/modal/modalBar.png") 0 0 no-repeat;
	width: 860px;
	height: 19px;
}
.modalBox .mainImage {
	width: 860px;
	height: 400px;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}
.modalBox .mainImage img {
/*	width: 532px;
	height: 400px;*/
	/*window is 860 wide, so if img is 532 wide, left margin s/b 164*/
	border: none !important;
	padding: 0 !important;
/*	margin: 0 0 0 164px !important;*/
	float: none !important;
}
.modalBox .btnClose {
	width: 20px;
	height: 20px;
	cursor: pointer;
}
.modalBox .mainImage p {
	z-index: 100;
	position: absolute;
	top: 460px;
	display: block;
	width: 860px;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #fff;
	font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
	font-size: 12px;
	line-height: 18px;
	color: #555;
}
.modalBox .mainImage p a:link,
.modalBox .mainImage p a:visited,
.modalBox .mainImage p em {
	font-weight: bold;
	color: #333;
}
.modalBox .mainImage p a:hover {
	color: #ef4850;
	text-decoration: none;
}
.modalBox .loader {
	background: url("/img/modal/loader.gif") 50% 50% no-repeat;
	width: 100%;
	height: 412px;
}

/* THUMBS */
.modalBox table {
	width: 860px;
	height: 75px;
}

.modalBox table td.galleryTopModal {
	width:860px;
	text-align: center;
	padding: 4px 0 2px 0;
	height: 16px;
	line-height: 0;
	vertical-align: bottom;
}

.modalBox table td span.btnL,
.modalBox table td span.btnR {
	cursor: pointer;
	width: 22px;
	height: 22px;
	display: block;
	margin: 0 12px;
}

.modalBox table td.gtdL,
.modalBox table td.gtdR {
	width: 47px !important;
	vertical-align: middle !important;
	text-align: center !important;
}
.modalBox .thumbRow {
	width: 766px;
	height: 75px;
	overflow: hidden;
}
.modalBox .thumbRow ul {
	margin: 0;
	padding: 0;
/*	width: 3440px;  //this needs to be dynamic depending on the number of images in the gallery. will do inline via php */
	
}
.modalBox .thumbRow li {
	opacity: 0.25;
	float: left;
/*	margin: 0 11px 11px 0; margin being set by jquery*/
	cursor: pointer;
}
.modalBox .thumbRow li.active {
	opacity: 1.0;
	cursor: default;
}
.modalBox .thumbRow li:hover {
	opacity: 1.0;
	cursor: pointer;
}
.modalBox .thumbRow li span em {
	display: none;
	visibility: hidden;
}

.imgTitle {
	font-family: Arial, verdana, sans-serif;
	position:absolute;
	top:447px;
	width:860px;
	text-align:center;
}

.imageTitleDisplay {
	padding:1px 0;
	color: #FFF;
	background-image:url(/img/modal/titleMid.png);
	background-repeat:repeat;
	vertical-align:top;
}

.imageMove img{
	border: 3px solid #EEE;
	background-position: top center;
	background-repeat: no-repeat;
	margin: 0 0 4px 0;
	cursor:move;
}