
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ie=document.all?1:0

function get_winH() {
 return ie?window.document.body.clientHeight:window.innerHeight;
}
function get_winW() {
 return ie?window.document.body.clientWidth:window.innerWidth;
}
function set_divXY(di,x,y) {
 if ( ie4 ) {
  document.all[di].style.posLeft = x;
  document.all[di].style.posTop = y;
 }
 if ( ns4  ) {
  document.layers[di].pageX = x;
  document.layers[di].pageY = y;
 }
 if ( ns6 ) {
  document.getElementById(di).style.left = x;
  document.getElementById(di).style.top = y;
 }
}
function getLeft(ll) {
 if (ll.offsetParent) return (ll.offsetLeft + getLeft(ll.offsetParent));
 else return (ll.offsetLeft);
}
function getTop(ll) {
 if (ll.offsetParent) return (ll.offsetTop + getTop(ll.offsetParent));
 else return (ll.offsetTop);
}
function get_aX(a) {
 return ie?getLeft(document.all[a]):document.anchors[a].x;
}
function get_aY(a) {
 return ie?getTop(document.all[a]):document.anchors[a].y;
}
function show_div(di) {
 if (ie4) document.all[di].style.visibility = "visible";
 if (ns4) document.layers[di].visibility = "show";
 if (ns6) document.getElementById(di).style.visibility = "visible";
}
function hidden_div(di) {
 if (ie4) document.all[di].style.visibility = "hidden";
 if (ns4) document.layers[di].visibility = "hidden";
 if (ns6) document.getElementById(di).style.visibility = "hidden";
}

