// 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)
	{
		if(DoDebug == true)
		{
			window.alert("setProductArrayData()");
		}
		// Data from Magic XL Spreadsheet...
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["A"] = new pObject("3A Toggle Switch (On / Off)","SW010",2.77,1.00,1,"");
productData["B"] = new pObject("3A Toggle Switch (On / Off / On)","SW020",2.72,1.00,1,"");
productData["C"] = new pObject("6A Toggle Switch (On / Off)","SW030",5.99,1.00,1,"");
productData["D"] = new pObject("6A Toggle Switch (On / Off / On)","SW040",8.76,1.00,1,"");
productData["E"] = new pObject("Miniature Toggle Switch (On / Off)","SW050",2.05,1.00,1,"");
productData["F"] = new pObject("Miniature Toggle Switch (On / Off /On)","SW060",2.98,1.00,1,"");
productData["I"] = new pObject("Micro Switch","SW070",0.00,1.00,1,"");
productData["H"] = new pObject("Push Button Switch","SW080",0.00,1.00,1,"");
productData["G"] = new pObject("Push Switch - Colour Change","",0.00,1.00,1,"");
productData["J"] = new pObject("Reed Switch","",0.00,1.00,1,"");
productData["K"] = new pObject("Reed Switch Magnet","",0.00,1.00,1,"");
productData["L"] = new pObject("Undercarriage Warning Kit","SW120",24.14,1.00,1,"");
		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoButton_COLOUR()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Button_COLOUR", "Select Button Colour", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("SW091", "Orange", "8.94");
    LineArray[1] = new BoxLine("SW092", "Green", "8.94");

    BuildSelection(BoxDefn, LineArray);
}


function DoPush_TYPE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Push_TYPE", "Select Switch Type", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("SW081", "Push to make", "1.98");
    LineArray[1] = new BoxLine("SW082", "Push to break", "2.31");


    BuildSelection(BoxDefn, LineArray);
}

function DoMicro_TYPE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Micro_TYPE", "Select Micro Switch Type", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("SW071", "Lever Long", "2.29");
    LineArray[1] = new BoxLine("SW072", "Lever Short", "2.29");
    LineArray[2] = new BoxLine("SW073", "Button", "3.39");
    LineArray[3] = new BoxLine("SW074", "Lever Long with Roller", "2.36");


    BuildSelection(BoxDefn, LineArray);
}

function DoReed_TYPE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Reed_TYPE", "Select Reed Switch Type", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("SW101", "Change over contacts", "6.89");
    LineArray[1] = new BoxLine("SW102", "Normally open contacts", "4.60");
    LineArray[2] = new BoxLine("SW103", "Normally closed contacts", "6.74");


    BuildSelection(BoxDefn, LineArray);
}


function DoReed_Magnet_TYPE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Reed_Magnet_TYPE", "Select Magnet Size and Type", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box

    LineArray[0] = new BoxLine("SW111", "Round Short", "1.47");
    LineArray[1] = new BoxLine("SW113", "Rectangular", "2.72");
    LineArray[2] = new BoxLine("SW114", "Rectangular with mounting lugs", "2.36");


    BuildSelection(BoxDefn, LineArray);
}

