if(document.getElementsByTagName)
{
	window.onload=function()
	{
		divs=document.getElementsByTagName('DIV');
		l_divs=divs.length;
		for(var i=0;i<l_divs;i++)
		{
			div=divs[i];
			image=div.childNodes[0];
			if(div.className=="bild" && div.parentNode.className=="linkespaltebild" && image.tagName=="IMG")
			{
				div.style.width=image.width+"px";
			}
		}
	}
}

function openZoom(imageName,imageWidth,imageHeight) {  // v4.01
	newWindow = window.open("","newWindow2","width="+imageWidth+",height="+imageHeight+",menubar=0,scrollbars=no,left=100,top=100");
	newWindow.document.open();
	newWindow.document.write('<html xmlns="http://www.w3.org/1999/xhtml"><title>Zoomansicht</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onClick="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"Zum Schließen bitte klicken.">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

// functions for window handling
	var isopen=false;
	
	function winOpen(url,windowname,breite,hoehe,scroll,resize,tool,status,menu,location)
			{ if( (isopen) && (!popUp.closed) ){ winClose(popUp); }
			    popUp = window.open(url,windowname,"width="+breite+",height="+hoehe+",screenX=40,screenY=20,scrollbars="+scroll+",resizable="+resize+",toolbar="+tool+",status="+status+",menubar="+menu+",location="+location+""); 
			  isopen=true;
			}