function addJS (URL)
{
  var scriptElm = document.createElement("script");
  scriptElm.type = "text/javascript";
  scriptElm.src = URL;
  document.getElementsByTagName("head")[0].appendChild(scriptElm);
}

var pop = null;

function popdown() {
  if (pop && !pop.closed) pop.close();
}

function popup(obj,w,h) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  w = (w) ? w += 20 : 150;  // 150px*150px is the default size
  h = (h) ? h += 25 : 150;
  var args = 'width='+w+',height='+h+',resizable=yes,scrollbars=yes,';
  popdown();
  pop = window.open(url,'',args);
  return (pop) ? false : true;
}

window.onunload = popdown;
window.onfocus = popdown;

var MicrosoftModel=0;
var xplus=10,yplus=10;
var runnerobject;

                          /* div-Sektion "runner" bewegen: */
function MouseAction(mausx,mausy)
{
  runnerobject.left=mausx+xplus+"px";
  runnerobject.top=mausy+yplus+"px";
}

                       /* das onMouseMove-event auswerten: */
function MouseMove(event)
{
  var mausx,mausy;
  if (typeof(event)!="object")              /* kein event? */
    return;
  if (MicrosoftModel)                     /* MSIE: ------- */
  {
    mausx=event.clientX;
    mausy=event.clientY;
    if (document.body.scrollLeft)
      mausx+=document.body.scrollLeft;
    if (document.body.scrollTop)
      mausy+=document.body.scrollTop;
  }
  else                                    /* Netscape: --- */
  {
    mausx=event.pageX;
    mausy=event.pageY;
  }
  MouseAction(mausx,mausy);
}

          /* Behandlung des Ereignisses und Objekt setzen: */
function MouseInit()
{
  if (document.all)         /* MSIE, Konqueror, Opera: --- */
  {
    MicrosoftModel=1;
    window.onmousemove=MouseMove;
    runnerobject=document.all.runner.style;
  }
  if (!(MicrosoftModel))                  /* Netscape: --- */
  {
    if (typeof(document.addEventListener)=="function")
                                         /* Netscape6: --- */
    {
      document.addEventListener("mousemove",MouseMove,true);
      runnerobject=document.getElementById("runner").style;
    }
    else
    if (document.runner)                 /* Netscape4: --- */
    {
      window.captureEvents(Event.MOUSEMOVE);
      window.onmousemove=MouseMove;
      runnerobject=document.runner;
    }
    else                              /* anderer Browser : */
      alert("Dein Browser kann das nicht!");
  }
}

function showDynText (text, bgcolor)
{
  document.getElementById("runner").innerHTML = text;
  document.getElementById("runner").style.backgroundColor = bgcolor;
  document.getElementById("runner").style.padding = 5+"px";
  document.getElementById("runner").style.display = 'block';
}

function showDynPic (src, width, height)
{
  document.getElementById("runner").innerHTML = "<img src=" + src+ " width=" + width+ " height="+height+" class=BlockImage>";
  document.getElementById("runner").style.padding = 0;
  document.getElementById("runner").style.display = 'block';
}

function hideDynText ()
{
  document.getElementById("runner").innerHTML = '';
  document.getElementById("runner").style.display = "none";
}

function renderFooterJS ()
{
    document.write( '<div class="JSLBox"></div>' );
}

