
var hh=550;

function ShowBox()
{

        obj = document.getElementById("coverlogin");
        obj.style.visibility = 'visible';
        obj.style.height = hh + 'px';
        obj.style.overflow = 'auto';
        setOpenClose(1);
}

//same way as above but reversed
function HideBox()
{
        obj = document.getElementById("coverlogin");

        obj.style.visibility = 'hidden';
        obj.style.height = '0.1em';
        obj.style.overflow = 'hidden';
        setOpenClose(0);
        return;


}

function Hide_ShowBox()
{
  if (getCookie("_mnstatus") == 0) ShowBox();
        else
        HideBox();


}

//assumes cookies.js is loaded beforehand
 function setOpenClose(val) {
         var expdate = new Date ();
        expdate.setTime (expdate.getTime() + (1000 * 60 * 60 * 24 * 31));
        setCookie ("_mnstatus",val, expdate);
        }

//call this function right at the end of the file; just before body tag ends
 function chkOpen() {
     if (getCookie("_mnstatus") == 1) ShowBox();
        else
        HideBox();
    return true;
   }


