function showPic2( pFileName, pTitle, pWidth, pHeight) 
{
	NS4=(document.layers)?1:0;
	IE4=(document.all)?1:0;
	
	if (IE4)
	{
		pWidth = pWidth + 60;
		pHeight = pHeight + 60;
		if (pHeight > screen.availHeight-20) pHeight = screen.availHeight-20;
		if (pWidth > screen.availWidth) pWidth = screen.availWidth;
	}
	else
	{
		pWidth = pWidth + 40;
		pHeight = pHeight + 50;
		if (pHeight > screen.availHeight-20) pHeight = screen.availHeight-20;
		if (pWidth > screen.availWidth) pWidth = screen.availWidth;
	}

	// specify window parameters
	picWin = window.open("","pop","width=" + pWidth + ",height=" + pHeight + ",status=yes,scrollbars=yes,resizable=yes,left=20,top=20,screenX=20,screenY=20");
	
	var d=picWin.document;

	// write content to window
	if (pTitle != '')
		d.writeln('<html><head><title>' + pTitle + '</title>');
	else
		d.writeln('<html><head><title>Click anywhere to close this window</title>');

	d.writeln('<meta http-equiv="imagetoolbar" content="no">');
	d.writeln('<style>');	
	d.writeln('#clickMsg {text-align:center; display:none}');	
	d.writeln('#loadMsg  {text-align:center; display:block}');	
	d.writeln('</style>');	
	d.writeln('<link title="styles" rel="stylesheet" type="text/css" href="/Include/styles.css">');	
	d.writeln('<script type="text/javascript" language="JavaScript">');	
/*
	d.writeln('NS4=(document.layers)?1:0;IE4=(document.all || document.captureEvents)?1:0;');	
	d.writeln('ver4=(IE4 || NS4)?1:0;');	
	d.writeln('if (ver4){ if (NS4) {document.captureEvents(Event.MOUSEDOWN);');
	d.writeln('document.onmousedown=clk;}');
	d.writeln('else{document.onclick=clk;}}');	
*/

	d.writeln('if (document.addEventListener)'); // Firefox
	d.writeln(' {document.addEventListener("click", clk, true );}');
	d.writeln('else if (window.captureEvents)'); // NS4+
	d.writeln(' {window.captureEvents(Event.CLICK);');
	d.writeln(' window.onclick = clk;}');
	d.writeln('else if (document.all)'); // IE
	d.writeln(' {document.onmousedown=clk;}');


	d.writeln('function clk(){window.close();}');	

	d.writeln('function Expand() { ');
	d.writeln('document.getElementById("loadMsg").style.display="none";');
	d.writeln('document.getElementById("clickMsg").style.display="block";');
	d.writeln('self.focus();}');
	d.writeln("</script></head>");	

	d.writeln('<body class="popwin" onLoad=javascript:Expand() onBlur=javascript:close()>');

	d.writeln('<div id="loadMsg">');
	d.writeln('Loading image - please wait...');
	d.writeln('</div>');

	d.writeln('<img src="' + pFileName + '" alt="' + pTitle + '">');

	d.writeln('<div id="clickMsg">');
	d.writeln('Click anywhere to close this window');
	d.writeln('</div>');

	d.writeln('</body></html>');
	d.close();	
}

///////////////////////////////////////////////////////////////////////////////////
/*
function showPic( pFileName, pTitle) 
{
	// specify window parameters
	picWin = window.open( "","pop","width=400,height=300,status=yes,scrollbars=yes,resizable=yes,left=20,top=20,screenX=20,screenY=20");
	var d=picWin.document;

	// write content to window
	if (pTitle != '')
		d.writeln('<html><head><title>' + pTitle + '</title>');
	else
		d.writeln('<html><head><title>Click anywhere to close this window</title>');

	d.writeln('<meta http-equiv="imagetoolbar" content="no">');
	d.writeln('<style>');	
	d.writeln('#clickMsg {text-align:center; display:none}');	
	d.writeln('#loadMsg {text-align:center; display:block}');	
	d.writeln('</style>');	
	d.writeln('<link title="styles" rel="stylesheet" type="text/css" href="/Include/styles.css">');	

	d.writeln('<SCRIPT LANGUAGE="JavaScript1.2">');	
	d.writeln('NS4=(document.layers)?1:0;IE4=(document.all)?1:0;');	
	d.writeln('ver4=(IE4 || NS4)?1:0;');	
	d.writeln('if (ver4){ if (NS4) {document.captureEvents(Event.MOUSEDOWN);');
	d.writeln('document.onmousedown=clk;}');
	d.writeln('else{document.onclick=clk;}}');	
	d.writeln('function clk(){window.close();}');	

	d.writeln('function Expand() { ');
	d.writeln('var h; var w;');
	d.writeln('if (IE4) {');
	d.writeln('h=document.images[0].height + 100;');
	d.writeln('w=document.images[0].width + 50;');
	d.writeln('if (h > screen.availHeight-20) h = screen.availHeight-20;');
	d.writeln('if (w > screen.availWidth) w = screen.availWidth;');
	d.writeln('} else {');
	d.writeln('h=document.images[0].height + 50;');
	d.writeln('w=document.images[0].width + 25;');
	d.writeln('if (h > screen.availHeight-70) h = screen.availHeight-70;');
	d.writeln('if (w > screen.availWidth) w = screen.availWidth;');
	d.writeln('}');

	d.writeln('document.getElementById("loadMsg").style.display="none";');
	d.writeln('document.getElementById("clickMsg").style.display="block";');
	d.writeln('self.resizeTo(w,h); self.focus();}');
	d.writeln("</script></head>");	

	d.writeln('<body class="popwin" onLoad=javascript:Expand() onBlur=javascript:close()>');

	d.writeln('<div id="loadMsg">');
	d.writeln('Loading image - please wait...');
	d.writeln('</div>');

	d.writeln('<img src="' + pFileName + '">');

	d.writeln('<div id="clickMsg">');
	d.writeln('Click anywhere to close this window');
	d.writeln('</div>');

	d.writeln('</body></html>');
	d.close();	
}
*/
///////////////////////////////////////////////////////////////////////////////////

function DisplayImage( pFileName, pTitle, pWidth, pHeight) 
{
	var i = document.getElementById('image');
	i.src = pFileName;
	//i.width = pWidth;
	//i.height = pHeight;
	i.alt = pTitle;
	parent.location = '#img'
}

///////////////////////////////////////////////////////////////////////////////////

function Footer(mod)
{
	var text = "";
	text += '<div id="copyright">Images, content & design copyright &copy A. Hughes 1999 - 2008. Reproduction strictly prohibited.<br>  ';
	text += 'Last modified: ';
	document.write (text);
	document.write (mod);
	text = '</div>';
	document.write (text);
	document.close();
}

///////////////////////////////////////////////////////////////////////////////////

function Copyright()
{
	var text = "<div id=\"copyright\">Images, content & design copyright &copy A. Hughes 1999 - 2008. Reproduction strictly prohibited.</div>";
	document.write (text);
	document.close();
}

///////////////////////////////////////////////////////////////////////////////////

