function toggleDivState(obj){
	var infoarrray = obj.alt.split('_');
	var divname=infoarrray[0];
	var divstate=infoarrray[1];
	var tag = document.getElementById(divname + "_tag");
	if(divstate=="closed") {
		obj.setAttribute("src", "images/open.gif");
		obj.setAttribute("alt", divname + "_open");
		crntdiv = document.getElementById(divname);
		crntdiv.setAttribute("class", "show");
		var txt = "Click arrow to collapse list.";
		tag.firstChild.nodeValue = txt;
	} else if(divstate=="open") {
		obj.setAttribute("src", "images/closed.gif");
		obj.setAttribute("alt", divname + "_closed");
		crntdiv = document.getElementById(divname);
		crntdiv.setAttribute("class", "hide");
		var txt = "Click arrow to expand list.";
		tag.firstChild.nodeValue = txt;
	} 
}

function switchForHover(obj){
	var infoarrray = obj.alt.split('_');
	var divname=infoarrray[0];
	var divstate=infoarrray[1];
	var tag = document.getElementById(divname + "_tag");
	if(divstate=="closed") {
		obj.setAttribute("src", "images/hover_if_closed.gif");
	} else if(divstate=="open") {
		obj.setAttribute("src", "images/hover_if_open.gif");
	} 
}

function switchOutHover(obj){
	var infoarrray = obj.alt.split('_');
	var divname=infoarrray[0];
	var divstate=infoarrray[1];
	var tag = document.getElementById(divname + "_tag");
	if(divstate=="closed") {
		obj.setAttribute("src", "images/closed.gif");
	} else if(divstate=="open") {
		obj.setAttribute("src", "images/open.gif");
	} 
}
