function accPopup(theURL,winName,width,height) {
		newwindow = window.open(theURL,winName,"width="+width+",height="+height+",scrollbars=no,left="+(Math.floor((screen.availWidth-width-10)/2))+",top="+(Math.floor((screen.availHeight-height-10)/2)));
		if (window.focus) {newwindow.focus()}
		return false;
}

function openPic(thePic,imageWidth,imageHeight,alt) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+(Math.floor((screen.availWidth-imageWidth-10)/2))+",top="+(Math.floor((screen.availHeight-imageHeight-10)/2)));
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><style type="text/css"><!--body {margin:0;} --></style></head><body onblur="self.close()">'); 
	newWindow.document.write('<img src=\"'+thePic+'\" width='+imageWidth+' height='+imageHeight+' title=\"'+alt+'\" alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	return false;
}

function accImgPopup(theURL,theW,theH,theTxt) {
		if (typeof imgWin!='undefined') imgWin.close();
		var theT = ',top='+(Math.floor((screen.availHeight-eval(theH)-10)/2));
		var theL = ',left='+(Math.floor((screen.availWidth-eval(theW))/2));
		var features = 'width='+theW+',height='+theH+theT+theL;
		newWindow=window.open(theURL,'imgWin',features);
		newWindow.document.open();
		newWindow.document.write('<html><head><title>Barockscheune Volkach</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link rel="stylesheet" href="/assets/css/screen.css" type="text/css" media="screen, tv, projection" /><style>html{background-image:none;}</style></head><body class="grossbild" onblur="self.close();">'); 
		newWindow.document.write('<a href="javascript:self.close();"><img src="'+theURL+'" width="'+theW+'" height="'+theH+'" galleryimg="no" id="theImg"><div class="caption" id="caption">'+theTxt+'</div></a>');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		if (window.focus) {newWindow.focus()}
		return false;
}
