var nv3 = new Object();
nv3.Ranking3 = function(){
	this.nvscroll3 = new nv3.Scroll3();
	this.nvscroll3.name3 = "";
	this.nvscroll3.name3 = "quicknewstop3.nvscroll3";
	this.nvscroll3.height3 = 18;
	this.nvscroll3.width3 = 545;
	this.nvscroll3.scrollspeed3 = 1;
	this.nvscroll3.pausedelay3 = 2000;
	this.nvscroll3.pausemouseover3 = true;
}
nv3.Ranking3.prototype = {
	init3 : function(){
		this.nvscroll3.setDivId3("roll_list3");
	},

	add3 : function(text3){
		this.nvscroll3.add3(text3);
	},
	start3 : function(){
		this.init3();
		this.nvscroll3.start3();
	}
}
nv3.Scroll3 = function() {
	this.version3 = "0.2";
	this.name3 = "NvScroll";
	this.divId3 = "";
	this.item3 = new Array();
	this.itemcount3 = 0;
	this.currentspeed3 = 0;
	this.scrollspeed3 = 50;
	this.pausedelay3 = 1000;
	this.pausemouseover3 = false;
	this.stop3 = false;
	this.height3 = 18;
	this.width3 = 545;
	this.stopheight3=0;
	this.i3=0;
	this.reloadData3 = 0;
}
nv3.Scroll3.prototype = {
	 add3 : function (text3) {
		   this.item3[this.itemcount3] = text3;
		   this.itemcount3 = this.itemcount3 + 1;
	 },
	 setDivId3 : function(name3) {
			this.divId3 = name3
	 },
	 start3 : function () {
		   if ( this.itemcount3 == 1 ) {
			this.add3(this.item3[0]);
		   }
		   this.display3();
		   this.currentspeed3 = this.scrollspeed3;
		   this.stop3 = true;
		   setTimeout(this.name3+'.Scroll3()',this.currentspeed3);
		   window.setTimeout(this.name3+".stop3 = false", this.pausedelay3);
	 },
	 display3 : function () {
		   var htmlCode3;
		   
		   htmlCode3 = '<div id="'+this.name3+'" style="height:'+this.height3+'px; width:'+this.width3+'px; position:relative; overflow:hidden; " OnMouseOver="'+this.name3+'.onmouseover3(); " OnMouseOut="'+this.name3+'.onmouseout3(); ">';
		  
		   for(var i3 = 0; i3 < this.itemcount3; i3++) {
				htmlCode3 += '<div id="'+this.name3+'item3'+i3+'"style="left:0px; width:'+this.width3+'px; position:absolute; top:'+(this.height3*i3)+'px; ">';
				htmlCode3 += this.item3[i3];
				htmlCode3 += '</div>';
		   }
		   htmlCode3 += '</div>';
		   document.getElementById(this.divId3).innerHTML=htmlCode3;
	 },
	 Scroll3 : function () {
		   this.currentspeed3 = this.scrollspeed3;
		   if ( !this.stop3 ) 
		   {
						for (var i3 = 0; i3 < this.itemcount3; i3++) 
						{
									
									 obj3 = document.getElementById(this.name3+'item3'+i3).style;
									
									 obj3.top = (parseInt(obj3.top) - 1)+"px" ;
									
									 if ( parseInt(obj3.top) <= this.height3 * (-1) ) obj3.top = this.height3 * (this.itemcount3-1);
									 if ( parseInt(obj3.top) == 0 ) 
									 {
												  this.currentspeed3 = this.pausedelay3;
												  this.i3 = i3;
									 }
						}
		   }
		   
		   window.setTimeout(this.name3+".Scroll3()",this.currentspeed3);
	 },
	 onmouseover3 : function () {this.stop3=true;},
	 onmouseout3 : function () {this.stop3=false;}
}
