<!--
function adjustLayout()
{

// ermittle hoehe
var contentBlock =  xHeight("contentContent");
var serviceBlock =  xHeight("serviceblock");

var cheight=(getWinHeight_Resized()-110);
var test_alert =contentBlock + "---" + cheight;
// alert (test_alert);

if (cheight> contentBlock){
xHeight("contentContent", cheight);
}


}


window.onload = function()
{
xAddEventListener(window, "resize", adjustLayout, false);
adjustLayout();
}

window.onresize = function()
{
xAddEventListener(window, "resize", adjustLayout, false);
adjustLayout();
}

function openWin(winURL,winName,winParam) {
  window.open(winURL,winName,winParam);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function getWinHeight() // based on a script by projectseven.com (PVII)
{
 if (window.innerWidth) { h = window.innerHeight; } // ns4
 else if(document.body)
 {
  h = document.body.clientHeight;
  if (document.body.offsetHeight == h && document.documentElement && document.documentElement.clientHeight)
  {
   h = document.documentElement.clientHeight;
  }
 }
return h;
}

function getWinHeight_Resized() // Example from SelfHTML
{
 if (window.innerHeight) return window.innerHeight;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}

var newwindow;
function MM_openBrWindow(theURL,winName,features) {
  newwindow=window.open(theURL,winName,features);
  if (window.focus) {newwindow.focus()}
}

function film_popup(filmURL,titel,width,height) {
  width=Number(width);
  // für Mozilla 8px mehr einplanen, da sonst Scrollbar erscheint
  if (! (IE4plus || IE4plus || IEmac)) height=Number(height)+8;
  else height=Number(height);
  filmWindow=window.open(filmURL,titel,'width='+width+',height='+height+',toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no');
  if (! (IE4plus || IE4plus || IEmac)) height-=8;
  filmWindow.document.open('text/html','replace');
  filmWindow.document.writeln('<html><head><title>'+titel+'</title></head><body bgcolor="#9B9B9B" margin="0" leftmargin="0" topmargin="0" style="overflow:hidden;">');
  filmWindow.document.writeln('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+width+'" HEIGHT="'+height+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
  filmWindow.document.writeln('<PARAM name="SRC" VALUE="'+filmURL+'">');
  filmWindow.document.writeln('<PARAM name="AUTOPLAY" VALUE="false">');
  filmWindow.document.writeln('<PARAM name="CONTROLLER" VALUE="true">');
  filmWindow.document.writeln('<PARAM name="bgcolor" value="#9B9B9B" />');
  filmWindow.document.writeln('<EMBED SRC="'+filmURL+'" WIDTH="'+width+'" HEIGHT="'+height+'" BGCOLOR="#9B9B9B" AUTOPLAY="false" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">');
  filmWindow.document.writeln('</EMBED>');
  filmWindow.document.writeln('</OBJECT>');
  filmWindow.document.writeln('</body></html>');
  filmWindow.document.close();
}

//-->

<!--
var browser=new Object;
browser=navigator.appName;
version=navigator.appVersion;
os=navigator.platform;
codename=navigator.appCodeName;
agent=navigator.userAgent;
browser.major = parseInt(navigator.appVersion);
browser.minor = parseFloat(navigator.appVersion);

/*
document.write("<br><br><br>Browser:" + browser + "<br>");
document.write("Version:" + version + "<br>");
document.write("Sprache:" + language + "<br>");
document.write("Betriebssystem:" + os + "<br>");
document.write("Codename des Browsers:" + codename + "<br>");
document.write("User-Agent-Attribut:" + agent + "<br>");
document.write("Browser:" + browser + "<br>");
*/

var spfad= stylepfad+'/common/styles/';

safari = (navigator.appVersion.indexOf("Safari")!=-1) ? true : false;
moz = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
opera = (navigator.userAgent.indexOf("Opera")!=-1) ? true : false;
ie55 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.5")!=-1)) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
NS4 = (document.layers) ? true : false;

if(safari) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_safari.css" type="text/css" />');  

if(IEmac) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_iemac.css" type="text/css" />'); 

if(moz) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_moz.css" type="text/css" />');

if(opera) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_opera.css" type="text/css" />');

if(ie55) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_ie55.css" type="text/css" />');    

//-->
