/*
 *  Name: SFA.js  
 *  Author: Skillfusion Software. 
 *  Note: Functionality for Software Architecture Page.
 */

    function ShowText(elem)
    {
        //hide all other Text
        hideAllText();
        
        var textName = elem.id + "Text";
        var allText = document.getElementsByName(textName);

        if(allText != null)
        {
            var text;
            for(i = 0; i < allText.length; i++)
            {
                 text = allText[i];
                 text.style.visibility = "visible";
                 //text.style.display = "block";
            }
        }
        
    }
    
    function hideAllText()
    {
        for(i = 0; i < 8; i++)
        {
          try
          {
            var textName = "flow" + i + "Text";
            var allText = document.getElementsByName(textName);
            if(allText != null)
            {
              var text;
              for(j= 0; j < allText.length; j++)
              {
                   text = allText[j];
                   text.style.visibility = "hidden";
                   //text.style.display="none";
              }
            }
          }
          catch(e)
          {
            //eat error
            alert('error');
          }
        }
    }

