anchor.diff:              var tagId = "listcontrol"+i;
               var divId = "listcontent"+i;
               var tag = $('<a style = "margin-left:2px;" ></a>').attr("id",tagId).html(name);
  -            var div = $('<div  class="hierarchydetail" style="margin-top:2px; "></div>').attr("id",divId);
  -            tag.click(
  +            var detDiv = $('<div  class="hierarchydetail" style="margin-top:2px; "></div>').attr("id",divId);
  +       //$(document).ready(function () {
  +            $(tag).click(
   					function()
   					{
   						$(".hierarchydetail:not(#"+divId+")").slideUp(300);
  -						div.slideToggle(300);
  +						$("#"+divId).slideToggle(300);
  +						// comment out temporarily
   						loadChildrenRA(name, tagId);
   					}
   				);
  +		//});
   			//alert(tag.html());	
               var listitem = $('<li class="closed"></li>').attr("id",id1).html(tag);
  -            tableTag(name, id1).appendTo(div)
  -            div.appendTo(listitem);
  +            tableTag(name, id1).appendTo(detDiv)
  +            detDiv.appendTo(listitem);
               //alert(listitem.html());
               return listitem;
   }
  
positive.code: 						loadChildrenRA(item_text, tagId);
  					}
  				);
  //            } else {
  //            var tag = $('<a id="listcontrol04" ></a>').attr("style","margin-left:2px;").html(item_text);
  //            var div = $('<div id="listcontent04" class="hierarchydetail" style="margin-top:2px; "></div>');
  
negative.code:     var parentNode = $("#"+tagId);
      alert ("load subnodes for "+nodeName+"-"+parentNode.parents('li:eq(0)').attr("id")+"-" );
      var liNode = parentNode.parents('li:eq(0)');
      var ulNode = liNode.children('ul:eq(0)');
      var inputNodev;
  //    alert (ulNode);
  //    if (liNode.children('ul').size() > 0 ) {
  //        inputNodev = ulNode.children('input:eq(0)');
  //    }
      
      
      //if (liNode.children('ul').size() == 0 ) {
      if (liNode.children('ul').size() == 0 || ulNode.children('input').size() == 0 ) {
          alert(liNode.children('ul').size());
          $.ajax({
           url: 'researchAreasLoad.jsp',
           type: 'GET',
           dataType: 'html',
           data:'researchAreaCode='+getResearchAreaCode(nodeName),
           cache: false,
           timeout: 1000,
           error: function(){
              alert('Error loading XML document');
  