
/* 主圖區 */
.p_img .ad-image-wrapper {
	margin-bottom:20px;
	position:relative;
	overflow:hidden;
	border:1px solid #d0d0d0;
}
.p_img .ad-image-wrapper .ad-loader {
	position:absolute;
	z-index:10;
	top:48%;
	left:48%;
	border:1px solid #CCC;
}
.p_img .ad-image-wrapper .ad-image {
	position:absolute;
	overflow:hidden;
	top:0;
	left:0;
	z-index:9;
}

	/* 方向鍵 */
	.p_img .ad-image-wrapper .ad-prev, .p_img .ad-image-wrapper .ad-next {
		background:url("../../images/ad_gallery/trans.gif");
		position:absolute; top:0; width:25%; height:100%; cursor:pointer; display:block; z-index:200;
		}
		.p_img .ad-image-wrapper .ad-next { right:0; }
		.p_img .ad-image-wrapper .ad-prev { left:0; }
	.p_img .ad-image-wrapper .ad-prev .ad-prev-image, .p_img .ad-image-wrapper .ad-next .ad-next-image {
		width:30px; height:30px; position:absolute; top:47%; z-index:101;
		}
		.p_img .ad-image-wrapper .ad-prev .ad-prev-image { background:url("../../images/ad_gallery/ad_prev.png"); left:0; }
		.p_img .ad-image-wrapper .ad-next .ad-next-image { background:url("../../images/ad_gallery/ad_next.png"); right:0; }


	/* 圖片描述 */
	.p_img .ad-image-wrapper .ad-image .ad-image-description { display:none; }
	.p_img .ad-image-wrapper .ad-image .ad-image-description .ad-description-title {}

/* 狀態列及幻燈播放鍵 */
.p_img .ad-controls { display:none; }
.p_img .ad-info {}
.p_img .ad-slideshow-controls {}
.p_img .ad-slideshow-controls .ad-slideshow-start, .p_img .ad-slideshow-controls .ad-slideshow-stop {}
.p_img .ad-slideshow-controls .ad-slideshow-countdown {}
.p_img .ad-slideshow-running .ad-slideshow-start {}

/* 縮圖列 */
.p_img .ad-nav {
	width:100%;
	position:relative;
}
.p_img .ad-forward, .p_img .ad-back {
	position:absolute;
	display:block;
	cursor:pointer;
	width:28px;
	top:0;
	height:100%;
	z-index:10;
}
	/* IE 6 doesn't like height:100% */
    * html .p_img .ad-forward, .p_img .ad-back {
	height:66px;
}
.p_img .ad-back {
	left:0;
	background:url("../../images/ad_gallery/ad_scroll_back.png") center center no-repeat;
}
.p_img .ad-forward {
	right:0;
	background:url("../../images/ad_gallery/ad_scroll_forward.png") center center no-repeat;
}
.p_img .ad-nav .ad-thumbs {
	overflow:hidden;
	margin:0 auto;
}
.p_img .ad-thumbs .ad-thumb-list {
	float:left;
	width:9000px;
	list-style:none;
}
.p_img .ad-thumbs li {
	float:left;
	padding-right:5px;
}
.p_img .ad-thumbs li a {
	display:block;
}
.p_img .ad-thumbs li a img {
	border:3px solid #CCC;
	display:block;
	height:60px;
}
.p_img .ad-thumbs li a.ad-active img {
	border:3px solid #E65B54;
	
}

.ad-image { text-align:center; }
.ad-image * { vertical-align:middle; }
.ad-image > span { display:inline-block; *display:inline; *zoom:1; height:100%; }
.ad-image img { max-width:100%; max-height:100%; }
/* Can't do display none, since Opera won't load the images then */
.ad-preloads {
	position:absolute;
	left:-9000px;
	top:-9000px;
}
