<!-- FIX OBJECT IN PLACE (load FixObject() in BODY tag)
    //Fixes an object with id="fixedobj" in a specific location in the window.
    //Requires windims.js.

function FixObject() {

    var Xoff = 20;    //Pixels from right side
    var Yoff = 4;    //Pixels above bottom
    var fobj = document.getElementById('fixedobj');

    //Place the object in a fixed location and make it visible
    fobj.style.position = "absolute";
    fobj.style.visibility = "visible";

    //Place the object in the lower-right corner
    fobj.style.left = (getWindowWidth() + getScrolledWidth() - fobj.offsetWidth - Xoff) + 'px';
    fobj.style.top = (getWindowHeight() + getScrolledHeight() - fobj.offsetHeight - Yoff) + 'px';

    //Reposition the object if the window is scrolled or resized
    window.onscroll = ReFixObject;
    window.onresize = ReFixObject;

    //Set the regular interval for repositioning
    if (document.all || document.getElementById || document.layers) {
        setInterval("ReFixObject()",20);
    }
}

function ReFixObject() {

    var Xoff = 20;    //Pixels from right side
    var Yoff = 4;    //Pixels above bottom
    var fobj = document.getElementById('fixedobj');

    //Place the object in the lower-right corner
    fobj.style.left = (getWindowWidth() + getScrolledWidth() - fobj.offsetWidth - Xoff) + 'px';
    fobj.style.top = (getWindowHeight() + getScrolledHeight() - fobj.offsetHeight - Yoff) + 'px';
}

//-->

