function popup_print(img_name, img_width, img_height) {
	var left = (screen.width - img_width)/2;
	var top = (screen.height - img_height)/2;
	win = window.open("","win","width=" + (img_width + 30) + ",height=" + (img_height + 40) + ",left="+left+",top="+top+",scrollbars=auto");
	win.document.open();
	win.document.write('<html><title>Detailansicht</title><head><meta http-equiv="imagetoolbar" content="no"><link rel="stylesheet" type="text/css" href="../styles_content.css"></head><body class="styles_content.css" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	win.document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"><tr><td><table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td colspan="2"><img src="' + img_name + '"></td></tr><tr><td colspan="2"><img src="../images/spacer.gif" width="1" height="5"></td></tr><tr><td colspan="2" class="filledgrey"><img src="../images/spacer.gif" width="1" height="1"></td></tr><tr><td colspan="2"><img src="../images/spacer.gif" width="1" height="5"></td></tr><tr><td><a href="javascript:self.close();"><b>Fenster schliessen</b></a></td><td><div align="right"><a href="#" onclick="window.print();return false"><b>ausdrucken</b></a></div></td></tr></table></td></tr></table>'); 
	win.document.write('</body></html>');
	win.document.close();
	win.focus();
}

function openwin(url, name, features){
  window.open(url, name ,features);
}

function popup_close(img_name, img_width, img_height) {
	var left = (screen.width - img_width)/2;
	var top = (screen.height - img_height)/2;
	win = window.open("","win","width=" + (img_width + 20) + ",height=" + (img_height + 20) + ",left="+left+",top="+top+",scrollbars=auto");
	win.document.open();
	win.document.write('<html><title>Detailansicht</title><head><meta http-equiv="imagetoolbar" content="no"><link rel="stylesheet" type="text/css" href="../styles_content.css"></head><body class="styles_content.css" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close();">'); 
	win.document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"><tr><td><div align="center"><img src="' +img_name + '" width="' + img_width + '" height="' + img_height + '"></div></td></tr></table>'); 
	win.document.write('</body></html>');
	win.document.close();
	win.focus();
}

function openpano(pano){
	window.open(pano,'win','width=350,height=440');
}

function openshop() {
	var args	= openshop.arguments;
	var url		= (args[0] == 1) ? "redirect.asp?rID=A87FF679A2F3E71D9181A67B7542122C" : "shop/frame_p.htm";
	window.open(url,'shopwin','scrollbars=yes,width=620,height=500');
}

function popup_image(img_name, img_width, img_height) {
	var left = (screen.width - img_width)/2;
	var top = (screen.height - img_height)/2;
	win = window.open("","win","width=" + img_width + ",height=" + img_height + ",left=" + left + ",top=" + top + ",scrollbars=auto");
	win.document.open();
	win.document.write('<html><title>Detailansicht</title><head><meta http-equiv="imagetoolbar" content="no"><link rel="stylesheet" type="text/css" href="../styles_content.css"></head><body class="styles_content.css" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	win.document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"><tr><td><div align="center"><img src="' +img_name + '" width="' + img_width + '" height="' + img_height + '"></div></td></tr></table>'); 
	win.document.write('</body></html>');
	win.document.close();
	win.focus();
}