// ------- Shelley Powers cross browser JavaScript 
 function wdvlCreateObjects()
 {
  if (document.layers)       // Instanciate Netscape 4.x objs.
  {
   wdvlObjs = new Array(document.layers.length);
   for (i = 0; i < document.layers.length; i++)      
      // check to see if Netscape assigned block
     if (document.layers[i].id.substring(0,3) != "_js") 
   	   wdvlObjs[document.layers[i].id] = new wdvlNewObject(document.layers[i]);
  }
  if (document.all)         // Instanciate Netscape I.E. objs.
  {
   theelements = document.all.tags("DIV");
   wdvlObjs = new Array();
   for (i = 0; i < theelements.length; i++)
   {
    if (theelements[i].id != "")
    {
     wdvlObjs[theelements[i].id] = new wdvlNewObject(theelements[i]);
    }
   }
  }
 }

 function wdvlNewObject(obj)
 { 
  if (document.layers)     // Create Netscape 4.x obj.
  {
   this.obj = obj;
   this.name = obj.name;
   this.objHide = objHide;
   this.objShow = objShow;
   this.objGetLeft = objGetLeft;
   this.objGetTop = objGetTop;
   this.objSetTop = objSetTop;
   this.objSetLeft = objSetLeft;
   this.objSetZIndex = objSetZIndex;
  }
  if (document.all)
  {
   this.obj = obj.style;
   this.name = obj.id;
   this.objHide = objHide;
   this.objShow = objShow;
   this.objGetLeft = objGetLeft;
   this.objGetTop = objGetTop;
   this.objSetTop = objSetTop;
   this.objSetLeft = objSetLeft;
   this.objSetZIndex = objSetZIndex;
  }
 }

 function objHide()
 {
   this.obj.visibility = "hidden";
 }

 function objShow()
 {
   this.obj.visibility = "inherit";
 }

 function objGetLeft()
 {
  if (document.layers)
   { return this.obj.left; }
  if (document.all)
   { return this.obj.pixelLeft; }
 }

 function objGetTop()
 {
  if (document.layers)
   { return this.obj.top; }
  if (document.all)
   { return this.obj.pixelTop; }
 }

 function objSetTop(top)
 {
  if (document.layers)
   { this.obj.top = top; }
  if (document.all)
   { this.obj.pixelTop = top; }
 }

 function objSetLeft(left)
 {
  if (document.layers) 
   { this.obj.left = left; }
  if (document.all)
   { this.obj.pixelLeft = left; }
 }

 function objSetZIndex(zindex) 
 {
   this.obj.zIndex = zindex;
 }
