function js_show(div_id,div_text,content,decallX,decallY)
{
    this.content = content;
    this.div_id = div_id;

    this.box = document.getElementById(div_id);
    this.boxText = document.getElementById(div_text);

    this.gTimerID = 0;
    this.a;
    this.b;
    this.xa;
    this.ya;
    this.xb;
    this.yb;
    this.currentX;
    this.currentY;
    this.step;
    this.stepvalue = 10;
    this.stepSlowStart = 60;
    this.stepSlowStep = 1;
    this.deltaX;
    this.decallX = decallX;
    this.decallY = decallY;

    this.msgToDisplay;
    this.xcenter;
    this.ycenter;
    this.delay = 5;

    this.initPosition = initPosition;
    this.jumpTo = jumpTo;
    this.moveBox = moveBox;
    this.setDecall = setDecall;
    this.setContent = setContent;

    /////////////////////////////////////////////////////////////////////////////////
    // Init the move
    function initPosition(_xa,_ya)
    {
        this.xa = _xa;
        this.ya = _ya;
    }

    /////////////////////////////////////////////////////////////////////////////////
    // Set the offset
    function setDecall(decallX,decallY)
    {
        this.decallX = decallX;
        this.decallY = decallY;
    }

    function jumpTo(_x,_y,content)
    {
        this.content = content;
        this.currentX = _x + this.decallX;
        this.currentY = _y + this.decallY;
        this.boxText.innerHTML = this.content;
        this.moveBox();
    }

    function setContent(content)
    {
        this.content = content;
        this.boxText.innerHTML = this.content;
    }

    function moveBox()
    {
        this.box.style.left = this.currentX + "px";
        this.box.style.top = this.currentY + "px";
    }
}

