$(function(){
//Banner rotate
$('#fadeshow').cycle({
fx: 'fade',
speed: 1000,
timeout: 6000,
pause: 1
});
//Refreshes ER Feed content every 5 mins
autoupdate();
setInterval("autoupdate()", 300 * 1000);
//Video homepage scroll
$.ajax({
type: "GET",
url: "/cpm/playlist-east.xml",
dataType: "xml",
success: function(xml){
//Video Scroller
var api = $("div.scrollable").scrollable();
$(xml).find("item:lt(8)").each(function(){
var cats = [];
$(this).find("category").each(function(){
cats.push($(this).text());
});
var link = $(this).find('link').text();
var scroller = ''
+''
+'
'+$(this).find("title").text()+'';
api.getItemWrap().append(scroller);
api.reload().next(0);
/*Market filter
var filter = $.inArray('division', cats) > -1;
if(filter){
api.getItemWrap().append(scroller);
api.reload().next(0);
}
*/
});
$("div.scrollable").scrollable().begin();
}
});
$("#browsable").scrollable({size: 2}).navigator();
var present = $(document).getUrlParam("id");
$.ajax({
type: "GET",
url: "/cpm/playlist-east.xml",
dataType: "xml",
success: function(xml){
//Populate playlist
$(xml).find("item:lt(15)").each(function(){
var cats = [];
$(this).find("category").each(function(){
cats.push($(this).text());
});
var link = $(this).find('link').text();
var playItem = '

Currently updating the feed');
} else {
$("#wait-time").append(''+$(this).find("title").text()+'