//<!---  START of Hover effect script - show a different image when the mouse rolls over the normal image --->

// load names of images into array 
hoverImagesOn = new Array()
hoverImagesOff = new Array()

hoverImagesOn[0] = 'images/Add_to_Cart_Text-Light.gif';
hoverImagesOff[0] = 'images/Add_to_Cart_Text.gif';

hoverImagesOn[1] = 'images/Add_to_Cart_Text-SM-Light.gif';
hoverImagesOff[1] = 'images/Add_to_Cart_Text-SM.gif';

hoverImagesOn[2] = 'images/View_Cart_Text-Light.gif';
hoverImagesOff[2] = 'images/View_Cart_Text.gif';


if (document.images) { 

	// Pre load images

	imageLoadOn = new Array();
	imageLoadOff = new Array();

	for (i=0; i < hoverImagesOn.length; i++) {
		imageLoadOn[i] = new Image();
		imageLoadOff[i] = new Image();

		imageLoadOn[i].src = hoverImagesOn[i];
		imageLoadOff[i].src = hoverImagesOff[i];
	}

} // End of pre load images


function swapImage(Mode,docElement,imgID) { 
	if (Mode == "ON") document.getElementById(docElement).src = hoverImagesOn[imgID];
	if (Mode == "OFF") document.getElementById(docElement).src = hoverImagesOff[imgID];
} 

//<!---  END of Hover effect script - show a different image when the mouse rolls over the normal image --->

//<!---  START of Item Information script - Define the information, name, pricing, etc. for all the products --->

var ProductInfo = new Array()

//Element  0 name: Item_Number
//Element  1 name: Item_Description
//Element  2 name: Item_Size
//Element  3 name: Item_Price
//Element  4 name: Item_Shipping_First
//Element  5 name: Item_Shipping_SecondAndUp
//Element  6 name: Item_Handling_First
//Element  7 name: Item_Handling_SecondAndUp
//Element  8 name: Item_Image_Alt_Name
//Element  9 name: Item_Add_to_Cart_Image_Alt_Name
//Element 10 name: Item_Button_NameandID_Root
//Element 11 name: Item_Add_to_Cart_Hosted_Button_Id_Live
//Element 12 name: Item_Add_to_Cart_Hosted_Button_Id_SandBox

ProductInfo["ElementNames"]=["Item_Number", "Item_Description", "Item_Size", "Item_Price", "Item_Shipping_First", "Item_Shipping_SecondAndUp", "Item_Handling_First", "Item_Handling_SecondAndUp", "Item_Image_Alt_Name", "Item_Add_to_Cart_Image_Alt_Name", "Item_Button_NameandID_Root", "Item_Add_to_Cart_Hosted_Button_Id_Live", "Item_Add_to_Cart_Hosted_Button_Id_SandBox"]
ProductInfo["40SK-Gallon"]=["40SK-Gallon", "40SK Consolidator - Gallon", "Gallon", "175", "16", "12", "10", "2", "Dry-Treat, 40SK Consolidator", "Purchase 1 Gallon of 40SK Consolidator", "40SKConsolidatorGallon", "293837", "1 "]
ProductInfo["40SK-5Gallons"]=["40SK-5Gallons", "40SK Consolidator - 5 Gallons", "5 Gallons", "805", "64", "60", "10", "2", "Dry-Treat, 40SK Consolidator", "Purchase 5 Gallons of 40SK Consolidator", "40SKConsolidator5Gallons", "293980", "2 "]
ProductInfo["CK-Gallon"]=["CK-Gallon", "Consolidating Kit - Gallon", "Gallon", "410", "28", "24", "10", "2", "Dry-Treat, Consolidating Kit", "Purchase 1 Gallon Consolidating Kit", "ConsolidatingKitGallon", "295587", "3 "]
ProductInfo["CK-5Gallons"]=["CK-5Gallons", "Consolidating Kit - 5 Gallons", "5 Gallons", "1781", "124", "120", "10", "2", "Dry-Treat, Consolidating Kit", "Purchase 5 Gallons Consolidating Kit", "ConsolidatingKit5Gallons", "295682", "4 "]
ProductInfo["CTDK-Quart"]=["CTDK-Quart", "Counter Top Deluxe Kit - Quart", "Quart", "253", "16", "12", "10", "2", "Dry-Treat, Counter Top Deluxe Kit", "Purchase 1 Quart Counter Top Deluxe Kit", "CounterTopDeluxeKitQuart", "295767", "5 "]
ProductInfo["CTK-Quart"]=["CTK-Quart", "Counter Top Kit - Quart", "Quart", "182", "10", "6", "10", "2", "Dry Treat, Counter Top Kit", "Purchase 1 Quart Counter Top Kit", "CounterTopKitQuart", "295888", "6 "]
ProductInfo["CTK-Gallon"]=["CTK-Gallon", "Counter Top Kit - Gallon", "Gallon", "651", "28", "24", "10", "2", "Dry Treat, Counter Top Kit", "Purchase 1 Gallon Counter Top Kit", "CounterTopKitGallon", "295946", "7 "]
ProductInfo["EP-Quart"]=["EP-Quart", "Enhance-Plus - Quart", "Quart", "64", "7", "3", "10", "2", "Dry-Treat, Enhance-Plus", "Purchase 1 Quart of Enhance-Plus", "EnhancePlusQuart", "296055", "8 "]
ProductInfo["EP-Gallon"]=["EP-Gallon", "Enhance-Plus - Gallon", "Gallon", "228", "16", "12", "10", "2", "Dry-Treat, Enhance-Plus", "Purchase 1 Gallon of Enhance-Plus", "EnhancePlusGallon", "296131", "9 "]
ProductInfo["EK-Quart"]=["EK-Quart", "Enhancing Kit - Quart", "Quart", "127", "10", "6", "10", "2", "Dry-Treat, Enhancing Kit", "Purchase 1 Quart Enhancing Kit", "EnhancingKitQuart", "296214", "10 "]
ProductInfo["EK-Gallon"]=["EK-Gallon", "Enhancing Kit - Gallon", "Gallon", "461", "28", "24", "10", "2", "Dry-Treat, Enhancing Kit", "Purchase 1 Gallon Enhancing Kit", "EnhancingKitGallon", "296577", "11 "]
ProductInfo["EPK-Quart"]=["EPK-Quart", "Extra Protection Kit - Quart", "Quart", "249", "13", "9", "10", "2", "Dry-Treat, Extra Protection Kit", "Purchase 1 Quart Extra Protection Kit", "ExtraProtectionKitQuart", "296374", "12 "]
ProductInfo["EPK-Gallon"]=["EPK-Gallon", "Extra Protection Kit - Gallon", "Gallon", "895", "40", "36", "10", "2", "Dry-Treat, Extra Protection Kit", "Purchase 1 Gallon Extra Protection Kit", "ExtraProtectionKitGallon", "296636", "13 "]
ProductInfo["NMG-Quart"]=["NMG-Quart", "No-More Grime - Quart", "Quart", "105", "7", "3", "10", "2", "Dry-Treat, No More-Grime", "Purchase 1 Quart of No-More Grime", "NoMoreGrimeQuart", "296841", "14 "]
ProductInfo["NMG-Gallon"]=["NMG-Gallon", "No-More Grime - Gallon", "Gallon", "371", "16", "12", "10", "2", "Dry-Treat, No More-Grime", "Purchase 1 Gallon of No-More Grime", "NoMoreGrimeGallon", "296891", "15 "]
ProductInfo["PS-Quart"]=["PS-Quart", "Porcelain Sealer - Quart", "Quart", "122", "7", "3", "10", "2", "Dry-Treat, Porcelain Sealer", "Purchase 1 Quart of Porcelain Sealer", "PorcelainSealerQuart", "296999", "16 "]
ProductInfo["SPC-Premixed-Quart"]=["SPC-Premixed-Quart", "SP-Cleaner Premixed - Quart", "Premix Qt", "16", "7", "3", "10", "2", "Dry-Treat, SP-Cleaner Premixed", "Purchase 1 Quart of SP-Cleaner Premixed", "SPCleanerPremixedQuart", "316293", "17 "]
ProductInfo["SPC-Concentrate-Quart"]=["SPC-Concentrate-Quart", "SP-Cleaner Concentrate - Quart", "Concentrate Quart", "34", "7", "3", "10", "2", "Dry-Treat, SP-Cleaner Concentrate", "Purchase 1 Quart of SP-Cleaner Concentrate", "SPCleanerConcentrateQuart", "316376", "18 "]
ProductInfo["SP-Quart"]=["SP-Quart", "Stain-Proof - Quart", "Quart", "75", "7", "3", "10", "2", "Dry-Treat, Stain-Proof", "Purchase 1 Quart of Stain-Proof", "StainProofQuart", "316445", "19 "]
ProductInfo["XD-Quart"]=["XD-Quart", "X-Duty Cleaner - Quart", "Quart", "40", "7", "3", "10", "2", "Dry-Treat, X-Duty Cleaner", "Purchase 1 Quart of X-Duty Cleaner", "XDutyCleanerQuart", "316507", "20 "]

function findElementName(ElementNumber) {
	return ProductInfo["ElementNames"][ElementNumber]
}

function findItem_PriceWithSize(Item_Number) {
	 return ProductInfo[Item_Number][2]+": $"+ProductInfo[Item_Number][3]+".00"
}

function findItem_Price(Item_Number) {
	 return ProductInfo[Item_Number][3]
}

function findItem_Add_to_Cart_Hosted_Button_Id(Item_Number) {
	return ProductInfo[Item_Number][11]
}

function displayAllElementsOfAnItem(Item_Number) {
	document.write("<br />")
	for (i=0; i <= 12; i++) {
		document.write("For product: ", ProductInfo[Item_Number][0], ":-> ", findElementName(i), " = ", ProductInfo[Item_Number][i], "<br />")
}
}

//<!---  END Item Information script - Define the information, name, pricing, etc. for all the products --->


