﻿// JScript File

if ( dw_scrollObj.isSupported() ) {
    //dw_writeStyleSheet('css/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}

function init_dw_Scroll() {
    // Initialize scroll area
    // arguments: id of outer div, id of content div
    var wndo = new dw_scrollObj('wn', 'lyr1');
    
    // Initialize scrollbar
    // id of dragbar, id of track, 
    // axis (v for vertical scrolling, 'h' for horizontal)
    // horizontal offset of dragbar in track, vertical offset
    // size dragBar according to amount of content? (boolean)
    wndo.setUpScrollbar('dragBar', 'track', 'v', 1, 1, true);
    
    // Initialize scroll links
    // id of element within which to locate scroll controls
    wndo.setUpScrollControls('scrollbar');
}

