function closeAll() {
var navRoot = document.getElementById("leftnavul");
 for (i=0; i<navRoot.childNodes.length; i++) {
  var node = navRoot.childNodes[i];
  if (node.nodeName=="LI") { node.className=node.className.replace("navClick",""); }
 }
}
function startList() {
var navRoot = document.getElementById("leftnavul");
var navRootULs = navRoot.getElementsByTagName("UL");
for (i=0; i<navRootULs.length; i++) { navRootULs[i].style.display = 'none'; }
 for (i=0; i<navRoot.childNodes.length; i++) {
  var node = navRoot.childNodes[i];
     if(node.nodeName=="LI" && node.firstChild.getAttribute("HREF").charAt(node.firstChild.getAttribute("HREF").length-1) == "#") {
   node.className = 'navMore';
   node.onclick=function() {
    closeAll();
    this.className += " navClick"; }
   node.firstChild.onclick=function() { return false; }
   }
  }
}

function findUrlSection(a,b)	{
var bool = 0;
	for(i=0; i<a.length; i++){
		if (a[i] == b){
		bool = 1;
		}
	}
return bool;
}

function regSession(){
document.getElementById("webheaderleftspec").style.background='url(/legislative/images/LSA_116th-regular-header2.jpg)';
document.getElementById("bottommsg").innerHTML='This page contains information concerning the 116th regular session.<br><a href="/legislative/09spec.html">View Information on the Special Session</a>';
}

function specSession1(){
document.getElementById("webheaderleftspec").style.background='url(/legislative/images/LSA_special-session-header3.jpg)';
document.getElementById("bottommsg").innerHTML='This page contains information concerning the special session.<br><a href="/legislative/116reg/index.html">View Information on the 116th Regular Session</a>';
}

function headerImg(){
	var thingie=window.location.pathname;
	var thingieArray=thingie.split( '/' );
	
	var y = findUrlSection(thingieArray,"116reg");
		if (y == 0){
	specSession1();
	}
	else if (y == 1){
	regSession();
	}

}

