/*
#facebox .b {  background:url(./b.png);}
#facebox .tl {  background:url(./tl.png);}
#facebox .tr {  background:url(./tr.png);}
#facebox .bl {  background:url(./bl.png);}
#facebox .br {  background:url(./br.png);}
*/

/* boring border for ie6 */
/*
#facebox td.b,#facebox td.tl,#facebox td.tr,#facebox td.bl,#facebox td.br {
	_background:#666;
}
*/

#facebox {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 500;
	text-align: left;
	max-width:65%;
}

#facebox .popup {
	position: relative;
}

#facebox table {
	border-collapse: collapse;
	width:auto;
	border:none;
}
#facebox table table {
	width:100%;
}

/* firefox 3.5 & safari */
@media all and (min-width:0) {
	#facebox > div > table > tbody > tr > td:not(.body) {
		display:none;
	}
	#facebox > div >  table > tbody > tr > td.body {
		border-radius:1em;-moz-border-radius:1em;
		-moz-box-shadow:0 0 8em #000;box-shadow:0 0 8em #000;-webkit-box-shadow:0 0 8em #000;
	}
}


#facebox td.body,
#facebox td.b,
#facebox td.tl,
#facebox td.tr,
#facebox td.bl,
#facebox td.br {
	border-bottom:0;
	padding:0;
 }

#facebox td.body {
	-o-transition-duration: 0.3s; -moz-transition-duration: 0.3s; transition-duration: 0.3s;
	padding: 10px;
	background: #FFF;
	background: rgba(255,255,255,0.89);
	background: -moz-linear-gradient(center top, rgba(255,255,255,0.99), rgba(255,255,255,0.80) 80px);
	min-width:400px;
	max-width:1014px;
	_width: 400px;
}
#facebox td.body > .content {
	background:transparent;
}
#facebox .footer .close {
	display:block;
	float:right;
	background:url('closelabel.gif') no-repeat;
	width:66px;
	height:22px;
}
#facebox .footer {
	display:block;
	height:22px;
}

#facebox .loading {
	text-align: center;
}

#facebox .image {
	text-align: center;
}

#facebox .footer {
	border-top: 1px solid #DDDDDD;
	padding-top: 5px;
	margin-top: 10px;
	text-align: right;
}

#facebox .tl, #facebox .tr, #facebox .bl, #facebox .br {
	height: 10px;
	width: 10px;
	overflow: hidden;
	padding: 0;
}

#facebox_overlay {
	-o-transition-duration: 0.3s; -moz-transition-duration: 0.3s; transition-duration: 0.3s;
	position: fixed;
	top: 0px;
	left: 0px;
	height:100%;
	width:100%;
}

.facebox_hide {
	z-index:-100;
}

.facebox_overlayBG {
	background-color: #000;
	z-index: 499;
}

* html #facebox_overlay { /* ie6 hack */
	position: absolute;
	height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
