//sIFR.replaceElement("h2", named({sSelector: "#content>h2", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#fa9906", sBgColor: "#ff99ff", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("span", named({sSelector: "#main>dl>dt>span.heading", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#ffffff", sBgColor: "#fa9906", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("span", named({sSelector: "#news>dl>dt>span.heading", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#fa9906", sBgColor: "#ffffff", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("h2", named({sSelector: "#article>h2", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#ffffff", sBgColor: "#71ce14", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("h2", named({sSelector: "#select>h2", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#fa9906", sBgColor: "#ffffff", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("h2", named({sSelector: "#calendar>h2", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#ffffff", sBgColor: "#71ce14", sFlashVars: "textalign=left"}));
//sIFR.replaceElement("h2", named({sSelector: "#links>h2", sFlashSrc: "/hlots3/behaviours/resources/georgia.swf", sColor: "#ffffff", sBgColor: "#1570ce", sFlashVars: "textalign=left"}));

//Test if the browser is DOM capable
if (document.getElementById && document.getElementsByTagName)
{
	addLoadEvent(helpmenu);
}

//Loads functions on body.onload
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

function helpmenu() {
	if (document.getElementById("helpmenu")) {
		var checkboxes = document.getElementById("helpmenu").getElementsByTagName("input");
		var checkboxContrast;
		var checkboxSize;
		for (i = 0; i < checkboxes.length; i++) {
			if (checkboxes[i].name == "toggle_contrast") {
				checkboxContrast = checkboxes[i];
			} 
			if (checkboxes[i].name == "toggle_textsize") {
				checkboxSize = checkboxes[i];
			}
		}
		checkboxContrast.onclick = function() {
			if (this.checked == true) {
				location.href = "?contrast=high";
			} else {
				location.href = "?contrast=normal";
			}
		}		
		checkboxSize.onclick = function() {
			if (this.checked == true) {
				location.href = "?size=large";
			} else {
				location.href = "?size=normal";
			}
		}		
	}
}

