var mobileDevice=false; //this variable is used with mobileCheck.asp to determine whether or the user is on a mobile device
var alpha=null;

function disablePage(overlay){
        initOverlay(overlay);
        showDiv(overlay);
}

function enablePage(overlay){
       hideDiv(overlay);
}

function showDiv(div){
    document.getElementById(div).style.display="block";
    document.getElementById(div).style.visibility="visible";
}

function hideDiv(div){
    document.getElementById(div).style.display="none";
    document.getElementById(div).style.visibility="hidden";
}

function initOverlay(div){
    var d=document.getElementById(div);
    if(navigator.appName=="Microsoft Internet Explorer"){
        d.style.width=document.body.scrollWidth;
        d.style.height=document.body.scrollHeight;
        if(navigator.appVersion.indexOf('MSIE 8.0')>0) d.style.height=document.body.scrollHeight+29;
    }else if(navigator.userAgent.indexOf("Chrome")>0){
        d.style.width=window.innerWidth+"px";
        d.style.height=document.body.scrollHeight+"px";
    }else{
        d.style.width=document.documentElement.scrollWidth+"px";
        d.style.height=document.documentElement.scrollHeight+"px";
    }
}