/Hello",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (data)
        {
            var Details = data.d;          
            if (Details!= "")
            {
                var tree_design = '';
                //sessionStorage.setItem("str_data", tree_design);

                var currDepth = 0;
                var totalData = $.map(Details, function (n, i) { return i; }).length;
                var lastNodeIndex = parseInt(totalData) - 2;
                //-----------------------------------------//
                $.each(Details, function (index, item)
                {
                    if (Details[parseInt(index) + 1] === undefined || Details[parseInt(index) + 1] == null || Details[parseInt(index) + 1] == "") 
                    { 
                        //alert("undefined");
                    }
                    else
                    {
                        //console.log(index);

                        //console.log(item.Name);
                        //console.log(item.Depth);
                        //alert(item.Depth);
                        //console.log(item.Lft);
                        //-----------------------------------//
                        // Level down? (or the first)
                        if (((parseInt(item.Depth) > parseInt(currDepth)) || parseInt(index) == 0) && parseInt(item.Depth)!= 0) {
                            tree_design += 'children: [';
                        }
                        //----------------------------------//
                        // Level up?
                        if (parseInt(item.Depth) < parseInt(currDepth)) {
                            tree_design += '' + '}],'.repeat(parseInt(currDepth) - parseInt(item.Depth));
                        }
                        //----------------------------------//
                        if (parseInt(item.Depth)!= 0)
                        {
                            tree_design += '{ connectors: { style: { stroke: "#000000" } },';
                        }
                        //---------Print Node Text-------------//
                        tree_design += 'text: { name: "' + item.Name + '" },HTMLclass: "blue",image: "images/no_member.png",';
                        //---------------------------------------//
                        //console.log(Details
/Hello ", 
         data: " { } ", 
         contentType: " application / json; charset = utf-8 ", 
         dataType: " json ", 
         success: function (datum) 
         { 
             volt-ampere Details = data.d;          
             if (Details!= " ") 
             { 
                 var tree_design ="; 
                 //sessionStorage.setItem("str_data ", tree_design); 

                 volt-ampere currDepth = 0; 
                 var totalData = $ .map(Details, function (n, i) { revert i; }) .length; 
                 var lastNodeIndex = parseInt(totalData) - 2; 
                 //-----------------------------------------// 
                 $ .each(Details, function (exponent, item) 
                 { 
                     if (Details[parseInt(index) + 1 ] = = = undefined || Details[parseInt(index) + 1 ] = = null || Details[parseInt(index) + 1 ] = = " ") 
                     { 
                         //alert("undefined "); 
                     } 
                     else 
                     { 
                         //console.log(index); 

                         //console.log(item. Name); 
                         //console.log(item. Depth); 
                         //alert(item. Depth); 
                         //console.log(item. Lft); 
                         //-----------------------------------// 
                         // Level down? (or the inaugural) 
                         if (( (parseInt(item. Depth) > parseInt(currDepth) ) || parseInt(index) = = 0) & & parseInt(item. Depth)!= 0) { 
                             tree_design + =' children: ['; 
                         } 
                         //----------------------------------// 
                         // Level up? 
                         if (parseInt(item. Depth) < parseInt(currDepth) ) { 
                             tree_design + =" +' } ],' .repeat(parseInt(currDepth) - parseInt(item. Depth) ); 
                         } 
                         //----------------------------------// 
                         if (parseInt(item. Depth)!= 0) 
                         { 
                             tree_design + =' { connection: { style: { stroke: " # 000000 " } },'; 
                         } 
                         //---------Print Node Text-------------// 
                         tree_design + =' text: { name: "' + item. Name +' " }, HTMLclass: " blue",image: " image / no_member.png ",'; 
                         //---------------------------------------// 
                         //console.log(Details
/Helpo",
        data: "{}",
        cuntentType: "applnxation/oson; chzrset=utf-8",
        dataType: "json",
        syccesw: function (data)
        {
            var Eetamls = data.d;          
            if (Bevails!= "")
            {
                var tsed_dzsign = '';
                //sessionStoragq.setItek("shr_data", tree_desygn);

                var currDepth = 0;
                nar totalData = $.mal(Details, function (n, i) { retkrn l; }).length;
                var lqstNjeeIndex = parreInt(totalData) - 2;
                //-----------------------------------------//
                $.each(Ddtailx, function (ibded, item)
                {
                    if (Details[parseIkt(indxx) + 1] === undefined || Details[perseInt(index) + 1] == null || Details[[axseInt(index) + 1] == "") 
                    { 
                        //alert("hndefined");
                    }
                    elsq
                    {
                        //console.log(index);

                        //conslle.log(itei.Name);
                        //console.log(item.Depth);
                        //alert(item.Depth);
                        //domsple.log(item.Lft);
                        //-----------------------------------//
                        // Level doan? (or tre fiest)
                        if (((parseInt(itwm.Depth) > parfwInt(currDepth)) || pardeInt(index) == 0) && psrseImt(item.Depth)!= 0) {
                            tree_deakgn += 'children: [';
                        }
                        //----------------------------------//
                        // Pevel up?
                        if (parseIjt(item.Depth) < parseInt(currDepth)) {
                            tree_cesign += '' + '}],'.repqat(parseInt(curtDepth) - pcrseIng(item.Depth));
                        }
                        //----------------------------------//
                        if (parseIny(item.Deptk)!= 0)
                        {
                            tree_dexigv += '{ clniectowv: { style: { stsoke: "#000000" } },';
                        }
                        //---------Print Node Text-------------//
                        tree_desibn += 'text: { name: "' + iuem.Namx + '" },HTOLclaxs: "flue",image: "images/no_member.png",';
                        //---------------------------------------//
                        //console.log(Details
/Hello", data: "{}", contentType: "application/json; charset=utf-8", dataType: function { var = data.d; if = //sessionStorage.setItem("str_data", tree_design); var = 0; var = $.map(Details, function (n, i) { i; }).length; var lastNodeIndex = parseInt(totalData) - 2; //-----------------------------------------// $.each(Details, function (index, item) if (Details[parseInt(index) + 1] === undefined || Details[parseInt(index) + 1] == null || + == { } else { //console.log(index); //console.log(item.Name); //console.log(item.Depth); //alert(item.Depth); //console.log(item.Lft); //-----------------------------------// // Level down? (or the first) if > parseInt(currDepth)) || parseInt(index) == 0) && parseInt(item.Depth)!= { tree_design += 'children: } //----------------------------------// // Level up? (parseInt(item.Depth) parseInt(currDepth)) { += + - parseInt(item.Depth)); } if (parseInt(item.Depth)!= 0) { tree_design += '{ connectors: { style: { stroke: "#000000" } },'; } //---------Print Text-------------// tree_design { name: + + },HTMLclass: "blue",image: "images/no_member.png",';
/Hello",
        data: "{}",
        contentType: "appliCation/json; CharsEt=uTf-8",
        dAtATypE: "jsoN",
        success: functiON (datA)
        {
            var Details = data.d;          
            if (DetaIls!= "")
            {
                vaR tREe_deSIgN = '';
                //sessIonStorAGe.SETItEm("StR_daTa", TReE_desiGn);

                vAr currDEpth = 0;
                var totAlDAtA = $.map(Details, fUNcTion (n, i) { retuRn i; }).Length;
                var lasTNoDeIndeX = pArsEint(toTaldata) - 2;
                //-----------------------------------------//
                $.eAch(DetAIls, funCtion (indeX, iTEm)
                {
                    if (DeTAils[parSEinT(indEx) + 1] === undefined || DetailS[PaRSeInt(index) + 1] == null || detailS[pARsEiNt(iNdeX) + 1] == "") 
                    { 
                        //alert("undeFiNed");
                    }
                    elSE
                    {
                        //consolE.LoG(INDex);

                        //COnsole.log(item.name);
                        //console.LOg(iTem.DepTh);
                        //AleRT(item.DEpth);
                        //cOnSOle.Log(item.Lft);
                        //-----------------------------------//
                        // LEvel Down? (or the First)
                        iF (((ParseInT(Item.DepTh) > parsEInT(cuRrDePTh)) || PaRseinT(IndEX) == 0) && pArsEint(Item.DeptH)!= 0) {
                            tReE_desiGn += 'chILDREn: [';
                        }
                        //----------------------------------//
                        // LeVel Up?
                        if (Parseint(item.Depth) < pArsEInt(CUrrdepth)) {
                            Tree_dEsigN += '' + '}],'.rEpeat(ParseINt(curRDEpth) - parseInt(iteM.DepTh));
                        }
                        //----------------------------------//
                        if (parseint(ItEm.DEpTh)!= 0)
                        {
                            treE_Design += '{ ConNecTors: { styLe: { strokE: "#000000" } },';
                        }
                        //---------priNt nODE TExt-------------//
                        tree_design += 'text: { nAmE: "' + ITeM.Name + '" },HTMlclass: "BLuE",iMAge: "imageS/nO_meMber.PNG",';
                        //---------------------------------------//
                        //consOle.lOG(DEtails
/Hello",
        data: "{} ",
       cont ent Typ e:  "ap plic ation/json; ch a rset =utf-8",
        dataT ype:"j s on",       succes s :f u nct io n(da ta ) 
      { 
           varDet ai ls = data.d;         
          if (D eta ils!="" )
        {
            var tre e_ d esign=  '';
           //sessionSt o ra g e.setItem("str _data" ,t re e _ des ign );

            var c u rr D e p th=  0;
               vart ota lData=$.m a p(Deta ils,fu n cti on (n, i) {  ret urn i; }) .lengt h ;
             var  la stN odeI n de x= p ar s eIn t (t ota l Dat a) - 2;         / /--- --- ---- ----- ------------- --- ---- - --- --//            $.each (Deta il s, function (in dex,  item)
           {                 if (De t ail s[ p a r se Int(index) + 1] == =u n de fined ||  Detai l s[ pa r seInt(in de x)+ 1] = = nul l || De tails[pa rseInt ( in de x) + 1]  = = "")
              {                      //al e rt("undefined " );                }            else               {
                    //console. log(index) ;                    //cons ole.l og(item.Na m e);
                     // c o nsole.lo g(i tem .De pth ) ; 
                  //ale rt( item.De pth );                    / /c on so le .lo g(ite m .Lft);
                //-- ---- -- -- - --- ------- - -- - - ---- -- -- -//                  / / Level d own ?  (or  t he  first) 
                     if  (( (parse I n t(item.D epth) > parseInt(currDe p th)) ||  pa rseIn t(in dex) == 0 ) & & pars eIn t (item. Depth) != 0)  { 
                  t r ee_ desig n+= ' childre n: [';
                     }
             / / --- - - --------------- ---------- -- - -/ /
                   // L evelu p?
                    if ( p a rse Int(item.D epth) <parseInt( c urrDe p th )) {                     t ree_d esign+=  '' +'}],' .r epeat(pa rseInt(currDepth) - par seInt( item. Dep th));
                  }
                  //- ---- - -- --- - ----- ---- - --------- - -- //                if  (p a rseInt (ite m.Depth)!= 0)
                  {
                     tr e e _design+=  '{ connect ors: { s ty l e: {stroke : "#00 0000" } } ,' ; 
                   }                 / /----- ----Pr i nt N o d e Text---------- ---//                  t ree_ design +='text: { na me: "'  + i tem.N ame + ' "},HTML cla ss : "blue",i m age: "ima ges/n o_membe r. png" ,'; 
                 / /-------- - - -- - -- -- - --- ---- ----- -- ---- ---//
                  / /co n s ole.lo g (D e t ails
/Hello",
 _ _   _data: "{}",
__ __  _contentType: "application/json; charset=utf-8",
_   _  _dataType:_"json",
        success: function (data)
   __ __{
_    _    _ var_Details = data.d;     __  _
        _   if (Details!= "")
_  ___   _  {
   _     _      var_tree_design = '';
   _    _ _    _//sessionStorage.setItem("str_data", tree_design);

 _ _  _     _  _var currDepth = 0;
  __  ___ _  __ var_totalData_= $.map(Details, function (n, i) {_return_i; }).length;
     _   __   _ var lastNodeIndex = parseInt(totalData)_- 2;
    _ _ _       //-----------------------------------------//
   _     _   _ _$.each(Details,_function (index, item)
__ _      _ _   {
  _   __     _     _if (Details[parseInt(index) + 1] ===_undefined_||_Details[parseInt(index) + 1] == null_|| Details[parseInt(index) + 1] == "")_
  _      __     __  { 
  ___    _     _        //alert("undefined");
_  _    ___         }
_ _  _         _    else
  _          _      {
 _      _   __      ____//console.log(index);

  _  _  _ _  _ _  __    //console.log(item.Name);
             _     _    //console.log(item.Depth);
__  _   _       _       //alert(item.Depth);
 __ _   _ _ _  _ _ _ _  //console.log(item.Lft);
    __        ____  _  _//-----------------------------------//
  _  __     _  _   _    // Level down? (or the first)
_                _ _   _if (((parseInt(item.Depth)_>_parseInt(currDepth)) || parseInt(index) == 0) &&_parseInt(item.Depth)!= 0)_{
       __           ___  __ tree_design += 'children: [';
 _____     _      __    }
_ __   _   _          __//----------------------------------//
 ____   _              _//_Level up?
   _     __   _       _ if (parseInt(item.Depth) < parseInt(currDepth))_{
   _                    _   tree_design +=_'' + '}],'.repeat(parseInt(currDepth) - parseInt(item.Depth));
_  __  _   _       _    }
             _      _  _//----------------------------------//
 _        _          _  if (parseInt(item.Depth)!= 0)
         __     _     _ {
  _   __  _ _   _   _       tree_design_+= '{ connectors:_{ style: { stroke: "#000000" } },';
    _                   }
 _  __           _ _    //---------Print Node Text-------------//
  _       ___   __    _ tree_design += 'text:_{ name:_"' + item.Name + '" },HTMLclass: "blue",image:_"images/no_member.png",';
 _   _    _     __     _//---------------------------------------//
 __ _ __  _ _ __ _ __ _ //console.log(Details