// Copyright 24 June 2001, Cavalry Outpost Publications.

// This program detects when the Mouse Pointer is placed over an anchor
// link and displays a "Pop-Up" Window containing a message describing
// the content of the linked URL

// *********************************************************************
// **********     Program Name = LinkInfo.js Ver 04.09.12     **********
// *********************************************************************

if (!document.layers && !document.all && !document.getElementById) {
        event="test";
}

function showInfo(current,e,text) {
        if (document.all || document.getElementById) {
                thetitle = text.split('<BR>');
                if (thetitle.length > 1) {
                        thetitles = '';
                        for (i = 0; i < thetitle.length; i++) {
                                thetitles += thetitle[i];
                                current.title = thetitles;
                        }
                }
                  else  {
                        current.title = text;
                }
        }
          else  {
                if (document.layers) {
                        document.linkInfo.document.write('<LAYER BGCOLOR="FFFCCC" STYLE="border:1px solid black;font-family:arial;font-size:12px;">'+text+'</LAYER>');
                        document.linkInfo.document.close();
                        document.linkInfo.left = e.pageX + 5;
                        document.linkInfo.top = e.pageY + 5;
                        document.linkInfo.visibility = "show";
                }
        }
}

function hideInfo() {
        if (document.layers) {
                document.linkInfo.visibility = "hidden";
        }
}

document.write('<DIV ID="linkInfo" STYLE="position:absolute;visibility:hidden"></DIV>');
