function IsBrowserIE()
{
	if (navigator.appName.indexOf('Microsoft') != -1)
		return true;
	else
		return false;
}

function showImage(url, title) {
	var pos = '';
	var l = -1;
	var t = -1;
	var width = 560;
	var height = 520;

	if (IsBrowserIE())
	{
		l = (screen.Width - width) / 2;
		t = (screen.Height - height) / 2;
	}
	else
	{
		l = (screen.availWidth - width) / 2;
		t = (screen.availHeight - height) / 2;
	}

	if (l >= 0 && t >= 0) {
		pos = ',top='+t+',left='+l;
	}
	
	win = window.open('', '', 'width='+width+',height='+height+',resizable=0,scrollbars=0'+pos);
	if (win != null) {
		doc = win.document;
		
		doc.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"');
		doc.writeln('"http://www.w3.org/TR/html4/loose.dtd">');
		doc.writeln('<html>');
		doc.writeln('<head>');
		doc.writeln('<title>' + title + '</title>');
		doc.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
		doc.writeln('<link rel="shortcut icon" href="/favicon.ico">');
		doc.writeln('<style type="text/css">');
		doc.writeln('<!--');
		doc.writeln('body {');
		doc.writeln('	margin-left: 0px;');
		doc.writeln('	margin-top: 40px;');
		doc.writeln('	margin-right: 0px;');
		doc.writeln('	margin-bottom: 0px;');
		doc.writeln('}');
		doc.writeln('td.title {');
		doc.writeln('	font-family: Arial, Helvetica, sans-serif;');
		doc.writeln('	font-size: 14px;');
		doc.writeln('	line-height: 18px;');
		doc.writeln('	color: #666666;');
		doc.writeln('	text-align: center;');
		doc.writeln('	vertical-align: middle;');
		doc.writeln('	height: 57px;');
		doc.writeln('}');
		doc.writeln('-->');
		doc.writeln('</style></head>');
		doc.writeln('<body>');
		doc.writeln('');
		doc.writeln('<table width="100%"  border="0" cellspacing="0" cellpadding="0">');
		doc.writeln('<tr>');
		doc.writeln('<td height="413" align="center" valign="middle"><img src="bilder/gross/' + url + '" alt="' + title + '"></td>');
		doc.writeln('</tr>');
		doc.writeln('<tr>');
		doc.writeln('<td class="title">' + title + '</td>');
		doc.writeln('</tr>');
		doc.writeln('</table>');
		doc.writeln('</body>');
		doc.writeln('</html>');
								
		doc.close();
		win.focus();
	}
}

