    // Javascript 1.2 source file
    // Files are NOT written by Edwin (because he is too lazy).
    // 
    // SPECIAL THANKS TO Dynamic Drive's complete collection of
    // DHTML and Javascripts.
    //
    // -------------------------------------------------------------------
    // 
    // This file contains modified scripts by www.DynamicDrive.com
    // Copyright (C) 1998-2000 Dynamic Drive.
    // 
    // I dont care if you steal my scripts, however, if you plan to do so,
    // please give www.dynamicdrive.com credits!!!
    // 


    // highlighting images
    function highlight(which){
      theobject=which;
      highlighting=setInterval("highlightobject(theobject)",50);
    }

    function stophighlight(which){
      clearInterval(highlighting);
      which.filters.alpha.opacity=65;
    }

    function highlightobject(imageid){
      if (imageid.filters.alpha.opacity<100)
    imageid.filters.alpha.opacity+=5;
      else if (window.highlighting)
    clearInterval(highlighting);
    }

  // -------------------------------------------------------------

    // handling mouse clicks
    function click(e) {
      if (document.all) {
    if (event.button==2||event.button==3) {
      alert("Please use left mouse button to perform your action.");
      return false;
    }
      }
          
      if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
      }
    }
 
    if (document.layers) {
      document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=click;

  // -------------------------------------------------------------

    // handling mouse clicks
    var x = 0;
    var y = 0;
    var sw = 0;
    var cnt = 0;
    var offsetx = 10;
    var offsety = 10;
    var snow = 0;
    var width=150;

    ns4 = (document.layers)? true:false
    ie4 = (document.all)? true:false
    ie5 = false;
    if (ie4) {
      ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
    }

    if ( (ns4) || (ie4) ) {
      if (ns4) over = document.overDiv;
      if (ie4) over = overDiv.style;
      document.onmousemove = mouseMove;
      if (ns4) document.captureEvents(Event.MOUSEMOVE);
    }

    // Caption popup
    function popup(text, title, loc) {
      txt = "<table width=\""+width+"\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#333399\">";
      txt = txt + "<tr><td>";
      txt = txt + "<table width=\"100%\" border=\"0\" celpadding=\"0\" cellspacing=\"0\">";
      txt = txt + "<tr><td>";
      txt = txt + "<span id=\"PTT\"><b><font color=\"#ffffff\">"+title+"</font></b></span>";
      txt = txt + "</td></tr></table>";
      txt = txt + "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#ffffbc\">";
      txt = txt + "<tr><td>";
      txt = txt + "<span id=\"PST\"><font color=\"#000070\">"+text+"</font></span>";
      txt = txt + "</td></tr></table>";
      txt = txt + "</td></tr></table>";
      layerWrite(txt);
      dir = loc;
      if ( (ns4) || (ie4) ) {
        if (snow == 0)  {
          if (dir == 'center') { // Center
            moveTo(over,x+offsetx-(width/2),y+offsety);
          }
          if (dir == 'right') { // Right
            moveTo(over,x+offsetx,y+offsety);
          }
          if (dir == 'left') { // Left
            moveTo(over,x-offsetx-width,y+offsety);
          }
          showObject(over);
          snow = 1;
        }
      }
    }

    function closepopup() {
      if ( cnt >= 1 ) { sw = 0 };
      if ( (ns4) || (ie4) ) {
        if ( sw == 0 ) {
          snow = 0;
          hideObject(over);
        } else {
          cnt++;
        }
      }
    }

    function mouseMove(e) {
      if (ns4) {x=e.pageX; y=e.pageY;}
      if (ie4) {x=event.x; y=event.y;}
      if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
      if (snow) {
        if (dir == 2) { // Center
          moveTo(over,x+offsetx-(width/2),y+offsety);
        }
        if (dir == 1) { // Right
          moveTo(over,x+offsetx,y+offsety);
        }
        if (dir == 0) { // Left
          moveTo(over,x-offsetx-width,y+offsety);
        }
      }  
    }

    function layerWrite(txt) {
      if (ns4) {
        var lyr = document.overDiv.document;
        lyr.write(txt);
        lyr.close();
      }
      else if (ie4) document.all["overDiv"].innerHTML = txt;
    }

    // Make an object visible
    function showObject(obj) {
      if (ns4) obj.visibility = "show";
      else if (ie4) obj.visibility = "visible";
    }

    // Hides an object
    function hideObject(obj) {
      if (ns4) obj.visibility = "hide"
      else if (ie4) obj.visibility = "hidden"
    }

    // Move a layer
    function moveTo(obj,xL,yL) {
      obj.left = xL;
      obj.top = yL;
    }

