// Create and array object for image objects
var ImgArr = new Array();

// Create new image objects and preload them
// by assigning the src property
ImgArr[0] = new Image();
ImgArr[0].src = "Images/Tabs/charityon.jpg";
ImgArr[1] = new Image();
ImgArr[1].src = "Images/Tabs/charityoff.jpg";
ImgArr[2] = new Image();
ImgArr[2].src = "Images/Tabs/photoson.jpg";
ImgArr[3] = new Image();
ImgArr[3].src = "Images/Tabs/photosoff.jpg";
ImgArr[4] = new Image();
ImgArr[4].src = "Images/Tabs/musicon.jpg";
ImgArr[5] = new Image();
ImgArr[5].src = "Images/Tabs/musicoff.jpg";
ImgArr[6] = new Image();
ImgArr[6].src = "Images/Tabs/diningon.jpg";
ImgArr[7] = new Image();
ImgArr[7].src = "Images/Tabs/diningoff.jpg";
ImgArr[8] = new Image();
ImgArr[8].src = "Images/Tabs/hotelon.jpg";
ImgArr[9] = new Image();
ImgArr[9].src = "Images/Tabs/hoteloff.jpg";
ImgArr[10] = new Image();
ImgArr[10].src = "Images/Tabs/ticketson.jpg";
ImgArr[11] = new Image();
ImgArr[11].src = "Images/Tabs/ticketsoff.jpg";
ImgArr[12] = new Image();
ImgArr[12].src = "Images/Tabs/contacton.jpg";
ImgArr[13] = new Image();
ImgArr[13].src = "Images/Tabs/contactoff.jpg";

function SwapImage(ObjImg, ImageIndex) {
	ObjImg.src = ImgArr[ImageIndex].src;
	return true;
}