.tdcontent {
	padding:10px;
}

div#gallery {
	position:relative;
	width:775px;
	margin:auto;
	padding:3px;
	text-align:center;
	font-family:"Trebuchet MS",verdana,arial;
	color:#FFF;
}
div#gallery h2 {
	color:#666;
	font-size:13px;
	left:30px;
	margin:0px;
	float:left;
}

div#gallery ul {
	list-style-image:none;
	list-style-position:outside;
	list-style-type:none;
	padding:0px;
	margin:0px;
}
div#gallery ul:after {
	clear:both;
	content:".";
	display:block;
	height:0pt;
	visibility:hidden;
}

div#gallery li {
	margin:1px;
	padding:0px;
	float:left;

}
div#gallery li img {
	border:0;
}


div#gallery li a {border:1px solid #000;}
div#gallery li a.selected {border:1px solid #CCFF00;}
div#gallery li a:hover {border:1px solid #CCFF00;}
div#gallery li a:active {border:1px solid #CCFF00;}


* html .clearfix {
	height:1%;
}

.switchviewbutton {
	display:none;
	position:relative;
	width:10px;
	height:10px;
	padding-right:5px;
	_padding-right:0px;
	float:right;
}







/* Vertical settings for gallery */

.gallery_vertical {
	min-height: 150px;
	_height: auto;
}

.galleryimage_vertical {
	width:100%;
	margin-left:auto;
	margin-right:auto;
	text-align:center;
}

.galleryimage_vertical img {
	margin: 22px 0px 3px 0px;
	border: 1px solid #aaa;
}

.thumbsholder_vertical {
	padding:12px;
	margin-top: 22px;
	border: 1px solid #bbb;
	cursor: pointer;
}

.multirowbutton_vertical {
	width:10px;
	height:10px;
	float: right;
	margin-top: -10px;
	margin-right: -10px;
	_margin-right: -10px;
}

.panel1_vertical {
	position:relative;
	height:68px;
	border: 1px solid #ccc;
	overflow:hidden;
}
.panel1_vertical_multirow {
	position:relative;
	min-height:74px;
	_height:74px;
	border: 1px solid #ccc;
	overflow:visible;
}


.panel2_vertical {
	position:absolute;
	padding:2px;
	top:0px;
	left:0px;
}
.panel2_vertical_multirow {
	position:relative;
	padding:2px;
	top:0px;
	left:0px;
	min-height:74px;
	_height:100%;
}


.galleryimage_vertical .mainimagetitle_vertical {
	float:right;
}

.thumbsholder_vertical {
	/* xbackground:transparent url(/images/gallery/listbg.gif) no-repeat scroll left bottom; */
	background-color:#ddd;
	cursor: pointer;
}

.panel1_vertical {
	/* xbackground:transparent url(/images/gallery/panel-left.png) no-repeat scroll left top;*/
	background-color:#eee;
}
.panel1_vertical_multirow {
	/* xbackground:transparent url(/images/gallery/panel-left.png) no-repeat scroll left top;*/
	background-color:#eee;
}
.panel2_vertical {
	xbackground:transparent url(/images/gallery/panel-right.png) no-repeat scroll left top;
}
.panel2_vertical_multirow {
	xbackground:transparent url(/images/gallery/panel-right.png) no-repeat scroll left top;
}

.galleryimage_vertical.disc {
	xbackground:transparent url(/images/gallery/loadingdisc.gif) no-repeat scroll center;
}

.galleryimage_vertical.nodisc {
	background:transparent none repeat scroll 0%;
}

#mainimagetitle {
	background-color: #191919;
	padding-bottom:8px;
}

.gallery_up {
	margin-top: -21px;
	margin-bottom: 9px;
	margin-left: 56px;
}

.gallery_down {
	clear:both;
	margin-top: 9px;
	margin-left: 56px;
}



/* Horizontal settings for gallery */

.gallery_horizontal {
	min-height:432px;
	_height:432px;
	text-align:left;
}

.galleryimage_horizontal {
	min-height:400px;
	_height:400px;
}

.galleryimage_horizontal {
	width: 600px;
	float: left;
}

.galleryimage_horizontal.disc {
	background:transparent url(/images/gallery/loadingdisc.gif) no-repeat scroll center;
}

.galleryimage_horizontal.nodisc {
	background:transparent none repeat scroll 0%;
}

.galleryimage_horizontal img {
	width:600px;
}

.galleryimage_horizontal div {
	padding-top: 2px;
	padding-left: 6px;
	padding-right: 6px;
	padding-bottom: 0px;
}

/* .galleryimage_horizontal .mainimagetitle_horizontal {
	float:right;
} */

.thumbsholder_horizontal {
	/* xbackground:transparent url(/images/gallery/listbg.gif) no-repeat scroll left bottom; */
	background-color:#000;
	position:absolute;
	margin-top:0px;
	xmargin-left:640px;
	padding-top:30px;
	padding-bottom:30px;
	padding-left:6px;
	padding-right:6px;
	text-align:left;
	xborder: 1px solid #bbb;
	width:125px;
	height:300px;
	right:0px;
	top: 0px;
	cursor: pointer;
}

.multirowbutton_horizontal {
	position:absolute;
	width:1px;
	height:1px;
	margin-left:6px;
	float:right;
}

.panel1_horizontal {
	/* xbackground:transparent url(/images/gallery/panel-left.png) no-repeat scroll left top;*/
	background-color:#000;
	position:relative;
	height:298px;
	width:126px;
	xborder: 1px solid #ccc;
	overflow:hidden;
}

.panel2_horizontal {
	xbackground:transparent url(/images/gallery/panel-right.png) no-repeat scroll left top;
	position:absolute;
	padding:0px;
	top:0px;
	left:0px;
	width:122px;
	min-height:60px;
	_height:60px;
}

