var mainDiv = new DHTMLScroller('mainDiv', 'home.htm');

with (mainDiv)
{
 divs[0] = new ScrDiv('mainDivContent', '222', '48', 'page.winW() - 280', 'page.winH() - 96', 2);
 divs[1] = new ScrDiv('mainDivBar', 'page.winW() - 22', '103', '1', 'page.winH() - 207', 2);
 divs[2] = new ScrDiv('mainDivThumb', 'page.winW() - 26', '', '9', '', 1);
 divs[3] = new ScrDiv('mainDivUpArrows', 'page.winW() - 30', '85', '17', '15', 2);
 divs[4] = new ScrDiv('mainDivDownArrows', 'page.winW() - 30', 'page.winH() - 100', '17', '15', 2);
 divs[5] = new ScrDiv('mainDivlogo', 'page.winW()/2 - 170', '10', '300', '25', 2);
 divs[6] = new ScrDiv('mainDivhistory', 'page.winW() - 360', '57', '300', '25', 2);
 divs[7] = new ScrDiv('mainDivleftBar', '0', '78', '78', 'page.winH() - 156');
 divs[8] = new ScrDiv('mainDivrightBar', 'page.winW() - 78', '78', '78', 'page.winH() - 156');
 divs[9] = new ScrDiv('mainDivtopBar', '78', '0', 'page.winW() - 156', '78', 2);
 divs[10] = new ScrDiv('mainDivbotBar', '78', 'page.winH() - 78', 'page.winW() - 156', '78', 2);
 divs[11] = new ScrDiv('mainDivbotleft', '0', 'page.winH() - 78', '78', '78', 2);
 divs[12] = new ScrDiv('mainDivtopleft', '0', '0', '78', '78', 2);
 divs[13] = new ScrDiv('mainDivbotright', 'page.winW()- 78', 'page.winH() - 78', '78', '78', 2);
 divs[14] = new ScrDiv('mainDivtopright', 'page.winW()- 78', '0', '78', '78', 2);
 divs[15] = new ScrDiv('mainDivbgnav', 'page.winW()/15', 'page.winH()/3', '115', '230', 2);
 divs[16] = new ScrDiv('mainDivsearch', '56', '55', '260', '25', 2);
 divs[17] = new ScrDiv('mainDivlogomyspace', '56', 'page.winH() - 88', '160', '34', 2);
 // divs[17] = new ScrDiv('mainDivlogomyspace', '71', 'page.winH() - 255', '15', '50', 2);
                                        



 stick = 0.25;
 page.minW = 400;
 page.minH = 300;
 if (navigator.userAgent.indexOf('Safari')>-1 ||
  isIE4&&navigator.userAgent.indexOf('Win')<0) loadFix = true;
 onload = function() { var lm = getSty('loadMessage'); if (lm) lm.visibility = 'hidden'; }
}

document.onmousewheel = function(evt)
{
 evt=evt?evt:window.event;
 if (evt.wheelDelta) mainDiv.scrollBy(evt.wheelDelta / -3);
 return false;
}

function scrKeyDown(evt) { with (mainDiv)
{
 if (!loaded) return;

 var evt = evt?evt:window.event;
 var key = evt.keyCode?evt.keyCode:(evt.charCode?evt.charCode:evt.which);

 if (key==84 || key==116 || key==36) scrollTo(0);
 if (key==83 || key==115 || key==33) scrollBy(0-cHeight);
 if (key==65 || key==97  || key==38) scrollBy(-10);
 if (key==90 || key==122 || key==40) scrollBy(10);
 if (key==88 || key==120 || key==34) scrollBy(cHeight);
 if (key==66 || key==98  || key==35) scrollTo(divHeight);
}}

if (isIE) document.onkeydown = scrKeyDown;
else
{
 if (isNS4) document.captureEvents(Event.KEYPRESS);
 document.onkeypress = scrKeyDown;
}