///////////////////////////////////////////////////////////
/// Magic Image Rotation								///
///	v 1.0.1												///
/// Copyright 2007, Loyce Bradley Petrey				///
///	All Rights Reserved.								///
/// http://www.EchoChrist.com/MagicImage				///
/// webmaster@EchoChrist.com							///
///														///
///	This script is free to use as long as this notice 	///
/// remains unchanged and intact.					 	///
///														///
/// This program is free software: you can redistribute ///
///	it and/or modify it under the terms of the GNU 		///
///	General Public License as published by the Free 	///
///	Software Foundation. 								///
///														///
/// This program is distributed in the hope that it 	///
/// will be useful, but WITHOUT ANY WARRANTY; without 	///
///	even the implied warranty of MERCHANTABILITY or 	///
///	FITNESS FOR A PARTICULAR PURPOSE.  					///
/// 													///
/// Be Imitators of God as dear children and walk		///
/// in love as Christ also loved us.					///
///	Ephesians 5:1-2										///
///////////////////////////////////////////////////////////

var ImageLoad = 
[
['banquet.htm', 	'images/banquet09/one.jpg', 	'Seniors Ryan Feaver and Matt Bowers'			],              		//  ['URL to linked page', 'URL to image', 'Caption under picture']	//
['banquet.htm', 	'images/banquet09/two.jpg', 	'Senior Mike Wolf and his proud parents'		],              		//  The caption is not required and may be left blank like this:		//
['banquet.htm', 	'images/banquet09/three.jpg', 	'Seniors Ryan Feaver, Jason Morvan, Dan Perhay & Matt Bowers'	],		//  ['URL to linked page', 'URL to image', '']							//
['banquet.htm', 	'images/banquet09/four.jpg', 	'Bob Hostoffer, alums Karen Hostoffer and Ed Carome'			],		//  Add as many images as you like seperated by commmas					//
['banquet.htm', 	'images/banquet09/five.jpg', 	'Sophomores Katie Knox and Dave Davenport'				],      		//  Almost ALL errors are caused by the url or path being wrong 		//
['banquet.htm', 	'images/banquet09/six.jpg', 	'Dick Hansler and alum Don Moore'			],
['banquet.htm', 	'images/banquet09/seven.jpg', 	'Dr. Day and Leah Wilson with her winning science project'			],
['banquet.htm', 	'images/banquet09/eight.jpg',   'Dr. Day, Leah Wilson and her parents'			],
['banquet.htm', 	'images/banquet09/nine.jpg', 	'Harry Nash, Kevin Sroub and'			],
['banquet.htm', 	'images/banquet09/ten.jpg',        	'Larry Washick, Joe Nieberding, Lyle Pauer Mike WIlt, Joe Haus and his wife, Jean'			],
['banquet.htm', 	'images/banquet09/eleven.jpg', 	'Ben Curatolo signs the book as a new member of the Society of Physics Students'			],
['banquet.htm', 	'images/banquet09/twelve.jpg', 	'Dr. Dyck welcomes Vince DeGeorge into the Society of Physics Students'			],
['banquet.htm', 	'images/banquet09/thirteen.jpg', 	'Dr. Dyck welcomes Brett Hernandez into the Society of Physics Students'			],
['banquet.htm', 	'images/banquet09/fourteen.jpg', 	'Jason Morvan, another new member of the Society of Physics Students'			],
['banquet.htm', 	'images/banquet09/fifteen.jpg', 	'Marie Pinti, another new member of the Society of Physics Students'			],
['banquet.htm', 	'images/banquet09/sixteen.jpg', 	'The 2009 SPS inductees: Ben Curatolo, Vince DeGeorge, Brett Hernandez, Jason Morvan and Marie Pinti '			],
['banquet.htm', 	'images/banquet09/seventeen.jpg', 	'Andrea Mitchell and Leah Wilson listen as Dr. Day presents their winning science projects from the Northeast Ohio Science & Engineering Fair'			],
['banquet.htm', 	'images/banquet09/eighteen.jpg', 	'Dr. Day presents Leah Wilson with her department-sponsored award for winning in her age group at the Northeast Ohio Science & Engineering Fair'			],
['banquet.htm', 	'images/banquet09/nineteen.jpg', 	'Dr. Day presents Andrea Mitchell with her department-sponsored award for winning in her age group at the Northeast Ohio Science & Engineering Fair'			],
['banquet.htm', 	'images/banquet09/twenty.jpg', 	'Marie Pinti is congratulated as the 2009 recipient of the Fr. Nichols Award'			],
['banquet.htm', 	'images/banquet09/twentyone.jpg', 	'Matt Bowers and Mike Wolf receive the 2009 Lawrence Monville Award'			],
['banquet.htm', 	'images/banquet09/twentytwo.jpg', 	'Dr. Day congratulates Matt'			],
['banquet.htm', 	'images/banquet09/twentythree.jpg',  'Dr. Day congratulates Mike'			],
['banquet.htm', 	'images/banquet09/twentyfour.jpg', 	'Dr. Day introduces the 2009 Distinghuished Alum, Joseph Haus'			],
['banquet.htm', 	'banquet09/twnetyfive.jpg', 	'Dr. Day congratulates Joe and presents him with a gift from the department'			],
['banquet.htm', 	'images/banquet09/twentysix.jpg', 	'Joe Haus speaks to the audience about the opportunities his degree in physics has afforded him'			],
['banquet.htm', 	'images/banquet09/twentyseven.jpg', 	'Andrea Mitchell, her parents and her science teacher in front of her winning science fair project'			]
['banquet.htm', 	'images/banquet09/twentyeight.jpg', 	'Marie Pinti, Diego Hernandez, Vince DeGeorge & Graciela Lacueva'			]		//  The LAST image declaration does NOT have a comma after it			//
];

var ImageCount		= 28;			//  *****  Change this to the total number of images loaded above  ***** 		//	
var ImageDelay		= 5000;			//  *****  Set this to the delay interval desired.  5000 = 5 seconds.			// 
var LinkTarget		= "_self"		//  *****  Defines where you want linked page to open. _self, _blank, _top, etc	//
var ImageIndex		= 0;			//  DO NOT ALTER	//
var FirstLoad 		= 0;			//  DO NOT ALTER	//
var QuickStartID 	= 0;  			//  DO NOT ALTER	//
var htmlString 		= ""			//  DO NOT ALTER 	//

//  This function rotates the banner  //
function ImageChange()

{		

htmlString = '<center>';
htmlString = htmlString + '<font face = "Verdana" size="2">';		//  Font and Font Size for caption may be changed here	//
htmlString = htmlString +'<a target="';
htmlString = htmlString + LinkTarget;
htmlString = htmlString + '" href="';
htmlString = htmlString + ImageLoad[ImageIndex][0];
htmlString = htmlString + '"><img border="0" src="';				//  Image border size may be changed here				//	
htmlString = htmlString + ImageLoad[ImageIndex][1];
htmlString = htmlString + '"></a><br>';
htmlString = htmlString + ImageLoad[ImageIndex][2];
htmlString = htmlString + '</font>';
htmlString = htmlString + '</center>';		

document.getElementById('MagicImage').innerHTML = htmlString; 				

if(ImageIndex == ImageCount - 1)		//  This statement increments image displayed and resets if displaying last image  //
{										
ImageIndex= 0;																				
}																								
else																							
{																								
ImageIndex++;																					
}																										

if(FirstLoad == 0)						//  Determins if this is the first time function has run.   // 
{
SlowFinish();
}

}
//  End Funtion  //

//  This function ensures first banner is displayted without a delay  //
function  QuickStart()
{
QuickStartID=setInterval("ImageChange()", 1000);
}
//  End Funtion  //																		

//  This function sets display rate to user defined speed  //
function SlowFinish()
{
clearInterval(QuickStartID);
FirstLoad = 1;
setInterval("ImageChange()", ImageDelay);	 
}
//  End Funtion  //

QuickStart()