/*  
    overlay dimensions are defined with CSS. this tool detects them dynamically   
    and resizes the background image correspondingly 
*/ 
#myOverlay {     
	margin: 40px;
    width:800px; 
	height: 600px;
    /* overlay is initially hidden */ 
    display:none;  
	z-index: 997;
} 
 
/*  
    close button (div.close element) is auto-generated by default.  
    here it is positioned on top-right corner  
*/ 
#myOverlay div.close { 
    background:url(../close.png) no-repeat; 
    position:absolute; 
    top:0px; 
    right:10px; 
    width:36px; 
    height:36px; 
    cursor:pointer;     
	z-index: 999;
} 
 
/*  
    the actual content is moved little bit inside so that it doesn't overlap 
    with the drop shadow in the overlayed image 
*/ 

#myOverlay div.content {
	margin: 50px 10px 10px;
	height: 540px;
	color: #333;
	font: normal 9pt Arial, Helvetica, Sans-Serif;
	overflow: auto;
	z-index: 998;
}