
function init_dw_Scroll() {
    var wndo = new dw_scrollObj('wn', 'lyr1');
    wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
    // id, autohide (hide when not needed), axis
    wndo.setUpScrollControls('scrollbar', true, 'v');
    
    // Links to swap content 
    wndo.setUpLoadLinks('extra_controls');
    // Demonstrating jump to top and scroll to ID controls 
    wndo.setUpScrollControls('extra_controls');

    // Demonstrating how you can include a jump to top link inside the scroll area 
    wndo.setUpScrollControls('wn');
    
}

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    dw_writeStyleSheet('css/scroll-styles.css');
    // Enable printing here if you like 
    dw_scrollObj.printEnabled = true;
    dw_Event.add( window, 'load', init_dw_Scroll);
}
