﻿/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-4 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function initScrollLayer() {
	var scrollImage = 0;
	//alert(scrollImage);
	items = parseInt(document.forms[0].ItemsToScroll.value);
	//salert(items);
	scrollImage = parseInt(105*items);
	
	document.getElementById('scrollStretcher').width= scrollImage;
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn', 'lyr1', 't1');
  // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
  // (x/y offsets of dragBar in track)
  wndo.setUpScrollbar("dragBar", "track", "h", 1, 1);
 
  dw_scrollObj.initScroll('wn','right');
}

function ContinueScroll()
{
    dw_scrollObj.initScroll('wn',scrollDir);
   
}

function StopScroll()
{
    dw_scrollObj.stopScroll('wn');
}
