/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	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="#ffffff"

	if(bgColor=="")bgColor="#ffffff"

	if(imgWidth<=100)imgWidth=100

	if(imgHeight<=100)imgHeight=100

	winHeight=imgHeight+100;

	w = window.open('','phoo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+imgHeight);

	w.document.write( "<html><head><title>"+imgCaption+"</title>" );

	w.document.write( "<script language='JavaScript'>\n");

	w.document.write( "IE5=NN4=NN6=false\n");

	w.document.write( "if(document.all)IE5=true\n");

	w.document.write( "else if(document.layers)NN4=true\n");

	w.document.write( "else if(document.getElementById)NN6=true\n");

	w.document.write( "function autoSize() {\n");

	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+0)\n");

	w.document.write( "	else if(NN6) self.sizeToContent()\n");

	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+0)\n");

	w.document.write( "	self.focus()\n");

	w.document.write( "}\n");

	w.document.write( "</script>\n");

	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );

	w.document.write( "'javascript:autoSize();'>" );
	
	w.document.write( "<h1 style='position:absolute;top:-200px;left:0'>"+imgCaption+"</h1>" );
	
	w.document.write( "<a href='#' onclick='javascript:window.close();' title='"+imgCaption+" - click anywhere to close'><img src='"+imgName+"' border=0 alt='"+imgCaption+" - click anywhere to close' style='margin:0 10px 10px 0'></a>" );

	//w.document.write( "<img src='"+imgName+"' border=0 alt='"+imgCaption+"'>" );

	w.document.close();

}



