// this script contains the specific data for the product(s) sold on this page

// prices updated 29-12-08

// Data from Magic XL Spreadsheet

var DoDebug=false
var ArrayDone=false;
var productData=new Array();

function setProductArrayData(){
	if(ArrayDone == false)
	{
		if(DoDebug == true)
		{
			window.alert("setProductArrayData()");
		}
		// Data from Magic XL Spreadsheet...
productData["J"] = new pObject("XLR Line Connector 3 Way","",0.00,1.00,1,"");
productData["K"] = new pObject("XLR Panel Connector 3 Way","",0.00,1.00,1,"");
productData["F"] = new pObject("2 Way Battery Connector","EC010",3.58,1.00,1,"");
productData["E"] = new pObject("4 Way Din Plug & Socket","EC020",4.97,1.00,1,"");
productData["G"] = new pObject("4 Way Inline Plug & Socket","EC030",2.18,1.00,1,"");
productData["A"] = new pObject("Rectangular Multi-way Connectors","",0.00,1.00,1,"");
productData["C"] = new pObject("Round Multi-way Connectors","",0.00,1.00,1,"");
productData["B"] = new pObject("Additional Pins Rect M/W Con","EC060",1.01,1.00,1,"");
productData["D"] = new pObject("Additional Pins Round M/W Con","EC070",1.01,1.00,1,"");
productData["H"] = new pObject("D Connector Plugs and Sockets","",0.00,1.00,1,"");
productData["I"] = new pObject("D Connectors Hoods with thumbscrews","",0.00,1.00,1,"");
		
		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoRect_MW_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Rect_MW_SIZE", "Select Size Required", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("EC041", "4 Way ", "2.31");
    LineArray[1] = new BoxLine("EC042", "6 Way ", "2.64");
    LineArray[2] = new BoxLine("EC043", "12 Way ", "3.16");

    BuildSelection(BoxDefn, LineArray);
}

function DoRound_MW_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Round_MW_SIZE", "Select Size Required", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("EC051", "4 Way ", "15.00");
    LineArray[1] = new BoxLine("EC052", "8 Way ", "17.24");
    LineArray[2] = new BoxLine("EC054", "12 Way ", "18.71");

    BuildSelection(BoxDefn, LineArray);
}

function DoD_Conn_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$D_Conn_SIZE", "Select Size Required", 8);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
      LineArray[0] = new BoxLine("EC081", "9 Way  Plug", "0.61");
	LineArray[1] = new BoxLine("EC082", "9 Way  Socket", "0.87");
	LineArray[2] = new BoxLine("EC083", "15 Way Plug", "0.82");
	LineArray[3] = new BoxLine("EC084", "15 Way Socket", "1.08");
	LineArray[4] = new BoxLine("EC085", "25 Way Plug", "1.18");
	LineArray[5] = new BoxLine("EC086", "25 Way Socket", "1.29");
	LineArray[6] = new BoxLine("EC087", "37 Way Plug", "2.16");
	LineArray[7] = new BoxLine("EC088", "37 Way Socket", "1.69");

    BuildSelection(BoxDefn, LineArray);
}

function DoD_Conn_Hood_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$D_Conn_Hood_SIZE", "Select Size Required", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("EC091", "9 Way ", "1.24");
	LineArray[1] = new BoxLine("EC092", "15 Way ", "1.29");
	LineArray[2] = new BoxLine("EC093", "25 Way ", "1.47");
	LineArray[3] = new BoxLine("EC094", "37 Way ", "1.61");

    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.70");

    BuildSelection(BoxDefn, LineArray);
}

