function BodyOnload() {
	AddIEDivHovers();
}

function AddIEDivHovers() {
	if (document.all) {
		var divs = document.getElementsByTagName('div');
		for (var i = 0; i < divs.length; i++) {
			var div = divs[i];
			if (div.className == 'ObjectDetailsTableRow') {
				div.onmouseover = function() { this.className = 'ObjectDetailsTableRowhover'; };
				div.onmouseout = function() { this.className = 'ObjectDetailsTableRow' };
			} else if (div.className == 'ObjectListingTableRow') {
				div.onmouseover = function() { this.className = 'ObjectListingTableRowhover'; };
				div.onmouseout = function() { this.className = 'ObjectListingTableRow' };
			} else if (div.className == 'LiveEvent') {
				div.onmouseover = function() { this.className = 'LiveEventhover'; };
				div.onmouseout = function() { this.className = 'LiveEvent' };
			} else if (div.className == 'LiveEventNew') {
				div.onmouseover = function() { this.className = 'LiveEventNewhover'; };
				div.onmouseout = function() { this.className = 'LiveEventNew' };
			} else if (div.className == 'BitHunterMatchLineupPosition') {
				div.onmouseover = function() { this.className = 'BitHunterMatchLineupPositionhover'; };
				div.onmouseout = function() { this.className = 'BitHunterMatchLineupPosition' };
			}
		}
	}
}

function RegisterOnloadEvent(fpEventHandler) {
	if (window.attachEvent) {
		window.attachEvent('onload', fpEventHandler);
	} else if (window.addEventListener) {
		window.addEventListener('load', fpEventHandler, false);
	}	
}

function ShowPopupLink(sHref) {
	window.open(sHref, '_blank', 'width = 400, height = 300, left = 200, top = 200, location = no, menubar = no', false);

	return false;	
}

function SubmitForm(sFormName, sControlName) {
	var fForm = document.forms[sFormName];
	fForm.elements['hSubmittedBy'].value = sControlName;
	fForm.submit();
}