 DOM = (document.getElementById) ? 1 : 0;
 NS4 = (document.layers) ? 1 : 0;
 IE = (document.all) ? 1 : 0;
 IE4 = IE && !DOM;

 var dx=-1,dy=-1;

 function show(x,y){
 if(dx==-1) return;
 if(IE){
  document.all["_cursor_"].style.left=x-150+dx;
  document.all["_cursor_"].style.top=y-68+dy;
  document.all["_cursor_"].style.display="block";
  }else
   if(DOM){
    document.getElementById("_cursor_").style.left=x-150+dx;
    document.getElementById("_cursor_").style.top=y-68+dy;
    document.getElementById("_cursor_").style.display="block";
   }
 }

 function hide(){
  if(dx==-1) return;
  if(IE){
  document.all["_cursor_"].style.display="none";
  }else
   if(DOM){
    document.getElementById("_cursor_").style.display="none";
   }
 }

 function getx(div_id){
 x=-1;
 if(IE){
   var x=0;
   o=document.all[div_id];
   while(eval(o))
    {x+=o.offsetLeft;
     o=o.offsetParent;
     }
  }else
   if(DOM){
    o=document.getElementById(div_id);
    while(eval(o))
     {x+=o.offsetLeft;
      o=o.offsetParent;
     }
   }
  return x;
 }

 function gety(div_id){
 y=-1;
 if(IE){
   var y=0;
   o=document.all[div_id];
   while(eval(o))
    {y+=o.offsetTop;
     o=o.offsetParent;
     }
  }else
   if(DOM){
    o=document.getElementById(div_id);
    while(eval(o))
     {y+=o.offsetTop;
      o=o.offsetParent;
     }
   }
  return y;
}




