function door(obj){
  obj = obj.parentNode;
  hideChild(obj,'open');//LT
//  obj.className = (obj.className == 'open') ? 'closed' : 'open';

  if(obj.className == 'closed') obj.className='open';

  return false;
}

function hideChild(par, childName)   {
        var childElement = null;
        var children = par.parentNode.childNodes;
        for (var i=0; i<children.length; i++)
        {
            if ((!(children.item(i)==par))&&(children.item(i).className==childName)) {
				
                childElement = children.item(i);
                childElement.className='closed';
            }
        }
       return childElement;
}

function hideall(objname){
var list=getElementsByClassName(objname);
for(i=0;i<list.length;i++){
  list[i].className='closed';

}
//alert(list.length);

}

function getElementsByClassName(class_name)
{
  var all_obj,ret_obj=new Array(),j=0,teststr;

  if(document.all)all_obj=document.all;
  else if(document.getElementsByTagName && !document.all)
    all_obj=document.getElementsByTagName("*");

  for(i=0;i<all_obj.length;i++)
  {
    if(all_obj[i].className.indexOf(class_name)!=-1)
    {
      teststr=","+all_obj[i].className.split(" ").join(",")+",";
      if(teststr.indexOf(","+class_name+",")!=-1)
      {
        ret_obj[j]=all_obj[i];
        j++;
      }
    }
  }
  return ret_obj;
}

