function load_top() {
        if(top.frames.length > 0) top.location.href=self.location;
}

function loadPage() {
	load_maps();
}

function checkRedirect() {
	var path = window.location.pathname;
	var hash = window.location.hash;
	if (hash && ((path == "/competition/results_d.shtml") || (path == "/competition/results_e.shtml"))) {
		if (hash.endsWith("09") || hash.endsWith("10")) {
			return;
		} else {
			var year = hash.slice(hash.length-2);
			if ((year[0] < "0") || (year[0] > "9") || (year[1] < "0") || (year[0] > "9")) year = "06";
			var lang = path.slice("/competition/results".length);
			var newLoc = window.location.protocol + "//" + window.location.host + "/competition/results20" + year + lang + window.location.hash;
//			alert(newLoc);
			window.location = newLoc;
		}
	}
}

function showHideElement(src,obj,showText,hideText) {
	if (obj.style.display == "none") {
		obj.style.display = "";
		src.innerHTML = hideText;
	} else {
		obj.style.display = "none";
		src.innerHTML = showText;
	}
}

function showHide(src,id,showText,hideText) {
	if (document.getElementById) {
		showHideElement(src,document.getElementById(id),showText,hideText);
	}
}
