<!--
var ftimer = 500;
var flimit = 60000;
var hpos = 0;
var cpos = 0;

function setTop(){
  var num = $('.broadcast .tocker ul li').size();
  if(hpos > 1){
    var tp = ((hpos-1) * 38);
    tp = 0;
    cpos = tp;

    $('.broadcast .tocker ul').animate({'margin-top':'-'+tp+'px'},500);
  }
}

function setupFeed(){
  var num = $('.broadcast .tocker ul li').size();
  if(num > 0){
    var i=0;
    var dateVar = new Date();
    var hh = dateVar.getUTCHours();
    var mm = dateVar.getUTCMinutes();
    var now = (hh+"00")*1;
    var n=0;

    $('.broadcast .tocker ul li').each(function(){
      var c = $(this).html();
      if( (c.indexOf('<b>NOW') > -1) || (c.indexOf('<B>NOW') > -1) ){ c = c.substring(8,c.length-4); }
      var tim = (c.substring(0,c.indexOf(':'))+"00")*1;
      if(tim >= now){
        $(this).html(c);
        if(n == 0){
          $(this).html("<b>NOW: " + c + "</b>");
          hpos = i;
          setTop();
        }
        n++;
      }
      i++;
    });

    if(ftimer){ clearTimeout(ftimer); }
    ftimer = setTimeout("setupFeed();",flimit);
  }
}

$(document).ready(function(){
  setupFeed();

  $('#feedlater').click(function(){
    var h = $('.broadcast .tocker ul').height(); var np = cpos;
    if((np+38) <= (h-76)){ cpos = (np+38); $('.broadcast .tocker ul').animate({'margin-top':'-'+cpos+'px'},500); }
  });

  $('#feedearlier').click(function(){
    var h = $('.broadcast .tocker ul').height(); var np = cpos;
    if((np-38) >= 0){ cpos = (np-38); $('.broadcast .tocker ul').animate({'margin-top':'-'+cpos+'px'},500); }
  });
})

//-->
