var navOpen = false;
var url=location.pathname;
var path;
var index=0;


function showNav2(inSection){
	
	if (document.getElementById(inSection + 'nav2').style.display == 'inline')
	{
	document.getElementById(inSection + 'nav2').style.display = 'none'
	document.getElementById(inSection + 'img').src = 'images/plus.gif'
	document.cookie = inSection + '=noshow; path=/;'
	}
	else
	{
	document.getElementById(inSection + 'nav2').style.display = 'inline'
	document.getElementById(inSection + 'img').src = 'images/minus.gif'
	document.cookie = inSection + '=' + escape(inSection) +'; path=/;'
	}
}

function closeNav(inSection){
	var img = document.getElementById(inSection);
	var sect = document.getElementById(inSection + 'nav');
	
	if (!navOpen){
		if (sect.style.visibility == 'visible')
		{
		img.src = img.src.slice(0,img.src.length-7) + '.gif';
		}
		sect.style.visibility = 'hidden';	
	}
}

function ReadCookie(cookieName) {
 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}

