function init_dw_Scroll() {   
   	var wndo = new dw_scrollObj('wmune', 'lyrune', 'tab1');    
    wndo.setUpScrollControls('scrollLinks');
    
    var wndo2 = new dw_scrollObj('wmgalerie', 'lyrgalerie', 'tab2');    
    wndo2.setUpScrollControls('scrollLinksGalerie');
}

// if necessary objects exists link in the style sheet and call the init function onload
if ( document.getElementById && document.getElementsByTagName ) {
    
    
    //addLoadEvent(init_dw_Scroll);
    dw_Event.add( window, 'load', init_dw_Scroll);
    
}

function updateScroll(id)
{
	var wndo = dw_scrollObj.col['wn'+id];
    
    wndo.updateDims();
    var x = wndo.getX();
    var y = wndo.getY();
    
    if ( wndo.vBarId ) { // set up similarly for hBarId
        
        dw_Scrollbar_Co.updateScrollbar('wn'+id, x, y);
    }
}