<!--
var toNavPause; isMouseOver=false; isSubMouseOver=false; intDelay = 400;
var isIE = document.all?true:false;
if (!isIE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMousePos;

function getMousePos(e) {
  if (isIE) { mouseX = event.clientX + document.body.scrollLeft; mouseY = event.clientY + document.body.scrollTop;} 
  else { mouseX = e.pageX; mouseY = e.pageY }
  // catch possible negative values in NS4
  if (mouseX < 0){mouseX = 0}
  if (mouseY < 0){mouseY = 0}  
  return true
}

function comboBox(strSelectID,strAction) {
  arrDest = new Array(); arrSrc = new Array(); objTextField = document.getElementById(strSelectID); objTextField.value="";
  if ((strAction == "AllToDest") || (strAction == "SelToDest")) { objSrc = document.getElementById(strSelectID + "Src");  objDest = document.getElementById(strSelectID + "Dest"); }
		else { objSrc = document.getElementById(strSelectID + "Dest");  objDest = document.getElementById(strSelectID + "Src"); }
  for (a=0; a < objSrc.options.length; a++) {
		  if ((objSrc.options[a].selected) || (strAction == "AllToDest") || (strAction == "AllToSrc")) arrDest[arrDest.length] = objSrc.options[a].text + "," + objSrc.options[a].value;
    else arrSrc[arrSrc.length] = objSrc.options[a].text + "," + objSrc.options[a].value;
		}
		for (a=0; a < objDest.options.length; a++) arrDest[arrDest.length] = objDest.options[a].text + "," + objDest.options[a].value;
		arrSrc.sort(); arrDest.sort(); objSrc.options.length=0;	objDest.options.length=0;

		for (a=0; a < arrSrc.length; a++) objSrc.options[objSrc.options.length] = new Option(arrSrc[a].split(",")[0],arrSrc[a].split(",")[1]);
		for (a=0; a < arrDest.length; a++) objDest.options[objDest.options.length] = new Option(arrDest[a].split(",")[0],arrDest[a].split(",")[1]);
		
  for (a=0; a < document.getElementById(strSelectID + "Dest").options.length; a++) {
		  if (objTextField.value != "") objTextField.value += ",";
				objTextField.value += document.getElementById(strSelectID + "Dest").options[a].value;
		}		
}

function loadEvents() {
  //Set focus on form element if present
  if (document.getElementById('idFocus')) document.getElementById('idFocus').focus();
  
  //Set onMouseOver and onMouseOut events for left navigation items
  arrSearchTags = new Array("img","div","a");
  for (a=0; a < arrSearchTags.length; a++) {
    arrNavTags = document.getElementsByTagName(arrSearchTags[a]);
    for (b=0; b < arrNavTags.length; b++) {
      if (arrNavTags[b].id) {
        if (arrNavTags[b].id.indexOf("idNav") > -1) { 
          if (arrNavTags[b].id.indexOf("Sub") < 0) { arrNavTags[b].onmouseover = NavOvr; arrNavTags[b].onmouseout = NavOut;}
          else {arrNavTags[b].onmouseover = NavSubOvr; arrNavTags[b].onmouseout = NavSubOut;}
} } } } }

function NavSubOvr() {
  clearTimeout(toNavPause); toNavPause = null;
  //Get Parent Navigation Item
  objNavLink = document.getElementById(this.id.substring(0,this.id.length -3));
  if (objNavLink.tagName == "IMG") swapImage(objNavLink.id,'Ovr');
}

function NavSubOut() {
  clearTimeout(toNavPause); toNavPause = null; 
  strCurID = this.id;
  toNavPause = setTimeout("doSubToggle(strCurID)",intDelay);
}

function doSubToggle(strObjectID) {
  objSubLink = document.getElementById(strObjectID);
  objSubLink.style.display = "none"; 
  //Get Parent Navigation Item
  objNavLink = document.getElementById(strObjectID.substring(0,strObjectID.length -3));
  if ((objNavLink.filters) && (objNavLink.filters.blendTrans)) objNavLink.filters.blendTrans.Apply();
  if (objNavLink.tagName == "IMG") swapImage(objNavLink.id,'Out');
  if ((objNavLink.filters) && (objNavLink.filters.blendTrans)) objNavLink.filters.blendTrans.Play();
}

function NavOvr() {
  clearTimeout(toNavPause); toNavPause = null; strCurID = this.id;
  if (!isMouseOver) clearSubs();
  isMouseOver = true; 
  if ((this.filters) && (this.filters.blendTrans)) this.filters.blendTrans.Apply();
  if (this.tagName == "IMG") swapImage(this.id,'Ovr');
  if ((this.filters) && (this.filters.blendTrans)) this.filters.blendTrans.Play();
  toNavPause = setTimeout("doToggle(strCurID)",intDelay);
}

function NavOut() {
  clearTimeout(toNavPause); toNavPause = null;
  isMouseOver = false; strCurID = this.id;
  toNavPause = setTimeout("doToggle(strCurID)",intDelay);
}

function doToggle(strObjectID) {
  if (document.getElementById(strObjectID + "Sub")) { //Menu item has SubMenus
    objSub = document.getElementById(strObjectID + "Sub");
    if (isMouseOver) { //Position and display SubMenu based on id
      if ((objSub.filters) && (objSub.filters.blendtrans)) objSub.filters.blendTrans.Apply();
      objSub.style.display = ""; objSub.style.left = (mouseX + 15) + "px";
      if (objSub.style.top == "") objSub.style.top = (mouseY) + "px";;
      if ((objSub.filters) && (objSub.filters.blendtrans)) objSub.filters.blendTrans.Play();
    }
    else clearSubs();//Hide SubMenu
  }
  else { //Menu item has no SubMenus
    objNavLink = document.getElementById(strObjectID);
    if (!isMouseOver) { 
      if ((objNavLink.filters) && (objNavLink.filters.blendtrans)) objNavLink.filters.blendTrans.Apply();
      if (objNavLink.tagName == "IMG") swapImage(objNavLink.id,'Out')
      if ((objNavLink.filters) && (objNavLink.filters.blendtrans)) objNavLink.filters.blendTrans.Play();
} } }

function clearSubs() {
  arrSearchTags = new Array("img","div");
  for (a=0; a < arrSearchTags.length; a++) {
    arrNavTags = document.getElementsByTagName(arrSearchTags[a]);
    for (b=0; b < arrNavTags.length; b++) {
      if (arrNavTags[b].id.indexOf("idNav") > -1) { //If the ID contains 'idNav'
        if (arrNavTags[b].id.indexOf("Sub") > -1) arrNavTags[b].style.display = "none"; //If it's a SubMenu, Hide it
        else { //Otherwise It must be a NavMenu item, so check if it's an image, then swap back to the normal image
          if (arrNavTags[b].tagName == "IMG") swapImage(arrNavTags[b].id,'Out');
} } } } }

function swapImage(imgSrc, strDirection) {
  appendix = "Ovr"; extension = ".jpg"; thisSrc = document.getElementById(imgSrc);
  arrLocation = thisSrc.src.split('/');
  imageName = arrLocation[arrLocation.length - 1].substring(0,arrLocation[arrLocation.length - 1].length -4);
  if (imageName.indexOf(appendix) > -1) imageName = imageName.substring(0,imageName.length - appendix.length);
  if (strDirection == "Ovr") thisSrc.src= "/graphics/" + imageName + appendix + extension;
  else thisSrc.src= "/graphics/" + imageName + extension; }

function preLoadImages()  {
  image1= new Image(); image1.src= "../graphics/btnReachUpOvr.jpg"; image2= new Image(); image2.src= "../graphics/btnReachInOvr.jpg";
  image3= new Image(); image3.src= "../graphics/btnReachOutOvr.jpg"; image4= new Image(); image4.src= "../graphics/btnAboutOvr.jpg"; 
  image5= new Image(); image5.src= "../graphics/btnYouthOvr.jpg";
}

function toggleDisplay(strObjectID) {
  if (document.getElementById(strObjectID)) {
    if (document.getElementById(strObjectID).style.display == "none") document.getElementById(strObjectID).style.display = "";
    else document.getElementById(strObjectID).style.display = "none";
  }
}

function goToSelOption(objObject,strTarget) {
  strSelection = objObject.options[objObject.selectedIndex].value;
  if (objObject.selectedIndex != 0) { 
    if (strTarget == "_blank") winNewPage = window.open(strSelection);
    else document.location.href = strSelection;
  }
}

function isNumeric(passedVar) {
  var ValidChars = "0123456789."; var flgNumeric=true;
  for (a=0; a<passedVar.length && flgNumeric == true; a++) { 
    if (ValidChars.indexOf(passedVar.charAt(a)) == -1) flgNumeric=false;
  }
  return flgNumeric;
}

function isAlpha(passedVar) {
  var ValidChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-"; var flgAlpha=true;
  for (a=0; a<passedVar.length && flgAlpha == true; a++) {
    if (ValidChars.indexOf(passedVar.charAt(a)) == -1) flgAlpha=false;
  }
  return flgAlpha;
}

function searchDate() {
  document.searchform.type[1].checked = true;
}

function searchKeyword() {
  document.searchform.type[0].checked = true;
}
-->
