		// swapRandomHeader
		// This isn't very modular, since you'll have to modify the variables
		// here to fit your specific file structure and naming conventions,
		// so reuse will be at a premium. However, it will in fact get the
		// job done. I'm assuming this is a header image you're randomizing?
		function swapRandomHeader() {
			if (!document.getElementById) return;
			var headerImage = document.getElementById("random_sidebar");
			var randomNumber = Math.round(Math.random()*16)+1;
			var newSrc = "images/side" + randomNumber + ".jpg";
			headerImage.src = newSrc;
		}

		function addEvent(elm, evType, fn, useCapture) {
			// cross-browser event handling for IE5+, NS6+ and Mozilla/Gecko
			// By Scott Andrew
			if (elm.addEventListener) {
				elm.addEventListener(evType, fn, useCapture); 
				return true; 
			} else if (elm.attachEvent) {
				var r = elm.attachEvent('on' + evType, fn); 
				return r; 
			} else {
				elm['on' + evType] = fn;
			}
		}

		addEvent(window, 'load', swapRandomHeader, false);

