/* ************************************************************************************************************** */
/*  Swap It  v1.0                                                                                                 */
/* ************************************************************************************************************** */
/*   Developed by: Duncan MacFarlane                                                                              */
/*   Owner / Operator                                                                                             */
/*   MacFarlane System Solutions                                                                                  */
/*   'Currently operating in'                                                                                     */
/*   Hamilton, Ontario, Canada                                                                                    */
/*   dmacfarlane3@cogeco.ca / macsyssol@cogeco.ca / SlamDunk_46@hotmail.com                                       */
/* ************************************************************************************************************** */
/*  The purpose of this script is to accelerate the process of swaping embedded document images on the fly via a  */
/*  simple function call.                                                                                         */
/* ************************************************************************************************************** */
/*  Syntax and Usage                                                                                              */
/* ************************************************************************************************************** */
/*  Array Setup:                                                                                                  */
/*  The beginnings of the image group have been provided below. You can modify this as you see fit. It is here    */
/*  where you would specify your file list locations of the images that are to be used in your project. You may   */
/*  provide absolute URL's or you may provide relative URL's. Copy and paste the list item specifications as many */
/*  times as necessary for each image to be used. Increment the index number for each image as applied.           */
/*                                                                                                                */
/*  Function Call Syntax:                                                                                         */
/*  swapIt(docImgName, Num);                                                                                      */
/*    The function call is as follows:                                                                            */
/*    swapIt(Document Image Name, Index Number);                                                                  */
/*    Document Image Name - The name Applied to the embedded image in your document using the name/id attribute   */
/*    of the image element.                                                                                       */
/*	  Index Number - Index number of the array element number to change the embedded document image to.           */
/* ************************************************************************************************************** */

if(document.images)
{
	imgSwapIt = new Array();

/* ************************************************************************************************************** */
/*  Modify from this point to specified ending point. Copy and paste the following line as needed.                */
/* ************************************************************************************************************** */

	imgSwapIt[0] = new Image();		imgSwapIt[0].src = "lauradenhertogaflame.jpg";
	imgSwapIt[1] = new Image();		imgSwapIt[1].src = "lauradenhertogascend.jpg";
	imgSwapIt[2] = new Image();		imgSwapIt[2].src = "lauradenhertogdappledlight.jpg";
	imgSwapIt[3] = new Image();		imgSwapIt[3].src = "lauradenhertogfieldroad.jpg";
	imgSwapIt[4] = new Image();		imgSwapIt[4].src = "lauradenhertoggifted.jpg";
	imgSwapIt[5] = new Image();		imgSwapIt[5].src = "lauradenhertoggrovereflected.jpg";
	imgSwapIt[6] = new Image();		imgSwapIt[6].src = "lauradenhertoginhibition.jpg";
	imgSwapIt[7] = new Image();		imgSwapIt[7].src = "lauradenhertogislandpath.jpg";
	imgSwapIt[8] = new Image();		imgSwapIt[8].src = "lauradenhertogwindingcreek.jpg";

/* ************************************************************************************************************** */
/*  Do not modify beyond this point                                                                               */
/* ************************************************************************************************************** */
}

function swapIt(docImgName, Num){	document [docImgName].src = imgSwapIt[Num].src;	}
