mStat=false;
aLabel=new Object(); aLabel.id="";
aGroup=new Object(); aGroup.id="";
aItem=new Object(); aItem.id="";
aSubGroup=new Object(); aSubGroup.id="";
aSubItem=new Object(); aSubItem.id="";
aSubSubGroup=new Object(); aSubSubGroup.id="";
aSubSubItem=new Object(); aSubSubItem.id="";

function mOver(eObject) {
 if(eObject.id.indexOf("iLabel")>-1) {
  if(aLabel.id==eObject.id) { return; }
  if(aLabel.id!="") { aLabel.style.color="#FFFFFF"; aLabel.style.backgroundColor="#909090"; }
  aLabel=eObject;
  aLabel.style.color="#FFFFFF";
  aLabel.style.backgroundColor="#E00000";
  if(mStat) {
   if(aSubSubItem.id!="") { aSubSubItem.style.color="#000000"; aSubSubItem.style.backgroundColor="#FEFEFE"; aSubSubItem=new Object(); aSubSubItem.id=""; }
   if(aSubSubGroup.id!="") { aSubSubGroup.style.display="none"; aSubSubGroup=new Object; aSubSubGroup.id=""; }
   if(aSubItem.id!="") { aSubItem.style.color="#000000"; aSubItem.style.backgroundColor="#FEFEFE"; aSubItem=new Object(); aSubItem.id=""; }
   if(aSubGroup.id!="") { aSubGroup.style.display="none"; aSubGroup=new Object; aSubGroup.id=""; }
   if(aItem.id!="") { aItem.style.color="#000000"; aItem.style.backgroundColor="#FEFEFE"; aItem=new Object(); aItem.id=""; }
   if(aGroup.id!="") { aGroup.style.display="none"; aGroup=new Object; aGroup.id=""; }
   if(aGroup=document.getElementById("mGroup"+eObject.id.substr(6))) {
    aGroup.style.display="block"; }
   else {
    aGroup=new Object; aGroup.id=""; }
   }
  }

 if(eObject.id.indexOf("iGroup")>-1) {
  if(aItem.id==eObject.id) { return; }
  if(aItem.id!="") { aItem.style.color="#000000"; aItem.style.backgroundColor="#FEFEFE"; }
  aItem=eObject;
  aItem.style.color="#FFFFFF";
  aItem.style.backgroundColor="#E00000";
  if(aSubSubItem.id!="") { aSubSubItem.style.color="#000000"; aSubSubItem.style.backgroundColor="#FEFEFE"; aSubSubItem=new Object(); aSubSubItem.id=""; }
  if(aSubSubGroup.id!="") { aSubSubGroup.style.display="none"; aSubSubGroup=new Object; aSubSubGroup.id=""; }
  if(aSubItem.id!="") { aSubItem.style.color="#000000"; aSubItem.style.backgroundColor="#FEFEFE"; aSubItem=new Object(); aSubItem.id=""; }
  if(aSubGroup.id!="") { aSubGroup.style.display="none"; aSubGroup=new Object; aSubGroup.id=""; }
  if(aSubGroup=document.getElementById("mSubGroup"+eObject.id.substr(6))) {
   aSubGroup.style.display="block"; }
  else {
   aSubGroup=new Object; aSubGroup.id=""; }
  }

 if(eObject.id.indexOf("iSubGroup")>-1) {
  if(aSubItem.id==eObject.id) { return; }
  if(aSubItem.id!="") { aSubItem.style.color="#000000"; aSubItem.style.backgroundColor="#FEFEFE"; }
  aSubItem=eObject;
  aSubItem.style.color="#FFFFFF";
  aSubItem.style.backgroundColor="#E00000";
  if(aSubSubItem.id!="") { aSubSubItem.style.color="#000000"; aSubSubItem.style.backgroundColor="#FEFEFE"; aSubSubItem=new Object(); aSubSubItem.id=""; }
  if(aSubSubGroup.id!="") { aSubSubGroup.style.display="none"; aSubSubGroup=new Object; aSubSubGroup.id=""; }
  if(aSubSubGroup=document.getElementById("mSubSubGroup"+eObject.id.substr(9))) {
   aSubSubGroup.style.display="block"; }
  else {
   aSubSubGroup=new Object; aSubSubGroup.id=""; }
  }

 if(eObject.id.indexOf("iSubSubGroup")>-1) {
  if(aSubSubItem.id==eObject.id) { return; }
  if(aSubSubItem.id!="") { aSubSubItem.style.color="#000000"; aSubSubItem.style.backgroundColor="#FEFEFE"; }
  aSubSubItem=eObject;
  aSubSubItem.style.color="#FFFFFF";
  aSubSubItem.style.backgroundColor="#E00000";
  }
 }

function mOut(mStat) {
 if(!mStat &&  aLabel.id!="") {
  aLabel.style.color="#FFFFFF";
  aLabel.style.backgroundColor="#909090";
  aLabel=new Object(); aLabel.id=""; }
 }

function bClick(eObject) {
 if(mStat) {
  if(aSubSubItem.id!="") { aSubSubItem.style.color="#000000"; aSubSubItem.style.backgroundColor="#FEFEFE"; aSubSubItem=new Object(); aSubSubItem.id=""; }
  if(aSubSubGroup.id!="") { aSubSubGroup.style.display="none"; aSubSubGroup=new Object; aSubSubGroup.id=""; }
  if(aSubItem.id!="") { aSubItem.style.color="#000000"; aSubItem.style.backgroundColor="#FEFEFE"; aSubItem=new Object(); aSubItem.id=""; }
  if(aSubGroup.id!="") { aSubGroup.style.display="none"; aSubGroup=new Object; aSubGroup.id=""; }
  if(aItem.id!="") { aItem.style.color="#000000"; aItem.style.backgroundColor="#FEFEFE"; aItem=new Object(); aItem.id=""; }
  if(aGroup.id!="") { aGroup.style.display="none"; aGroup=new Object; aGroup.id=""; }
  if(aLabel.id!=eObject.id) { aLabel.style.color="#FFFFFF"; aLabel.style.backgroundColor="#909090"; aLabel=new Object(); aLabel.id=""; }
  mStat=false; }
 else {
  if(aGroup=document.getElementById("mGroup"+eObject.id.substr(6))) {
   aGroup.style.display="block";
   mStat=true; } }
 }
