var pollo=1;
function doWaitScreen(){
    // do a overlay screen image.

    //hide left menu (function list)
    var leftMenu = document.getElementById("menu");
    var leftMenuStyle = null;

    if (leftMenu != null){
        leftMenuStyle = leftMenu.style;
    }

    if (leftMenuStyle != null){
        leftMenuStyle.visibility="hidden";
    }

    //do overlay

    var winW = document.body.scrollWidth, winH = document.body.scrollHeight;

    var screenW = null, screenH = null;

    if (window.navigator.appName.indexOf("Microsoft")!=-1) {
        screenW = document.body.offsetWidth -20;
        screenH = document.body.offsetHeight;
    }else{
        screenW = window.innerWidth -16;
        screenH = window.innerHeight -16;
    }



    document.getElementById('pleaseWait').style.top="0";
    document.getElementById('pleaseWait').style.left="0";

    if (screenH>=winH){
        document.getElementById('pleaseWait').style.height=screenH;
    }else{
        document.getElementById('pleaseWait').style.height=winH;
    }
    if (screenW>=winW){
        document.getElementById('pleaseWait').style.width=screenW;
    }else{
        document.getElementById('pleaseWait').style.width=winW;
    }
    document.getElementById('pleaseWait').style.display="block";


    document.getElementById('pleaseWaitImage').style.top=(((screenH) / 2) + document.body.scrollTop - 50);
    document.getElementById('pleaseWaitImage').style.left=(((screenW) / 2) + document.body.scrollLeft - 50);
    document.getElementById('pleaseWaitImage').style.display="block";

    //IE bug, reload image
    window.setTimeout('document.images["pleaseWaitImage"].src = "images/waitBig.gif"', 200);

    document.close();
}


function doHideStatusBar(){
    window.status='';
    return true;
}

if (document.layers){
    document.captureEvents(window.Event.MOUSEOVER | window.Event.MOUSEOUT | window.Event.MOUSEUP | window.Event.MOUSEDOWN | window.Event.CLICK);
}



document.onmouseover=doHideStatusBar;
document.onmouseout=doHideStatusBar;
document.onmouseup=doHideStatusBar;
document.onmousedown=doHideStatusBar;
document.onclick=doHideStatusBar;
document.ondblclick=doHideStatusBar;


document.write("<div id=\"pleaseWait\" align=\"center\" style=\"border:none; background-color:#000000; background-repeat: repeat; display:none; position:absolute; zIndex:100000; opacity: 0.7; filter:alpha(opacity=70); -moz-opacity:0.7; \">");
document.write("<img id=\"pleaseWaitImage\" style=\"display:none; position:absolute; zIndex:100001;\" src=\"images/waitBig.gif\"/>");
document.write("</div>");


