
  var OP = (navigator.userAgent.indexOf('Opera') != -1) ? true : false;
  var IE = (navigator.userAgent.indexOf('MSIE') != -1 && !OP) ? true : false;
  var GK = (navigator.userAgent.indexOf('Gecko') != -1) ? true : false;
  var NN4 = document.layers;
  var DOM = document.getElementById;

  function JAVASHOW() {
    this.width = 300;                     
    this.bgColor = '#000000';             
    this.textColor = '#A00000';          
    this.borderColor = '#FF9900';         
    this.opacity = 100;                    
    this.cursorDistance = 60;             

    // don't change
    this.text = '';
    this.height = 0;
    this.obj = 0;
    this.sobj = 0;
    this.active = false;

    this.create = function() {
      if(!this.sobj) this.init();

      var t = '<table border=0 cellspacing=0 cellpadding=4 width=' + this.width + ' bgcolor=' + this.bgColor + '><tr>' +
              '<td align=center><font color=' + this.textColor + '>' + this.text + '</font></td></tr></table>';

      if(NN4) {
        t = '<table border=0 cellspacing=0 cellpadding=1><tr><td bgcolor=' + this.borderColor + '>' + t + '</td></tr></table>';
        this.sobj.document.write(t);
        this.sobj.document.close();
      }
      else {
        this.sobj.border = '2px solid ' + this.borderColor;
        this.setOpacity();
        if(document.getElementById) document.getElementById('js').innerHTML = t;
        else document.all.js.innerHTML = t;
      }
      if(DOM) this.height = this.obj.offsetHeight;
      else if(IE) this.height = this.sobj.pixelHeight;
      else if(NN4) this.height = this.obj.clip.bottom;

      this.show();
    }

    this.init = function() {
      if(DOM) {
        this.obj = document.getElementById('js');
        this.sobj = this.obj.style;
      }
      else if(IE) {
        this.obj = document.all.js;
        this.sobj = this.obj.style;
      }
      else if(NN4) {
        this.obj = document.js;
        this.sobj = this.obj;
      }
    }

    this.show = function() {
      var ext = (document.layers ? '' : 'px');
      var left = mouseX;
      var top = mouseY;
      left -= this.width + this.cursorDistance;
      if(top + this.height + this.cursorDistance - scrTop > winY) top -= this.height;
      else top += this.cursorDistance;

      this.sobj.left = left + ext;
      this.sobj.top = top + ext;

      if(!this.active) {
        this.sobj.visibility = 'visible';
        this.active = true;
      }
    }

    this.hide = function() {
      if(this.sobj) this.sobj.visibility = 'hidden';
      this.active = false;
    }

    this.setOpacity = function() {
      this.sobj.filter = 'alpha(opacity=' + this.opacity + ')';
      this.sobj.mozOpacity = '.1';
      if(this.obj.filters) this.obj.filters.alpha.opacity = this.opacity;
      if(!document.all && this.sobj.setProperty) this.sobj.setProperty('-moz-opacity', this.opacity / 100, '');
    }
  }

  var javashow  = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowB = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowC = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowD = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowE = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowF = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowG = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowH = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowI = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowJ = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowK = mouseX = mouseY = winX = winY = scrTop = 0;
  var javashowL = mouseX = mouseY = winX = winY = scrTop = 0;

  if(document.layers) {
    document.write('<layer id="js"></layer>');
    document.captureEvents(Event.MOUSEMOVE);
  }
  else document.write('<div id="js" style="position:absolute; z-index:50"></div>');
  document.onmousemove = getMouseXY;

  function getMouseXY(e) {
    if(document.body && document.body.scrollTop >= 0) scrTop = document.body.scrollTop;
    else if(window.pageYOffset >= 0) scrTop = window.pageYOffset;

    if(IE) {
      mouseX = event.clientX + document.body.scrollLeft;
      mouseY = event.clientY + document.body.scrollTop;
    }
    else {
      mouseX = e.pageX;
      mouseY = e.pageY;
    }

    if(mouseX < 0) mouseX = 0;
    if(mouseY < 0) mouseY = 0;

    if(GK || NN4) {
      winX = window.innerWidth - 20;
      winY = window.innerHeight;
    }
    else if(DOM) {
      winX = document.body.offsetWidth - 20;
      winY = document.body.offsetHeight;
    }
    else {
      winX = screen.width - 20;
      winY = screen.height;
    }
    if(javashow && javashow.active) javashow.show();
    if(javashowB && javashowB.active) javashowB.show();
    if(javashowC && javashowC.active) javashowC.show();
    if(javashowD && javashowD.active) javashowD.show();
    if(javashowE && javashowE.active) javashowE.show();
    if(javashowF && javashowF.active) javashowF.show();
    if(javashowG && javashowG.active) javashowG.show();
    if(javashowH && javashowH.active) javashowH.show();
    if(javashowI && javashowI.active) javashowI.show();
    if(javashowJ && javashowJ.active) javashowJ.show();
    if(javashowK && javashowK.active) javashowK.show();
    if(javashowL && javashowL.active) javashowL.show();
  }

  function javashow1(text, width, opacity) {
    if(text) {
      javashow = new JAVASHOW();
      javashow.text = '<img src="http://www.andrewscom.dk/image/stenderup.jpg">';
      javashow.width = 350;
      javashow.opacity = 100
      javashow.create();
    }
    else if(javashow) javashow.hide();
  }
    function javashow2(text, width, opacity) {
    if(text) {
      javashowB = new JAVASHOW();
      javashowB.text = '<img src="http://www.andrewscom.dk/image/petdatingB.jpg">';
      javashowB.width = 350;
      javashowB.opacity = 100
      javashowB.create();
    }
    else if(javashowB) javashowB.hide();
  }

    function javashow3(text, width, opacity) {
    if(text) {
      javashowC = new JAVASHOW();
      javashowC.text = '<img src="http://www.andrewscom.dk/image/brugthandelC.jpg">';
      javashowC.width = 350;
      javashowC.opacity = 100
      javashowC.create();
    }
    else if(javashowC) javashowC.hide();
  }
    function javashow4(text, width, opacity) {
    if(text) {
      javashowD = new JAVASHOW();
      javashowD.text = '<img src="http://www.andrewscom.dk/image/friendpickD.jpg">';
      javashowD.width = 350;
      javashowD.opacity = 100
      javashowD.create();
    }
    else if(javashowD) javashowD.hide();
  }
    function javashow5(text, width, opacity) {
    if(text) {
      javashowE = new JAVASHOW();
      javashowE.text = '<img src="http://www.andrewscom.dk/image/usadosE.jpg">';
      javashowE.width = 350;
      javashowE.opacity = 100
      javashowE.create();
    }
    else if(javashowE) javashowE.hide();
  }
    function javashow6(text, width, opacity) {
    if(text) {
      javashowF = new JAVASHOW();
      javashowF.text = '<img src="http://www.andrewscom.dk/image/sellingF.jpg">';
      javashowF.width = 350;
      javashowF.opacity = 100
      javashowF.create();
    }
    else if(javashowF) javashowF.hide();
  }
    function javashow7(text, width, opacity) {
    if(text) {
      javashowG = new JAVASHOW();
      javashowG.text = '<img src="http://www.andrewscom.dk/image/molsportalen.jpg">';
      javashowG.width = 350;
      javashowG.opacity = 100
      javashowG.create();
    }
    else if(javashowG) javashowG.hide();
  }

