
//*
//* To add any sponsor, only add to sponsorImage for now 
//*
var sponsorMore  = new Array(	
/// #1
"&nbsp;2",
/// #2
"&nbsp;3",
/// #3
"&nbsp;4",
/// #4
"&nbsp;5",
/// #5
"&nbsp;6",
/// #6
"&nbsp;7",
/// #7
"&nbsp;8",
/// #8
"&nbsp;9",
/// #9
"&nbsp;",
/// #10
"&nbsp;10",
/// #11
"&nbsp;11",
/// #12
"&nbsp;12",
/// #13
"&nbsp;13",
/// #14
"&nbsp;14",
/// #15
"&nbsp;15",
/// #16
"&nbsp;16"
);

var sponsorStory  = new Array(
/// #1
"&nbsp;",
/// #2
"&nbsp;",
/// #3
"&nbsp;",
/// #4
"&nbsp;",
/// #5
"&nbsp;",
/// #6
"&nbsp;",
/// #7
"&nbsp;",
/// #8
"&nbsp;",
/// #9
"&nbsp;",
/// #10
"&nbsp;",
/// #11
"&nbsp;",
/// #12
"&nbsp;",
/// #13
"&nbsp;",
/// #14
"&nbsp;",
/// #15
"&nbsp;",
/// #16
"&nbsp;"
);

var sponsorImage = new Array(	
// #1
"<a href='http://www.boeing.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_boeing.gif' border='0' width='180' height='49'></a>",
// #2
"<a href='http://www.schneider.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_schneider.gif' border='0' width='180' height='100'></a>",
// #3
"<a href='http://www.silvertowne.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_silvertowne.gif' border='0' width='180' height='100'></a>",
// #4
"<a href='https://www.triwest.com/triwest/default.html' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_triwest.gif' border='0' width='180' height='100'></a>",
// #5
"<a href='http://www.hnfs.net' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_healthnet.gif' border='0' width='180' height='100'></a>",
// #6
"<a href='http://www.geico.com/landingpage/go51.htm?logo=17851' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_geico.gif' border='0' width='180' height='100'></a>",
// #7
"<a href='https://www.usaa.com/inet/ent_logon/Logon?adid=eangusmwr' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_usaa.gif' border='0' width='120' height='120'></a>",
// #8
"<a href='http://www.american-bdg.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_abdg.gif' border='0' width='180' height='100'></a>",
// #9
"<a href='http://http://www.american-equity.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_amereq.gif' border='0' width='180' height='100'></a>",
// #10
"<a href='http://www.drs.com' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_drs.gif' border='0' width='180' height='100'></a>",
// #11
"<img src='/olc/images/LCNG/hp-rotate/sponsors_humana.gif' border='0' width='180' height='100'>",
// #12
"<a href='http://www.drash.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_drash.gif' width='180' height='50' alt='' border='0'></a>",
// #13
"<a href='http://www.express-scripts.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_express.jpg' width='180' height='51' alt='' border='0'></a>",
// #14
"<a href='http://www.saic.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_saic.gif' width='100' height='43' alt='' border='0'></a>",
// #15
"<a href='http://www.teamwendy.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_wendy.gif' width='91' height='67' alt='' border='0'></a>",
// #16
"<a href='http://www.bohenvironmental.com/' target='_new'><img src='/olc/images/LCNG/hp-rotate/sponsors_boh.jpg' width='180' height='50' alt='' border='0'></a>"
);
								
									
//---------------------- DO NOT MODIFY BELOW THIS LINE ---------------------------------------//
var gl_quote 	= '';
var gl_dash	 	= '';
var gl_newline = ''; 
var gl_empty 	= '&nbsp;';
var gl_max_tries = 16;
									
									
function writeSponsors()
{
	var tmpQuote;
	var tmpAuthor;
	var tmpSchool;
	var tmpBuff;
	var theDate;
	var seconds;
	var attempts = 0;
	var msgCount;
	
	index = getRandomNumber( sponsorImage.length );

	tmpQuote  = sponsorImage[index];
//	tmpAuthor = sponsorStory[index];
//	tmpSchool = sponsorMore[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;	

	tmpBuff = gl_quote + tmpQuote + gl_quote +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 );	
}

