<!--

/* function init */

function init() {
  if (navigator.appVersion.substr(0,32) == "5.0 (compatible; Konqueror/3.0.0x") {
    document.getElementById('box-logo').style.backgroundImage = 'url(fileadmin/template/image/nix.gif)';
  }
  if (navigator.appVersion.substr(0,20) == "5.0 (Windows; de-ATx)") {
    window.location.href = "browser.html";
  }
  if (navigator.appVersion.substr(0,25) == "4.0 (compatible; MSIE 6.0x") {
    move = window.open("browser.html","name",
      "screenY=0,screenX=0,resizable=no,height=488,width=488,scrollbars=no");
    move.moveTo(screen.width/2-488/2-5,screen.height/2-488/2-29);
    move.focus();
  }

  /* if (document.getElementById('txt-1')) {
    window.setTimeout("reload_1()",500);
    window.setTimeout("reload_2()",1000);
    window.setTimeout("reload_3()",1500);
  } */

  if (document.anchors.length)
  /* document.captureEvents(Event.MOUSEOVER); */
  document.onmouseover = statusHandler;
  function statusHandler() {window.status=''; return true}
}

/* function reload */

function reload_1() {
  document.getElementById('txt-1').style.display='none';
  document.getElementById('txt-2').style.display='block';
  document.getElementById('txt-3').style.display='none';
  document.getElementById('img-1').style.display='none';
  document.getElementById('img-2').style.display='block';
  document.getElementById('img-3').style.display='none';
}
function reload_2() {
  document.getElementById('txt-1').style.display='none';
  document.getElementById('txt-2').style.display='none';
  document.getElementById('txt-3').style.display='block';
  document.getElementById('img-1').style.display='none';
  document.getElementById('img-2').style.display='none';
  document.getElementById('img-3').style.display='block';
}
function reload_3() {
  document.getElementById('txt-1').style.display='block';
  document.getElementById('txt-2').style.display='none';
  document.getElementById('txt-3').style.display='none';
  document.getElementById('img-1').style.display='block';
  document.getElementById('img-2').style.display='none';
  document.getElementById('img-3').style.display='none';
}

/* function popup */

function popup(target,name,height,width,scrollbars) {
  var properties = "screenY=0,screenX=0,resizable=no";
  properties = properties + ",height=" + height + ",width=" + width;
  properties = properties + ",scrollbars=" + scrollbars;
  move = window.open(target,name,properties);
  move.moveTo(screen.width/2-width/2-5,screen.height/2-height/2-29);
  move.focus();
}

/* function image */

if (document.images) {
  function image(name,path) {
    name = new Array(name);
    path = new Array(path);
    for (i=0;i<name.length;i++) {
      document.images[name[i]].src = path[i]
    }
  }
}

/* function iframeResize */

function iframeResize(obj) {
  if (navigator.appName.substr(0,9) == "Microsoft") {
    docHeight = iframe.document.body.scrollHeight;
  } else {
    docHeight = iframe.document.body.offsetHeight;
  }
  if (navigator.appName.substr(0,9) == "Microsoft") {
    obj.style.height = docHeight - 12 + 'px';
  } else {
    obj.style.height = docHeight + 8 + 'px';
  }
}

/* function toggle */

function toggle_setup(count) {
  tgl = new Array(count);
  for (i=1;i<=count;i++) {
    x = document.getElementById("btn-" + i).src.length
    if (document.getElementById("btn-" + i).src.substring(x-15,x) == "arrow-close.gif") {
      document.getElementById("btn-" + i).title='Zuklappen';
      document.getElementById("btv-" + i).style.display='block';
      tgl[i] = 'on';
    } else {
      document.getElementById("btn-" + i).title='Aufklappen';
      document.getElementById("btv-" + i).style.display='none';
      tgl[i] = 'off';
    }
  }
}
function toggle_image(button) {
  if (tgl[button]=='on') {
    document.getElementById("btn-" + button).src="fileadmin/template/image/arrow-open.gif";
    document.getElementById("btn-" + button).title='Aufklappen';
    document.getElementById("btv-" + button).style.display='none';
    tgl[button]='off';
  } else {
    document.getElementById("btn-" + button).src="fileadmin/template/image/arrow-close.gif";
    document.getElementById("btn-" + button).title='Zuklappen';
    document.getElementById("btv-" + button).style.display='block';
    tgl[button]='on';
  }
}

/* Plugin Detection */

function plugins() {
  var agt = navigator.userAgent.toLowerCase();
  var ie  = (agt.indexOf("msie") != -1);
  var ns  = (navigator.appName.indexOf("Netscape") != -1);
  var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
  var mac = (agt.indexOf("mac")!=-1);

  if (ie && win) { pluginlist = detectIE("ShockwaveFlash.ShockwaveFlash.1","Flash") + detectIE("SWCtl.SWCtl.1","Shockwave") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("rmocx.RealPlayer G2 Control.1","realPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("PDF.PdfCtrl.5","Acrobat Reader") + detectIE("Adobe.SVGCtl","SVG Viewer"); }
  if (ns || !win) {
    nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
    pluginlist = detectNS("application/x-shockwave-flash","Flash") + detectNS("application/x-director","Shockwave") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("audio/x-pn-realaudio-plugin","realPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/pdf","Acrobat Reader") + detectNS("image/svg-xml","SVG Viewer");
  }
  function detectIE(ClassID,name) { result = false; document.write('<script language=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</script>\n'); if (result) return name+','; else return ''; }
  function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
  pluginlist += navigator.javaEnabled() ? "Java," : "";
  if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
}

//-->
