function hl(Obj,Sib) {
   Col = '#929CAB';
   if (Sib == 1)
      Obj.nextSibling.style.color=Col;
   else
      Obj.previousSibling.style.color=Col;
}

function nl(Obj,Sib) {
   if (Sib == 1)
      Obj.nextSibling.style.color='';
   else
      Obj.previousSibling.style.color='';
}

function si(Obj,Typ) {
   if (Typ == 1) {
      Obj.nextSibling.style.display='inline';
      Obj.nextSibling.nextSibling.style.display='inline';
      Obj.style.display='none';
   } else {
      Obj.previousSibling.previousSibling.style.display='inline';
      Obj.previousSibling.style.display='none';
      Obj.style.display='none';
   }
}

function PosScreenShot(P) {
   S = document.getElementById('screenshot');
   S.style.left = "140px";
   S.style.top = P+20-S.offsetHeight + "px";
   S.style.visibility = 'visible';
}

function ShowScreenShot(Name,W,H) {
   P = document.getElementById(Name).offsetTop;
   S = document.getElementById('screenshot');
   S.firstChild.setAttribute('src','img/ss_'+Name+'.png');
   S.firstChild.setAttribute('width',W);
   S.firstChild.setAttribute('height',H);
   setTimeout('PosScreenShot('+P+')',20);
}

function HideScreenShot() {
   S = document.getElementById('screenshot');
   S.firstChild.setAttribute('src','');
   S.style.visibility = 'hidden';
}
