// JavaScript Document
// V 2.0 Detailbild anzeigen
function openDetail(img,sizeW,sizeH)
	{
	if(sizeW=='' || sizeH=='')
		{
		sizeW = 300;
		sizeH = 300;
		var resize = true;
		}

	l = screen.width/2-50;
	o = screen.height/2-150;
	windowOptions = 'width='+sizeW+',height='+sizeH+',left='+l+',top='+o+',status=1,scrollbars=0,resizable=1';
	Detailwindow=window.open('blank.html','Detailwindow',windowOptions);
	Detailwindow.document.write('<html>'
	+'<head> '
	+'<title>'+img+'</title> '
	+'<'+'script language="javascript"'+'> '
	+'function resize() { '
	+'if(document.images[0]) { window.resizeTo(document.images[0].width+10,document.images[0].height+54); } '
	+'self.focus();'
	+'} '
	+'<'+'/script'+'>'
	+'</head>'
	+'<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" onLoad="javascript:resize();" onBlur="javascript:window.close();">'
//	+'<table border="0" cellspacing="0" cellpadding="0">'
//	+'<tr>'
//	+'<td valign="top"><img src="'+img+'" id="bigImage" border="0" onClick="JavaScript:window.close();"></td>'
	+'<img src="'+img+'" id="bigImage" border="0" onClick="JavaScript:window.close();">'
//	+'</tr>'
//	+'</table>'
	+'</body>'
	+'</html>');

	Detailwindow.document.close(); 
	}

