// *** SCROLLER OBJECT SETUP ***
var mainDiv = new DHTMLScroller('mainDiv', '/main.php');

// divs[n] = new ScrDiv('id_of_div', 'Left', 'Top', 'Width', 'Height', Visibility, 'Parent');
with (mainDiv)
{
 divs[0] = new ScrDiv('mainDivContent', '160', '95', '440', 'page.winH() - 115', 2);
 divs[1] = new ScrDiv('mainDivBar', '600', '110', '15', 'page.winH() - 145', 2);
 // Visibility=1, so this will hide when scroller content is smaller than the scroller area.
 divs[2] = new ScrDiv('mainDivThumb', '601', '', '13', '', 1);
 divs[3] = new ScrDiv('mainDivUpArrows', '600', '95', '', '', 2);
 divs[4] = new ScrDiv('mainDivDownArrows', '600', 'page.winH() - 35', '', '', 2);
 
 divs[5] = new ScrDiv('divMenu', '0', '105', '160', '200', 2);
 divs[6] = new ScrDiv('divLogin', '0', '255', '160', '105', 2);
 divs[7] = new ScrDiv('divLeftInfo2', '0', '465', '160', '105', 2);
 divs[8] = new ScrDiv('divRightInfo1', '615', '95', '160', '105', 2);
 divs[9] = new ScrDiv('divRightInfo2', '615', '200', '160', '105', 2);
 divs[10] = new ScrDiv('divRightInfo3', '615', '305', '160', '105', 2);
 divs[11] = new ScrDiv('divRightInfo4', '615', '410', '160', '105', 2);
 divs[12] = new ScrDiv('divRightInfo5', '615', '515', '160', '105', 2);
   
 divs[13] = new ScrDiv('divLeftFill', '0', '580', '160', 'page.winH()-590', 2);
 divs[14] = new ScrDiv('divRightFill', '615', '620', '160', 'page.winH()-535', 2);
 divs[15] = new ScrDiv('divTop', '0', '0', '776', '95', 2);
 divs[16] = new ScrDiv('divBottom', '0', 'page.winH()-20', '775', '20', 2); 
 divs[17] = new ScrDiv('divLeftInfo3', '0', '360', '160', '105', 2);
 divs[18] = new ScrDiv('divBanner', '776', '0', '200', 'page.winH()', 2);
 
 stick = 0.60;
 // You can set scroller padding at the top and bottom of loaded files like this:
 //padTop = 100;
 //padBot = 50;
 page.minW = 600;
 page.minH = 400;
 loadHack = navigator.userAgent.indexOf('Safari')>-1 ? 1 : 0;
 onload = new Function('doThings()');
}

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

//XXX What we want to do when page is created
function doThings() {
	getSty("loadMessage").visibility = "hidden";
	pMenu.menu.root[0].oncreate = abcd; //Getting backed-up menu
	pMenu.menu.root[0].oncreate();  //Showing menu
	//flyRight();
	//if (isSliding==false) { setTimeout("slideit();",3000); isSliding=true; }
	pMenu.menu.root[0].lyr.vis('visible');	
 } 