<!--
var mainDiv = new DHTMLScroller('mainDiv');

with (mainDiv)
{
 divs[0] = new ScrDiv('mainDivContent', '230', '240', 'page.winW() - 470', '330');
 divs[1] = new ScrDiv('mainDivBar', 'page.winW() - 218', '275', '15', '270');
 divs[2] = new ScrDiv('mainDivThumb', 'page.winW() - 218', '', '13', '');

 divs[3] = new ScrDiv('mainDivUpArrows', 'page.winW() - 231', '240', '39', '31');
 divs[4] = new ScrDiv('mainDivDownArrows', 'page.winW() - 231', '550', '39', '31');
 page.minW = 400;
 page.minH = 300;
 onload = loadFunction;

 onlayout = thumbVis;
}
// divs[number] = new ScrDiv('id of div below', 'x', 'y', 'width', 'height', 'parent');
function loadFunction() { with (this)
{
 getSty('loadMessage').visibility = 'hidden';
 for (var i = 0; i < divs.length; i++) if (i != 2) divs[i].lyr.vis('visible');
 onlayout();
}}

function thumbVis() { with (this)
{
 divs[2].lyr.vis(div.h() > cHeight ? 'visible' : 'hidden');
}}

function startscroll()
{
 mainDiv.setup('../infobank/scroll_abc.cfm');
}

window.onresize = function()
{
 ns4BugCheck();
 mainDiv.layout();
}

if (isNS4) document.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP);

document.onmousemove = function(evt)
{
 var ret = scrThumbMove(evt);
 return (ret ? (isNS4?document.routeEvent(evt):true) : false);
}

document.onmouseup = function(evt)
{
 scrThumbUp(evt);
 if (isNS4) return document.routeEvent(evt);
}

var nsWinW = window.innerWidth, nsWinH = window.innerHeight;
function ns4BugCheck()
{
 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight))
 {
  var fileName = location.href;

  if (fileName.indexOf('?') != -1) fileName = fileName.substring(0, fileName.indexOf('?'));
  location.href = fileName + '?mainDiv=' + mainDiv.loadedFile;
 }
}

if (isIE) document.onmousewheel = function()
{
 mainDiv.scrollBy(event.wheelDelta / -3);
 return false;
}

//-->

