//This is a very old script that will cause a <div> to move down the screen as you scroll.  It should even work in 
//very old browsers that nobody uses anymore!

var isNav, isIE  //global
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
      isNav = true;
    }
}
function getInitialHeight() {
  if (isNav) {
    return window.innerHeight;
  }
  else {
   return document.body.clientHeight;
  }
}
function getScrollValue() {
  if (isNav) {
    return window.pageYOffset;
  }
  else {
    return document.body.scrollTop;

  }
}

// The following function is taken from the JavaScript Bible by
// Danny Goodman, 4th Edition.
// convert object name string or object reference
// into a valid object reference ready for style change
function getObject(obj) {
	var theObj
	if (document.layers) {
		//alert("layers")
		if (typeof obj == "string") {
			return document.layers[obj]
		} else {
			return obj
		}
	}
	if (document.all) {
		//alert("all")
		if (typeof obj == "string") {
			return document.all(obj).style
		} else {
			return obj.style
		}
	}
	if (document.getElementById) {
		//alert("getElementById")
		if (typeof obj == "string") {
			return document.getElementById(obj).style
		} else {
			return obj.style
		}
	}
	return null
}

function moveIt() {
	var moveObj = getObject("moving")
	var initialHeight = getInitialHeight();
    var scrollValue = getScrollValue();
    var moveTo = scrollValue + initialHeight - 410
    moveObj.top = moveTo

    setTimeout("moveIt()",0);
}
