function init()
{
    // check browser
    isMozilla = (document.all) ? 0 : 1;

    if (isMozilla) 
    {
        document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
    }

    // document.onmousedown = MouseDown;
    document.onmousemove = MouseMove;
    // document.onmouseup = MouseUp;

    // add the div
    // used to dim the page
    // buildDimmerDiv();

}

function displayFloatingDiv(divId, text, width, height, left, top) 
{
    if (text == "") 
        text = "FILE NOT FOUND";
    
    if (isMozilla) 
    {
        document.getElementById(divId).style.width = width + 'px';
        document.getElementById(divId).style.height = height + 'px';
        document.getElementById(divId).style.left = e_x;
        document.getElementById(divId).style.top = e_y;
        document.getElementById(divId).innerHTML = text + '<br><br><span style="float:right;"><a onMouseDown=\'hideFloatingDiv("annot");\'>Close</a></span>';
        document.getElementById(divId).style.visibility = "visible";
    }
    else 
    {
        document.all[divId].style.width = width + 'px';
        document.all[divId].style.height = height + 'px';
        document.all[divId].style.left = e_x;
        document.all[divId].style.top = e_y;
        document.all[divId].innerHTML = text + '<br><br><span style="float:right; font-size:10pt; cursor:pointer;"><a onMouseDown=\'hideFloatingDiv("annot");\'>Close</a></span>';
        document.all[divId].style.visibility = "visible";
    }
    
   
    //originalDivHTML = document.getElementById(divId).innerHTML;
    
    
       
    // document.getElementById(divId).className = 'dimming';
}

function hideFloatingDiv(divId)
{
    document.getElementById(divId).style.visibility = "hidden";
}

function MouseMove(e) 

{
    if (isMozilla) 
    {
        e_x = e.pageX;
        e_y = e.pageY;
    }
    else {
        e_x = event.clientX + (document.documentElement.scrollLeft ?
        document.documentElement.scrollLeft : document.body.scrollLeft);
        e_y = event.clientY + (document.documentElement.scrollTop ?
        document.documentElement.scrollTop : document.body.scrollTop);
    }
    e_x += 25;
    return false;
}

