#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);
}

#facebox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 500;
}

#facebox .popup {
  position: relative;
}

#facebox table {
  border-collapse: collapse;
}

#facebox td {
  border-bottom: 0;
  padding: 0;
}

#facebox .body {
	padding:0px;
	background:#111;
	color:#999;

	/*   min-height:500px; */
	min-width:500px;
	_width: 500px;
}
#facebox .footer .close {
	background:url('closelabel.gif') no-repeat;
	display:block;
	height:22px;
	width:66px;
	position:absolute;
	right:4px;
	bottom:4px;
}
#facebox .footer  {
	display:block;
	position:relative;
	height:32px;
	width:100%;
}

#facebox .loading {
  text-align: center;
  height:100px;
  background:url('loading.gif');
  background:url('loading.png'), transparent;
  background-color:#666;
  background-repeat:no-repeat;
  background-position:50% 50%;
}

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

#facebox img {
	border:none;
	vertical-align:bottom;
	/*max-width:500px;
	max-height:500px;*/
}

#facebox .footer {
  *border-top: 1px solid #333;
  *padding-top: 5px;
  *margin-top: 10px;
}

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

#facebox_overlay {
  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');
}
