var sc = 21;
    var s = new Array(sc);
    s[0] = "1 out of 8 couples married in the U.S. last year met via social media";
    s[1] = "1 in 6 higher education students are enrolled in online curriculum";
    s[2] = "80% of companies using LinkedIn as a primary tool to find employees";
    s[3] = "The fastest growing segment on Facebook is 55-65 year-old females";
    s[4] = "80% of Twitter usage is outside of Twitter";
	s[5] = "In 2009 Boston College stopped distributing e-mail addresses to incoming freshmen";
	s[6] = "What happens in Vegas stays on YouTube, Flickr, Twitter, Facebook…";
	s[7] = "The #2 largest search engine in the world is YouTube";
	s[8] = "There are over 200,000,000 Blogs";
	s[9] = "54% = Number of bloggers who post content or tweet daily";
	s[10] = "Word of mouth is now world of mouth";
	s[11] = "34% of bloggers post opinions about products & brands";
	s[12] = "78% of consumers trust peer recommendations";
	s[13] = "Only 14% of consumers trust advertisements";
	s[14] = "Only 18% of traditional TV campaigns generate a positive ROI";
	s[15] = "90% of people that have TiVo fast forward through ads";
	s[16] = "Hulu has grown from 63 million total streams in April 2008 to 373 million in April 2009";
	s[17] = "25% of Americans in the past month said they watched a short video…on their phone";
	s[18] = "According to Jeff Bezos 35% of book sales on Amazon are for the Kindle when available";
	s[19] = "Formed in 2004, Flickr now hosts more than 3.6 billion user images.";
	s[20] = "Universal McCann reports that 77% of all active internet users regularly read blogs.";
	s[21] = "63% of Americans had broadband in 2009, an increase of 15% since 2008. ";
	
    function pickRandom(range) {
        if (Math.random)
            return Math.round(Math.random() * (range-1));
        else {
            var now = new Date();
            return (now.getTime() / 1000) % range;
        }
    }
 var choice = pickRandom(sc);
 document.getElementById('topfeed').innerHTML = "<b><font color='#555555'>SmartFacts:</font></b>&nbsp;" + s[choice] + "&nbsp;&nbsp;<a href='Javascript:addnew();'><img src='images/smartfeed.gif' /></a>" ;
 

function addnew(){
 var sc = 21;
    var s = new Array(sc);
    s[0] = "1 out of 8 couples married in the U.S. last year met via social media";
    s[1] = "1 in 6 higher education students are enrolled in online curriculum";
    s[2] = "80% of companies using LinkedIn as a primary tool to find employees";
    s[3] = "The fastest growing segment on Facebook is 55-65 year-old females";
    s[4] = "80% of Twitter usage is outside of Twitter";
	s[5] = "In 2009 Boston College stopped distributing e-mail addresses to incoming freshmen";
	s[6] = "What happens in Vegas stays on YouTube, Flickr, Twitter, Facebook…";
	s[7] = "The #2 largest search engine in the world is YouTube";
	s[8] = "There are over 200,000,000 Blogs";
	s[9] = "54% = Number of bloggers who post content or tweet daily";
	s[10] = "Word of mouth is now world of mouth";
	s[11] = "34% of bloggers post opinions about products & brands";
	s[12] = "78% of consumers trust peer recommendations";
	s[13] = "Only 14% of consumers trust advertisements";
	s[14] = "Only 18% of traditional TV campaigns generate a positive ROI";
	s[15] = "90% of people that have TiVo fast forward through ads";
	s[16] = "Hulu has grown from 63 million total streams in April 2008 to 373 million in April 2009";
	s[17] = "25% of Americans in the past month said they watched a short video…on their phone";
	s[18] = "According to Jeff Bezos 35% of book sales on Amazon are for the Kindle when available";
	s[19] = "Formed in 2004, Flickr now hosts more than 3.6 billion user images.";
	s[20] = "Universal McCann reports that 77% of all active internet users regularly read blogs.";
	s[21] = "63% of Americans had broadband in 2009, an increase of 15% since 2008. ";
	
    function pickRandom(range) {
        if (Math.random)
            return Math.round(Math.random() * (range-1));
        else {
            var now = new Date();
            return (now.getTime() / 1000) % range;
        }
    }
 var choice = pickRandom(sc);
 
 document.getElementById('topfeed').innerHTML = "<b><font color='#555555'>SmartFacts:</font></b>&nbsp;" + s[choice] + "&nbsp;&nbsp;<a href='Javascript:addnew();'><img src='images/smartfeed.gif' /></a>" ;
 }

//function for toggle hiding divs
 
 function toggle(valuehere) {
	var ele = document.getElementById(valuehere);
	if(ele.style.display == "block") {
    	ele.style.display = "none";
  	}
	else {
		ele.style.display = "block";
	}
} 