// this script contains the specific data for the product(s) sold on this page

// prices updated 30-12-06

// 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("Multiway AMP Connector","RC010",0.00,1.00,1,"");
		productData["B"] = new pObject("BNC Plug Connector (Right Angle)","RC030",2.54,1.00,1,"");
		productData["A"] = new pObject("BNC Plug Connector (Straight)","RC040",1.98,1.00,1,"");
		productData["E"] = new pObject("BNC Adapters ","RC050",0.00,1.00,1,"");
		productData["D"] = new pObject("BNC Panel Socket","RC060",1.55,1.00,1,"");
		productData["C"] = new pObject("BNC Inline Socket ","RC070",1.66,1.00,1,"");
		productData["P"] = new pObject("RG58 Aerial Cable","RC080",0.65,1.00,1,"");
		productData["O"] = new pObject("Screened Cable","RC090",0.00,1.00,1,"");
		productData["L"] = new pObject("Chokes and Ferrites","RC100",0.00,1.00,1,"");
		productData["F"] = new pObject("Co-Ax Plug Metal","RC110",0.32,1.00,1,"");
		productData["G"] = new pObject("Co-ax Inline Socket Metal","RC120",0.58,1.00,1,"");
		productData["H"] = new pObject("D Connector Plugs and Sockets","RC130",0.00,1.00,1,"");
		productData["I"] = new pObject("D Connectors Hoods with thumbscrews","RC140",0.00,1.00,1,"");
		productData["K"] = new pObject("DIN Connectors","RC150",0.00,1.00,1,"");
		productData["T"] = new pObject("Microphones","RC160",0.00,1.00,1,"");
		productData["S"] = new pObject("PTT Switch with 1m Lead","RC170",8.55,1.00,1,"");
		productData["R"] = new pObject("PTT Switch Gold Plated Contacts","RC180",4.77,1.00,1,"");
		productData["Q"] = new pObject("PTT Switch Low Cost","RC190",2.53,1.00,1,"");
		productData["U"] = new pObject("Loudspeakers","RC200",0.00,1.00,1,"");
		productData["M"] = new pObject("Tywraps","RC210",0.00,1.00,1,"");
		productData["N"] = new pObject("Connecting Wire","RC220",0.00,1.00,1,"");
		productData["P"] = new pObject("Type 44 Wire","RC510",0.00,1.00,1,"");

		// ...Data from Magic XL Spreadsheet

		
		ArrayDone = true;
	};
}



// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
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.31");
	LineArray[2] = new BoxLine("EC093", "25 Way ", "1.47");
	LineArray[3] = new BoxLine("EC094", "37 Way ", "1.61");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoAMP_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$AMP_SIZE", "Select Multi-way AMP Connector Size", 10);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC011", "2 way Plug", "1.42");
	LineArray[1] = new BoxLine("RC012", "2 way Socket", "1.33");
	LineArray[2] = new BoxLine("RC013", "4 way Plug", "1.83");
	LineArray[3] = new BoxLine("RC014", "4 way Socket", "1.80");
	LineArray[4] = new BoxLine("RC015", "6 way Plug", "2.15");
	LineArray[5] = new BoxLine("RC016", "6 way Socket", "2.21");
	LineArray[6] = new BoxLine("RC017", "9 way Plug", "2.37");
	LineArray[7] = new BoxLine("RC018", "9 way Socket", "2.39");
	LineArray[8] = new BoxLine("RC019", "12 way Plug", "2.88");
	LineArray[9] = new BoxLine("RC020", "12 way Socket", "3.15");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoDIN_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$DIN_SIZE", "Select DIN Connector Size", 4);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC151", "3 way Plug", "2.22");
	LineArray[1] = new BoxLine("RC152", "3 way Socket", "1.91");
	LineArray[2] = new BoxLine("RC153", "5 way Plug", "2.31");
	LineArray[3] = new BoxLine("RC154", "5 way Socket", "2.22");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoWire_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Wire_SIZE", "Select Size", 15);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC221", "RED 3A", "0.15");
	LineArray[1] = new BoxLine("RC222", "RED 6A", "0.23");
	LineArray[2] = new BoxLine("RC223", "RED 10A", "0.26");
	LineArray[3] = new BoxLine("RC224", "BLUE 3A", "0.15");
	LineArray[4] = new BoxLine("RC225", "BLUE 6A", "0.23");
	LineArray[5] = new BoxLine("RC226", "BLUE 10A", "0.26");
	LineArray[6] = new BoxLine("RC227", "BLACK 3A", "0.15");
	LineArray[7] = new BoxLine("RC228", "BLACK 6A", "0.23");
	LineArray[8] = new BoxLine("RC229", "BLACK 10A", "0.26");
	LineArray[9] = new BoxLine("RC230", "GREY 3A", "0.15");
	LineArray[10] = new BoxLine("RC231", "GREY 6A", "0.23");
	LineArray[11] = new BoxLine("RC232", "GREY 10A", "0.26");
	LineArray[12] = new BoxLine("RC233", "YELLOW 3A", "0.15");
	LineArray[13] = new BoxLine("RC234", "YELLOW 6A", "0.23");
	LineArray[14] = new BoxLine("RC235", "YELLOW 10A", "0.26");
	
	BuildSelection(BoxDefn, LineArray);
}


function DoWire_44()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Wire_44", "Select Size", 16);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC511", "RED 24AWG", "0.32");
	LineArray[1] = new BoxLine("RC512", "RED 22AWG", "0.34");
	LineArray[2] = new BoxLine("RC513", "RED 20AWG", "0.38");
	LineArray[3] = new BoxLine("RC514", "RED 18AWG", "0.50");
	LineArray[4] = new BoxLine("RC521", "BLUE 24AWG", "0.32");
	LineArray[5] = new BoxLine("RC522", "BLUE 22AWG", "0.34");
	LineArray[6] = new BoxLine("RC523", "BLUE 20AWG", "0.38");
	LineArray[7] = new BoxLine("RC524", "BLUE 18AWG", "0.50");
	LineArray[8] = new BoxLine("RC531", "BLACK 24AWG", "0.32");
	LineArray[9] = new BoxLine("RC532", "BLACK 22AWG", "0.34");
	LineArray[10] = new BoxLine("RC533", "BLACK 20AWG", "0.38");
	LineArray[11] = new BoxLine("RC534", "BLACK 18AWG", "0.50");
	LineArray[12] = new BoxLine("RC541", "WHITE 24AWG", "0.32");
	LineArray[13] = new BoxLine("RC542", "WHITE 22AWG", "0.34");
	LineArray[14] = new BoxLine("RC543", "WHITE 20AWG", "0.38");
	LineArray[15] = new BoxLine("RC544", "WHITE 18AWG", "0.50");

	
	BuildSelection(BoxDefn, LineArray);
}

function DoCable_TYPE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Cable_TYPE", "Select Cable", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC091", "Single Core Screen", "0.76");
	LineArray[1] = new BoxLine("RC092", "2 Core Screened", "1.03");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoChoke_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Choke_SIZE", "Select Choke Size", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC101", "Small", "0.21");
	LineArray[1] = new BoxLine("RC102", "Medium", "0.60");
	LineArray[2] = new BoxLine("RC103", "XLarge", "0.76");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoTywrap_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Tywrap_SIZE", "Select Size", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC211", "Small", "0.81");
	LineArray[1] = new BoxLine("RC212", "Medium", "0.95");
	LineArray[2] = new BoxLine("RC213", "XLarge", "1.11");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoSpeaker_Type()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Speaker_Type", "Select Speaker", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC201", "2.5 W 8ohm Open 50mm Dia", "2.68");
	LineArray[1] = new BoxLine("RC203", "5W 8ohm Enclosed Speaker", "7.09");

	BuildSelection(BoxDefn, LineArray);
}

function DoMicrophone_Type()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Microphone_Type", "Select Microphone", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC161", "Boom Mike Dynamic", "28.04");
	LineArray[1] = new BoxLine("RC162", "Boom Mike Elect", "41.11");
	LineArray[2] = new BoxLine("RC163", "Dynamic Mike Insert 22mm ", "5.96");
	
		
	BuildSelection(BoxDefn, LineArray);
}

function DoBNC_Adaptor_Type()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$BNC_Adaptor_Type", "Select Adaptor ", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RC051", "Socket to Socket", "3.23");
	LineArray[1] = new BoxLine("RC052", "Plug to Plug Striaght", "3.24");
	LineArray[2] = new BoxLine("RC053", "Right Angle Socket to Plug", "3.12");
	
	BuildSelection(BoxDefn, LineArray);
}

