//Disclamer afdrukken op locatie muisaanwijzer
function displayDisclaimer() {
            
    var disclaimer = findObject('disclaimerpopup');
    var lPosition = getPosition('disclaimer');
    var xx = lPosition.x;
    var yy = lPosition.y;
    // Debugging:
    //alert('X,y:' + xx + ',' + yy);

    // de bovenkant + hoogte = onderkant
    var lYOffset = 236;
    var lXOffset = 200; //negative 
    if (disclaimer.offsetHeight) {
        lYOffset = disclaimer.offsetHeight + 15;
    }
    if (disclaimer.offsetWidth) {
        lXOffset = disclaimer.offsetWidth / 2;
    }

    disclaimer.style.left = (xx - lXOffset) + "px";
    disclaimer.style.top  = (yy - lYOffset) + "px";
    //disclaimer.style.display="block";
    disclaimer.style.visibility="visible";
}        

//disclaimer verbergen
function hideDisclaimer() {
          
    var disclaimer = findObject('disclaimerpopup');
    //disclaimer.style.display="none";
    disclaimer.style.visibility="hidden";
}

function getPosition(pId) {
    lObject = findObject(pId);
    return getPositionObject(lObject);
}

// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
// Last modified: 10/11/02

// getPosition(tag id)
//   This function returns an object having .x and .y properties which are the coordinates
//   of the named anchor, relative to the page.
function getPositionObject(lObject) {

    // This function will return an Object with x and y properties
        var useWindow=false;
        var coordinates=new Object();
        var x=0,y=0;
        // Browser capability sniffing
        var use_gebi=false, use_css=false, use_layers=false;
        if (document.getElementById) { use_gebi=true; }
        else if (document.all) { use_css=true; }
        else if (document.layers) { use_layers=true; }
        // Logic to find position
        if (!use_layers) {
                x=AnchorPosition_getPageOffsetLeft(lObject);
                y=AnchorPosition_getPageOffsetTop(lObject);
        }
        else if (use_layers) {
                x=lObject.x;
                y=lObject.y;
        }
        else {
                coordinates.x=0; coordinates.y=0; return coordinates;
        }
        coordinates.x=x;
        coordinates.y=y;
        return coordinates;
}
// Functions for IE to get position of an object
function AnchorPosition_getPageOffsetLeft (el) {
        var ol=el.offsetLeft;
        while ((el=el.offsetParent) != null) { ol += el.offsetLeft; }
        return ol;
}
function AnchorPosition_getWindowOffsetLeft (el) {
        return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
}
function AnchorPosition_getPageOffsetTop (el) {
        var ot=el.offsetTop;
        while((el=el.offsetParent) != null) { ot += el.offsetTop; }
        return ot;
}
function AnchorPosition_getWindowOffsetTop (el) {
        return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
}

