// JavaScript 1.2: Picture Viewer script
// Author: Copyright 2000, Chris Colefax (ccolefax@yahoo.com)

// Use as onclick event of link to image, passing 'this' as the picname

function PanView (PanName, Caption) {
	var PicWindow = window.open ('', 'PicWindow', 'width=530,height=465,resizable=1,dependent=1,scrollbars=1,menubar=1');
	PicWindow.moveTo(20, 20);
	with (PicWindow.document) {
		open ("text/html");
		writeln ('<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "DTD/xhtml1-transitional.dtd">');
		writeln ('<html lang="en" xmlns="http:www.w3.org/1999/xhtml">');
		writeln ('<head><title>jointfreeslabs.com - Photo Viewer</title>');
		writeln ('<meta name="author" content="Webdesign and scripting copyright 2003, Chris Colefax (ccolefax@yahoo.com), All Rights Reserved" />');
		writeln ('<link href="styles.css" rel="stylesheet" type="text/css" />');
		writeln ('</head>');
		writeln ('<body bgcolor="#ffffff" text="#000000" link="#223366" alink="#ff9900" vlink="#666666" style="margin: 10px;">');
		writeln ('<center>');
		writeln ('<small>' + Caption + '</small><br /><br />');
		writeln ('<iframe src="' + PanName.href + '" width="97%" height="420" border="0" marginwidth="0" marginheight="0">');
		writeln ('<img src="' + PanName.href + '" height="87%" border="0" alt="' + Caption + '" />');
		writeln ('</iframe>');
		writeln ('</center>');
		writeln ('</body></html>');
		close();
		}
	PicWindow.focus();
	return false;
	}
