function onLoad(section) {
	if ($('dl-item-1') != null) { preloadDownloadBgs(section); }
	if ($('whatsnew')) { whatsNew(); }
	if ($('loadstats')) { load($('loadstats').innerHTML); }
	}

function whatsNew(lastIndex, LastValidIndex, resetStart) {
	if (lastIndex === undefined || resetStart === true) { var startIndex = 0; }
	else { startIndex = (lastIndex + 1); }
	for (i = startIndex; i < $('whatsnew').childNodes.length; i++) {
		var childObject = $('whatsnew').childNodes[i];
		if (childObject.id != undefined && childObject.id.substr(0,3) == 'wn-') {
			var LastValidIndex = i;
			if (lastIndex != undefined) { new Effect.Fade($('whatsnew').childNodes[lastIndex].id, {duration: 0.5}); }
			setTimeout('new Element.show(\'' + childObject.id + '\');', 600);
			//new Element.show(childObject);
			setTimeout('whatsNew(' + i + ', ' + LastValidIndex + ')', 4000);
			return true;
			}
		}
	whatsNew(LastValidIndex, 0, true);
	return true;
	}

function preloadDownloadBgs(section) {
	theImage = new Image();
	theImage.src = "/images/download-bg-" + section + "_ov.gif";
	}

function swapDownloadBg(sender, section, mode) {
	sender.style.backgroundImage = "url(\"/images/download-bg-" + section + (mode ? '_' + mode : '') + ".gif\")";
	}


