var LinkStatus = 0;
function CellSet(item, mode)
{ var obj, trg;
  if (mode == 0)  {item.className='CellNormal'; item.childNodes[0].className='MenuNormal';}
  if (mode == 1)  {item.className='CellActive'; item.childNodes[0].className='MenuActive';}
  if (LinkStatus == 0)
  { if (mode == 10) 
    { trg=item.childNodes[0].target; if (! trg) trg=document.getElementsByTagName('BASE')[0].target;
      if (trg=='_top')   {window.top.location.href=item.childNodes[0].href; return true;}
      if (trg=='_blank') {window.open(item.childNodes[0].href, ''); return true;}
      obj=self;       if (! trg)    {obj.location.href=item.childNodes[0].href; return true;}
      obj=obj.parent; if (obj[trg]) {obj[trg].location.href=item.childNodes[0].href; return true;}
      obj=obj.parent; if (obj[trg]) {obj[trg].location.href=item.childNodes[0].href; return true;}
    }
    if (mode == 11) {item.childNodes[0].onclick(); LinkStatus=0;}
    if (mode == 12) {item.className='CellNormal'; item.childNodes[0].className='MenuNormal'; document.location.href=item.childNodes[0].href;}
  }
  else LinkStatus=0;
}
function LinkSet(item)
{ LinkStatus=1; item.parentNode.className='CellNormal'; item.className='MenuNormal';
  if (item.blur) item.blur();
}
