//----------- Browser Detection -----------
var ie4 = document.all;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all; 


function getWndAttr(w, h)
{
	var tmp;
	if (ns6)
	{
		// am Hauptfenster zentrieren
		dLeft = window.screenX + ((window.outerWidth - w) / 2);
		dTop = window.screenY + ((window.outerHeight - h) / 2);
		tmp = "screenX=" + dLeft + ",screenY=" + dTop + ",width=" + w + ",height=" + h;
	}
	else if (ie4)
	{
		 // am Bildschirm zentrieren.
		 dLeft = (screen.width - w - 10) / 2;
		 dTop = (screen.height - h - 70) / 2;
		 tmp = "left=" + dLeft + ",top=" + dTop + ",width=" + w + ",height=" + h;
	}
	else
	{
		tmp = "width=" + w + ",height=" + h;
	}
		  
	return (tmp);
}

var popUpWin=0;
function OpenInnSite(w, h)
{
	// Windowpos 
	tmp = getWndAttr(w, h);
	tmp="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1," + tmp;
	
	// ggf. Fenster schließen
  if(popUpWin)
  {
    if(!popUpWin.closed)
			popUpWin.close();
  }
	popUpWin = window.open('InnSite/Detection.htm', 'innSiteMaineCoonCats', tmp);
	popUpWin.opener = this;
}

