
function Ticker2(name, id, shiftBy, interval)
{
  this.name     = name;
  this.id       = id;
  this.shiftBy  = shiftBy ? shiftBy : 1;
  this.interval = interval ? interval : 100;
  this.runId	= null;
  this.div = document.getElementById(id);
  var node = this.div.firstChild;
  var next;
  while (node)
  {
    next = node.nextSibling;
    if (node.nodeType == 3)
      this.div.removeChild(node);
    node = next;
  }
 
  this.left = 0;
  this.shiftLeftAt = this.div.firstChild.offsetWidth;
  this.div.style.height	= this.div.firstChild.offsetHeight;
  this.div.style.width = 560;
  this.div.style.visibility = 'visible';
}
function startTicker2()
{
  this.stop();
  
  this.left -= this.shiftBy;
  if (this.left <= -this.shiftLeftAt)
  {
    this.left = 0;
    this.div.appendChild(this.div.firstChild);
  
    this.shiftLeftAt = this.div.firstChild.offsetWidth;
  }
  this.div.style.left = (this.left + 'px');
  this.runId = setTimeout(this.name + '.start()', this.interval);
}
function stopTicker2()
{
  if (this.runId)
    clearTimeout(this.runId);
    
  this.runId = null;
}
function changeTickerInterval2(newinterval)
{
  if (typeof(newinterval) == 'string')
    newinterval =  parseInt('0' + newinterval, 10); 
	
  if (typeof(newinterval) == 'number' && newinterval > 0)
    this.interval = newinterval;
    
    this.stop();
    this.start();
}
Ticker2.prototype.start = startTicker2;
Ticker2.prototype.stop = stopTicker2;
Ticker2.prototype.changeInterval = changeTickerInterval2;
// style
document.open();
document.write('<style type=\"text/css\">');            
document.write('.container2{position:relative;top:0;height:80px;width:'+tickerwidth2+'px;overflow:hidden;background-color:#ffffff}'); 
document.write('.ticker2{position:relative;visibility:hidden;left:0px;top:'+tickerpos2+'px;border-width:0px;border-style:none;width:'+tickerwidth2+'px;height:80px;vertical-align:middle}'); 
document.write('</style>');
document.close();
// content
var textcontent;
var i = 0;
textcontent="";
 for(i = 0; i < arr_n2.length; i++) {
	if(arr_n2[i] != ""){
	textcontent+=arr_n2[i];
	}
}	
m2=textcontent;
	var ticker2 = null; /* ticker object */
var ts=speed2*7;	
function init()
	{
		
ticker2 = new Ticker2('ticker2', 'tickerID2', 1, ts);
		ticker2.start();
	}
document.open();
document.write("<div align='left' class='container2'>");
document.write("<div class='ticker2' id='tickerID2' onMouseOver='ticker2.stop()' onMouseOut='ticker2.start()'>");
document.write("<nobr>");
document.write(m2+m2+m2+m2+m2+m2+m2+m2+m2+m2);
document.write("</nobr>");
document.write("</div>");
document.write("</div>");
document.close();
init()