
//*
//* To add any feature, you must supply all three, featureImage, featureStory, and featureMore.
//*
var featureMore  = new Array(	
// #1
"&nbsp;&nbsp;",
// #2
"&nbsp;&nbsp;",
// #3
"&nbsp;&nbsp;",
/// #4
"&nbsp;",
// #5
"&nbsp;&nbsp;",
// #6
"&nbsp;&nbsp;",
// #7
"&nbsp;&nbsp;",
// #8
"&nbsp;&nbsp;",
// #9
"&nbsp;&nbsp;",
// #10
"&nbsp;&nbsp;",
// #11
"&nbsp;&nbsp;"
);

var featureStory  = new Array(
// #1
"<i>We are just giving back to an institution that has helped mold us into the people we are today. Not a day goes by that we don't appreciate something we learned or remember something we did at BSC. How can we afford not to support the College that gave us such a strong foundation?</i><br><b> Thomas & Jennifer Waters ’86 & ’86</b>",
// #2
"<i>BSC provided me with such a wonderful foundation for my life and my career.  I want to be sure that the tradition continues and that future students are able to enjoy the same excellent education and life-changing experiences.<br><b>Emily Kyzer  ‘00",
// #3
"<i>Linda and I came to understand that you don't have to wait until you can give big dollars to give. The important thing to do is to give something.  Like so many things in life, once you instill the discipline to give, as your financial situation improves you simply increase the giving.</i><br><b>Carl & Linda Crosby ’83 & ’83</b>",
/// #4
"<i>We give because the value of what the College gave to us more than exceeds the tuition we paid.  Our years at BSC were very formative years that set our path for the future. We were taught to think for ourselves, to think critically, to ask more interesting questions rather than to settle for easy answers. We were taught by professors who knew us, who cared about us, who personally challenged us and who counseled us beyond the classroom.  We give so that others may know the same joys and experiences and have the same foundation for their future.</i><br><b>Charlie & Meg Guyton ’74 & ‘76</b>",
// #5
"<i>Judith and I feel we were both very fortunate to have had the Birmingham-Southern experience. A liberal arts education; small classes; getting to know faculty, staff and the college president are all big pluses for Southern. We feel that we received a quality education and established many life long friendships. When the topic of educational background and Birmingham Southern ever comes up in conversations, we have found that many people through out the southeast know and respect the college.  We are proud to be a part of the BSC family and appreciate the opportunity to support the college over the years and look forward to its dynamic future.</i><br><b>Jim and Judith Humphreys ’68 & ‘69</b>",
// #6
"<i>I feel an obligation to Birmingham-Southern College for allowing me the opportunity to receive a quality education. I attribute my success in business and other accomplishments to my experience at BSC. Consequently, I am trying to support Birmingham-Southern's goals so they may be able to offer the same to today's young people. Sincerely,</i><br><b>Pat Courington, Jr. ‘63</b>",
// #7
"<i>What motivates us to be loyal supporters of BSC after over 50 years away from our initial diploma? The quick easy answer is that BSC made us who we are today. Two major interests of our entire lives have been education and religion. BSC is one of two places where both interests intersect.  We give to BSC because it is primarily responsible for our life being filled with those memories and continuing interests which count the most to us.</i> <br><b>Manly and Harriet Yielding ’51 & ‘53</b>",
// #8
"<i>My commitment stems from personal relationships with faculty and staff before and during my years on campus. The sincere interest they took in me made me feel so special and I wanted to be as kind and helpful to others as they were to me.  Sincerely,</i><br><b>Emily Bell Wirtes, '90</b>",
// #9
"<b>Tom Jeffries</b>: <i>BSC was very generous to me, and I hope I'm returning the favor to a future student.</i><br><br><b>Louisa Jeffries</b>: <i>I had such great, eye-opening experiences in college -- like meaningful community service, out-of-the-ordinary travel, cherished relationships. Tom and I want to do what we can to help Birmingham-Southern continue to be a place that changes lives.</i>",
// #10
"<i>Our loyalty to BSC developed while we were students. Specifically, we felt like the professors and Dr. Berte took an interest in us and knew what we did on campus. They knew what we needed to do to go to law school and medical school. They were active in helping us accomplish those things. Dr. Berte, Dean Penfield and others took an interest in assisting us in not only being admitted to law school and medical school but obtaining scholarships too. The fact that we met each other at BSC doesn't hurt either.</i><br><b>Missy and Lynn Ridgeway ’90 & ‘88</b>",
// #11
"<i>Birmingham-Southern provided opportunities that changed our lives.  From mentors who helped to mold our thinking to friends who remain cherished today, we continue to be influenced by our time spent on the Hilltop. We support the College out of gratitude for the gifts it has provided to us, and to ensure that it provides the same opportunities for students in the future.</i><br><b>Julie and Robert Lockwood ‘92 & ‘92</b>"

);
									
var featureImage    = new Array(	
// #1
"<img src=/olc/images/BSL/Waters_edited.JPG border=0><br>",
// #2
"<img src=/olc/images/BSL/Emily-Kyzer.jpg border=0><br>",
// #3
"<img src=/olc/images/BSL/Carl-Linda-Crosby.jpg border=0><br>",
// #4
"<img src=/olc/images/BSL/Guytons.jpg border=0><br>",
// #5
"<img src=/olc/images/BSL/judith-jim-mac-humphries.jpg border=0><br>",
// #6
"<img src=/olc/images/BSL/pat-courington.jpg border=0><br>",
// #7
"<img src=/olc/images/BSL/Manly-Harriet-Yeilding.jpg border=0><br>",
// #8
"<img src=/olc/images/BSL/Emily-Bell-Wirtes.jpg border=0><br>",
// #9
"<img src=/olc/images/BSL/Tom-Louisa-Jeffries.jpg border=0><br>",
// #10
"<img src=/olc/images/BSL/Missy_edited.jpg border=0><br>",
// #11
"<img src=/olc/images/BSL/Lockwood24.jpg border=0><br>"
);
								

									
//---------------------- DO NOT MODIFY BELOW THIS LINE ---------------------------------------//
var gl_quote 	= '';
var gl_dash	 	= '';
var gl_newline = ''; 
var gl_empty 	= '&nbsp;';
var gl_max_tries = 11;
									
									
function writeFeature()
{
	var tmpQuote;
	var tmpAuthor;
	var tmpSchool;
	var tmpBuff;
	var theDate;
	var seconds;
	var attempts = 0;
	var msgCount;
	
	msgCount = getArrayFillLength( featureImage ); 

	if( msgCount == 0 )
	{
		document.write( gl_newline + gl_empty + gl_newline );
		return( false );
	}
	
	msgCount--; //modulus is zero based

	for( i=0; i < gl_max_tries; i++ )
	{
		theDate = new Date();
		index = theDate.getSeconds() % 11;
		
//		alert( "for i=" + i + "::Seconds=" + theDate.getSeconds()+ "::msgCount=" + msgCount +  "::index=" + index );
		
		if( index <= msgCount )
		{
			theDate = null;
			break;
		}
		theDate = null;
	}


	
	if( i == gl_max_tries )
	{
		index = 0;
	}
	tmpQuote	 = featureImage[index];
	tmpAuthor = featureStory[index];
	tmpSchool = featureMore[index];

	if( tmpQuote == "" )
	{
		document.write( gl_newline + gl_empty + gl_newline );
		return false;
	}
	if( tmpAuthor == "" )
	{
		tmpAuthor = gl_empty;
	}
	if( tmpSchool == "" )
	{
		tmpSchool = gl_empty;
	}	
	tmpBuff = gl_quote + tmpQuote + gl_quote + 
	          gl_newline + gl_newline + gl_dash + 
				 tmpAuthor + gl_newline + tmpSchool +
				 gl_newline;
	document.write( tmpBuff );		
 	return true;
}

function getArrayFillLength( this_array )
{
	var count = 0;
	
	for( count=0;  count < this_array.length; count++ )
	{
		if( this_array[count] == "" )
		{
			break;
		}
	}
	return( count );	
}

