
var currentTitlePointer = 0


function tickerdiv(divid) {
   if(currentTitlePointer == 0)
	text=divid.firstChild.nodeValue + "  ";
	
   divid.innerHTML = text;
   text = text.substring(1, text.length) + text.charAt(0);
   var temp = text
   var pos = 0;
   while (temp.indexOf("\"", pos) > -1) {
      temp = temp.substring(0, temp.indexOf("\"", pos)) +
         "\\\"" +
         temp.substring(temp.indexOf("\"", pos) + 1,
                        temp.length);
      pos = temp.indexOf("\"", pos) + 1;
   }
   currentTitlePointer++;
}

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}
