/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-4 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function initScrollLayers() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  //var wndo1 = new dw_scrollObj('wn1', null);

  // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
  // (x/y offsets of dragBar in track)
  //wndo1.setUpScrollbar("dragBar1", "track1", "v", 1, 1);
  
  var wndo2 = new dw_scrollObj('wn2', 'lyr2', 'imgTbl');
  wndo2.setUpScrollbar("dragBar2", "track2", "v", 1, 1);
 // wndo2.setUpScrollbar("dragBar3",  "h", 1, 1);
  
  // Read instructions if your scrolling layers are inside tables 
  
  // Scrollbars initially hidden in this example 
  dw_showLayers("scrollbar2");
}

function dw_showLayers() {
  if ( document.getElementById ) {
    var lyr, i;
    for (i=0; arguments[i]; i++) {
      lyr = document.getElementById( arguments[i] );
      lyr.style.visibility = "visible";
    }
  }
}