function showimage(bild)
{
		if(bild != 'rundblick')
		{
			x = getBrowser();
			if(bild == 'anfahrt')
			{
				var newWidth = 812;
				var newHeight = 562;
				if(x == 'ie7')
				{
					newHeight = 612;
				}
			}
			else if(bild == 'studioplan')
			{
				var newWidth = 716;
				var newHeight = 840;
				if(x == 'ie7')
				{
					newHeight = 870;
				}
			}
			src = 'popup.php?bild='+bild;
			ok = window.open(src,'','width='+newWidth+',height='+newHeight+',dependent=1,resizable=1,menubar=1');
		}
		else //Rundblick
		{
			src = 'images/rundblick/rundblick.php?id='+arguments[1];
			ok = window.open(src,'Rundblick','width=535,height=397,dependent=true,resizable=true');
			ok.focus();
		}
	 	if (ok) return false;
	 	else return true;
return false;
}

//benutzten Browser herausfinden.
//Skript von http://www.lipfert-malik.de/webdesign/tutorial/bsp/browser_js_test.html und etwas abgeändert
function getBrowser()
{
var x='';
if(document.ids)x='nc4'; //'Netscape Navigator 4'];if(!window.navigator.securityPolicy)x[1]+='.0';else x[1]+='.5-4.8';}
else if(document.all&&!document.getElementById){if(!document.layers)x='ie4';else x='ow4';}
else if(window.opera&&!document.createElement)x='op5';
else if(window.opera&&window.getComputedStyle){
	if(window.getSelection)x='op9';
	else if(document.createRange)x='op8';
	else if(window.navigate)x='o75';else x='o72';}
	else if(window.opera&&document.compatMode)x='op7';
	else if(window.opera&&document.releaseEvents)x='op6';
	else if(document.contains&&!window.opera){x='kq3';//Safari / Konqueror 3
}
 // else if(window.atob&&!document.doctype)x=['kme','Kmeleon'];
 // else if(window.sidebar&&window.atob)x=['nn7','Mozilla'];
 // else if(window.sidebar&&!document.compatMode)x=['nn6','Netscape 6 / Mozilla'];
// ['','','','','','','','','','','','','','',''],
else if(window.pkcs11&&window.XML)x=window.external?'f20':'f15';
else if(window.pkcs11&&document.compatMode)x='nn7'; //Mozilla / FireFox / Gecko
else if(window.atob&&document.defaultCharset)x='sf3'; //Safari 3ß
else if(window.getSelection&&window.atob)x='nn7'; //Mozilla / Gecko
else if(window.getSelection&&!document.compatMode)x='nn6';//Netscape 6 / Mozilla Beta
else if(window.clipboardData&&document.compatMode){  x=window.XMLHttpRequest?7:6;  x='ie'+x;}
 // else if(window.clipboardData){x=['ie5','Internet Explorer 5']; if(navigator.appVersion.indexOf("MSIE 5.5")!=-1) x=['5.5','Internet Explorer 5.5']; if(document.doctype) x=['iem','Internet Explorer 5Mac'];}
else if(window.clipboardData){x='ie5'; 
	if(!document.createDocumentFragment) x='ie5.5';}
else if(document.doctype && !window.print ) x='ie5m';
else if(document.getElementById&&!document.all) x='op4';
else if(document.images&&!document.all) x='nn3';
else if(!document.images) x='2-3';//NS 2, IE 3
else if(document.clientWidth&&!window.RegExp)x='kq2';//Safari / Konqueror 2
else x='???';

return x;
}
/**
 * ActiveX-Unterdrückung beim IE7
 * Skript von http://www.mediengestalter.info/forum/19/das-nervige-aktivieren-im-ie-hat-ein-ende-95470-3.html
 */
var swfActivator = function()
{
   if(document.all) {
      o = document.getElementsByTagName("object");
      for(i=0; i<o.length; i++) {
         o[i].setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", 0);
         o[i].setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0", 0);
         o[i].removeAttribute("data", 0);
         o[i].removeAttribute("type", 0);
         o[i].outerHTML = o[i].outerHTML;
      }
   }
}

