lstart=120 	//the pixel value of where you want the layer to start
lstop=-250	// where you want it to stop, set this lower for more content
           	//(i know this isnt the ideal way of doing this, but it's the easiest way to it crossbrowser)
loop=true 	// set this to false if you just want it to go one time
speed=150 	// set the speed, lower value gives more speed
pr_step=3 	// set this to how many pixels you want it to go for each step, this also set's the speed.    
	
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;

function makeObj(obj,nest)
{
  nest=(!nest) ? '':'document.'+nest+'.'
  this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
  this.up=goUp
  this.obj = obj + "Object"
  eval(this.obj + "=this")
  return this
}
function goUp(speed)
{
  this.css.top=parseInt(this.css.top)-pr_step
  if(parseInt(this.css.top)>lstop) 
    setTimeout(this.obj+".up("+speed+")",speed)
  else if(loop) 
  {
    this.css.top=lstart
    eval(this.obj+".up("+speed+")")
  }
}
function init()
{
  testObj=makeObj('test2','test')
  testObj.css.top=lstart
  testObj.up(speed)
		
}
onload=init