// JavaScript Document
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 necessary objects exists link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    dw_writeStyleSheet('css/scrolldivs.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}
