/* chaser.js
 * by Aaron Boodman v1.0 000919
 * Copyright (c) 2000 Aaron Boodman. All Rights Reserved.
 * Created for GreatEqualizer.com (http://www.greatequalizer.com/) and
 * documented at DHTML Lab (http://www.webreference.com/dhtml/)
 * License to use is granted if and only if this entire
 * copyright notice is included.
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
*/
is_dom = (document.getElementById) ? true : false;
is_ie = (document.all) ? true : false;
is_ie4 = is_ie && !is_dom;
is_w3c = is_dom && !is_ie;

if(is_ie4) {
  objref = document.all.myChaser;
  hite = document.body.clientHeight;
} else if(is_dom) {
  objref = document.getElementById("myChaser");
  hite = window.innerHeight;
}

var oChaser = {
	topMargin	: 0,
	callRate	: 10,
	chaserDiv	: objref
}

window.setInterval("oChaser.main( )", oChaser.callRate);

oChaser.main = function() {
  if(is_ie) {
    this.currentY = this.chaserDiv.style.pixelTop;
    this.scrollTop = document.body.scrollTop;
  } else if(is_dom) {
    this.currentY = parseInt(this.chaserDiv.offsetTop);
    this.scrollTop = window.pageYOffset;
  }

  var newY = this.scrollTop + this.topMargin;
	
  if(is_ie) {
      this.chaserDiv.style.pixelTop = newY;
    } else if(is_dom) {
      this.chaserDiv.style.top = newY + 'px';
    }
}