/*************************************************************************
  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 initScrollLayer() {
  // 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 wndo = new dw_scrollObj('scrollerOuter410', 'dnn_ctr410_ContentPane');
  
  // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ )
  // wndo.bSizeDragBar = false;
  
  // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
  // (x/y offsets of dragBar in track)
  wndo.setUpScrollbar("dragBar410", "track410", "v", 1, 1);
  
  // pass id('s) of scroll area(s) if inside table(s)
  // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
  dw_scrollObj.GeckoTableBugFix('scrollerOuter410'); 
}
function initScrollLayer2() {
  // 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 wndo = new dw_scrollObj('scrollerOuter409', 'dnn_ctr409_ContentPane');
  
  // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ )
  // wndo.bSizeDragBar = false;
  
  // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
  // (x/y offsets of dragBar in track)
  wndo.setUpScrollbar("dragBar409", "track409", "v", 1, 1);
  
  // pass id('s) of scroll area(s) if inside table(s)
  // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
  dw_scrollObj.GeckoTableBugFix('scrollerOuter409');
}
function initScrollLayer3() {
    // 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 wndo = new dw_scrollObj('scrollerOuter669', 'dnn_ctr669_ContentPane');

    // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ )
    // wndo.bSizeDragBar = false;

    // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
    // (x/y offsets of dragBar in track)
    wndo.setUpScrollbar("dragBar669", "track669", "v", 1, 1);

    // pass id('s) of scroll area(s) if inside table(s)
    // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
    dw_scrollObj.GeckoTableBugFix('scrollerOuter669');
}
function initialize(){
	initScrollLayer();
	initScrollLayer2();
	initScrollLayer3();
}

function initScroll(outer, inner,moduleid) {
    // 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 wndo = new dw_scrollObj(outer, inner);

    // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ )
    // wndo.bSizeDragBar = false;

    // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
    // (x/y offsets of dragBar in track)
    wndo.setUpScrollbar("dragBar"+moduleid, "track" + moduleid, "v", 1, 1);

    // pass id('s) of scroll area(s) if inside table(s)
    // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
    dw_scrollObj.GeckoTableBugFix(outer);
}
