function f6ChangeUrl(url) {
	window.location.href = url;
}

function f6RollOver(target,id) {
	var img = "url(/static/mkv2/cms/Common/" + dir + "/Menu/img/m" + id + "Over.gif)";
	document.getElementById(target).style.backgroundImage = img;
	document.getElementById(target).style.backgroundPosition = "top left";
	document.getElementById(target).style.textDecoration = "underline";
}

function f6RollOut(target,id) {
	var img = "url(/static/mkv2/cms/Common/" + dir + "/Menu/img/m" + id + "Normal.gif)";
	if (("m" + activeMenu) == target) {
		var img = "url(/static/mkv2/cms/Common/" + dir + "/Menu/img/m" + id + "On.gif)";
	}
	document.getElementById(target).style.backgroundImage = img;
	document.getElementById(target).style.backgroundPosition = "top left";
	document.getElementById(target).style.textDecoration = "none";
}

function f6ActiveMenu() {
	var id = "m" + activeMenu;
	var id2 = "sm" + activeSubMenu;
	var img = "url(/static/mkv2/cms/Common/" + dir + "/Menu/img/m" + positions[activeMenu] + "On.gif)";
	if (activeMenu != 6) {
		if (document.getElementById(id)) {
			document.getElementById(id).style.backgroundImage = img;
			document.getElementById(id).style.backgroundPosition = "top left";
			document.getElementById(id).style.color = "#fff";
			
			if (document.getElementById("sm" + activeMenu)) {
				document.getElementById("sm" + activeMenu).style.display = "block";
				document.getElementById("sm" + activeMenu).style.visibility = "visible";
			}
			
			if (document.getElementById(id2)) {
				if (f6GetColourPosition(activeMenu)) {
					document.getElementById(id2).style.background = "#ff6600";
					document.getElementById(id2).style.color = "#ffffff";
				} else {
					document.getElementById(id2).style.background = "#37a8f0";
					document.getElementById(id2).style.color = "#ffffff";
				}
			}
		}
	}
}

function f6GetColourPosition(activeMenu) {
	var i = 0;
	//while (positions[i] != "Club") {
	//	i++;
	//}
	if (activeMenu <= i ) {
		return(true);
	} else {
		return(false);
	}
}