//pre-load images
var foleyImg = new Image();
foleyImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/foley_sm.jpg';
var cunninghamImg = new Image();
cunninghamImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/cunningham_sm.jpg';
var walshImg = new Image();
walshImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/walsh_sm.jpg';
var powersImg = new Image();
powersImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/powers_sm.jpg';
var wilsonImg = new Image();
wilsonImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/wilson_sm.jpg';
var rogersImg = new Image();
rogersImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/rogers_sm.jpg';
var roccosalvaImg = new Image();
roccosalvaImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/roccosalva_sm.jpg';
var donnamorrisImg = new Image();
donnamorrisImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/donnamorris_sm.jpg';
var grayImg = new Image();
grayImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/gray_sm.jpg';
var sanseveroImg = new Image();
sanseveroImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/sansevero_sm.jpg';
var nolanImg = new Image();
nolanImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/nolan_sm.jpg';
var arcoroImg = new Image();
arcoroImg.src = 'http://www.bc.edu/alumni/invest/bcfund/meta-elements/jpg/arcoro_sm.jpg';

function makeNews(c,l,f,i){
	this.copy = c;
	this.link = l;
	this.follow = f;
	this.img = i;
	this.write = writeNews;
}
function writeNews(){
      var str = '';
	  str += '<a href="' + this.link + '">';
      str += '<img hspace="5" vspace="5" align="left" src="' + this.img.src + '"></a>';
	  str +=  '<h3><a href="' + this.link + '">' + this.follow + '</a></h3>';
	  str += this.copy + '<br>';
      return str;
}

var newsArray = new Array();
newsArray[0] = new makeNews("<p><b>&quot;We thoroughly enjoyed our time at BC, and we want it to stay alive and viable so that other people can have the same experiences we and our children had.&quot;</b><br>For more than five decades, Carolyn '56 and Dan '55 Foley have maintained a family tradition of support of the University. Their own children and a grandchild have been beneficiaries here of that generosity.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile1.html','A Family Connection',foleyImg).write();

newsArray[1] = new makeNews("<p><b>&quot;By raising money for BC, we are ensuring that the next generation of students gets to experience this great university as my father and I have.&quot;</b><br>A father's inscription on a Gasson Tower stone links him with son, William J. Cunningham '57, in a decades-long arc of generosity to the University.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile9.html','Captured in Granite',cunninghamImg).write();

newsArray[2] = new makeNews("<p><b>&quot;As a family, and for me personally, giving back some of what I've been able to achieve over the years is very important.&quot;</b><br>A former running back for the Eagles, John F. Walsh '65 and his wife, Sara, and their daughters endow a scholarship to benefit the next generation of student-athletes.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile10.html','Giving to the Team',walshImg).write();

newsArray[3] = new makeNews("<p><b>&quot;BC gave me not only a great education but it instilled in me a strong set of core values that have served me well throughout my adult life.&quot;</b><br>The values instilled at BC in John J. Powers '73, P'10, P'10, gave him a strong foundation for business success.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile7.html','Strong Core',powersImg).write();

newsArray[4] = new makeNews("<p><b>&quot;In 1972, Boston College put its trust in me, and with my gift each year, I return that trust.&quot;</b><br>As a former university administrator, Dr. Blenda Wilson '79 appreciates the many ways that BC alumni can positively influence their alma mater. She gives to the annual fund because she believes in supporting the University's work today.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile2.html','A Lifelong Commitment',wilsonImg).write();

newsArray[5] = new makeNews("<p><b>&quot;My father taught me the value of a dollar and then I learned the value of great education at BC.&quot;</b><br>A first-generation college graduate, John A. Rogers '80 knows how valuable his BC education has been. Through gifts to the University, he and his wife, Michelle, enable tomorrow's students to enjoy BC as much as he has.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile11.html','A Premium on Education',rogersImg).write();

newsArray[6] = new makeNews("<p><b>&quot;BC hasn't sold out and it hasn't rested on its laurels. It feels more like a new place that's grown from tradition.&quot;</b><br>To David Roccosalva '80, MA'85, Boston College always progresses yet never wavers from its strong foundations.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile3.html','Progess Steeped in Tradition',roccosalvaImg).write();

newsArray[7] = new makeNews("<p><b>&quot;We recognized that we were able to attend college because alumni were giving back.&quot;</b><br>Donna Morris '81 and William Sweat, MBA '91 established the Joan and William Morris Scholarship Fund, which benefits students in the College of Arts and Sciences.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile8.html','Commitment Inspirited by Financial Aid',donnamorrisImg).write();

newsArray[8] = new makeNews("<p><b>&quot;I had a French professor at BC who said, 'Do something you love and the rest will fall into place.' This lesson has guided me throughout my career.&quot;</b><br>Spurred by the rich intellectual environment in which he studied at Boston College, Terrence S. Gray '92 travels the world for business.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile12.html','A World View',grayImg).write();

newsArray[9] = new makeNews("<p><b>&quot;BC gave me everything I could have hoped for&mdash;a great education, lots of friends, and the opportunity to grow into the person I am today.&quot;</b><br>Anthony Sansevero '99 leads a busy life as an active civil servant and yet always makes time to give to the University.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile5.html','Never Too Busy to Give',sanseveroImg).write();

newsArray[10] = new makeNews("<p><b>&quot;We give to Boston College because it has been a great experience for our kids.&quot;</b><br>Nancy and Ken Nolan have one child at Boston College and three who are recent graduates. Because of their great experiences here, the siblings encouraged one another to attend the University. Our kids are why we give, say Nancy and Ken.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile6.html','Kid Connection',nolanImg).write();

newsArray[11] = new makeNews("<p><b>&quot;We didn't attend BC, but we still feel like we're part of a tight-knit family there.&quot;</b><br>Robert and Patricia Arcoro's son graduated in 1999, but their support of the University keeps going. They endowed a scholarship fund at BC for students at the high school where they and their children attended.</p>",'http://www.bc.edu/alumni/invest/bcfund/who/profile13.html','Post-grad Parents',arcoroImg).write();


var nIndex = 0;
var timerID = null;
function rotateNews(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('stories').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateNews()', 8000);
}
function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateNews()', 1000);
	}
}
