function sitemap(id, bool,string_collapse,string_uncollapse) {  
  var self = getElt('self_'+id);
  var childNode = getElt('child_'+id);
  if(bool) {
    setEltDisplay(childNode,'block');
	self.className = 'uncollapse';
	self.title = string_uncollapse;	
  } else {
    setEltDisplay(childNode,'none');
	self.className = 'collapse';
	self.title = string_collapse;	
  }  
  self.onclick = function() {
    sitemap(id, !bool,string_collapse,string_uncollapse);
  }
}

function setEltDisplay (elt, value) {  
  if (!elt || elt == null) return;
  if (is.ns4comp) elt.display = value;
  else if (is.ie4comp) elt.style.display = value;
  else if (is.ns6comp) elt.style.display = value;
}