var isNav, isIE, intervalID
var coll = "";
var styleObj="";


if (parseInt(navigator.appVersion)>=4) {
 if (navigator.appName == "Netscape") {
  isNav=true
 }
 else
 {
  isIE=true;
  coll="all.";
  styleObj=".style";
 }
}

function getObjHeight(obj) {
 if (isNav) {
  return obj.clip.height;
 } else {
  return obj.clientHeight;
 }
}

function getObjWidth(obj) {
 if (isNav) {
  return obj.clip.width;
 } else {
  return obj.clientWidth;
 }
}

function getObjLeft(obj) {
 if (isNav) {
  return obj.left;
 } else {
  return obj.pixelLeft;
 }
}

function getObjTop(obj) {
 if (isNav) {
  return obj.top;
 } else {
  return obj.pixelTop;
 }
}

function getInsideWindowWidth() {
 if (isNav) {
  return window.innerWidth;
 } else {
  return document.body.clientWidth;
 }
}

function getInsideWindowHeight() {
 if (isNav) {
  return window.innerHeight;
 } else {
  return document.body.clientHeight;
 }
}

function show(obj) {
 obj.visibility = "visible"
}

function hide(obj) {
 obj.visibility = "hidden"
}

function shiftTo(obj, x, y) {
 if (isNav) {
  obj.moveTo(x,y);
 } else {
  obj.pixelLeft=x;
  obj.pixelTop=y;
 }
}

function shiftBy(obj, deltax, deltay) {
 if (isNav) {
  obj.moveBy(deltax, deltay);
 } else {
  obj.pixelLeft += deltax;
  obj.pixelTop += deltay;
 }
}

function moveit(obj, startx, starty, endx, endy, steps, wait)
{
 if (isNav) {
  var bu01 = eval(document.getElementById(obj).style);
  bu01.top = endy;
  bu01.left = endx;
 } else {
 if(wait && wait>0)
  setTimeout('moveit("'+obj+'",'+startx+','+starty+','+endx+','+endy+','+steps+','+(wait-1)+')', delay);
 else
 {

  var bu01 = eval ("document." + coll + obj + styleObj);  
  shiftTo(bu01,startx,starty);

  startx+=(endx-startx)/steps;
  starty+=(endy-starty)/steps;
  
  if (steps==0) 
   start=1; 
  
  if(steps>0)
   setTimeout('moveit("'+obj+'",'+startx+','+starty+','+endx+','+endy+','+(steps-1)+',0)', delay);
  }
 }
}

