// this script contains the specific data for the product(s) sold on this page

// prices updated 30-12-08

// Data from Magic XL Spreadsheet

var DoDebug=false;
var ArrayDone=false;
var productData=new Array();

function setProductArrayData(){
	if(ArrayDone == false)
	{
		// Data from Magic XL Spreadsheet...

productData["A"] = new pObject("Lead Acid Gel Cells","",0.00,1.00,2,"");
productData["B"] = new pObject("Cyclon Gel Cell","",0.00,1.00,1,"");
productData["C"] = new pObject("Gel Cell Charger","",0.00,1.00,2,"");
productData["D"] = new pObject("XLR Line Connector 3 Way","",0.00,1.00,1,"");
productData["E"] = new pObject("XLR Panel Connector 3 Way","",0.00,1.00,1,"");
productData["F"] = new pObject("Plastic Inline Fuse Holder","",0.00,1.00,1,"");
productData["G"] = new pObject("Push On Terminals 3/16","BC070",0.32,1.00,1,"");
productData["H"] = new pObject("GRP Battery Box","",0.00,1.00,1,"");
productData["K"] = new pObject("Tail Battery Pack","",0.00,1.00,2,"");
productData["N"] = new pObject("Deep Discharge Gel Cell ","",0,1.00,2,"");

		// ...Data from Magic XL Spreadsheet

		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Cut & Paste From XL Spreadsheet
function DoLead_Acid_Gel_Cell_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Lead_Acid_Gel_Cell_SIZE", "Select Battery Size", 11);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC016S ", "6v 4A/H Battery Branded", "6.69");
    LineArray[1] = new BoxLine("BC016 ", "6v 4A/H Battery Yuasa", "10.58");
    LineArray[2] = new BoxLine("BC011 ", "12v 4A/H Battery Yuasa", "18.40");
    LineArray[3] = new BoxLine("BC011S", "12v 4A/H Battery Branded", "14.02");
    LineArray[4] = new BoxLine("BC012 ", "12v 7A/H Battery Yuasa", "18.80");
    LineArray[5] = new BoxLine("BC012S", "12v 7A/H Battery Branded", "17.32");
    LineArray[6] = new BoxLine("BC023", "12v 12A/H Battery Branded", "25.05");
    LineArray[7] = new BoxLine("BC013 ", "12v 17A/H Battery Yuasa", "52.50");
    LineArray[8] = new BoxLine("BC013S", "12v 17A/H Battery Branded", "36.30");
    LineArray[9] = new BoxLine("BC014 ", "12v 7A/H Battery Yuasa with leads, connector and Fuse", "39.73");
    LineArray[10] = new BoxLine("BC015 ", "12v 17A/H Battery Yuasa with leads, connector and Fuse", "69.91");
    BuildSelection(BoxDefn, LineArray);

}

function DoCyclon_Gel_Cell_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Cyclon_Gel_Cell_SIZE", "Select Battery Size", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC021", "2 volt 5A/H Battery", "8.89");
    LineArray[1] = new BoxLine("BC022", "2 volt 8A/H Battery", "9.81");

    BuildSelection(BoxDefn, LineArray);
}

function DoGel_Cell_Charger()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Gel_Cell_Charger", "Select Charger Type", 7);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC033", " 18A/H with Crocodile clips", "55.27");
    LineArray[1] = new BoxLine("BC034", " 18A/H with XLR connector", "63.72");
    LineArray[2] = new BoxLine("BC035", " 3 Stage Charger 12A/H with Croc clips", "29.45");
    LineArray[3] = new BoxLine("BC036", " 3 Stage Charger 12A/H with XLR ", "34.13");
    LineArray[4] = new BoxLine("BC037", " Switch Mode Charger with Croc clips", "31.12");
    LineArray[5] = new BoxLine("BC038", " Switch Mode Charger with XLR ", "37.78");
    LineArray[6] = new BoxLine("BC038D", " Switch Mode Charger with 2 XLR ", "40.98");


    BuildSelection(BoxDefn, LineArray);
}

function DoXLR_LINE_Connector()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$XLR_LINE_Connector", "Select XLR Connector Type", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC041", " Line Plug 3way (Metal)", "2.92");
    LineArray[1] = new BoxLine("BC042", " Line Plug 3way (Plastic)", "2.12");
    LineArray[2] = new BoxLine("BC043", " XLR Line Socket 3way (Metal)", "3.40");
    LineArray[3] = new BoxLine("BC044", " XLR Line Socket 3way (Plastic)", "2.52");

    BuildSelection(BoxDefn, LineArray);
}

function DoXLR_PANEL_Connector()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$XLR_PANEL_Connector", "Select XLR Panel Fitting Type", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC051", " XLR Panel Plug 3way (Metal)", "2.78");
    LineArray[1] = new BoxLine("BC052", " XLR Panel Plug 3way (Plastic)", "1.49");
    LineArray[2] = new BoxLine("BC053", " XLR Panel Socket 3way (Metal)", "3.50");
    LineArray[3] = new BoxLine("BC054", " XLR Panel Skt 3way (Plastic)", "1.74");

    BuildSelection(BoxDefn, LineArray);
}

function DoInline_Fuseholders()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Inline_Fuseholders", "Select Fuseholder type", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC061", "In-line Fuse Holder 1.25 &quot;", "0.99");
    LineArray[1] = new BoxLine("BC062", "In-line Fuse Holder 20mm", "0.94");
    LineArray[2] = new BoxLine("BC063", "In-line Fuse Holder Auto Blade", "1.76");

    BuildSelection(BoxDefn, LineArray);
}

function DoTailbatteryForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$TailbatteryForm", "Select Tail Battery type", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC411", "Tail Battery Pack Shempp Hirth;", "53.99");
    LineArray[1] = new BoxLine("BC412", "Tail Battery Pack LS4/6", "53.99");
    LineArray[2] = new BoxLine("BC413", "Tail Battery Pack LS8", "58.19");
    LineArray[3] = new BoxLine("BC414", "Tail Battery Pack ASW 27/28", "53.99");

    BuildSelection(BoxDefn, LineArray);
}

function DoBatBoxForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$BatBoxForm", "Select Box Size", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("BC081", "Single 7 a/h battery", "40.69");
    LineArray[1] = new BoxLine("BC082", "Double 7 a/h battery", "47.08");

    BuildSelection(BoxDefn, LineArray);
}

function DoDeep_Discharge_Gel_Cell_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Deep_Discharge_Gel_Cell_SIZE", "Select Battery Size", 5);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box

    LineArray[0] = new BoxLine("BC012D ", "12v 7A/H Battery Deep Discharge", "23.30");
    LineArray[1] = new BoxLine("BC016D ", "12v 12A/H Battery Deep Discharge", "38.25");
    LineArray[2] = new BoxLine("BC013D", "12v 17A/H Battery Deep Discharge", "48.19");
    LineArray[3] = new BoxLine("BC014D ", "12v 7A/H Battery Deep Discharge with leads, connector and Fuse", "46.28");
    LineArray[4] = new BoxLine("BC015D ", "12v 12A/H Battery Deep Discharge with leads, connector and Fuse", "68.31");
    BuildSelection(BoxDefn, LineArray);

}
