<!--
function setPosition(x, y)
{
  if (document.layers) {
    this.objstyle.moveTo(x, y);
  } else { // IE and N6
    this.objstyle.left = x + "px";
    this.objstyle.top = y + "px";
  }
  this.x = x;
  this.y = y;
}
function setPositionWithScroll(x, y)
{
  var scrlX, scrlY;
  if (document.layers) {
    scrlX = window.pageXOffset;
    scrlY = window.pageYOffset;
    this.objstyle.moveTo(scrlX + x,scrlY + y);
  } else if (document.all) {
    scrlX = document.body.scrollLeft;
    scrlY = document.body.scrollTop;
    this.objstyle.left = scrlX + x + "px";
    this.objstyle.top = scrlY + y + "px";
  } else if (document.getElementById) {
    scrlX = window.scrollX;
    scrlY = window.scrollY;
    this.objstyle.left = scrlX + x + "px";
    this.objstyle.top = scrlY + y + "px";
  }
  this.x = x;
  this.y = y;
}
function setVisible(s)
{
  if (document.layers) {
    this.objstyle.visibility = (s)? true : false
  } else if (document.all) {
    this.objstyle.visibility = (s)? "visible" : "hidden"
  } else if (document.getElementById) {
    this.objstyle.visibility = (s)? "visible" : "hidden"
  }
  this.visible = s;
}
function MovingObject(num, src, width, height)
{
  document.write('<div id="MVOBJ',num,'" class="movingobject">');
  document.write('<img src="',src,'" width="',width,'" height="',height,'">');
  document.write('<\/div>');
  if (document.layers) {
    this.objstyle = document.layers["MVOBJ"+num];
  } else if (document.all) {
    this.objstyle = document.all["MVOBJ"+num].style;
  } else if (document.getElementById) {
    this.objstyle = document.getElementById("MVOBJ"+num).style;
  }
  this.id = "MVOBJ"+num;
  this.src = src;
  this.width = width;
  this.height = height;
  this.x = -200;
  this.y = 0;
  this.visible = 1;
  this.move = setPosition;
  this.moveScrl = setPositionWithScroll;
  this.show = setVisible;
}
function getEventPos(nsEvent)
{
  var scrlX, scrlY;
  if (document.layers) {
    scrlX = window.pageXOffset;
    scrlY = window.pageYoffset;
    eventPosX = nsEvent.pageX - window.pageXOffset;
    eventPosY = nsEvent.pageY - window.pageYOffset;
    eventProc(nsEvent.type, eventPosX, eventPosY);
  } else if (document.all) {
    eventPosX = event.clientX;
    eventPosY = event.clientY;
    eventProc(event.type, eventPosX, eventPosY);
  } else if (document.getElementById) {
    eventPosX = nsEvent.clientX;
    eventPosY = nsEvent.clientY;
    eventProc(nsEvent.type, eventPosX, eventPosY);
  }
}
var docWidth, docHeight;
function getDocSize()
{
  if (document.layers) {
    docWidth = window.innerWidth;
    docHeight = window.innerHeight;
  } else if (document.all) {
    docWidth = document.body.clientWidth;
    docHeight = document.body.clientHeight;
  } else if (document.getElementById) {
    docWidth = window.innerWidth;
    docHeight = window.innerHeight;
  }
}
function readyDhtml()
{
  return((document.layers || document.all || document.getElementById)?1:0);
}
function isNetscape()
{
  return((document.layers || document.getElementById && !document.all)?1:0); 
}
// -->
