<!--

var IE;

if (navigator.appName.indexOf("Microsoft") != -1)
{
	IE=true;
}

function winstat(txt)
{
	eval("window.status='"+txt+"'; ");
}

function jsfenster(url,x,y,name)
{
	window.open(url,name,"width="+x+",height="+y+",screenX=250,screenY=550,scrolling=yes,location=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");
}

function showGalleryImage( imgpath )
{
	var theimg = new Image();
	var w = window.open("",
		"galleryimage",
		"width=450,height=450,toolbar=no,resizeable=yes,scrollbars=no");
	w.document.writeln(
		"<html><head></head>"+
		"<body style=\"margin:0;padding:0;\">"
		+"<a href=\"#\" onclick=\"self.close();\">"
		+"<img src=\""+imgpath+"\" border=\"0\" /></a>"
		+"</body>"
		+"</html>");
	w.document.close();
	w.focus();
	theimg.onload=function ()
	{
		var wwidth=theimg.width;
		var wheight=theimg.height;
		
		if (w.sizeToContent)
		{
			w.sizeToContent();
		}
		else
		{
			var dyn_h = 25;
			if (IE)
				{
					dyn_h = 60;
				}
			w.resizeTo((wwidth+25),(wheight+dyn_h));		
		}
	}
	
	theimg.src = imgpath;
	return w;
}

function imagePreview( imgpath, title )
{
	if (!title) { title = ""; }
	var w = showGalleryImage(imgpath,title);
	w.focus();
	return w;
}

//-->
