// Fix the IE rollover menu bug for the header
	startList = function() {
		navRoot = document.getElementById("Navigation");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					if (document.getElementById("progresschart")) {
						document.getElementById("progresschart").style.visibility="hidden";
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if (document.getElementById("progresschart")) {
						document.getElementById("progresschart").style.visibility="";
					}
				}
			}
		}
	}

	function extendPop() {
		inputText = '<p>';
		inputText +='<br /><label for="message" style="font-size: 1.1em">What additional information do you require?</label><br />';
		inputText += '<textarea name="note_s" id="note_s" rows="8" cols="50"></textarea><br />';
		inputText += '<button onclick="javascript:AddNote(); Modalbox.hide();" type="button">Send Question</button>';
		inputText += '</p>';
		document.getElementById("note_sec").innerHTML = inputText;
		Modalbox.resizeToContent();
	}

	function AddNote() {
		document.getElementById('note').value=document.getElementById('note_s').value;
	}

// All links with class "new_window" will open in a new window.
	function modifyNewWindowLinks() {
		var aTags = document.getElementsByTagName("a");
		for (var x = 0; x < aTags.length; x++) {
			var currTag = aTags[x];
			if (String(currTag.className).indexOf('new_window') > -1) {
				currTag.onclick = function(){ window.open(this.href); return false;}
			}
		}
	}

window.onload = function() {
	startList();
	modifyNewWindowLinks();
}