function Floater(parentElementId, floaterId, message)
{
    var styleTop;
    
    
    if (document.documentElement && document.documentElement.clientHeight)
        styleTop = document.documentElement.clientHeight;
    else
        styleTop = document.body.clientHeight;
    
    
    this.floaterId = floaterId;
    this.parentElementId = parentElementId;
    this.floaterElement = document.createElement("div");
    this.floaterElement.id = floaterId;
    this.floaterElement.style.position = "absolute";
    this.floaterElement.style.right = "60px"; //(document.body.clientWidth - 160) + "px";
    this.floaterElement.style.top = (styleTop - 60) + "px";
    this.floaterElement.style.paddingTop = "3px";
    this.floaterElement.style.paddingBottom = "3px";
    this.floaterElement.style.paddingLeft = "4px";
    this.floaterElement.style.paddingRight = "4px";
    
    this.floaterElement.style.backgroundColor = "darkred";
    this.floaterElement.style.color = "white";

    this.floaterElement.innerHTML = message;
    
    document.getElementById(parentElementId).appendChild(this.floaterElement);
    
    this.isActive = true;
}


Floater.prototype.KillMe = function ()
{
    document.body.removeChild(this.floaterElement);
    
    this.isActive = false;
}
