function prepareButtons() {
	if (!document.getElementsByTagName) return false;
	var divs = document.getElementsByTagName("div");
	for (var i=0; i<divs.length; i++) {
		if (divs[i].className.toLowerCase() == "outerbutton") {
			divs[i].onmouseover = function() {
				if (document.all) {
					this.style.backgroundImage = "url('/images/buttons/large-square-button.png')";
					this.style.backgroundPosition = "right top";
					this.style.backgroundRepeat = "no-repeat";
				} else {
					this.setAttribute("style", "background-position:right top");
				}
				return false;
			}
			divs[i].onmouseout = function() {
				if (document.all) {
					this.style.backgroundImage = "url('/images/buttons/large-square-button.png')";
					this.style.backgroundPosition = "left top";
					this.style.backgroundRepeat = "no-repeat";
				} else {
					this.setAttribute("style", "background-position:left top");
				}
				return false;
			}
		}
		if (divs[i].className.toLowerCase() == "middlebutton") {
			divs[i].onclick = function() {
				var link = this.getElementsByTagName("a");
				window.location.href = link[0].getAttribute("href");
			}
			divs[i].onmouseover = function() {
				var link = this.getElementsByTagName("a");
				if (document.all) {
					link[0].style.color = "#ff981f";
				} else {
					link[0].setAttribute("style", "color:#ff981f");
				}
				return false;
			}
			divs[i].onmouseout = function() {
				var link = this.getElementsByTagName("a");
				if (document.all) {
					link[0].style.color = "#ffffff";
				} else {
					link[0].setAttribute("style", "color:#ffffff");
				}
				return false;
			}
		}
	}
}