function loadFeedControl(){var a=new google.feeds.FeedControl();var c=[];c=getFeeds();for(var b=0;b<c.feeds.length;b++){if(c.feeds[b].feedUrl.length>0){a.addFeed(c.feeds[b].feedUrl,c.feeds[b].title)}}a.setLinkTarget(google.feeds.LINK_TARGET_BLANK);if(typeof gFeedDivID=="undefined"){a.draw(document.getElementById("feedControl"),{drawMode:google.feeds.FeedControl.DRAW_MODE_TABBED})}else{a.draw(document.getElementById(gFeedDivID),{drawMode:google.feeds.FeedControl.DRAW_MODE_TABBED})}}function loadDynamicFeedControl(){var c={displayTime:5000,fadeOutTime:500,stacked:true};if(typeof gFeedOptions!="undefined"){c=gFeedOptions}var a=[];var b;if(typeof gFeedDivID=="undefined"){b=new GFdynamicFeedControl(getFeedUrls(),"feedControl",c)}else{b=new GFdynamicFeedControl(getFeedUrls(),gFeedDivID,c)}}function loadNewFeedControl(f,e,d){var c={displayTime:5000,fadeOutTime:500,stacked:true};if(typeof d!="undefined"){c=d}var a=[];var b;if(e.length<=0){b=new GFdynamicFeedControl(getFeedUrls(),"feedControl",c)}else{b=new GFdynamicFeedControl(getFeedUrls(f),e,c)}}function getFeeds(){var a={feeds:[]};if(typeof oFeeds=="object"){return oFeeds}else{if(typeof aSchools!="undefined"){for(var c=0;c<aSchools.length;c++){if(aSchools[c].name==gsLocation){if(aSchools[c].Feeds){a.feeds=aSchools[c].Feeds}}}for(var b=0;b<schoolDistrict.Feeds.length;b++){a.feeds.push(schoolDistrict.Feeds[b])}}return a}}function getFeeds_old(){var a;if(typeof d!="object"){var d={feeds:[]};if(typeof aSchools!="undefined"){for(var c=0;c<aSchools.length;c++){if(aSchools[c].name==gsLocation){if(aSchools[c].Feeds){d.feeds=aSchools[c].Feeds}}}for(var b=0;b<schoolDistrict.Feeds.length;b++){d.feeds.push(schoolDistrict.Feeds[b])}}}a=d;return a}function getGlobalFeedUrls(){var b=[];var c=[];c=getFeeds();for(var a=0;a<c.feeds.length;a++){if(c.feeds[a].feedUrl.length>0){b.push(c.feeds[a].feedUrl)}}return b}function getFeedUrls(d){var b=[];var c=[];if(typeof d=="undefined"){c=getFeeds()}else{c=d}for(var a=0;a<c.feeds.length;a++){if(c.feeds[a].feedUrl.length>0){b.push(c.feeds[a].feedUrl)}}return b}google.load("feeds","1");google.setOnLoadCallback(initSchoolFeeds);function initSchoolFeeds(){if(typeof gsLocation!="undefined"){gFeedOptions={displayTime:8000,fadeOutTime:1000,stacked:true};loadDynamicFeedControl()}}function initBlogFeeds(){var b={feeds:[{feedUrl:"http://www.loudounrealestateblog.com/feed",title:"test"}]};var c="feedGadgetLCRB";var a={displayTime:12000,fadeOutTime:1000,numResults:4};loadNewFeedControl(b,c,a)}function initGeneralFeeds(){var b={feeds:[{feedUrl:"http://loudoun.vhost.vipnet.org/rss/headlines.xml",title:"Loudoun County Government Headlines"},{feedUrl:"http://loudoun.vhost.vipnet.org/rss/news.xml",title:"Loudoun County Government News"},{feedUrl:"http://www.visitloudoun.org/events/events_rss.xml",title:"Upcoming Events in Loudoun County"},{feedUrl:"http://cmsweb1.loudoun.k12.va.us/loudoun/Lib/loudoun/_RSS/51181.xml",title:"Loudoun County Headlines"},{feedUrl:"http://cmsweb1.loudoun.k12.va.us/loudoun/Lib/loudoun/_RSS/51183.xml",title:"Loudoun County Announcements"}]};var c="feedGadgetHorizontal";var a={displayTime:12000,fadeOutTime:1000,numResults:6};loadNewFeedControl(b,c)};