//****** Digital Flow Software NewsTicker Version 1.0 ******



// Copyright (c) Digital Flow Software 2005-2008

// The present javascript code is property of Digital Flow Software http://www.dpopup.com

// ***Removal of the present copyright notice is strictly prohibited***





var dfs = {};



dfs.nsc = function (content,speed,toppadding){

this.content=content;

this.rate=speed;

this.topPad=toppadding+'px';

this.scrollContent=document.getElementById(this.content);

this.scrollContent.style.top=this.topPad;

var nscInstance=this;

nscInstance.scrollContent.onmouseover=function(){nscInstance.rate=0};

nscInstance.scrollContent.onmouseout=function(){nscInstance.rate=speed};

nscInstance.retScrollLen();

}





dfs.nsc.prototype.moveIt=function(){

var nscInstance=this;

this.scrollContent.style.top=parseInt(this.scrollContent.style.top)-nscInstance.rate+"px";

if (parseInt(this.scrollContent.style.top)<this.scrollLen*(-1))

this.scrollContent.style.top=this.topPad;

setTimeout(function(){nscInstance.moveIt()},40)

}





dfs.nsc.prototype.retScrollLen=function(){

var nscInstance=this;

if (this.scrollContent.offsetHeight==0){

setTimeout(function(){nscInstance.retScrollLen()},50)

}else{

this.scrollLen=this.scrollContent.offsetHeight;

nscInstance.moveIt()}

}





