﻿x = 0;
y = 75;

function setVisible(obj) {
    obj = document.getElementById(obj);
    obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';

    if (obj.style.visibility == 'visible') {
        setTimeout("placeIt('layer1')", 500);
    }
}

function placeIt(obj) {
    obj = document.getElementById(obj);
    btnRef = document.getElementById('SendFriendButton');
    var theLeft;
    var theTop;

    if (btnRef != null) {
        theLeft = btnRef.offsetLeft;
        theTop = btnRef.offsetTop;
    }
    else {
        theTop = 100;
        theLeft = 100;
    }
    
    theLeft += x;
    theTop += y;
    obj.style.left = theLeft + 'px';
    obj.style.top = theTop + 'px';
    setTimeout("placeIt('layer1')", 500);
}
