window.onload = function () {

	var divs = document.getElementById("topMenu").getElementsByTagName('DIV');
	var flash = document.getElementById("flash");
	for (i = 0; i < divs.length; i++) {
		if (divs[i].id.match("item")) {
			divs[i].onmouseover = function () {
				var num = this.id.replace("item", "");
				this.style.background = "transparent";
				var pattern = new RegExp('header' + num);
				if (flash != null && !flash.innerHTML.match(pattern)) {
					flash.innerHTML = '<object type="application/x-shockwave-flash" data="images/header' + num + '.swf" width="100%" height="256"><param name="movie" value="images/header' + num + '.swf" /><param name="wmode" value="transparent" /><img src="images/header' + num + '.swf" width="100%" height="256" alt="" /></object>';
				}
				var item, color = ["#F76A0C", "#ED8906", "#F7AC0C"];
				for (i = 0; i < 3; i++) {
					if (i != num) {
						item = document.getElementById("item" + i);
						item.style.background = color[i] + " url(images/arrows/arrow" + i + ".gif) no-repeat 92% 70px"
					}
				}
			}
			/*divs[i].onmouseout = function () {
				var num = this.id.replace("item", "");
				color = ["#F76A0C", "#ED8906", "#F7AC0C"];

				//this.style.background = color[num] + " url(images/arrows/arrow" + num + ".gif) no-repeat 92% 70px";
			}*/
		}

		if (navigator.userAgent.match("MSIE")) {
			if (document.body.clientWidth == 1260 && i > 2) {
				divs[i].style.width = divs[i].clientWidth + 1;
			} else if (document.body.clientWidth == 1261 && i > 2) {
				divs[i].style.width = divs[i].clientWidth - 1;
			}
		}
	}

	var menu = document.getElementById("contentTitle").getElementsByTagName("DL")[0].getElementsByTagName('DT');
	for (i = 0; i < menu.length; i++) {
		menu[i].onmouseover = function () {
			this.style.backgroundColor = "#91B600";

		}
		menu[i].onmouseout = function () {
			this.style.backgroundColor = "";
		}
	}
}