	function initButtons() {
		if (!document.getElementsByTagName) { return; }
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			if ( anchor.className == "button") {
				anchor.onmouseover	= function () { this.className= "buttonHover"; }
				anchor.onmouseup	= function () { this.className= "buttonHover"; }
				anchor.onmousedown	= function () { this.className= "buttonActive"; }
				anchor.onmouseout	= function () { this.className= "button"; }
			} else if ( anchor.className == "buttonR") {
				anchor.onmouseover	= function () { this.className= "buttonRHover"; }
				anchor.onmouseup	= function () { this.className= "buttonRHover"; }
				anchor.onmousedown	= function () { this.className= "buttonRActive"; }
				anchor.onmouseout	= function () { this.className= "buttonR"; }
			}
		}
	}

	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
		    	window.onload = func;
		} else {
			window.onload = function() {
			oldonload();
			func();
			}
		}
	}

	addLoadEvent(initButtons);
