//Preload images
function PreloadImages(path,aryImg) {
	// path - images path, default value being '/images/'
	// aryImg - an array containing all the images
	var img = new Image();
	for(var i=0;i<aryImg.length;i++)
		img.src = path + aryImg[i];	
}

//Change the source value for the passed parameter
function SwapImage(obj,value){
	obj.src = value;
}