initNavigation = function() {

	if (document.getElementById) { 
		navRoot = document.getElementById("nav_list"); 

		if (typeof defaultMainList!="undefined")
			var reMainNav = new RegExp("^" + defaultMainList + "<", "i"); 
		for (i=0; i<navRoot.childNodes.length; i++) { 
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				if ((typeof defaultMainList!="undefined") && node.firstChild.innerHTML.match(reMainNav)) { 
					defaultMainListIndex = i;
				} else {
					node.onmouseover = function() {
						if (defaultMainListIndex != -1) 
							navRoot.childNodes[defaultMainListIndex].className = "nav_default_off"; 
						this.className = "mouse_over"; 
					}
					node.onmouseout = function() {
						this.className = ""; 
						if (defaultMainListIndex != -1) 
							navRoot.childNodes[defaultMainListIndex].className = "nav_default_on"; 
					}
				}
			}
		}

		if (defaultMainListIndex != -1)
			navRoot.childNodes[defaultMainListIndex].className = "nav_default_on";
		radioContainer = document.getElementById("radio_container");
		if (radioContainer) {

			radioContainer.style.display = "inline";
		}
	}
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

var defaultMainListIndex = -1; 

addLoadEvent(initNavigation); 

// Text resize code from Kansas.gov 06.11.2007

var min=10;
var max=14;
function increaseSize() {
   var p = document.getElementsByTagName('*');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseSize() {
   var p = document.getElementsByTagName('*');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

