// JavaScript Document

if ( dw_scrollObj.isSupported() ) {
    dw_writeStyleSheet('css/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}

function init_dw_Scroll() {
    // Initialize scroll area
    // arguments: id of outer div, id of content div
	
	if(bShowScrollLinks == true){ 
		var wndo = new dw_scrollObj('swatchWindow', 'swatches');
    	wndo.setUpScrollbar('dragBar', 'track', 'h', 0, 0, true);
		wndo.setUpScrollControls('scrollLinks', true, 'h');
	}
   
	if(bShowMainWindow == true){
		var wndo2 = new dw_scrollObj('mainWindowScroll', 'mainWindowContent');
		wndo2.setUpScrollbar('dragBar2', 'track2', 'v', 0, 0, true);
	}
	
	if(bShowFullWindow == true){
		var wndo3 = new dw_scrollObj('fullWindowScroll', 'fullWindowContent');
		wndo3.setUpScrollbar('dragBar3', 'track3', 'v', 0, 0, true);
	}

	if(bShowTopHorzScroll == true){
		var wndo4 = new dw_scrollObj('topHorzScroll', 'topHorzScrollContent');
		wndo4.setUpScrollbar('dragBar4', 'track4', 'h', 0, 0, true);
	}
	
 
 // Initialize scrollbar
    // id of dragbar, id of track, 
    // axis (v for vertical scrolling, 'h' for horizontal)
    // horizontal offset of dragbar in track, vertical offset
    // size dragBar according to amount of content? (boolean)
   
	
    // Initialize scroll links
    // id of element within which to locate scroll controls
  
}
