// JavaScript Document
/**
	Instructions:
	
	The existing product lines have been established in this list. Dummy SKUs have been added into all the lists.
	To add more, you may copy those lines, delete the comment indicator ('//'), and then change the appropriate
	information.
	
	--------------------
	To create a new line:
	--------------------
	0. Open the rea_header.js file. Insert a new array for the product line in the init_load_array function. 
		You may put the entry on any line before, between, or after the existing array entries for the products.
		Format follows:
		
			td_img_array.xxxxx = new Array();
		
		where xxxxx is the name of the line (in lowercase only please).
		Then close the file and upload to the /script folder.
			
	1. Create a function, name it "load_rea_xxxxxx" where xxxxx is the line name.
	2. Create an entry in the load_rea_images function. Affix "()" to the end of the function name
		like: "load_rea_xxxxx();". Don't forget the semi-colon.
	3. Create a function paragraph. Replace "xxxxxx" with the product line name.
	 	Use the following format:
		
		function load_rea_xxxxx()
		{
			td_img_array.xxxxx.defaultDir  = {prefixUrl:"/lines/xxxxx/images"};
			td_img_array.xxxxx.defaultStore  = {prefixUrl:"/store"};	
			
		}
	4. Then upload this file INTO the /script folder.
	
	
	-----------------
	To Add a new SKU:
	-----------------
	1. create an image entry in the appropriate product line:
	2. IMPORTANT NOTE. USE UNDERSCORES FOR THE SKUs. DO NOT USE DASHES, OTHERWISE YOUR IMAGES WILL NOT SHOW.
	3. Name format is as follows:
		td_img_array 	: do not change this. 
		xxxxx			: the name of the line.
		SKU				: sku number IN CAPITALS.
		SET01			: set number IN CAPITALS. SET01 is leftmost thumbnail, SET02 is next on the right.
							Program is currently set for SET01, SET02, SET03. It can accommodate up to 5.
							To add SET04 and SET05, modify the template, propagate to all pages concerned,
							and then upload ALL affected pages.
		
		sample format:
			td_img_array.xxxxxx.SKU_SET01 = {thumb:"xxxxxxxxxx.jpg", norm:"xxxxxxxxxx.jpg", large:"xxxxxxxxxx.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};


4. Then upload this file INTO the /script folder.


**/


/**
 * Create a separate function for each product. If you create a new PRODUCT function, make sure
 * an equivalent entry exists here, otherwise the function's new images will not be loaded.
 */
function load_rea_images()
{
	load_rea_concept(); 	// load the concept line.
	load_rea_custom();		// load the custom line.
	load_rea_eternity();	// load the eternity line.
	load_rea_flora();		// load the flora line.
	load_rea_horses();		// load the horses line.
	load_rea_onekind();		// load the onekind line.
	load_rea_pacifica();	// load the pacifica line.
	load_rea_yoga();		// load the yoga line.
}


/**
 * CONCEPT Product line default library, default store, and SKU images.
 */
function load_rea_concept()
{
	td_img_array.concept.defaultDir  = {prefixUrl:"/lines/concept/images"};
	td_img_array.concept.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.concept.XXX1_1_SET01 = {thumb:"XXX1_1-50x50.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};	
	td_img_array.concept.MP3_4_SET01 = {thumb:"MP3_4_SET01_50x67.jpg", norm:"MP3_4_SET01_200x267.jpg", large:"MP3_4_SET01_350x350.jpg", store:"/contactus.htm", caption:"Mirrored Pendant"};	
	td_img_array.concept.MP3_4_SET02 = {thumb:"MP3_4_SET02_50x67.jpg", norm:"MP3_4_SET02_200x267.jpg", large:"MP3_4_SET02_350x350.jpg", store:"/contactus.htm", caption:"Mirrored Pendant"};	
	td_img_array.concept.MP3_4_SET03 = {thumb:"MP3_4_SET03_50x67.jpg", norm:"MP3_4_SET03_200x267.jpg", large:"MP3_4_SET03_350x350.jpg", store:"/contactus.htm", caption:"Mirrored Pendant"};	
	td_img_array.concept.MP3_4_SET04 = {thumb:"MP3_4_SET04_50x67.jpg", norm:"MP3_4_SET04_200x267.jpg", large:"MP3_4_SET04_350x350.jpg", store:"/contactus.htm", caption:"Mirrored Pendant"};	
	td_img_array.concept.MP3_4_SET05 = {thumb:"MP3_4_SET05_50x67.jpg", norm:"MP3_4_SET05_200x267.jpg", large:"MP3_4_SET05_350x350.jpg", store:"/contactus.htm", caption:"Mirrored Pendant"};	
}

/**
 * CUSTOM Product line default library, default store, and SKU images.
 */
function load_rea_custom()
{
	td_img_array.custom.defaultDir  = {prefixUrl:"/lines/custom/images"};
	td_img_array.custom.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.custom.XXX1_1_SET01 = {thumb:"XXX1_1-50x50.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};	
}

/**
 * ETERNITY Product line default library, default store, and SKU images.
 */
function load_rea_eternity()
{
	td_img_array.eternity.defaultDir  = {prefixUrl:"/lines/eternity/images"};
	td_img_array.eternity.defaultStore  = {prefixUrl:"/contactus.htm"};
	td_img_array.eternity.EL1_1_SET01 = {thumb:"EL1_1_SET01_50x67.jpg", norm:"EL1_1_SET01_200x267.jpg", large:"EL1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Eternal Lariat"};
	td_img_array.eternity.EL1_1_SET02 = {thumb:"EL1_1_SET02_50x67.jpg", norm:"EL1_1_SET02_200x267.jpg", large:"EL1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Eternal Lariat"};
	td_img_array.eternity.ER1_1_SET01 = {thumb:"ER1_1_SET01_50x67.jpg", norm:"ER1_1_SET01_200x267.jpg", large:"ER1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Fluid Ring"};
	td_img_array.eternity.ER1_1_SET02 = {thumb:"ER1_1_SET02_50x67.jpg", norm:"ER1_1_SET02_200x267.jpg", large:"ER1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Fluid Ring"};
	td_img_array.eternity.ER1_1_SET03 = {thumb:"ER1_1_SET03_50x67.jpg", norm:"ER1_1_SET03_200x267.jpg", large:"ER1_1_SET03_350x350.jpg", store:"/contactus.htm", caption:"Fluid Ring"};
	td_img_array.eternity.EL3_1_SET01 = {thumb:"EL2_1_SET01_50x67.jpg", norm:"EL2_1_SET01_200x267.jpg", large:"EL2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Endless Pendant"};
	td_img_array.eternity.EL3_1_SET02 = {thumb:"EL2_1_SET02_50x67.jpg", norm:"EL2_1_SET02_200x267.jpg", large:"EL2_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Endless Pendant"};
	td_img_array.eternity.EP1_1_SET01 = {thumb:"EP1_1_SET01_50x67.jpg", norm:"EP1_1_SET01_200x267.jpg", large:"EP1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Fluid Pendant"};
	td_img_array.eternity.EP1_1_SET02 = {thumb:"EP1_1_SET02_50x67.jpg", norm:"EP1_1_SET02_200x267.jpg", large:"EP1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Fluid Pendant"};
	td_img_array.eternity.EER1_1_SET01 = {thumb:"EER1_1_SET01_50x67.jpg", norm:"EER1_1_SET01_200x267.jpg", large:"EER1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Fluid Earrings"};

}

/**
 * FLORA Product line default library, default store, and SKU images.
 */
function load_rea_flora()
{
	td_img_array.flora.defaultDir  = {prefixUrl:"/lines/flora/images"};
	td_img_array.flora.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.flora.XXX1_1_SET01 = {thumb:"XXX1_1-50x50.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Description"};
	td_img_array.flora.LR2_1_SET01 = {thumb:"LR2_1_SET01_50x67.jpg", norm:"LR2_1_SET01_200x267.jpg", large:"LR2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Lotus Ring"};
	td_img_array.flora.LP1_5_SET01 = {thumb:"LP1_5_SET01_50x67.jpg", norm:"LP1_5_SET01_200x267.jpg", large:"LP1_5_SET01_350x350.jpg", store:"/contactus.htm", caption:"Lotus Pendant"};
	td_img_array.flora.LP1_5_SET02 = {thumb:"LP1_5_SET02_50x67.jpg", norm:"LP1_5_SET02_200x267.jpg", large:"LP1_5_SET02_350x350.jpg", store:"/contactus.htm", caption:"Lotus Pendant"};
	td_img_array.flora.PP6_1_SET01 = {thumb:"PP6_1_SET01_50x67.jpg", norm:"PP6_1_SET01_200x267.jpg", large:"PP6_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Flower Spirit"};
	td_img_array.flora.PP6_1_SET02 = {thumb:"PP6_1_SET02_50x67.jpg", norm:"PP6_1_SET02_200x267.jpg", large:"PP6_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Flower Spirit"};
	td_img_array.flora.PL1_1_SET01 = {thumb:"PL1_1_SET01_50x67.jpg", norm:"PL1_1_SET01_200x267.jpg", large:"PL1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Petite Lotus Pendant"};
	td_img_array.flora.PL1_1_SET02 = {thumb:"PL1_1_SET02_50x67.jpg", norm:"PL1_1_SET02_200x267.jpg", large:"PL1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Petite Lotus Pendant"};
	td_img_array.flora.PL1_1_SET03 = {thumb:"PL1_1_SET03_50x67.jpg", norm:"PL1_1_SET03_200x267.jpg", large:"PL1_1_SET03_350x350.jpg", store:"/contactus.htm", caption:"Petite Lotus Pendant"};

}

/**
 * HORSES Product line default library, default store, and SKU images.
 */
function load_rea_horses()
{
	td_img_array.horses.defaultDir  = {prefixUrl:"/lines/horses/images"};
	td_img_array.horses.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.horses.XXX1_1_SET01 = {thumb:"XXX1_1-50x50.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Description"};	
	td_img_array.horses.H1_1_SET01 = {thumb:"H1_1_SET01_50x67.jpg", norm:"H1_1_SET01_200x267.jpg", large:"H1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Arabian Foal"};
	td_img_array.horses.H2_1_SET01 = {thumb:"H2_1_SET01_50x67.jpg", norm:"H2_1_SET01_200x267.jpg", large:"H2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Arabian Prance"};
	td_img_array.horses.H2_1_SET02 = {thumb:"H2_1_SET02_50x67.jpg", norm:"H2_1_SET02_200x267.jpg", large:"H2_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Arabian Prance"};
	td_img_array.horses.H3_1_SET01 = {thumb:"H3_1_SET01_50x67.jpg", norm:"H3_1_SET01_200x267.jpg", large:"H3_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Arabian Poised"};
	td_img_array.horses.H3_1_SET02 = {thumb:"H3_1_SET02_50x67.jpg", norm:"H3_1_SET02_200x267.jpg", large:"H3_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Arabian Poised"};
	td_img_array.horses.H4_1_SET01 = {thumb:"H4_1_SET01_50x67.jpg", norm:"H4_1_SET01_200x267.jpg", large:"H4_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Arabian Gallop"};
	td_img_array.horses.H4_1_SET02 = {thumb:"H4_1_SET02_50x67.jpg", norm:"H4_1_SET02_200x267.jpg", large:"H4_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Arabian Gallop"};

	td_img_array.horses.H5_1_SET01 = {thumb:"H5_1_SET01_50x67.jpg", norm:"H5_1_SET01_200x267.jpg", large:"H5_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Thoroughbred Rearing"};	
	td_img_array.horses.H6_1_SET01 = {thumb:"H6_1_SET01_50x67.jpg", norm:"H6_1_SET01_200x267.jpg", large:"H6_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Thoroughbred Gallop"};
}

/**
 * ONEKIND Product line default library, default store, and SKU images.
 */
function load_rea_onekind()
{
	td_img_array.onekind.defaultDir  = {prefixUrl:"/lines/onekind/images"};
	td_img_array.onekind.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.onekind.XXX1_1_SET01 = {thumb:"XXX1_1-50x50.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};
}

/**
 * PACIFICA Product line default library, default store, and SKU images.
 */
function load_rea_pacifica()
{
	td_img_array.pacifica.defaultDir  = {prefixUrl:"/lines/pacifica/images"};
	td_img_array.pacifica.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.pacifica.XXX1_1_SET01 = {thumb:"XXX1_1-50x67.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};	
	td_img_array.pacifica.PP1_1_SET01 = {thumb:"PP1_1_SET01_50x67.jpg", norm:"PP1_1_SET01_200x267.jpg", large:"PP1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Seabird Spirit"};	
	td_img_array.pacifica.PP1_1_SET02 = {thumb:"PP1_1_SET02_50x67.jpg", norm:"PP1_1_SET02_200x267.jpg", large:"PP1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Seabird Spirit"};	
	td_img_array.pacifica.PP5_1_SET01 = {thumb:"PP5_1_SET01_50x67.jpg", norm:"PP5_1_SET01_200x267.jpg", large:"PP5_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Turtle Spirit"};	
	td_img_array.pacifica.PP5_1_SET02 = {thumb:"PP5_1_SET02_50x67.jpg", norm:"PP5_1_SET02_200x267.jpg", large:"PP5_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Turtle Spirit"};	
	td_img_array.pacifica.PP5_1_SET03 = {thumb:"PP5_1_SET03_50x67.jpg", norm:"PP5_1_SET03_200x267.jpg", large:"PP5_1_SET03_350x350.jpg", store:"/contactus.htm", caption:"Turtle Spirit"};	
	td_img_array.pacifica.PP5_1_SET04 = {thumb:"PP5_1_SET04_50x67.jpg", norm:"PP5_1_SET04_200x267.jpg", large:"PP5_1_SET04_350x350.jpg", store:"/contactus.htm", caption:"Turtle Spirit"};	
	td_img_array.pacifica.PP6_1_SET01 = {thumb:"PP6_1_SET01_50x67.jpg", norm:"PP6_1_SET01_200x267.jpg", large:"PP6_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Flower Spirit"};
	td_img_array.pacifica.PP6_1_SET02 = {thumb:"PP6_1_SET02_50x67.jpg", norm:"PP6_1_SET02_200x267.jpg", large:"PP6_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Flower Spirit"};	
	td_img_array.pacifica.PP2_1_SET01 = {thumb:"PP2_1_SET01_50x67.jpg", norm:"PP2_1_SET01_200x267.jpg", large:"PP2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Bird Trinity"};	
	td_img_array.pacifica.PP2_1_SET02 = {thumb:"PP2_1_SET02_50x67.jpg", norm:"PP2_1_SET02_200x267.jpg", large:"PP2_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Bird Trinity"};	
	td_img_array.pacifica.SF1_1_SET01 = {thumb:"SF1_1_SET01_50x67.jpg", norm:"SF1_1_SET01_200x267.jpg", large:"SF1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Starfish Charm"};	
	td_img_array.pacifica.SF2_1_SET01 = {thumb:"SF2_1_SET01_50x67.jpg", norm:"SF2_1_SET01_200x267.jpg", large:"SF2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Starfish Earring"};	
	td_img_array.pacifica.SF2_1_SET02 = {thumb:"SF2_1_SET02_50x67.jpg", norm:"SF2_1_SET02_200x267.jpg", large:"SF2_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Starfish Earring"};	
	td_img_array.pacifica.PP7_1_SET01 = {thumb:"PP7_1_SET01_50x67.jpg", norm:"PP7_1_SET01_200x267.jpg", large:"PP7_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Shell Pendant"};	
	td_img_array.pacifica.PP7_1_SET02 = {thumb:"PP7_1_SET02_50x67.jpg", norm:"PP7_1_SET02_200x267.jpg", large:"PP7_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Shell Pendant"};	
	td_img_array.pacifica.PR1_1_SET01 = {thumb:"PR1_1_SET01_50x67.jpg", norm:"PR1_1_SET01_200x267.jpg", large:"PR1_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Fin Ring"};	
	td_img_array.pacifica.PR1_1_SET02 = {thumb:"PR1_1_SET02_50x67.jpg", norm:"PR1_1_SET02_200x267.jpg", large:"PR1_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Fin Ring"};	

}

/**
 * YOGA Product line default library, default store, and SKU images.
 */
function load_rea_yoga()
{
	td_img_array.yoga.defaultDir  = {prefixUrl:"/lines/yoga/images"};
	td_img_array.yoga.defaultStore  = {prefixUrl:"/contactus.htm"};	
//	td_img_array.yoga.XXX1_1_SET01 = {thumb:"XXX1_1-50x67.jpg", norm:"XXX1_1-200x267.jpg", large:"XXX1_1-350x350.jpg", store:"/store/index.php/xxxx/xxxx.html", caption:"Put A Large Description Caption Here SET01"};	
	td_img_array.yoga.PL2_1_SET01 = {thumb:"PL2_1_SET01_50x67.jpg", norm:"PL2_1_SET01_200x267.jpg", large:"PL2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Mantra Ring"};	
	td_img_array.yoga.Y2_1_SET01 = {thumb:"Y2_1_SET01_50x67.jpg", norm:"Y2_1_SET01_200x267.jpg", large:"Y2_1_SET01_350x350.jpg", store:"/contactus.htm", caption:"Dancer Pendant"};	
	td_img_array.yoga.Y2_1_SET02 = {thumb:"Y2_1_SET02_50x67.jpg", norm:"Y2_1_SET02_200x267.jpg", large:"Y2_1_SET02_350x350.jpg", store:"/contactus.htm", caption:"Dancer Pendant"};	

}

