var isMinNS4   = (document.layers) ? true:false;                        // netscape 4 
var isMinIE4   = (document.all) ? true:false;                           // ie4+ 
var isMinNS6   = ((document.getElementById)&&(!isMinIE4))?true:false;   // ns6 etc. 



if (isMinNS4) { 

    var layerRef="document.layers"; 
    var styleSwitch=""; 
    document.captureEvents(Event.MOUSEMOVE); 
    document.onmousemove=getmauspos; 
} 
if (isMinIE4){ 
    document.onmousemove=getmauspos; 
    var layerRef="document.all"; 
    var styleSwitch=".style"; 
} 

if (isMinNS6){ 
    var layerRef="document.getElementById"; 
    var styleSwitch=".style"; 
  } 


function getmauspos(e) { 
if (document.layers) { 
         mausx =e.pageX; 
         mausy =e.pageY; 

} 
else { 
      mausx =event.x; 
      mausy =event.y; 
      } 
      return (mausx,mausy); 
} 




function myMouseOver(e, thislayer, xabzug, yabzug) { 
    if (isMinNS6){ 
        if (document.getElementById(thislayer).style.visibility == "hidden") showAndMove(e, thislayer, xabzug, yabzug); 
    } 
    else { 
        if (eval(layerRef+'["'+thislayer+'"]'+styleSwitch+'.visibility="hidden"')) showAndMove(e, thislayer, xabzug, yabzug); 
    } 
} 
       
function showAndMove(e, thislayer, xabzug, yabzug){   
   
  var x, y; 
  if (isMinNS4) { 
    x = e.pageX; 
    y = e.pageY; 


  } 
  if (isMinIE4) { 

    x = window.event.x; 
    y = window.event.y; 


  } 

  if (isMinNS6) { 
             
          x = e.pageX; 
          y = e.pageY; 
           
  } 

  x = x - xabzug;
  y = y - yabzug;

      schieb(thislayer,x,y); 
      showLayer(thislayer); 
   
} 


function schieb(layerName,xwert,ywert) { 
         if (isMinNS6) { 
             document.getElementById(layerName).style.left = xwert; 
              document.getElementById(layerName).style.top = ywert; 
              document.getElementById(layerName).style.visibility = "visible"; 
         
         } 
         else { 
             eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top="'+ywert+'"'); 
             eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left="'+xwert+'"'); 
         } 
} 

function showLayer(layerName){ 

         eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 

} 

function hideLayer(layerName){ 
         if (isMinNS6) { 
              document.getElementById(layerName).style.visibility = "hidden"; 
         } 
         else{ 
              eval(layerRef+'[layerName]'+styleSwitch+'.visibility="hidden"'); 
         } 
}

 function open_center( url){
				var windowwidth=410;
				var windowheight=500;

                  // Berechnung der Mitte

                  if (document.all){
                      var breite = screen.width;
                      var hoehe = screen.height;
                  }
                  else {
                      if (document.layers){
                           var breite = window.outerWidth;
                           var hoehe = window.outerHeight;
                      }
                  }

                  var left = (breite - windowwidth) / 2;
                  var top = (hoehe - windowheight) / 2;

                  my_new_window = window.open (url, "new", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,width="+windowwidth+",height="+windowheight+", screenX="+left+",screenY="+top+",top="+top+",left="+left+"");

        }
        
function bedingungen( url){
				var windowwidth=410;
				var windowheight=500;

                  // Berechnung der Mitte

                  if (document.all){
                      var breite = screen.width;
                      var hoehe = screen.height;
                  }
                  else {
                      if (document.layers){
                           var breite = window.outerWidth;
                           var hoehe = window.outerHeight;
                      }
                  }

                  var left = (breite - windowwidth) / 2;
                  var top = (hoehe - windowheight) / 2;

                  my_new_window = window.open (url, "wkc", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,width="+windowwidth+",height="+windowheight+", screenX="+left+",screenY="+top+",top="+top+",left="+left+"");

        }
        
         function open_im( url){
				var windowwidth=410;
				var windowheight=500;

                  // Berechnung der Mitte

                  if (document.all){
                      var breite = screen.width;
                      var hoehe = screen.height;
                  }
                  else {
                      if (document.layers){
                           var breite = window.outerWidth;
                           var hoehe = window.outerHeight;
                      }
                  }

                  var left = (breite - windowwidth) / 2;
                  var top = (hoehe - windowheight) / 2;

                  my_new_window = window.open (url, "new", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,width="+windowwidth+",height="+windowheight+", screenX="+left+",screenY="+top+",top="+top+",left="+left+"");

        }