/* -----------------------------------------------
   (c) 2011 www.studenti.it
  ------------------------------------------------ */

x = 50;
y = 50;
function setVisible(obj)
{
    obj = document.getElementById(obj);
    obj.style.display = (obj.style.display == 'block') ? 'none' : 'block';
}
function placeIt(obj)
{
    obj = document.getElementById(obj);
    if (document.documentElement)
    {
        theLeft = document.documentElement.scrollLeft;
        theTop = document.documentElement.scrollTop;
    }
    else if (document.body)
    {
        theLeft = document.body.scrollLeft;
        theTop = document.body.scrollTop;
    }
    theLeft += x;
    theTop += y;
    obj.style.left = theLeft + '%' ;
    obj.style.top = theTop + '%' ;
    setTimeout("placeIt('popup-login')",500);
}
window.onscroll = setTimeout("placeIt('popup-login')",500);

/*---*/

x = 0;
y = 0;
function setVisible(obj2)
{
    obj2 = document.getElementById(obj2);
    obj2.style.display = (obj2.style.display == 'block') ? 'none' : 'block';
}
function placeIt(obj2)
{
    obj2 = document.getElementById(obj2);
    if (document.documentElement)
    {
        theLeft = document.documentElement.scrollLeft;
        theTop = document.documentElement.scrollTop;
    }
    else if (document.body)
    {
        theLeft = document.body.scrollLeft;
        theTop = document.body.scrollTop;
    }
    theLeft += x;
    theTop += y;
    obj2.style.left = theLeft + 'px' ;
    obj2.style.top = theTop + 'px' ;
    setTimeout("placeIt('popup-login-darkening')",500);
}
window.onscroll = setTimeout("placeIt('popup-login-darkening')",500);



