/* 
* ======== Copyright notes ========== *

This code was designed and written by
Michiel van Veen. Anyone may use this
code as long as this part is published
with it.

     (C)opyright 2002 M. van Veen.
         michielvv@hotmail.com

* =================================== *
*/
var dir = "/";
var photodir = "pics/";

function changeDir( dr )
{
	dir = dr;
}

function changePhotoDir( dr )
{
	photodir = dr;
}

function showPhoto( photoName, title, width, height )
{
	width -= 25;
	height -= 0;
	lft = (screen.width - width) / 2;
	tp = (screen.height - height - 100) / 2;
	var header =	"<html>" +
			"<head>" +
			"<LINK REL=stylesheet HREF='../css/normal2.css' TYPE='text/css'>" +
			"<title>" + title + "</title>" +
			"</head>"+
			"<body bgcolor='#000000' style=\"background-Image:URL('');\">" +
			"<center><br><a href='javascript:this.close();'>";
	
	var content=	"<img border=0 src=\"" + photodir + "" + photoName + "\" alt='" + title + "'>";

	var tailer =	
			"<br>Close window</a></center>";
			"</body>" +
			"</html>";

	var w = window.open('','',config='width=' + width + ', height=' + height + ', top='+tp+', left='+lft+', toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, directories=no, status=no');
	w.document.writeln( header );
	w.document.writeln( content );
	w.document.writeln( tailer );
	// w.focus();
}