function rss_ticker(url) {
  // Create ticker div
  document.write('<div  id="ticker2" style="width:520px"><marquee WIDTH="500" BEHAVIOR="SCROL"L LOOP="-1" SCROLLAMOUNT="2" SCROLLDELAY="1" id="ticker">Loading RSS feed...</marquee></div>');

  // Create XMLHttpRequest object
  try {
   xh = new ActiveXObject('Msxml2.XMLHTTP');
  }
  catch(e) {
    try {
      xh = new ActiveXObject('Microsoft.XMLHTTP');
    }
    catch(oc) {
      xh = null;
    }
  }
  if(!xh && typeof XMLHttpRequest != 'undefined') xh = new XMLHttpRequest();

  // Get the RSS feed
  xh.open('GET', url, true);
  xh.onreadystatechange = function() {
    if (xh.readyState == 4) {
      parse_data(xh.responseText);
    }
  }
  xh.send(null);
}

// Parse the RSS feed and write to the ticker div
function parse_data(data) {
  var pos = 0;
  var ticker = document.getElementById('ticker');
  ticker.innerHTML = '';
  while((pos = data.indexOf('<tot>', pos+1)) != -1) {
    title_b = data.indexOf('<tot>', pos);
    title_e = data.indexOf('</tot>', pos);
    title_s = data.substr(title_b+5, title_e-title_b-11);

    ticker.innerHTML += title_s+'  ';
  }
}

