var BlockLayerHandler = null;

function buildBlockLayer() {
  /*var d = document;
  var BlockWindowLayerId = 'blockLayer';
  if(BlockLayerHandler == null) {
    BlockLayerHandler = d.createElement('DIV');
    d.body.appendChild(BlockLayerHandler);
    BlockLayerHandler.id = BlockWindowLayerId;
    BlockLayerHandler.style.backgroundImage = 'url(block_fon.png)';
    BlockLayerHandler.style.width = d.body.scrollWidth+'px';
    BlockLayerHandler.style.height = (d.body.scrollHeight>window.screen.height?d.body.scrollHeight:window.screen.height)+'px';
    BlockLayerHandler.style.position = 'absolute';
    BlockLayerHandler.style.left = '0px';
    BlockLayerHandler.style.top = '0px';
    BlockLayerHandler.style.zIndex = '90';
    try{
      BlockLayerHandler.style.filter = 'alpha(opacity=30)';
    }catch(e) {
    }
  }else {
    BlockLayerHandler.style.width = d.body.scrollWidth+'px';
    BlockLayerHandler.style.height = d.body.scrollHeight+'px';
    BlockLayerHandler.style.display = '';
  }*/

  document.documentElement.style.backgroundColor = "#474747";
  document.getElementById("ww-splash-screen-background").style.display = "block";

  //BlockLayerHandler.onmousedown = function (event){stopSelect(event);}
}

function stopSelect(ev) {
  if(window.event) ev = window.event;
  if (ev) {
    try {
      ev.preventDefault();
      ev.stopPropagation();
    } catch(e) {
      try {
        ev.cancelBubble = true;
        ev.returnValue = false;
      }catch(e) {}
    }
  }
  return false;
}

function hideBlockLayer() {
  document.documentElement.style.backgroundColor = "#FFFFFF";
  
  if(BlockLayerHandler != null) {
    BlockLayerHandler.style.display = 'none';
    document.documentElement.style.backgroundColor = "#FFFFFF";
  }
}