function Shadow()
  {
  var nodeList = document.getElementsByTagName("span");
  var myList = new Array();
  var nCount = 0;

  for (var i=0; i<nodeList.length; i++) 
    {
    if (nodeList[i].className == "shadow") myList[nCount++]=nodeList[i];
    }
    
  for (var i=0; i<nCount; i++) 
    {
    ShadowApply(myList[i]);
    }
  }

function ShadowApply(myObj)
  {
  var nDelta = 2;
  var nBlur  = 2; 
  var nOpacy = 80;

  myObj.parentNode.style.position = "relative";
  myObj.parentNode.style.overflow = "visible";
  myObj.parentNode.style.wordWrap = "normal"; 

  myObj.style.position = "relative";
  myObj.style.zIndex   = 2;

  var nPosX  = myObj.offsetLeft; 
  var nPosY  = myObj.offsetTop;  

  if (nBlur>0) nOpacy = (nOpacy/nBlur/nBlur/3.1416);

  for (Y=-nBlur; Y<=nBlur; Y++)
    {
    for (X=-nBlur; X<=nBlur; X++)
      {
      var nRadio = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
      
      if (nRadio<=nBlur)
        {
        var aItem = myObj.cloneNode(true);
        var nTemp = (nBlur-(nRadio/1.5))*nOpacy;

        aItem.style.position = "absolute";
        aItem.style.margin   = "0px"
        aItem.style.zIndex   = 1;
        aItem.style.color    = "#000000";
        aItem.style.left     = nPosX+nDelta+X+"px";
        aItem.style.top      = nPosY+nDelta+Y+"px";
        aItem.style.opacity  = nTemp/100;
        aItem.style.filter   = "alpha(opacity="+nTemp+")";
      
        myObj.parentNode.appendChild(aItem)
        }
      }
    }
  }

function ShowWait()
  {
  var WaitDiv = document.createElement("div");
  
  WaitDiv.id="WaitDiv";
  WaitDiv.style.position="fixed";
  WaitDiv.style.left="0px";
  WaitDiv.style.top="0px";
  WaitDiv.style.width="100%";
  WaitDiv.style.height="100%";
  WaitDiv.style.margin="0px";
  WaitDiv.style.padding="0px";
  WaitDiv.style.overflow="hidden";
  WaitDiv.style.zIndex="99999";
  WaitDiv.style.cursor="wait";
  WaitDiv.style.background="#f0e8d1";  
  WaitDiv.style.opacity=0;
  WaitDiv.style.filter='alpha(opacity=0)';

  document.body.appendChild(WaitDiv);
  }

function HideWait()
  {
  var WaitDiv = document.getElementById("WaitDiv");

  document.body.removeChild(WaitDiv);
  }


