	//*************IMAGE PATH*************************	var ImagePath = "http://i.theuseful.com/t/3447/"	//Category-GiftID Reference	var cat_Apparel = new Array(8169, 13122, 4311);	var cat_Electronics = new Array(271, 274, 275, 194, 20363, 20329, 20328, 20327, 20326, 20325, 21079, 18626, 18227, 3679, 12076, 204, 384);	var cat_GiftCards = new Array(525, 13950, 18481, 16561, 530, 18226, 24887, 18202, 21389, 285);	var cat_CellPhones = new Array(24214, 19660, 19661, 369, 773, 1356, 4500, 23306, 214, 23566);				Array.prototype.inArray = function (value)	{			var x;			for (x = 0; x < this.length; x++) 			{									if (this[x] == value) 												return true;			}			return false;	};			function PreloadGifts()	//Preload gift images for all categoriess	{    if (document.images)    {      PreloadImage = new Image();      var x = 0;						for(x=0; x < cat_Apparel.length; x++) 				PreloadImage.src = ImagePath + cat_Apparel[x] + ".jpg";							for(x=0; x < cat_Electronics.length; x++) 							PreloadImage.src = ImagePath + cat_Electronics[x] + ".jpg";							for(x=0; x < cat_GiftCards.length; x++) 				PreloadImage.src = ImagePath + cat_GiftCards[x] + ".jpg";							for(x=0; x < cat_CellPhones.length; x++) 				PreloadImage.src = ImagePath + cat_CellPhones[x] + ".jpg";				    }  }		function GetCategory(GiftID)	//Find the category for a GiftID	{				if(cat_Apparel.inArray(GiftID)) return "Apparel";		if(cat_Electronics.inArray(GiftID)) return "Electronics";		if(cat_GiftCards.inArray(GiftID)) return "GiftCards";		if(cat_CellPhones.inArray(GiftID)) return "CellPhones";			}		function ResetImages(Skip)	//Reset to default category images	{		if(Skip != "Apparel")			document.getElementById("imgApparel").src = ImagePath + "apparel.jpg";					if(Skip != "Electronics")			document.getElementById("imgElectronics").src = ImagePath + "electronics.jpg";				if(Skip != "GiftCards")			document.getElementById("imgGiftCards").src = ImagePath + "giftcards.jpg";				if(Skip != "CellPhones")			document.getElementById("imgCellPhones").src = ImagePath + "cellphones.jpg";			}		function SelectGift(GiftID)	//Adjust images for GiftID	{		ResetImages(GetCategory(GiftID));		document.getElementById("img" + GetCategory(GiftID)).src = ImagePath + GiftID + ".jpg";	}