// JavaScript Document

function init_dw_Scroll() {
    // arguments: id of div container, id of div to scroll
	if ( document.getElementById( "lyr1" ) )
	{
		var wndo = new dw_scrollObj('wn', 'lyr1');
		wndo.setUpScrollControls('scroll_links');
	}
	if ( document.getElementById( "lyr2" ) )
	{
		wndo = new dw_scrollObj('wn2', 'lyr2');
		wndo.setUpScrollControls('scroll_links2');
	}
	if ( document.getElementById( "lyr3" ) )
	{
		wndo = new dw_scrollObj('wn3', 'lyr3');
		wndo.setUpScrollControls('scroll_links3');
	}
	if ( document.getElementById( "lyr4" ) )
	{
		wndo = new dw_scrollObj('wn4', 'lyr4');
		wndo.setUpScrollControls('scroll_links4');
	}
	
}

// if necessary objects exists link in the style sheet and call the init function onload
if ( document.getElementById && document.getElementsByTagName ) {
    //dw_writeStyleSheet('_css/scroll.css');
    addLoadEvent(init_dw_Scroll);
}

