// Load RSS Feeds 
// for Dynamic Preview Scrolling display
// Updated 2009.09.16: Changed to new rss links


google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);

function LoadDynamicFeedControl() {
	var feeds0 = [
	{ title: 'USC News',
		url: 'http://www.usc.edu/uscnews/admin/uscnews.rss'
	}];

	var pickFeed = Math.floor(Math.random()*10) + 1;
	if(pickFeed%2 == 0) {
		var feeds = [{ title: 'USC News', url: 'http://uscnews.usc.edu/feeds/main.xml'}];
	} else {
		var feeds = [{ title: 'USC News', url: 'http://uscnews.usc.edu/feeds/university.xml'}];
	}

	var options = {
		stacked : false,
		horizontal : false,
		title : "",
		numResults : 5,
		displayTime : 5000,
		fadeOutTime : 1500,
		scrollOnFadeOut: true
	}

	new GFdynamicFeedControl(feeds, 'uscNewsFeed', options);
}
