/*************************************************************************
  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?)

  if(document.getElementById("content1_layer")) {
	var wndo1 = new dw_scrollObj('content1_window', 'content1_layer', 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);
	  dw_showLayers("scrollbar1");
	  dw_scrollObj.checkScrollbar('content1_window');
  }
	function dw_showLayers() {
	  if ( document.getElementById ) {
	    var lyr, i;
	    for (i=0; arguments[i]; i++) {
	      lyr = document.getElementById( arguments[i] );
	      lyr.style.visibility = "visible";
	    }
	  }
	}
}