/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	Written by Bugimus 
	Copyright © 1998-2001 Bugimus, all rights reserved.
	You may use this code for your own *personal* use provided you leave this comment block intact.  
	A link back to Bugimus' page would be much appreciated.  
	http://bugimus.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(textColor=="")textColor="#000000"
	if(bgColor=="")bgColor="#ffffff"
	winHeight=imgHeight+110;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "BODY{color:#000000;}" );
	w.document.write( ".BODY A {font-family: verdana; font-size: 10px; color: #000000; text-decoration : none; background-color:#f5f5f5; display:block;}" );
	w.document.write( ".BODY A:Visited {font-family: verdana;font-size: 10px; color: #444444; }" );
	w.document.write( ".BODY A:Active { font-family: verdana; font-size: 10px; color: #444444; }" );
	w.document.write( ".BODY A:Hover { font-family: verdana; font-size: 10px; color: #444444; background-color:#ffffff;}" );
	w.document.write( ".BODY { font-family: verdana; font-size : 10px; font-weight: normal; color: #000000; background-color : "+bgColor+"; }" );
	w.document.write( "#footer {padding:3px; margin-top:0px;font:9px verdana, arial, helvetica, san serif; color:#666666; text-decoration: none;background-color:#F1F1F1;border:1px solid #DEDEDE;margin-left:5px; margin-right:25px;padding:px;}");
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "function Windowclose()\n");
	w.document.write( "{window.close()\n");
	w.document.write( "self.close()\n");
	w.document.write( "close()}\n");
	w.document.write( "</script>\n");
	w.document.write( "</head><body bgcolor='#ffffff' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>" );
	w.document.write( "<div align='center' class='body' style='padding-top:5px; font-weight:bold;'>"+imgCaption+"</div><br /><table cellpadding=0 cellspacing=0 border=0 onClick='Windowclose()' class='body'><tr><td><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
	w.document.write( "<tr><td align='left' height='110' valign='top' class='body' style='padding-top:8px'><a href='javascript:top.window.close();'>&nbsp;&nbsp;&nbsp;close window</a><br />");
	w.document.write( "<div id='footer'>All photographs are copyright of Aesthetic Plastic Surgery and should not be used without permission. Photographs are presented to demonstrate some of the results our patients have obtained with surgery. Some patients achieve better results and others not as good as those shown here. Surgical results depend on many variables including surgical technique, quality of the patient's tissue, age, nutrition, wound healing characteristics, smoking, patient compliance with instructions, and other factors. Each patient is unique and even if you have one of the operations shown here, you may or may not achieve the same result.</div></td></tr>");
	w.document.write( "</table></body></html>");
	w.document.close();
}

