
function init_dw_Scroll() { 
	
//these 2 functions share the same Id names because both functions scroll the same info

	if(document.getElementById("scrollLinkP1")) {
		var wndo = new dw_scrollObj('wnP1', 'lyrP1', 'tP1');
		wndo.setUpScrollControls('scrollLinkP1');
	}
	
	if(document.getElementById("scrollLinkP2")) {
		var wndo = new dw_scrollObj('wnP1', 'lyrP1', 'tP1');
		wndo.setUpScrollControls('scrollLinkP2');
	}
	
//these 2 functions share the same Id names because both functions scroll the same info
	if(document.getElementById("scrollLinkQ1")) {
		var wndo = new dw_scrollObj('wnQ1', 'lyrQ1', 'tQ1');
		wndo.setUpScrollControls('scrollLinkQ1');
	}

	if(document.getElementById("scrollLinkQ2")) {
		var wndo = new dw_scrollObj('wnQ1', 'lyrQ1', 'tQ1');
		wndo.setUpScrollControls('scrollLinkQ2');
	}
	

	//v scrolls text
	if(document.getElementById("scrollLinksV01")) {
		var wndo = new dw_scrollObj('wnV01', 'lyrV01');
		wndo.setUpScrollControls('scrollLinksV01');
	}

	if(document.getElementById("scrollLinksV02")) {
		var wndo = new dw_scrollObj('wnV02', 'lyrV02');
		wndo.setUpScrollControls('scrollLinksV02');
	}

	if(document.getElementById("scrollLinksV03")) {
		var wndo = new dw_scrollObj('wnV03', 'lyrV03');
		wndo.setUpScrollControls('scrollLinksV03');
	}

	if(document.getElementById("scrollLinksV04")) {
		var wndo = new dw_scrollObj('wnV04', 'lyrV04');
		wndo.setUpScrollControls('scrollLinksV04');
	}

	if(document.getElementById("scrollLinksV05")) {
		var wndo = new dw_scrollObj('wnV05', 'lyrV05');
		wndo.setUpScrollControls('scrollLinksV05');
	}

	if(document.getElementById("scrollLinksV06")) {
		var wndo = new dw_scrollObj('wnV06', 'lyrV06');
		wndo.setUpScrollControls('scrollLinksV06');
	}
	


	hs.graphicsDir = '../images/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	//hs.dimmingOpacity = 0.75;

	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .75,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});

}



// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    //dw_writeStyleSheet('css/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}


