function makeNews(c,f){
	this.copy = c;
	
	this.follow = f;
	
	this.write = writeNews;
}

function writeNews(){
	
	var str = '<div><b>';
	str += this.copy + '</b></div><div style="color: #4b4393;" align="right">';
        str +=  '<i><small>' + this.follow + '</small></i></div>';
	return str;
}

var newsArray = new Array();
newsArray[0] = new makeNews('"Each of the finalists and winners of the Intel Schools of Distinction program is to be applauded for demonstrating that excellence is not a notion, but an everyday effort by teachers, students, parents and administrators working together to accomplish something extraordinary."','-- Betsy Hill, president and chief operating officer of Learning Enhancement Corporation, publisher of BrainWare Safari').write();

newsArray[1] = new makeNews('"CTL is honored to be associated with the Intel Schools of Distinction Awards program. As a company that has been focused on providing technology solutions for educators since 1989, we are impressed and excited about the innovative math and science programs implemented by all of the SoDA finalists."','-- Erik Stromquist, Executive Vice President').write();

newsArray[2] = new makeNews('"Congratulations to the Schools of Distinction. These schools realize the vital importance of engaging students in math and science, and they’re doing so in way that creates enthusiasm for learning. They serve as models for schools across the country. DyKnow is proud to be a part of this program."','-- Laura Small, President, DyKnow').write();

newsArray[3] = new makeNews('"We couldn’t be happier to support an award that recognizes the outstanding achievements of schools in math and science studies.  These are two subjects with extremely challenging curricula, and these schools are giving their students a competitive edge in preparing them for the future."','-- Steve Kaye, CEO and President, eInstruction').write();
newsArray[4] = new makeNews('"These six outstanding schools from around the country exemplify the ways that innovative educators are using the power of technology to make math and science come alive for their students. We are proud to recognize their achievements by contributing schoolwide licenses for our visual learning software tools and supporting curriculum materials to the award packages that they will receive."','-- Mona Westhaver, President and Co-founder, Inspiration Software.').write();

newsArray[5] = new makeNews('"Every one of these schools offer a great example of what can be achieved when the latest technology, along with incredibly collaborative environments, are incorporated into math and science programs. These schools are equipping their students with skills that will support them throughout their education, whether solving every-day challenges or in their future careers."','-- Anthony Salcito, General Manger of US Education, Microsoft.').write();
newsArray[6] = new makeNews('"As an elementary magnet school Sojourner Elementary [the Star Innovator] has shown what is possible when technology and an understanding of how children learn best are combined at the school level.  This very impressive and innovative program should serve as an example of how to enter the 21st century and excel."','John Kenney, Education Partnerships Manager, PASCO Scientific').write();
newsArray[7] = new makeNews('"SMART Technologies has worked closely with Intel since 1992 and we continue to support Intel’s School of Distinction Awards, recognizing excellence in math and science education. We extend our congratulations to the Star Innovator winner and to all finalists for achieving such tremendous success as recognized role models in teaching and learning. We&rsquo;re delighted to support their continued success."','Nancy Knowlton, CEO, SMART.').write();
newsArray[8] = new makeNews('"SpectrumK12 is honored to participate in Intel’s Schools of Distinction Award program.  The dedication of these exemplary educators and award recipients is an inspiration to fellow professionals who are dedicated to ensuring that all students reach their highest potential."','-- Carmi Paris, VP Corporate Development, Spectrum K12 School Solutions, Inc.').write();
//var nIndex = 0;
var UnRoundIndex = Math.floor(Math.random()*8); 
var nIndex=Math.floor(UnRoundIndex); 
var timerID = null;
function rotateQuote(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('stories').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateQuote()',120000);
}
function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateQuote()', 120000);
	}
}

