startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
var oldOnload = new String(window.onload);
var newString = oldOnload.substring(oldOnload.indexOf('{') + 1, oldOnload.indexOf('}') - 1 );
if(newString == null
|| newString == ""
|| newString.substring(newString.indexOf('s'), newString.indexOf(';')) != "startList()")
{
	window.onload = startList;
}

function checkIt(string)
{
	var detect = navigator.userAgent.toLowerCase();
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function submitAndContinueTo (theform, newPage) {
	theform.redirect.value=newPage;
	theform.submit ();
}

function submitAndPopup (theform, newPage) {
	//capture the form's current target
	oldTarget=theform.target;
	theform.target="_blank";
	theform.redirect.value=newPage;
	theform.submit ();
	//reset the form's old target
	theform.target = oldTarget;
}

function confirmationDialog (link, message) {
	if (confirm (message)) {
		document.location.href=link;
	}
}

function newlanguage()
{
	document.forms.langform.submit();
}

function getdelete(set)
{
	document.forms.deleteform.delete_set.value = set;
	document.forms.deleteform.submit();
}
function getmodify(set)
{
	document.forms.modifyform.set_id.value = set;
	document.forms.modifyform.submit();
}

function changeQuickLink(sel, dropdown) {
	if(dropdown.value!=0) {
		document.quickLinkForm.selected.value = sel;
		document.quickLinkForm.submit();
	}
}



function menuOn(menu) {
	if(checkIt('msie')) {
		var DivRef = document.getElementById(menu);
		var IfrRef = document.getElementById('DivShim');
		DivRef.style.display = "block";
		IfrRef.style.width = DivRef.offsetWidth;
		IfrRef.style.height = DivRef.offsetHeight;
		IfrRef.style.top = DivRef.offsetTop;
		IfrRef.style.left = DivRef.offsetLeft;
		IfrRef.style.zIndex = DivRef.style.zIndex - 1;
		IfrRef.style.display = "block";
	}
}

function menuOff(menu) {
	if(checkIt('msie')) {
		var DivRef = document.getElementById(menu);
		var IfrRef = document.getElementById('DivShim');
		DivRef.style.display = "none";
		IfrRef.style.display = "none";
	}
}

function downloadBank(url) 
{
  var w = "650";
  var h = "500";
  var winl = (screen.width - w) / 2;
  var wint = ((screen.height - h) / 2) - 50;
  var waitWin = window.open(url, 'downloadBank', 'scrollbars=1,width=650,height=500,top='+wint+',left='+winl+',screenX='+winl+',screenY='+wint);
}