﻿var pics=new Array(
		"images/home.png","images/home2.png",
		"images/account.png","images/account2.png",
		"images/news.png","images/news2.png",
		"images/phaddrar.png","images/phaddrar2.png",
		"images/members.png","images/members2.png",
		"images/nollor.png","images/nollor2.png",
		"images/alumni.png","images/alumni2.png",
		"images/pictures.png","images/pictures2.png",
		"images/movies.png","images/movies2.png",
		"images/history.png","images/history2.png",
		"images/guestbook.png","images/guestbook2.png",
		"images/files.png","images/files2.png",
		"images/links.png","images/links2.png",
		"images/menutop.png",
		"images/menuleft.png",
		"images/menuend.png"
	);
					
var imgObjs=		new Array(pics.length);

function startLoading()
{
	for(i=0;i<pics.length;i++)
	{
		imgObjs[i]=new Image();
		imgObjs[i].onerror=imgFailed;
		imgObjs[i].src=pics[i];
	}
}

function imgFailed()
{
	alert("The following image failed to load, probably a broken link:\n" + this.src + "\nPlease contact the webmaster about this. The script will skip this file now.");
}

