

  //..... ..... ..... .....

  var _allId=["All", "Isleham", "Whepstead", "Risby", "Bury", "Kentford"];

  var _setId="none";

  var _directory=new Object();
  _directory["All"]=["AmandaFox", "SusannahBurn", "ElvinaGilbert", "JayneRichardson", "StephenScott"];
  _directory["Isleham"]=["SusannahBurn"];
  _directory["Whepstead"]=["AmandaFox"];
  _directory["Risby"]=["ElvinaGilbert"];
  _directory["Bury"]=["SusannahBurn", "AmandaFox", "ElvinaGilbert", "StephenScott"];
  _directory["Kentford"]=["JayneRichardson"];

  function _clearAll()
  {
    for (var _i=0; _i<_allId.length; _i++)
    {
      var _subHereSpan=document.getElementById(_allId[_i]);
      with (_subHereSpan.style)
      {      
        display="none";
        visibility="hidden";
      };
      var _subSwitch=document.getElementById(_allId[_i]+"Opt");
      with (_subSwitch.style)
      {      
        color="#040404";
      };
    };

    var _all=_directory["All"];

    for (var _i=0; _i<_all.length; _i++)
    {
      var _subEntry=document.getElementById(_all[_i]+"Entry");
      with (_subEntry.style)
      {      
        display="none";
        visibility="hidden";
      };
    };
  };

  function _show(_id)
  {
    _clearAll();

    var _subHereSpan=document.getElementById(_id);
    with (_subHereSpan.style)
    {       
      display="inline";
      visibility="visible";
    };
    var _subSwitch=document.getElementById(_id+"Opt");
    with (_subSwitch.style)
    {      
      color="#990000";
    };

    var _all=_directory[_id];

    for (var _i=0; _i<_all.length; _i++)
    {
      var _subEntry=document.getElementById(_all[_i]+"Entry");
      with (_subEntry.style)
      {      
        display="block";
        visibility="visible";
      };
    };

    var _consultants=document.getElementById("Consultants");

    if (_id=="All" || _id=="Bury")
    {
      with (_consultants.style)
      {      
        display="block";
        visibility="visible";
      };
    };
    else
    {
      with (_consultants.style)
      {      
        display="none";
        visibility="hidden";
      };
    };

    _setId=_id;
    _setTransientCookie("Practice", _id); //for consistent behaviour with the map tool
  };

  function _u(_id)
  {
    var _subSwitch=document.getElementById(_id+"Opt");
    with (_subSwitch.style)
    {      
      color="#990000";
      textDecoration="underline";
    };
  };

  function _n(_id)
  {
    var _subSwitch=document.getElementById(_id+"Opt");
    with (_subSwitch.style)
    {
      if (_id!=_setId)
      {
        color="#040404";
      };
      textDecoration="none";
    };
  };

  function _inheritSetting() //onLoad
  {
    var _id=_getCookie("Practice");
    if (_id=="") {_id="All";};
    _show(_id);
  };

  //..... ..... ..... .....//


