// onresize for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
<!--
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
// -->


// JavaScript Document


function display_setter()	{
	//this will initialize the divs as blocks
	var value = "side_nav_level_one_";
	
	num_choice=document.getElementById('selector').length;
	num_choice=num_choice-1;
	
	//to keep things consistent, num_choice is made less by 1, the proper number of iterations from 0 will run
	for (var i = 0; i <= num_choice; i++)	{
		
		var elem=document.getElementById(value+i);
		elem.style.display="block";
		
	
	}
	
	
}



function display_hider()	{
	//this will initialize the divs as blocks
	var value = "side_nav_level_one_";
	
	var num_choice=document.getElementById('selector').length;
	num_choice=num_choice-1;
	
	//to keep things consistent, num_choice is made less by 1, the proper number of iterations from 0 will run
	for (var i = 0; i <= num_choice; i++)	{
		
		var elem=document.getElementById(value+i);
		elem.style.display="none";
		
	
	}
	
	
}

function header_hider()	{
	
	var value = "menu_level_two_holder_pa_";
	for (var i = 0; i <= 5; i++)	{
		var elem=document.getElementById(value+i);	
			if (elem == null)		{
				break;
		}
		
		
		elem.style.display="none";
	
									}


}

function header_open(passed_value)		{
	
	var value = "menu_level_two_holder_";
	value = value+passed_value;
	var elem = document.getElementById(value);
	header_hider();
	elem.style.display="block";
	
	
	
}



function nav_selector()	{
	
	var value = "side_nav_level_one_";
	var choice=document.getElementById('selector').selectedIndex; 
	var elem=document.getElementById(value+choice);
	display_hider();
	elem.style.display="block";
	
	
	
	
	
}




function nav_selector_bak_3()	{
	
	var value = "side_nav_level_one_";
	
	choice=document.getElementById('selector').selectedIndex; 
	num_choice=document.getElementById('selector').length;
	num_choice=num_choice-1;
	
	//to keep things consistent, num_choice is made less by 1, the proper number of iterations from 0 will run
	for (var i = 0; i <= num_choice; i++)	{
		alert(i);
		var elem=document.getElementById(value+i);
		alert(elem.style.display);
	
		
		
	}
	
	
}

function nav_selector_bak_2()	{
	
	var value = "side_nav_level_one_";
	
	choice=document.getElementById('selector').selectedIndex; 
	num_choice=document.getElementById('selector').length;
	num_choice=num_choice-1;
	
	//to keep things consistent, num_choice is made less by 1, the proper number of iterations from 0 will run
	for (var i = 0; i <= num_choice; i++)	{
		alert(i);
		var elem=document.getElementById(value+i)
		
		
	}
	
	
}


function nav_selector_bak()	{
	
	choice=document.getElementById('selector').selectedIndex; 
	num_choice=document.getElementById('selector').length; 
	alert(choice);
	alert(num_choice);
	
	
}





function divClose()		{
	
	var value = "side_nav_level_one_";
	
	for (var i = 1; i <= 5; i++)	{
		var elem=document.getElementById(value+i)
	
		if (elem == null)	{
					continue;
							}	// end null check
	
		//close all open divs
		if (elem.style.display == "block")	{
			elem.style.display = "none";
			
											} // end if statement	
		
									}	// end for statement 
									
}
function nav1()
   {
   var w = document.myform1.mylist1.selectedIndex;
   var url_add = document.myform1.mylist1.options[w].value;
   window.location.href = url_add;
   }
   
function nav2()
   {
   var w = document.myform2.mylist2.selectedIndex;
   var url_add = document.myform2.mylist2.options[w].value;
   window.location.href = url_add;
   }
   
function nav3()
   {
   var w = document.myform3.mylist3.selectedIndex;
   var url_add = document.myform3.mylist3.options[w].value;
   window.location.href = url_add;
   }
   
   
 function nav4()
   {
   var w = document.myform4.mylist4.selectedIndex;
   var url_add = document.myform4.mylist4.options[w].value;
   window.location.href = url_add;
   } 

 function nav5()
   {
   var w = document.myform5.mylist5.selectedIndex;
   var url_add = document.myform5.mylist5.options[w].value;
   window.location.href = url_add;
   } 
   
  
 function nav6()
   {
   var w = document.myform6.mylist6.selectedIndex;
   var url_add = document.myform6.mylist6.options[w].value;
   window.location.href = url_add;
   }  