function t_ticker(id,pid)
{
   this.id = id;
   this.pid = pid;
   this.ticker;
   this.container;
   this.start=0;
   this.left=0;
   this.font='Arial'; // defaults font
   this.fontSize = 12; // default size
   this.fontColor="White"; // default color
   this.text=''; 
}

t_ticker.prototype.getSettings = function(xmlDoc)
{
    var items = xmlDoc.documentElement.getElementsByTagName("Item");
    
    for(var ctr=0; ctr<items.length;ctr++)
    {
    	this.text+=' ' + items[ctr].childNodes[0].nodeValue;
    }
    var settings = xmlDoc.documentElement.getElementsByTagName("Settings");
    
    this.start = parseInt(settings[0].getAttribute("width"));
    this.height = parseInt(settings[0].getAttribute("height"));
    this.font = settings[0].getAttribute("font");
    this.fontSize = parseInt(settings[0].getAttribute("fontSize"));
    this.fontColor = settings[0].getAttribute("fontColor");
    this.backColor = settings[0].getAttribute("backColor");
    this.left=this.start;
    this.jump = parseInt(settings[0].getAttribute("jump"));
    this.interval = parseInt(settings[0].getAttribute("interval"));


}

t_ticker.prototype.createTicker = function()
{
   var divTag = document.createElement("div");
   divTag.id = "lyrTicker";
   divTag.innerHTML = this.text;
   this.container = document.getElementById(this.pid);
   this.container.style.width=this.left;
   this.container.style.height=this.height;
   this.container.style.verticalAlign="middle";
   this.container.appendChild(divTag);
   this.ticker = document.getElementById("lyrTicker");
   this.ticker.style.left = this.left;
   this.ticker.style.position="absolute";
   this.ticker.style.whiteSpace="nowrap";
   this.ticker.style.color = this.fontColor;
   this.ticker.style.backgroundColor = this.backColor;
   this.ticker.style.fontFamily = this.font;
   this.ticker.style.fontSize = this.fontSize;
}

t_ticker.prototype.moveTicker = function()
{
   this.left+=this.jump;
}
















