
<!--
getImagePath = new String();
 
//this switches expand collapse icons
function filter(imagename,objectsrc)
{
	if (document.images)
	{
		imgout = "minus.gif";
		imgin = "plus.gif";
		getImagePath = document.images[imagename].src;
		getImagePath = getImagePath.substr(0,getImagePath.lastIndexOf('/')+1);
		document.images[imagename].src = getImagePath + eval(objectsrc);
		if(objectsrc=="imgin") {
			document.getElementById("lblLegend").innerHTML = _expandLegend;
		}	
		else {	
		   document.getElementById("lblLegend").innerHTML = _collapseLegend;
		}	
	}
}


//show OR hide funtion depends on if element is shown or hidden
function shoh(id) {	 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgout');		
		} else {
			filter(("img"+id),'imgin');
			document.getElementById(id).style.display = 'none';			
		}
	} else {
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	} 

}
-->