anchor.diff:             // if (i == 1) {
               var tag = $('<a style = "margin-left:2px;" ></a>').attr("id",tagId).html(item_text);
               var div = $('<div  class="hierarchydetail" style="margin-top:2px; "></div>').attr("id",divId);
  +       $(document).ready(function () {
               tag.click(
   					function()
   					{
  
positive.code:     var parentNode = $("#"+tagId);
      alert ("load subnodes for "+nodeName+"-"+parentNode.parents('li:eq(0)').attr("id")+"-" );
      var liNode = parentNode.parents('li:eq(0)');
      alert(liNode.children('ul').size());
      if (liNode.children('ul').size() == 0 ) {
          $.ajax({
           url: 'researchAreasLoad.jsp',
           type: 'GET',
           dataType: 'html',
           timeout: 1000,
           error: function(){
              alert('Error loading XML document');
  
negative.code:             var listitem = $('<li class="closed"></li>').attr("id",id).html(tag);
              //tag.appendTo(listitem);
              //listitem.appendTo('ul#file31');
              tableTag(item_text, id).appendTo(detDiv)
              detDiv.appendTo(listitem);
              //listitem.appendTo('ul#file31');
              listitem.appendTo(ulTag);
              if (i==1) {
  