///////////////////////////////////////////////////////////
/// 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 = 
[
['index.htm', 	'graphics/1 (1).jpg', 	'Prayer (Jincy & Sreelekshmi [IIIBCA])'			],		//  ['URL to linked page', 'URL to image', 'Caption under picture']	//
['index.htm', 	'graphics/1 (2).jpg', 	'Speech- Hon. Minister. C. Divakaran(Food & Civil Supplies)'		],		//  The captioquired and may be left blank like this:		//
['index.htm', 	'graphics/1 (3).jpg', 	'Mr. Manu-Speech'	],		//  ['URL to linked page', 'URL to image', '']							//
['index.htm', 	'graphics/1 (4).jpg', 	'snctrc'			],		//  Add as many images as you like seperated by commmas					//
['index.htm', 	'graphics/1 (5).jpg', 	'President Speech'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (6).jpg', 	'Principal Inviting RajaSahib'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (7).jpg', 	'Hon.Manager. Mr.A. Somarajan'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (8).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (9).jpg', 	'Hon.Principal. Mr. K.R Praveen Sen'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (10).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (11).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (12).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (13).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (14).jpg', 	'Iighting the lamp- Hon. Minister. C. Divakaran(Food & Civil Supplies)'				],		//  Almost ALL errath being wrong 		//
['index.htm', 	'graphics/1 (15).jpg', 	'Hon.SNDP Union President. Mr.K. Suseelan'				],		//  Almost ALL errors are caused by the  or path being wrong 		//
['index.htm', 	'graphics/1 (16).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (17).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (18).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (19).jpg', 	'Rajasahib Programme@SN Auditorium'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (20).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (21).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (22).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (23).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (24).jpg', 	'Mr.Raja Sahib (Cine Artist)'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (25).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (26).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (27).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (28).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (29).jpg', 	'Hon.Vice.Principal. Mrs.Sudha Rajeev'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (30).jpg', 	'Prof. Radhakrishna Kurup(Faculty of Malayalam SNCTRC)-Speech'				],		//  Almost  url or path being wrong 		//
['index.htm', 	'graphics/1 (31).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (32).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (33).jpg', 	'Hon.Principal. Mr. K.R Praveen Sen'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (34).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (35).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (36).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (37).jpg', 	'Akhilesh(IIIBBA), Sudha Rajeev, Deepuraj, Hari'				],		//  Almost  are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (38).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (39).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (40).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (41).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (42).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (43).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (44).jpg', 	'Speech-Principal'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (45).jpg', 	'President Congratulating Harikuttan'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (46).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (47).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (48).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (49).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (50).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (51).jpg', 	'Speech- Hon. Minister. C. Divakaran(Food & Civil Supplies)'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (52).jpg', 	'Prayer (Jincy & Sreelekshmi [IIIBCA])'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1 (53).jpg', 	'Snctrc'				],		//  Almost ALL errors are caused by the url or path being wrong 		//
['index.htm', 	'graphics/1.jpg', 	'Snctrc'			]		//  The LAST image declaration does NOT have a comma after it			//
];


var ImageCount		= 54;			//  *****  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 	//
var randomnumber	= 0;			//  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; 				

ImageIndex = Math.floor(Math.random()*ImageCount);																				

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()