
//*
//* 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;",
// #12
"&nbsp;&nbsp;",
// #13
"&nbsp;&nbsp;",
/// #14
"&nbsp;",
// #15
"&nbsp;&nbsp;",
// #16
"&nbsp;&nbsp;",
// #17
"&nbsp;&nbsp;",
// #18
"&nbsp;&nbsp;",
// #19
"&nbsp;&nbsp;",
// #20
"&nbsp;&nbsp;",
// #21
"&nbsp;&nbsp;",
// #22
"&nbsp;&nbsp;",
// #23
"&nbsp;&nbsp;",
/// #24
"&nbsp;",
// #25
"&nbsp;&nbsp;",
// #26
"&nbsp;&nbsp;"
);

var featureStory  = new Array(
// #1
"",
// #2
"",
// #3
"",
/// #4
"",
// #5
"",
// #6
"",
// #7
"",
// #8
"",
// #9
"",
// #10
"",
//#11
"",
//#12
"",
//#13
"",
//#14
"",
//#15
"",
//#16
"",
//#17
"",
//#18
"",
//#19
"",
//#20
"",
//#21
"",
//#22
"",
//#23
"",
//#24
"",
//#25
"",
//#26
""
);
									
var featureImage    = new Array(	
// #1
"<img src=/olc/images/CAAE/CAAE01.jpg border=0 width=200>",
// #2
"<img src=/olc/images/CAAE/CAAE02.jpg border=0 width=200>",
// #3
"<img src=/olc/images/CAAE/CAAE03.jpg border=0 width=200>",
// #4
"<img src=/olc/images/CAAE/CAAE04.jpg border=0 width=200>",
// #5
"<img src=/olc/images/CAAE/CAAE05.jpg border=0 width=200>",
// #6
"<img src=/olc/images/CAAE/CAAE06.jpg border=0 width=200>",
// #7
"<img src=/olc/images/CAAE/CAAE07.jpg border=0 width=200>",
// #8
"<img src=/olc/images/CAAE/CAAE08.jpg border=0 width=200>",
// #9
"<img src=/olc/images/CAAE/CAAE09.jpg border=0 width=200>",
// #10
"<img src=/olc/images/CAAE/CAAE10.jpg border=0 width=200>",
// #11
"<img src=/olc/images/CAAE/CAAE11.jpg border=0 width=200>",
// #12
"<img src=/olc/images/CAAE/CAAE12.jpg border=0 width=200>",
// #13
"<img src=/olc/images/CAAE/CAAE13.jpg border=0 width=200>",
// #14
"<img src=/olc/images/CAAE/CAAE14.jpg border=0 width=200>",
// #15
"<img src=/olc/images/CAAE/CAAE15.jpg border=0 width=200>",
// #16
"<img src=/olc/images/CAAE/CAAE16.jpg border=0 width=200>",
// #17
"<img src=/olc/images/CAAE/CAAE17.jpg border=0 width=200>",
// #18
"<img src=/olc/images/CAAE/CAAE18.jpg border=0 width=200>",
// #19
"<img src=/olc/images/CAAE/CAAE19.jpg border=0 width=200>",
// #20
"<img src=/olc/images/CAAE/CAAE20.jpg border=0 width=200>",
// #21
"<img src=/olc/images/CAAE/CAAE21.jpg border=0 width=200>",
// #22
"<img src=/olc/images/CAAE/CAAE22.jpg border=0 width=200>",
// #23
"<img src=/olc/images/CAAE/CAAE23.jpg border=0 width=200>",
// #24
"<img src=/olc/images/CAAE/CAAE24.jpg border=0 width=200>",
// #25
"<img src=/olc/images/CAAE/CAAE25.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE26.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE27.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE28.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE29.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE30.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE31.jpg border=0 width=200>",
// #26
"<img src=/olc/images/CAAE/CAAE32.jpg border=0 width=200>"
);
								

									
//---------------------- DO NOT MODIFY BELOW THIS LINE ---------------------------------------//
var gl_quote 	= '';
var gl_dash	 	= '';
var gl_newline = ''; 
var gl_empty 	= '&nbsp;';
var gl_max_tries = 35;
									
									
function writeNav()
{
	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() % 35;
		
//		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];
	
	if( tmpQuote == "" )
	{
		document.write( gl_newline + gl_empty + gl_newline );
		return false;
	}
	
	tmpBuff = gl_quote + tmpQuote + gl_quote;
	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 );	
}

