
function bw_check()
  {
  is_major      = parseInt(navigator.appVersion);
  this.nver     = is_major;
  this.ver      = navigator.appVersion;
  this.agent    = navigator.userAgent;
  this.dom      = document.getElementById ? 1 : 0;
  this.opera    = window.opera ? 1 : 0;

  this.ie5      = (this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera) ? 1 : 0;
  this.ie6      = (this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera) ? 1 : 0;
  this.ie4      = (document.all && !this.dom && !this.opera) ? 1 : 0;
  this.ie       = this.ie4 || this.ie5 || this.ie6;
  this.mac      = this.agent.indexOf("Mac")>-1;
  this.ns6      = (this.dom && parseInt(this.ver)>=5) ? 1 : 0;
  this.ie3      = (this.ver.indexOf("MSIE") && (is_major<4));
  this.hotjava  = (this.agent.toLowerCase().indexOf('hotjava')!=-1) ? 1 : 0;
  this.ns4      = (document.layers && !this.dom && !this.hotjava) ? 1 : 0;
  this.bw       = (this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera);
  this.ver3     = (this.hotjava || this.ie3);
  this.opera7   = ((this.agent.toLowerCase().indexOf('opera 7')>-1) || (this.agent.toLowerCase().indexOf('opera/7')>-1));
  this.operaOld = this.opera && !this.opera7;
  return this;
  }


function setImpressumContent()
{
	 var bw = new bw_check();
	var xmlhttp;
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
	    
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
			{
				if(bw.ie4 || bw.ie5 || bw.ie6 || bw.ie7)
				{
					document.all.content.innerHTML = 'Impressum';
					document.all.header.innerHTML = xmlhttp.responseText;
				}
				else
				{
					document.getElementById('header').innerHTML = 'Impressum';
					document.getElementById('content').innerHTML = xmlhttp.responseText;
					document.getElementById("content").scrollTop = 0; 
					void(0);
				}
			}
		  }
		
		xmlhttp.open("POST","admin/hbImpressum.php",true);
		xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
		xmlhttp.send(null);
						
}
