/* ------------------------------------------------------ */
/* --- Overlay for forms --- */
/* ------------------------------------------------------ */

/* use a semi-transparent image for the overlay */
#overlay {
	background-image: url(/js/overlay/transparent.png);
	color: #efefef;
	height: 450px;
}

/* container for external content. uses vertical scrollbar, if needed */
.contentWrap {
	height: 441px;
	overflow-y: auto;
}

/* the overlayed element */
.apple_overlay {
	
	/* initially overlay is hidden */
	display: none;
	
	/* growing background image */
	background-image: url(/js/overlay/white.png);
	
	/* 
		width after the growing animation finishes
		height is automatically calculated
	*/
	width: 640px;
	
	/* some padding to layout nested elements nicely  */
	padding: 35px;

	/* a little styling */	
	font-size: 11px;
}

/* default close button positioned on upper right corner */
.apple_overlay div.close {
	background-image: url(/js/overlay/close.png);
	position: absolute; right:5px; top:5px;
	cursor: pointer;
	height: 35px;
	width: 35px;
}

/* ------------------------------------------------------ */
/* --- Overlay for the gallery --- */
/* ------------------------------------------------------ */

/* the overlayed element */
.simple_overlay {
	
	/* must be initially hidden */
	display: none;
	
	/* place overlay on top of other elements */
	z-index: 9999;
	
	/* styling */
	background-color: #333;
	width: 675px;
	min-height: 200px;
	border: 1px solid #666;
	
	/* CSS3 styling for latest browsers */
	-moz-box-shadow: 0 0 90px 5px #000;
	-webkit-box-shadow: 0 0 90px #000;
}

/* close button positioned on upper right corner */
.simple_overlay .close {
	background-image: url(/js/overlay/close.png);
	position: absolute;
	right: -15px;
	top: -15px;
	cursor: pointer;
	height: 35px;
	width: 35px;
}

/* ------------------------------------------------------ */

/* the large image. we use a gray border around it */
#img {
	border: 1px solid #666;
	border-right: 2px solid #666;
	border-bottom: 2px solid #666;
}

/* "next image" and "prev image" links */
#gallery .next, #gallery .prev {
	
	/* absolute positioning relative to the overlay */
	position: absolute;
	top: 40%;
	border: 1px solid #666;
	cursor: pointer;
	display: block;
	color: #ccc;
	font-size: 20px;
	
	/* upcoming CSS3 features */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
}

#gallery .prev {
	padding: 8px 28px 12px 25px;
	left: -1px;
	border-left: 0;
	-moz-border-radius-topleft: 0;
	-moz-border-radius-bottomleft: 0;
	-webkit-border-bottom-left-radius: 0;
	-webkit-border-top-left-radius: 0;
}

#gallery .next {
	padding: 8px 26px 12px 26px;
	right: -2px;
	border-right: 0;
	-moz-border-radius-topright: 0;
	-moz-border-radius-bottomright: 0;
	-webkit-border-bottom-right-radius: 0;
	-webkit-border-top-right-radius: 0;	
}

#gallery .next:hover, #gallery .prev:hover {
	font-weight: bold;
	color: #fff;
}

/* when there is no next or previous link available this class is added */
.disabled {
	visibility: hidden;
}

/* the "information box" */
.info {
	position: absolute;
	bottom: -2px;
	left: 0;
	padding: 10px 15px;
	color: #fff;
	font-size: 11px;
	border: 1px solid #666;
}

.info strong {
	display: block;
}

/* progress indicator (animated gif). should be initially hidden */
.progress {
	position: absolute;
	top: 45%;
	left: 50%;
	display: none;
}

/* everybody should know about RGBA colors. */
#gallery .next, #gallery .prev, .info {
	background: #111 !important;
	background: rgba(0, 0, 0, 0.6) url(/js/overlay/h80.png) repeat-x;		
}

/* ------------------------------------------------------ */


/* THESE ARE IN THE MAIN STYLE SHEET */

/* thumbnails */
/*
#ebook-samples {
	text-align: center;
}

#ebook-samples img {
	background-color: #fff;
	padding: 2px;
	border: 1px solid #ccc;
	margin: 15px 2px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}
*/

/* the active thumbnail */
#ebook-samples a.active img {
	outline: 1px solid #000;

	/* show on top of the expose mask */
	z-index: 9999;
	position: relative;
}

