ns = (document.layers) ? 1:0;
var loop, timer
function makeObj(obj,nest){
  nest = (!nest) ? '':'document.'+nest+'.';
  this.el = ns ? eval(nest+'document.'+obj):document.all[obj];
  this.css = ns ? eval(nest+'document.'+obj):document.all[obj].style;
  this.scrollHeight = ns ? this.css.document.height:this.el.offsetHeight;
  this.clipHeight = ns ? this.css.clip.height:this.el.offsetHeight;
  this.up = goUp;
  this.down = goDown;
  this.moveIt = moveIt;
  this.x;
  this.y;
  this.obj = obj + "Object";
  eval(this.obj + "=this");
  return this;
}
function moveIt(x,y){
  this.x = x;
  this.y = y;
  this.css.left = this.x;
  this.css.top = this.y;
}
function goDown(move){
  if (this.y>-this.scrollHeight+oCont.clipHeight){
    this.moveIt(0,this.y-move);
    if (loop) setTimeout(this.obj+".down("+move+")",50);
  }
}
function goUp(move){
  if (this.y<0){
    this.moveIt(0,this.y-move);
    if (loop) setTimeout(this.obj+".up("+move+")",50);
  }
}
function scroll(speed){
  if (loaded){
    loop = true;
    if (speed>0) oScroll.down(speed);
    else oScroll.up(speed);
  }
}
function noScroll(){
  loop = false;
  if (timer) clearTimeout(timer);
}
var loaded;
function scrollInit(){
  oCont = new makeObj('divCont');
  oScroll = new makeObj('divText','divCont');
  oScroll.moveIt(0,0);
  loaded = true;
}