// JavaScript to generate a table of flashlight accessories

	gGlobal = this;					// Ourself

	gAllAccessories = 0;			// Hide hidden accessories

//		Hidden:					1,
//		OutOfStock:				1,

// Batteries and chargers...
	
	// Duracell CR123 battery - 12 pack
	cDuracellCR123Battery12Accessory = {
		AccessoryTag:			'cDuracellCR123Battery12Accessory',
		AccessoryTitle:			'12-pack of Duracell CR123 batteries',
		AccessoryNumber:		'Bat123-12-D',
		AccessoryDetails:		'Package of 12 premium quality Duracell brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a>. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			30,
		Battery:				1
		};

	// Duracell CR123 battery - 400 pack
	cDuracellCR123Battery400Accessory = {
		AccessoryTag:			'cDuracellCR123Battery400Accessory',
		AccessoryTitle:			'Case of 400 Duracell CR123 batteries',
		AccessoryNumber:		'Bat123-400-D',
		AccessoryDetails:		'Case of 400 premium quality Duracell brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a>. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			900,
		Battery:				1
		};

	// Duracell CR123 battery - 1200 pack
	cDuracellCR123Battery1200Accessory = {
		AccessoryTag:			'cDuracellCR123Battery1200Accessory',
		AccessoryTitle:			'Case of 1200  Duracell CR123 batteries',
		AccessoryNumber:		'Bat123-1200-D',
		AccessoryDetails:		'Case of 1200 premium quality Duracell brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a>. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			2400,
		Battery:				1
		};

	// Battery Station CR123 battery - 12 pack
	cBatteryStationCR123Battery12Accessory = {
		AccessoryTag:			'cBatteryStationCR123Battery12Accessory',
		AccessoryTitle:			'12-pack of Battery Station CR123 batteries',
		AccessoryNumber:		'Bat123-12-BS',
		AccessoryDetails:		'Package of 12 premium quality Battery Station brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a>. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			20,
		Battery:				1
		};

	// Battery Station CR123 battery - 100 pack
	cBatteryStationCR123Battery100Accessory = {
		AccessoryTag:			'cBatteryStationCR123Battery100Accessory',
		AccessoryTitle:			'Case of 100 Battery Station CR123 batteries',
		AccessoryNumber:		'Bat123-100-BS',
		AccessoryDetails:		'Case of 100 premium quality Battery Station brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a>. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			150,
		Battery:				1
		};

	// Battery Station CR123 battery - 1000 pack
	cBatteryStationCR123Battery1000Accessory = {
		AccessoryTag:			'cBatteryStationCR123Battery1000Accessory',
		AccessoryTitle:			'Case of 1000 Battery Station CR123 batteries',
		AccessoryNumber:		'Bat123-1000-BS',
		AccessoryDetails:		'10 cases of 100 premium quality Battery Station brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary batteries</a> - for a total of 1000 batteries. ' +
								'Batteries are rated at 1400mAh. Made is USA.',
		AccessoryPrice:			1300,
		Battery:				1
		};

	// AW RCR123 battery - 2 pack
	cAwRCR123Battery2Accessory = {
		AccessoryTag:			'cAwRCR123Battery2Accessory',
		AccessoryTitle:			'2-pack of AW RCR123 rechargeable Li-ion batteries',
		AccessoryNumber:		'BatRcr123-2',
		AccessoryDetails:		'Package of 2 premium quality AW brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">RCR123 rechargeable lithium-ion batteries</a>. ' +
								'Batteries contain <a href="?id=LightFaq#RechargeableBatteries" class="quietHyper">protection circuit to protect from short-circuit, over-charge and over-discharge</a>. ' +
								'Battery made with 16340 cell with finished size of 17345. ' +
								'Batteries are rated 750mAh at 4.2V fully charged (3.7V nominal).',
		AccessoryPrice:			18,
		Battery:				1
		};

	// AW R17670 battery - 2 pack
	cAwR17670Battery2Accessory = {
		AccessoryTag:			'cAwR17670Battery2Accessory',
		AccessoryTitle:			'2-pack of AW R17670 rechargeable Li-ion batteries',
		AccessoryNumber:		'BatR17670-2',
		AccessoryDetails:		'Package of 2 premium quality AW brand <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 rechargeable lithium-ion batteries</a>. ' +
								'Battery made with 16650 cell with finished size of 17670. ' +
								'Batteries are rated 1600mAh at 4.2V fully charged (3.7V nominal).',
		AccessoryPrice:			30,
		Battery:				1
		};

	// DSD Li-ion charger
	cDsdLi_ionChargerAccessory = {
		Hidden:					1,
		AccessoryTag:			'cDsdLi_ionChargerAccessory',
		AccessoryTitle:			'DSD Charger for Li-ion rechargeable batteries',
		AccessoryNumber:		'',
		AccessoryDetails:		'Charger for <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">RCR123, R17670 and R19670 lithium-ion rechargeable batteries</a>. ' +
								'Charger has two parallel charging bays, 4.1V for <a href="?id=LightFaq#RechargeableBatteries" class="quietHyper">safe extended charging</a>. ' +
								'110 - 240V AC power. ' +
								'Never try to recharge primary batteries.',
		AccessoryPrice:			18,
		Battery:				1
		};

	// Nano Li-ion charger
	cNanoLi_ionChargerAccessory = {
		AccessoryTag:			'cNanoLi_ionChargerAccessory',
		AccessoryTitle:			'Nano Charger for RCR123 Li-ion rechargeable batteries',
		AccessoryNumber:		'ChargerRcr123',
		AccessoryDetails:		'The Nano charger is a tiny single-bay 4.2V charger for <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">RCR123 lithium-ion rechargeable batteries</a>. ' +
								'The plug folds into the body making this the ideal travel charger. ' +
								'The indicator light shows red when charging and green when charged.  Remove battery from charger when the indicator turns green. ' +
								'110 - 240V AC, 50/60Hz power.',
		AccessoryPrice:			18,
		Battery:				1
		};

	// Tenergy Li-ion charger
	cTenergyLi_ionChargerAccessory = {
		AccessoryTag:			'cTenergyLi_ionChargerAccessory',
		AccessoryTitle:			'Tenergy Charger for larger Li-ion rechargeable batteries',
		AccessoryNumber:		'ChargerR17670',
		AccessoryDetails:		'The Tenergy charger is a two-bay 4.2V charger for <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 and R19670 lithium-ion rechargeable batteries</a>. ' +
								'The two bays are fully independent. ' +
								'The bay indicator light shows red when charging and green when charged.  Remove battery from charger when the bay\'s indicator turns green. ' +
								'110 - 240V AC, 50/60Hz power. ' +
								'Never try to recharge primary batteries.',
		AccessoryPrice:			20,
		Battery:				1
		};


// Battery compartments and switch caps...
	
	// Rotary CR123 battery compartment with flush button
	cRotaryCr123FlushButtonAccessory = {
		AccessoryTag:			'cRotaryCr123FlushButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with flush button switch cap',
		AccessoryNumber:		'TailR123-F',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			74,
		Rotary:					1
		};

	// Rotary CR123 battery compartment with raised button
	cRotaryCr123RaisedButtonAccessory = {
		AccessoryTag:			'cRotaryCr123RaisedButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with raised button switch cap',
		AccessoryNumber:		'TailR123-R',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			74,
		Rotary:					1
		};

	// Rotary R17670 battery compartment with flush button
	cRotaryR17670FlushButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cRotaryR17670FlushButtonAccessory',
		AccessoryTitle:			'R17670 battery compartment with flush button switch cap',
		AccessoryNumber:		'TailR17-F',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'Provides a typical 2.5 hours of runtime on the High setting. ' +
								'The R17670 battery compartment is 33mm (1.3") longer than the CR123 battery compartment. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>. ' +
								'DO NOT use 2 CR123 batteries in this battery compartment - it will damage your flashlight.',
		AccessoryPrice:			84,
		Rotary:					1
		};

	// Rotary R17670 battery compartment with raised button
	cRotaryR17670RaisedButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cRotaryR17670RaisedButtonAccessory',
		AccessoryTitle:			'R17670 battery compartment with raised button switch cap',
		AccessoryNumber:		'TailR17-R',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'Provides a typical 2.5 hours of runtime on the High setting. ' +
								'The R17670 battery compartment is 33mm (1.3") longer than the CR123 battery compartment. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>. ' +
								'DO NOT use 2 CR123 batteries in this battery compartment - it will damage your flashlight.',
		AccessoryPrice:			84,
		Rotary:					1
		};

	// Rotary 2xAA battery compartment with flush button
	cRotary2xAAFlushButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cRotary2xAAFlushButtonAccessory',
		AccessoryTitle:			'2xAA battery compartment with flush button switch cap',
		AccessoryNumber:		'TailRAA-F',
		AccessoryDetails:		'Battery compartment for holding 2 AA batteries. ' +
								'Compatible with common 1.5V AA battery chemistries - alkaline and Li-FeS2 primary batteries, NiCad and NiMH rechargeable batteries. ' +
								'Performance will vary depending on type of battery used. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			89,
		Rotary:					1
		};

	// Rotary 2xAA battery compartment with raised button
	cRotary2xAARaisedButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cRotary2xAARaisedButtonAccessory',
		AccessoryTitle:			'2xAA battery compartment with raised button switch cap',
		AccessoryNumber:		'TailRAA-R',
		AccessoryDetails:		'Battery compartment for holding 2 AA batteries. ' +
								'Compatible with common 1.5V AA battery chemistries - alkaline and Li-FeS2 primary batteries, NiCad and NiMH rechargeable batteries. ' +
								'Performance will vary depending on type of battery used. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			89,
		Rotary:					1
		};


	// Clicky CR123 battery compartment with flush button
	cClickyCr123FlushButtonAccessory = {
		AccessoryTag:			'cClickyCr123FlushButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with flush button switch cap',
		AccessoryNumber:		'TailC123-F',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			44,
		Clicky:					1
		};

	// Clicky CR123 battery compartment with raised button
	cClickyCr123RaisedButtonAccessory = {
		AccessoryTag:			'cClickyCr123RaisedButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with raised button switch cap',
		AccessoryNumber:		'TailC123-R',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			44,
		Clicky:					1
		};

	// Clicky R17670 battery compartment with flush button
	cClickyR17670FlushButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cClickyR17670FlushButtonAccessory',
		AccessoryTitle:			'R17670 battery compartment with flush button switch cap',
		AccessoryNumber:		'TailC17-F',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'Provides a typical 2.5 hours of runtime on the High setting. ' +
								'The R17670 battery compartment is 33mm (1.3") longer than the CR123 battery compartment. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>. ' +
								'DO NOT use 2 CR123 batteries in this battery compartment - it will damage your flashlight.',
		AccessoryPrice:			54,
		Clicky:					1
		};

	// Clicky R17670 battery compartment with raised button
	cClickyR17670RaisedButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cClickyR17670RaisedButtonAccessory',
		AccessoryTitle:			'R17670 battery compartment with raised button switch cap',
		AccessoryNumber:		'TailC17-R',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">R17670 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'Provides a typical 2.5 hours of runtime on the High setting. ' +
								'The R17670 battery compartment is 33mm (1.3") longer than the CR123 battery compartment. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>. ' +
								'DO NOT use 2 CR123 batteries in this battery compartment - it will damage your flashlight.',
		AccessoryPrice:			54,
		Clicky:					1
		};

	// Clicky 2xAA battery compartment with flush button
	cClicky2xAAFlushButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cClicky2xAAFlushButtonAccessory',
		AccessoryTitle:			'2xAA battery compartment with flush button switch cap',
		AccessoryNumber:		'TailCAA-F',
		AccessoryDetails:		'Battery compartment for holding 2 AA batteries. ' +
								'Compatible with common 1.5V AA battery chemistries - alkaline and Li-FeS2 primary batteries, NiCad and NiMH rechargeable batteries. ' +
								'Performance will vary depending on type of battery used. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			59,
		Clicky:					1
		};

	// Clicky 2xAA battery compartment with raised button
	cClicky2xAARaisedButtonAccessory = {
		OutOfStock:				1,
		AccessoryTag:			'cClicky2xAARaisedButtonAccessory',
		AccessoryTitle:			'2xAA battery compartment with raised button switch cap',
		AccessoryNumber:		'TailCAA-R',
		AccessoryDetails:		'Battery compartment for holding 2 AA batteries. ' +
								'Compatible with common 1.5V AA battery chemistries - alkaline and Li-FeS2 primary batteries, NiCad and NiMH rechargeable batteries. ' +
								'Performance will vary depending on type of battery used. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			59,
		Clicky:					1
		};

	// Clicky switch cap with flush button
	cClickySwitchCapFlushButtonAccessory = {
		AccessoryTag:			'cClickySwitchCapFlushButtonAccessory',
		AccessoryTitle:			'Switch cap with flush button',
		AccessoryNumber:		'SwitchCap-F',
		AccessoryDetails:		'The button is mostly flush with the end of the switch cap to protect the button from accidental activation. ' +
								'Compatible with the new sealed switch CR123 or R17670 battery compartments. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			19,
		Clicky:					1
		};

	// Clicky switch cap with raised button
	cClickySwitchCapRaisedButtonAccessory = {
		AccessoryTag:			'cClickySwitchCapRaisedButtonAccessory',
		AccessoryTitle:			'Switch cap with raised button',
		AccessoryNumber:		'SwitchCap-R',
		AccessoryDetails:		'The raised button extends past the end of the switch cap to allow easier operation under all conditions. ' +
								'Compatible with the new sealed switch CR123 or R17670 battery compartments. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			19,
		Clicky:					1
		};



	// Legacy Clicky CR123 battery compartment with flush button
	cLegacyClickyCr123FlushButtonAccessory = {
		AccessoryTag:			'cLegacyClickyCr123FlushButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with flush button switch cap',
		AccessoryNumber:		'LegacyTailC123-F',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The button is mostly flush with the end of the switch cap to protect it from accidental activation. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'Legacy V-threads.',
		AccessoryPrice:			44,
		EdcVt:					1
		};

	// Legacy Clicky CR123 battery compartment with raised button
	cLegacyClickyCr123RaisedButtonAccessory = {
		AccessoryTag:			'cLegacyClickyCr123RaisedButtonAccessory',
		AccessoryTitle:			'CR123 battery compartment with raised button switch cap',
		AccessoryNumber:		'LegacyTailC123-R',
		AccessoryDetails:		'Battery compartment for holding a single <a href="?id=LightFaq#PrimarySecondary" class="quietHyper">CR123 primary (3.2V) or RCR123 lithium-ion rechargeable (4.2V) battery</a>. ' +
								'The raised button extends past the end of the switch cap to allow easy operation under all conditions, including use with gloves. ' +
								'The switch cap unscrews and is easily exchanged. ' +
								'The switch is gold plated and sealed against contaminants. ' +
								'Legacy V-threads.',
		AccessoryPrice:			44,
		EdcVt:					1
		};

	// Legacy Clicky switch cap with flush button
	cLegacyClickySwitchCapFlushButtonAccessory = {
		AccessoryTag:			'cLegacyClickySwitchCapFlushButtonAccessory',
		AccessoryTitle:			'Switch cap with flush button',
		AccessoryNumber:		'LegacySwitchCap-F',
		AccessoryDetails:		'The button is mostly flush with the end of the switch cap to protect the button from accidental activation. ' +
								'Compatible with the new sealed switch CR123 or R17670 battery compartments. ' +
								'Legacy V-threads.',
		AccessoryPrice:			19,
		EdcVt:					1
		};

	// Legacy Clicky switch cap with raised button
	cLegacyClickySwitchCapRaisedButtonAccessory = {
		AccessoryTag:			'cLegacyClickySwitchCapRaisedButtonAccessory',
		AccessoryTitle:			'Switch cap with raised button',
		AccessoryNumber:		'LegacySwitchCap-R',
		AccessoryDetails:		'The raised button extends past the end of the switch cap to allow easier operation under all conditions. ' +
								'Compatible with the new sealed switch CR123 or R17670 battery compartments. ' +
								'Legacy V-threads.',
		AccessoryPrice:			19,
		EdcVt:					1
		};


// Bezels...
	
	// Black crenelated SS bezel
	cBezelCbsAccessory = {
		AccessoryTag:			'cBezelCbsAccessory',
		AccessoryTitle:			'Black stainless steel crenelated bezel',
		AccessoryNumber:		'Bezel-B',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from stainless steel with a military black <a href="?id=LightFaq#AlTiN" class="quietHyper">AlTiN (aluminum titanium nitride)</a> finish. ' +
								'The <a href="?id=LightFaq#AlTiN" class="quietHyper">AlTiN</a> finish is super durable. ' +
								'AlTiN is the same finish used to coat machine tools to make them last longer. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			14,
		Rotary:					1,
		Clicky:					1
		};

	// Silver crenelated SS bezel
	cBezelCssAccessory = {
		AccessoryTag:			'cBezelCssAccessory',
		AccessoryTitle:			'Silver stainless steel crenelated bezel',
		AccessoryNumber:		'Bezel-S',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from stainless steel with a lightly polished finish. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			14,
		Rotary:					1,
		Clicky:					1
		};


	// Legacy Silver crenelated SS bezel
	cLegacyBezelCssAccessory = {
		AccessoryTag:			'cLegacyBezelCssAccessory',
		AccessoryTitle:			'Silver stainless steel crenelated bezel',
		AccessoryNumber:		'LegacyBezel-S',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from stainless steel with a lightly polished finish. ' +
								'Legacy V-threads.',
		AccessoryPrice:			14,
		EdcVt:					1
		};


	// Legacy Silver crenelated aluminum bezel
	cLegacyBezelCsaAccessory = {
		AccessoryTag:			'cLegacyBezelCsaAccessory',
		AccessoryTitle:			'Silver aluminum crenelated bezel',
		AccessoryNumber:		'LegacyBezel-AlS',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from aluminum with a decorative clear anodize finish. ' +
								'Legacy V-threads.',
		AccessoryPrice:			14,
		EdcVt:					1
		};

	// Legacy Black crenelated aluminum bezel
	cLegacyBezelCbaAccessory = {
		AccessoryTag:			'cLegacyBezelCbaAccessory',
		AccessoryTitle:			'Black aluminum crenelated bezel',
		AccessoryNumber:		'LegacyBezel-AlB',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from aluminum with a black <a href="?id=LightFaq#Anodize" class="quietHyper">military Type III hard anodize</a> finish. ' +
								'Legacy V-threads.',
		AccessoryPrice:			14,
		EdcVt:					1
		};

	// Legacy Silver crenelated Ti bezel
	cLegacyBezelCstAccessory = {
		AccessoryTag:			'cLegacyBezelCstAccessory',
		AccessoryTitle:			'Silver titanium crenelated bezel',
		AccessoryNumber:		'LegacyBezel-TiS',
		AccessoryDetails:		'The bezel has crenelations around the top edge for self defence and to allow light to escape when the flashlight is turned bezel down on a table. ' +
								'The bezel is made from titanium with a lightly polished finish. ' +
								'Legacy V-threads.',
		AccessoryPrice:			45,
		EdcVt:					1
		};


// Lenses and reflectors...
	// Reflector
	cReflectorAccessory = {
		AccessoryTag:			'cReflectorAccessory',
		AccessoryTitle:			'Reflector',
		AccessoryNumber:		'Reflector',
		AccessoryDetails:		'Reflector with light orange peel multi-layer reflective surface. ' +
								'<a href="?id=LightFaq#Acme" class="quietHyper">Acme threads</a>.',
		AccessoryPrice:			19,
		Rotary:					1,
		Clicky:					1
		};

	cLegacyReflectorAccessory = {
		AccessoryTag:			'cLegacyReflectorAccessory',
		AccessoryTitle:			'Reflector',
		AccessoryNumber:		'LegacyReflector',
		AccessoryDetails:		'Reflector with medium orange peel multi-layer reflective surface. ' +
								'Legacy V-threads.',
		AccessoryPrice:			19,
		EdcVt:					1
		};

	// Glass lens
	cLensGlassAccessory = {
		AccessoryTag:			'cLensGlassAccessory',
		AccessoryTitle:			'Glass lens',
		AccessoryNumber:		'Lens-Glass',
		AccessoryDetails:		'The lens is made from ultra-clear glass with an anti-reflective coating on both sides to maximize the amount of light transmitted.',
		AccessoryPrice:			12,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};

	// Sapphire lens
	cLensSapphireAccessory = {
		AccessoryTag:			'cLensSapphireAccessory',
		AccessoryTitle:			'Sapphire lens',
		AccessoryNumber:		'Lens-Sapphire',
		AccessoryDetails:		'The lens is made from synthetic sapphire (corundum) and has an anti-reflective coating on both sides to maximize the amount of light transmitted. ' +
								'Sapphire is many times harder and more scratch resistant than glass. ' +
								'Synthetic sapphire is made from the same material as ruby and sapphire gemstones but without the impurities that give gemstones their color.',
		AccessoryPrice:			43,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};


// Other accessories...
	

	// Black pocket clip, bezel down
	cBlackPocketClipAccessory = {
		AccessoryTag:			'cBlackPocketClipAccessory',
		AccessoryTitle:			'Black pocket clip, bezel down carry',
		AccessoryNumber:		'ClipBD',
		AccessoryDetails:		'Spring steel pocket clip with matte black finish for bezel-down carry. ' +
								'Installs under EDC Clicky battery compartment switch cap.  ' +
								'Not compatible with EDC Rotary flashlights.',
		AccessoryPrice:			8,
		Clicky:					1
		};

	// Black decorative pocket clip, bezel down
	cBlackDecorativePocketClipAccessory = {
		AccessoryTag:			'cBlackDecorativePocketClipAccessory',
		AccessoryTitle:			'Black decorative pocket clip, bezel down carry',
		AccessoryNumber:		'ClipDBD',
		AccessoryDetails:		'Decorative stainless steel pocket clip for bezel-down carry. ' +
								'The clip has a military black <a href="?id=LightFaq#AlTiN" class="quietHyper">AlTiN (aluminum titanium nitride)</a> finish. ' +
								'Installs under EDC Clicky battery compartment switch cap.  ' +
								'Not compatible with EDC Rotary flashlights.',
		AccessoryPrice:			22,
		Clicky:					1
		};

	// Silver decorative pocket clip, bezel down
	cSilverDecorativePocketClipAccessory = {
		AccessoryTag:			'cSilverDecorativePocketClipAccessory',
		AccessoryTitle:			'Silver decorative pocket clip, bezel down carry',
		AccessoryNumber:		'ClipDSD',
		AccessoryDetails:		'Decorative stainless steel pocket clip for bezel-down carry. ' +
								'Installs under EDC Clicky battery compartment switch cap.  ' +
								'Not compatible with EDC Rotary flashlights.',
		AccessoryPrice:			19,
		Clicky:					1
		};

	// Kydex holster, duty belt
	cKydexHolsterDutyBeltAccessory = {
		AccessoryTag:			'cKydexHolsterDutyBeltAccessory',
		AccessoryTitle:			'Kydex holster for wider duty belts',
		AccessoryNumber:		'HolsterKydex-L',
		AccessoryDetails:		'Kydex holster for wider duty belts, up to 2.3 inches (59mm) wide. ' +
								'The belt width is adjustable in increments of 0.24 inches (6mm). ' +
								'Flashlight retention friction is fully adjustable.',
		AccessoryPrice:			50,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};

	// Kydex holster, dress belt
	cKydexHolsterDressBeltAccessory = {
		AccessoryTag:			'cKydexHolsterDressBeltAccessory',
		AccessoryTitle:			'Kydex holster for narrower dress belts',
		AccessoryNumber:		'HolsterKydex-S',
		AccessoryDetails:		'Kydex holster for narrower dress belts, up to 1.4 inches (37mm) wide. ' +
								'Flashlight retention friction is fully adjustable.',
		AccessoryPrice:			50,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};

	// Tactical Ring
	cTacticalRingAccessory = {
		AccessoryTag:			'cTacticalRingAccessory',
		AccessoryTitle:			'Tactical ring',
		AccessoryNumber:		'TacRing',
		AccessoryDetails:		'Movable tactical ring provides secure two-finger hold for use with several popular shooting methods. ' +
								'Click <a target="_blank" href="' + gPath + 'TacRingUse.jpg">here</a> for an illustration of how the tactical ring is installed.',
		AccessoryPrice:			14,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};

	// O-ring kit
	cORingKitAccessory = {
		AccessoryTag:			'cORingKitAccessory',
		AccessoryTitle:			'O-Ring kit',
		AccessoryNumber:		'O-RingKit-Bat',
		AccessoryDetails:		'Battery compartment O-ring and grease in a resealable plastic bag.',
		AccessoryPrice:			3,
		Rotary:					1,
		Clicky:					1,
		EdcVt:					1
		};


	// List of accessories in the order presented
	cAccessoryArray = [
		cDuracellCR123Battery12Accessory,
		cDuracellCR123Battery400Accessory,
		cDuracellCR123Battery1200Accessory,
		cBatteryStationCR123Battery12Accessory,
		cBatteryStationCR123Battery100Accessory,
		cBatteryStationCR123Battery1000Accessory,
		cAwRCR123Battery2Accessory,
		cAwR17670Battery2Accessory,
		cDsdLi_ionChargerAccessory,
		cNanoLi_ionChargerAccessory,
		cTenergyLi_ionChargerAccessory,

		cRotaryCr123FlushButtonAccessory,
		cRotaryCr123RaisedButtonAccessory,
		cRotaryR17670FlushButtonAccessory,
		cRotaryR17670RaisedButtonAccessory,
		cRotary2xAAFlushButtonAccessory,
		cRotary2xAARaisedButtonAccessory,

		cClickyCr123FlushButtonAccessory,
		cClickyCr123RaisedButtonAccessory,
		cClickyR17670FlushButtonAccessory,
		cClickyR17670RaisedButtonAccessory,
		cClicky2xAAFlushButtonAccessory,
		cClicky2xAARaisedButtonAccessory,
		cClickySwitchCapFlushButtonAccessory,
		cClickySwitchCapRaisedButtonAccessory,

		cLegacyClickyCr123FlushButtonAccessory,
		cLegacyClickyCr123RaisedButtonAccessory,
		cLegacyClickySwitchCapFlushButtonAccessory,
		cLegacyClickySwitchCapRaisedButtonAccessory,

		cBezelCssAccessory,
		cBezelCbsAccessory,

		cLegacyBezelCssAccessory,
		cLegacyBezelCsaAccessory,
		cLegacyBezelCbaAccessory,
		cLegacyBezelCstAccessory,

		cReflectorAccessory,
		cLegacyReflectorAccessory,

		cLensGlassAccessory,
		cLensSapphireAccessory,

		cBlackPocketClipAccessory,
		cBlackDecorativePocketClipAccessory,
		cSilverDecorativePocketClipAccessory,
		cKydexHolsterDutyBeltAccessory,
		cKydexHolsterDressBeltAccessory,
		cTacticalRingAccessory,
		cORingKitAccessory
		];


	// Build accessory table
	function BuildAccessoryTable(type) {
		var i, l, accObj;

		l = cAccessoryArray.length;									// Array length
		for (i = 0; i < l; i++) {
			accObj = cAccessoryArray[i];							// Next object in array
			if ((accObj['Hidden'] == 1) &&							// Object is hidden...
				(gAllAccessories == 0)) {
				continue;											// Ignore it
				}
			if (accObj[type] != 1) {								// Not compatible with this light...
				continue;											// Ignore it
				}
			BuildAccessory(accObj, type);							// Build the accessory
			}
		}


	// Build one accessory block
	function BuildAccessory(accObj, type) {
		var s;

		s = 'https://www.paypal.com/cgi-bin/webscr?' +
			'cmd=_cart' + '&' +
			'business=4C953D4G39FXE' + '&' +
			'lc=US' + '&' +
			'item_number=' + ConvertSpacesToCode(accObj['AccessoryNumber']) + '&' +
			'item_name=' + ConvertSpacesToCode(accObj['AccessoryTitle']) + '&' +
			'amount=' + accObj['AccessoryPrice'] + '%2e00' + '&' +
			'currency_code=USD' + '&' +
			'undefined_quantity=1' + '&' +
			'add=1' + '&' +
			'cn=Special%20instructions' + '&' +
			'no_shipping=2' + '&' +
			'bn=HdsSystems_AddToCart_WPS_US' + '&' +
			'shopping_url=' + gReturnUrl;

		document.write('	<form name="' + type + accObj['AccessoryTag'] + 'Form">\n');
		document.write('	<input type="button" id="' + type + accObj['AccessoryTag'] + 'Button"');
			if (accObj['OutOfStock'] == 1) {
				document.write(' value="Out of Stock" disabled="1"');
				}
			else {
				document.write(' value="Add to Cart"');
				}
		document.write(' onclick="javascript: window.location = \'' + s + '\';">\n');
		document.write('	&nbsp;&nbsp;' + accObj['AccessoryTitle'] + ': $' + accObj['AccessoryPrice'] + '.00&nbsp;&nbsp;\n');
		GenerateToggleDetailsBlockButtons(type + accObj['AccessoryTag']);
		document.write('	</form>\n');

		document.write('	<p id="' + type + accObj['AccessoryTag'] + 'DetailsBlock' + '" style="display:none">\n');
		document.write('		' + accObj['AccessoryDetails'] + '</p>\n');

		document.write('	<p>\n');
		document.write('	</p>\n');
		}


