$(function () {
  var json = [
    {
      icon: "source",
      class: 'maincategory',
      text: "Supplier Lifecycle and Performance (SLP)",
      nodes: [
        {
          icon: "description",
          text: "Supplier Account Creation and Login to Ariba",
          class: "subprocess",
          href: "#cont1",
        },
        {
          icon: "description",
          text: "Supplier Questionnaire Form Update by Supplier",
          class: "subprocess",
          href: "#cont2",
        },
        {
          icon: "description",
          text: "Supplier Response for SM  Modular Questionnaire",
          class: "subprocess",
          href: "#cont3",
        },
        {
          icon: "description",
          text: "Supplier Modification through Supplier Login",
          class: "subprocess",
          href: "#cont4",
        },
      ]
    },
    {
      icon: "source",
      class: 'maincategory',
      text: "Sourcing",
      nodes: [
        // {
        //  icon: "source",
    	//    text: "Integrated Sourcing",
        //  class: 'process',
        //  nodes: [
            {
              icon: "description",
              text: "Send RFQ Response",
              class: "subprocess",
              href: "#cont5",
            }
          // ]
        // },
        
      ]
    },
    {
      icon: "source",
      class: 'maincategory',
      text: "Digital Supplier Network (DSN)",
      nodes: [
        {
            icon: "description",
            text: "Create Order Confirmation",
            class: "subprocess",
            href: "#cont6",         
        },
        {
          icon: "source",
          text: "Material Based POs",
          class: 'process',
          nodes: [
            {
              icon: "description",
              text: "Create Advanced Shipment Notice",
              class: "subprocess",
              href: "#cont7",
            },
            {
              icon: "description",
              text: "Invoice Submission for Material Based POs",
              class: "subprocess",
              href: "#cont8",
            },
          ],
        },
        {
          icon: "source",
          text: "Service Based PO",
          class: 'process',
          nodes: [
            {
              icon: "description",
              text: "Create Service Entry Sheet",
              class: "subprocess",
              href: "#cont9",
            },
            {
              icon: "description",
              text: "Invoice Submission for Service Based POs",
              class: "subprocess",
              href: "#cont10",
            }
          ],
        },
        
      ]
    }
  ];

  $('#tree').bstreeview({ data: JSON.stringify(json) });
  $('#tree').bstreeview({
    openNodeLinkOnNewTab: false
  });
});