//    apm.js, Version 1
//    (c)Auxilium Pro Medico e.K., 2003

  function anzeigenImpressum() {
    var impressumPop = window.open('impressum.html','impressum','width=460,height=550,resizable=no,scrollbars=no,toolbar=no,status=no');
    impressumPop.focus();
  }

  var layerObj1 = "";
  var layerObj2 = "";
  var layerObj3 = "";
  var layerObj4 = "";
  var imagesLoaded = false;


  bn1_over = new Image(); bn1_over.src = "img/n11b.jpg";
  bn1_out = new Image();  bn1_out.src = "img/n11a.jpg";
  bn2_over = new Image(); bn2_over.src = "img/n12b.gif";
  bn2_out = new Image();  bn2_out.src = "img/n12a.gif";
  bn3_over = new Image(); bn3_over.src = "img/n13b.jpg";
  bn3_out = new Image();  bn3_out.src = "img/n13a.jpg";

  bn4_over = new Image(); bn4_over.src = "img/n21b.jpg";
  bn4_out = new Image();  bn4_out.src = "img/n21a.jpg";
  bn5_over = new Image(); bn5_over.src = "img/n22b.gif";
  bn5_out = new Image();  bn5_out.src = "img/n22a.gif";
  bn6_over = new Image(); bn6_over.src = "img/n23b.jpg";
  bn6_out = new Image();  bn6_out.src = "img/n23a.jpg";

  bn7_over = new Image(); bn7_over.src = "img/n31b.jpg";
  bn7_out = new Image();  bn7_out.src = "img/n31a.jpg";
  bn8_over = new Image(); bn8_over.src = "img/n32b.gif";
  bn8_out = new Image();  bn8_out.src = "img/n32a.gif";
  bn9_over = new Image(); bn9_over.src = "img/n33b.jpg";
  bn9_out = new Image();  bn9_out.src = "img/n33a.jpg";

  imagesLoaded = true;


  function imgOver(which1,which2,which3){
    if(imagesLoaded){
				if (document.layers){
					eval('document.navi.document.bn'+which1+'.src = bn'+which1+'_over.src');
					eval('document.navi.document.bn'+which2+'.src = bn'+which2+'_over.src');
					if (which3 != 0) {
					eval('document.navi.document.bn'+which3+'.src = bn'+which3+'_over.src');
					}
				}
				else{
					eval('document.bn'+which1+'.src = bn'+which1+'_over.src');
					eval('document.bn'+which2+'.src = bn'+which2+'_over.src');
					if (which3 != 0) {
					eval('document.bn'+which3+'.src = bn'+which3+'_over.src');
					}
				}
			}
		}

		function imgOut(which1,which2,which3){
			if(imagesLoaded){
				if (document.layers){
					eval('document.navi.document.bn'+which1+'.src = bn'+which1+'_out.src');
					eval('document.navi.document.bn'+which2+'.src = bn'+which2+'_out.src');
					if (which3 != 0) {
					eval('document.navi.document.bn'+which3+'.src = bn'+which3+'_out.src');
					}
				}
				else{
					eval('document.bn'+which1+'.src = bn'+which1+'_out.src');
					eval('document.bn'+which2+'.src = bn'+which2+'_out.src');
					if (which3 != 0) {
					eval('document.bn'+which3+'.src = bn'+which3+'_out.src');
					}
				}
			}
		}

		function imgOverOne(which){
			if(imagesLoaded){
				if (document.layers){
					eval('document.navi.document.bn'+which+'.src = bn'+which+'_over.src');
				}
				else
					eval('document.bn'+which+'.src = bn'+which+'_over.src');
			}
		}

		function imgOutOne(which){
			if(imagesLoaded){
				if (document.layers){
					eval('document.navi.document.bn'+which+'.src = bn'+which+'_out.src');
				}
				else
					eval('document.bn'+which+'.src = bn'+which+'_out.src');
			}
		}

  function ysPos(what){
    if(document.all) {
      return yIE(eval('document.'+what));
    }
    else if(document.layers) {
      return eval('document.'+what+'.y');
    }
    else if(document.getElementById) {
      return yIE(document.getElementById(what));
    }
  }


  function xsPos(what){
    if(document.all)
      return xIE(eval('document.'+what));
    else if(document.layers)
      return eval('document.'+what+'.x');
    else if(document.getElementById)
     return xIE(document.getElementById(what));
  }

  function yIE(what){
    if(what.offsetParent)
      return parseInt(what.offsetTop + yIE(what.offsetParent));
    else
      return parseInt(what.offsetTop);
  }

		function xIE(what){
			if(what.offsetParent)
				return parseInt(what.offsetLeft + xIE(what.offsetParent));
			else
				return parseInt(what.offsetLeft);
		}

  function showLayer(){
    if (document.layers){
      layerObj1	= document.navi;
      layerObj2	= document.logo;
      layerObj3	= document.text;
      layerObj4	= document.metaNavi;
      document.navi.top               = ysPos('posInd')+140;
      document.navi.left              = xsPos('posInd')+1;
      document.logo.top               = ysPos('posInd')+30;
      document.logo.left              = xsPos('posInd')+20;
      document.text.top               = ysPos('posInd')+140;
      document.text.left              = xsPos('posInd')+400;
      document.metaNavi.top           = ysPos('posInd')+430;
      document.metaNavi.left          = xsPos('posInd')+10;
    }
    else if (document.all){
      layerObj1	= document.all.navi.style;
      layerObj2	= document.all.logo.style;
      layerObj3 = document.all.text.style;
      layerObj4 = document.all.metaNavi.style;
      document.all.navi.style.top      = ysPos('posInd')+137;
      document.all.navi.style.left     = xsPos('posInd')+0;
      document.all.logo.style.top      = ysPos('posInd')+30;
      document.all.logo.style.left     = xsPos('posInd')+20;
      document.all.text.style.top      = ysPos('posInd')+80;
      document.all.text.style.left     = xsPos('posInd')+400;
      document.all.metaNavi.style.top  = ysPos('posInd')+435;
      document.all.metaNavi.style.left = xsPos('posInd')+10;
    }
    else if(document.getElementById){
      layerObj1	= document.getElementById("navi").style;
      layerObj2	= document.getElementById("logo").style;
      layerObj3 = document.getElementById("text").style;
      layerObj4 = document.getElementById("metaNavi").style;
      document.getElementById("navi").style.top       = ysPos('posInd')+137;
      document.getElementById("navi").style.left      = xsPos('posInd')+1;
      document.getElementById("logo").style.top       = ysPos('posInd')+30;
      document.getElementById("logo").style.left      = xsPos('posInd')+20;
      document.getElementById("text").style.top       = ysPos('posInd')+80;
      document.getElementById("text").style.left      = xsPos('posInd')+400;
      document.getElementById("metaNavi").style.top   = ysPos('posInd')+437;
      document.getElementById("metaNavi").style.left  = xsPos('posInd')+10;
    }
    layerObj1.visibility	= 'visible';
    layerObj2.visibility	= 'visible';
    layerObj3.visibility	= 'visible';
    layerObj4.visibility	= 'visible';
  }

  function resize(){
    showLayer();
  }

