function slide(outCon,inCon,tempCon,speed)
{this.outCon=$(outCon)
this.inCon=$(inCon)
this.speed=speed
this.tempCon=$(tempCon)
window.obj = this;
this._timer = null;//定时器
this.Stop=Stop
this.Move=Move
this.run=runSlide
}

function runSlide()
{
clearInterval(this._timer)
this.tempCon.innerHTML=this.inCon.innerHTML
if(this.tempCon.offsetTop-this.outCon.scrollTop<=0)
{this.outCon.scrollTop-=this.inCon.offsetHeight}
else
{this.outCon.scrollTop++}
//var toRun=setTimeout(runSlide,this.speed)
this._timer=setInterval("obj.run()",obj.speed)
this.outCon.onmouseover=function()
{obj.Stop()}
this.outCon.onmouseout=function()
{obj.Move()}
}
function Stop()
{clearInterval(this._timer)}
function Move()
{this._timer=setInterval("obj.run()",obj.speed)}






