/********************************* my_stats.js for EA.com code by Bart Millar *********************************/ /****************************************************************************** My forums *****************************************************************************/ var xmlDocs = new Array(); // xmlDocs[0] = "/images.ea.com/sports/_img/profile/xml_forum_popularthreads.xml"; // xmlDocs[1] = "/images.ea.com/sports/_img/profile/xml_forum_popularthreads.xml"; // xmlDocs[2] = "/images.ea.com/sports/_img/profile/xml_forum_watchlist.xml"; xmlDocs[0] = "/_components/forumfeeds/rss_conduit.jsp?feed=most_popular_threads"; xmlDocs[1] = "/_components/forumfeeds/rss_conduit.jsp?feed=recent_posted_threads"; xmlDocs[2] = "/_components/forumfeeds/rss_conduit.jsp?feed=recent_watched_threads"; function showAllThreads(feedType) { document.getElementById('forum_all_threads').className = 'tab On'; if ((document.getElementById('forum_my_threads')) && (document.getElementById('forum_watchlist'))) { document.getElementById('forum_my_threads').className = 'tab'; document.getElementById('forum_watchlist').className = 'tab'; } writeForumsFeed(feedType, 0); } function showMyThreads(feedType) { document.getElementById('forum_all_threads').className = 'tab'; document.getElementById('forum_my_threads').className = 'tab On'; document.getElementById('forum_watchlist').className = 'tab'; writeForumsFeed(feedType, 1); } function showWatchList(feedType) { document.getElementById('forum_all_threads').className = 'tab'; document.getElementById('forum_my_threads').className = 'tab'; document.getElementById('forum_watchlist').className = 'tab On'; writeForumsFeed(feedType, 2); } //RSS NEWS FEED function writeForumsFeed(feedType,feedNum) { loadXMLDoc(xmlDocs[feedNum],'rss' + feedNum,function(){doForumRSSReady(feedType,feedNum)},function(){doForumRSSWait(feedType,feedNum)}); } function doForumRSSWait(feedType,feedNum) { var forumBlock = getElm(feedType); if(!forumBlock) return; var waitHTML = "