		/*-----------------------------------------------------------+
		 | addLoadEvent: Add event handler to body when window loads |
		 +-----------------------------------------------------------*/
		function addLoadEvent(func) {
			var oldonload = window.onload;
			
			if (typeof window.onload != "function") {
				window.onload = func;
			} else {
				window.onload = function () {
					oldonload();
					func();
				}
			}
		}
		
		/*------------------------------------+
		 | Functions to run when window loads |
		 +------------------------------------*/
		addLoadEvent(function () {
			initTableOver();
		});
		addLoadEvent(function () {
			initImageOver();
		});
		
		/*--------------------------------------------------------------+
		 | initChecklist: Add :hover functionality on table rows for IE |
		 +--------------------------------------------------------------*/
		function initTableOver() {
			if (document.all && document.getElementById) {
				// Get all unordered tables
				var tables = document.getElementsByTagName("table");
				
				for (i = 0; i < tables.length; i++) {
					var theTable = tables[i];
					
					// Only work with those having the class "tableover"
					if (theTable.className.indexOf("tableover") > -1) {
						var trs = theTable.getElementsByTagName("tr");
						
						// Assign event handlers to rows within
						for (var j = 0; j < trs.length; j++) {
							var theTr = trs[j];
							theTr.onmouseover = function() { this.className += " hover"; };
							theTr.onmouseout = function() { this.className = this.className.replace(" hover", ""); };
						}
					}
				}
			}
		}

		function initImageOver() {
			if (document.all && document.getElementById) {
				// Get all unordered pictures
				var divs = document.getElementsByTagName("div");
				
				for (i = 0; i < divs.length; i++) {
					var theDiv = divs[i];
					
					// Only work with those having the class "productPics" or "ShowProductPics"
					if ((theDiv.className.indexOf("mainpics") > -1) || (theDiv.className.indexOf("indexpics") > -1) || (theDiv.className.indexOf("ShowProductPics") > -1)) {
						var imgs = theDiv.getElementsByTagName("img");
						
						// Assign event handlers to img-s within
						for (var j = 0; j < imgs.length; j++) {
							var theImg = imgs[j];
							theImg.onmouseover = function() { this.className += " hover"; };
							theImg.onmouseout = function() { this.className = this.className.replace(" hover", ""); };
						}
					}
				}
			}
		}
