  function show(object) {
      if (document.getElementById && document.getElementById(object) != null)
           node = document.getElementById(object).style.visibility='visible';
      else if (document.layers && document.layers[object] != null)
          document.layers[object].visibility = 'visible';
      else if (document.all)
          document.all[object].style.visibility = 'visible';
  }

  function hide(object) {
      if (document.getElementById && document.getElementById(object) != null)
           node = document.getElementById(object).style.visibility='hidden';
      else if (document.layers && document.layers[object] != null)
          document.layers[object].visibility = 'hidden';
      else if (document.all)
           document.all[object].style.visibility = 'hidden';
  }


	imgout=new Image(20,13);
	imgin=new Image(20,13);
	
	imgout.src="../images/expand.gif";
	imgin.src="../images/collapse.gif";

	//this switches expand collapse icons
	function filter(imagename,objectsrc){
		if (document.images){
			document.images[imagename].src=eval(objectsrc+".src");
		}
	}
	
	//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),'imgin');			
			} else {
				filter(("img"+id),'imgout');
				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';
				}
			}
		}
	}
