/* This is a code stub to load other javascript code/functions for Stafford Communications */
/* Nick Vrtis - Stafford Communications Group - 2007 */
var scgItems = new Array();
/* Syntax is 'element ID','type (wc, rss)','parameters....' */
scgItems[0]=new Array('webcamimg','webcam','webcam/image.jpg',3);
scgItems[1]=new Array('oreilly','rss','http://www.oreillynet.com/pub/feed/30?format=rss2',3,'both');
scgItems[2]=new Array('makezine','rss','http://www.makezine.com/blog/index.xml',3,'both');
scgItems[3]=new Array('instructables','rss','http://www.instructables.com/tag/type:instructable/rss.xml',3,'both');
scgItems[4]=new Array('scoresbrief','rss','http://www.totallyscored.com/rss',3,'link');
scgItems[5]=new Array('scoresbody','rss','http://www.totallyscored.com/rss',10,'title');
scgItems[6]=new Array('sportsbody','rss','http://www.feedsfarm.com/frontpage/sport/rss',10,'both');
scgItems[7]=new Array('worldbrief1','rss','http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml',1,'title');
scgItems[8]=new Array('worldbrief2','rss','http://www.washingtonpost.com/wp-dyn/rss/world/index.xml',1,'title');
scgItems[9]=new Array('worldbrief3','rss','http://today.reuters.com/rss/topNews',1,'title');
scgItems[10]=new Array('worldbrief4','rss','http://www.npr.org/rss/rss.php?id=1004',1,'title');
scgItems[11]=new Array('worldbrief5','rss','http://www.worldpress.org/feeds/worldpresswire.xml',1,'title');
scgItems[12]=new Array('worldbody1','rss','http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml',5,'both');
scgItems[13]=new Array('worldbody2','rss','http://www.washingtonpost.com/wp-dyn/rss/world/index.xml',5,'both');
scgItems[14]=new Array('worldbody3','rss','http://today.reuters.com/rss/topNews',5,'both');
scgItems[15]=new Array('worldbody4','rss','http://www.npr.org/rss/rss.php?id=1004',5,'both');
scgItems[16]=new Array('worldbody5','rss','http://www.worldpress.org/feeds/worldpresswire.xml',5,'both');
scgItems[17]=new Array('sportsbrief1','rss','http://rss.cnn.com/rss/si_topstories.rss',1,'title');
scgItems[18]=new Array('sportsbrief2','rss','http://rss.cnn.com/rss/si_nba.rss',1,'title');
scgItems[19]=new Array('sportsbrief3','rss','http://rss.cnn.com/rss/si_hockey.rss',1,'title');
scgItems[20]=new Array('sportsbrief4','rss','http://rss.cnn.com/rss/si_mlb.rss',1,'title');
scgItems[21]=new Array('sportsbrief5','rss','http://rss.cnn.com/rss/si_nfl.rss',1,'title');
scgItems[22]=new Array('sportsbrief6','rss','http://rss.cnn.com/rss/si_fantasy.rss',1,'title');
scgItems[23]=new Array('sportsbody1','rss','http://rss.cnn.com/rss/si_topstories.rss',5,'link');
scgItems[24]=new Array('sportsbody2','rss','http://rss.cnn.com/rss/si_nba.rss',5,'link');
scgItems[25]=new Array('sportsbody3','rss','http://rss.cnn.com/rss/si_hockey.rss',5,'link');
scgItems[26]=new Array('sportsbody4','rss','http://rss.cnn.com/rss/si_mlb.rss',5,'link');
scgItems[27]=new Array('sportsbody5','rss','http://rss.cnn.com/rss/si_nfl.rss',5,'link');
scgItems[28]=new Array('sportsbody6','rss','http://rss.cnn.com/rss/si_fantasy.rss',5,'link');
scgItems[29]=new Array('statebrief1','rss','http://www.michigan.gov/rss/1,2348,7-136-46371--51743-,00.xml',1,'title');
scgItems[30]=new Array('statebrief2','rss','http://feeds.feedburner.com/mediamouse/all',1,'title');
scgItems[31]=new Array('statebrief3','rss','http://www.absolutemichigan.com/dig/feed/',1,'title');
scgItems[32]=new Array('statebrief4','rss','http://www.legislature.mi.gov/documents/publications/RssFeeds/billupdate.xml');
scgItems[33]=new Array('statebrief5','rss','http://www.michiganfarmbureau.com/rss/',1,'title',1,'title');
scgItems[34]=new Array('statebrief6','rss','http://www.michigan.gov/rss/1,2348,7-135-3304--30676-,00.xml',1,'title');
scgItems[35]=new Array('statebody1','rss','http://www.michigan.gov/rss/1,2348,7-136-46371--51743-,00.xml',5,'both');
scgItems[36]=new Array('statebody2','rss','http://feeds.feedburner.com/mediamouse/all',5,'both');
scgItems[37]=new Array('statebody3','rss','http://www.absolutemichigan.com/dig/feed/',5,'both');
scgItems[38]=new Array('statebody4','rss','http://www.legislature.mi.gov/documents/publications/RssFeeds/billupdate.xml',5,'both');
scgItems[39]=new Array('statebody5','rss','http://www.michiganfarmbureau.com/rss/',5,'both');
scgItems[40]=new Array('statebody6','rss','http://www.michigan.gov/rss/1,2348,7-135-3304--30676-,00.xml',5,'both');
scgItems[41]=new Array('marketbrief1','rss','http://www.forbes.com/finance/index.xml',1,'title');
scgItems[42]=new Array('marketbrief2','rss','http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml',1,'title');
scgItems[43]=new Array('marketbrief3','rss','http://www.forbes.com/markets/index.xml',1,'title');
scgItems[44]=new Array('marketbrief4','rss','http://www.fool.com/About/headlines/rss_headlines.asp',1,'title');
scgItems[45]=new Array('marketbody1','rss','http://www.forbes.com/finance/index.xml',5,'both');
scgItems[46]=new Array('marketbody2','rss','http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml',5,'both');
scgItems[47]=new Array('marketbody3','rss','http://www.forbes.com/markets/index.xml',5,'both');
scgItems[48]=new Array('marketbody4','rss','http://www.fool.com/About/headlines/rss_headlines.asp',5,'title');
scgItems[49]=new Array('outdoorsbrief1','rss','http://www.michigan.gov/rss/1,2348,7-153-38954--41595-,00.xml',1,'title');
scgItems[50]=new Array('outdoorsbrief2','rss','http://www.michigan.gov/rss/1,2348,7-153-10319--41590-,00.xml',1,'title');
scgItems[51]=new Array('outdoorsbrief3','rss','http://www.hunttheoutdoors.com/rss/hunting_articles.xml',1,'title');
scgItems[52]=new Array('outdoorsbrief4','rss','http://www.fishtheoutdoors.com/rss/fishing_articles.xml',1,'title');
scgItems[53]=new Array('outdoorsbrief5','rss','http://www.natureskills.com/outdoor-skills.xml',1,'title');
scgItems[54]=new Array('outdoorsbrief6','rss','http://www.bigfishtackle.com/rss/116.xml',1,'title');
scgItems[55]=new Array('outdoorsbrief7','rss','http://www.outdoorreview.com/rss/latestreviewsrss.aspx',1,'title');
scgItems[56]=new Array('outdoorsbrief8','rss','http://z.about.com/6/g/hunting/b/index.xml',1,'title');
scgItems[57]=new Array('outdoorsbody1','rss','http://www.michigan.gov/rss/1,2348,7-153-38954--41595-,00.xml',3,'both');
scgItems[58]=new Array('outdoorsbody2','rss','http://www.michigan.gov/rss/1,2348,7-153-10319--41590-,00.xml',3,'both');
scgItems[59]=new Array('outdoorsbody3','rss','http://www.hunttheoutdoors.com/rss/hunting_articles.xml',3,'both');
scgItems[60]=new Array('outdoorsbody4','rss','http://www.fishtheoutdoors.com/rss/fishing_articles.xml',3,'both');
scgItems[61]=new Array('outdoorsbody5','rss','http://www.natureskills.com/outdoor-skills.xml',3,'both');
scgItems[62]=new Array('outdoorsbody6','rss','http://www.bigfishtackle.com/rss/116.xml',3,'both');
scgItems[63]=new Array('outdoorsbody7','rss','http://www.outdoorreview.com/rss/latestreviewsrss.aspx',3,'both');
scgItems[64]=new Array('outdoorsbody8','rss','http://z.about.com/6/g/hunting/b/index.xml',3,'both');
/* Add a new entry above this line.  You can copy an existing one, but do not forget to
   change the number in the brackets [] */
var scgcnt=scgItems.length;
for (i=0; i<scgcnt; i++) {
//alert (scgItems[i][0]+'='+document.getElementById(scgItems[i][0]));
    if (document.getElementById(scgItems[i][0]) != null) {
        switch (scgItems[i][1]) {
            case 'rss':
                getFeed(scgItems[i][2],scgItems[i][0],scgItems[i][3],scgItems[i][4]);
            break;
            case 'webcam':
                webcamrefresh(scgItems[i][2],scgItems[i][0],scgItems[i][3]);
        }
    }
}
/*Find the links for the MAILTO: hack and convert them... */
scgcnt=document.links.length;
scgstr1='mail';
scgstr2='@';
for (i=0; i<scgcnt; i++) {
    scglink=document.links[i];
    if (scglink.hash.substr(0,2)=='#:') {
        scglink.href=scgstr1+'to'+':'+scglink.hash.substr(2)+scgstr2+scglink.host.substr(scglink.host.indexOf('.')+1);
    }
}