// this script contains the specific data for the product(s) sold on this page

// prices updated 11-01-07

// 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["B"] = new pObject("Innertube","TT010",0.00,1.00,1,"");
productData["A"] = new pObject("200 x 50 Low Cost Tyre and Tube","TO010",0.00,1.00,1,"");
productData["C"] = new pObject("Toggle Catch","TO050",0.00,1.00,1,"");
productData["D"] = new pObject("Nylon Wheels","TO080",0.00,1.00,1,"");
productData["E"] = new pObject("Steel Piano Hinge","TO060",0.00,1.00,1,"");
productData["F"] = new pObject("White Felt Lining","TO070",0.00,1.00,1,"");


		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}



// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoTyre_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Tyre_SIZE", "Select Tyre Size", 1);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TO010", "200 x 50 Tyre and Tube", "16.35");
		
	BuildSelection(BoxDefn, LineArray);
}

function DoTube_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Tube_SIZE", "Select Tube Size", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	
	LineArray[0] = new BoxLine("TT011", "200 x 50 Tube 90deg", "8.33");
	LineArray[1] = new BoxLine("TT012", "200 x 50 Tube 30deg", "7.21");
	LineArray[2] = new BoxLine("TT013", "210 x 65 Tube", "9.09");
		
	BuildSelection(BoxDefn, LineArray);
}

function DoToggle_catches()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Toggle_catches", "Select Type", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box

    LineArray[0] = new BoxLine("TO051", "Med Toggle Catch with lock", "9.87");
    LineArray[1] = new BoxLine("TO052", "Med Toggle Catch without lock", "7.41");
    LineArray[2] = new BoxLine("TO053", "Large Toggle Catch without lock", "15.20");


    BuildSelection(BoxDefn, LineArray);
}

function DoNylon_wheel_SIZE()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$Nylon_wheel_SIZE", "Select wheel size", 6);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box

    LineArray[0] = new BoxLine("TO081", "80 x 30 x 15 mm Bore ", "2.59");
    LineArray[1] = new BoxLine("TO082", "100 x 30 x15 mm Bore", "3.23");
    LineArray[2] = new BoxLine("TO083", "125 x 30 x 15 mm Bore", "5.17");
    LineArray[3] = new BoxLine("TO084", "150 x 40 x 20 mm Bore", "5.34");
    LineArray[4] = new BoxLine("TO085", "200 x 50 x 20 mm Bore", "10.09");
    LineArray[5] = new BoxLine("TO086", "200 x 50 x 25 mm Bore", "10.09");

    BuildSelection(BoxDefn, LineArray);
}

function DoPiano_hinge()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Hinge_SIZE", "Select Open width Size", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	
	LineArray[0] = new BoxLine("TO061", "450 x 25 mm open width ", "4.62");
	LineArray[1] = new BoxLine("TO062", "450 x 30 mm open width", "5.40");
	LineArray[2] = new BoxLine("TO063", "450 x 40 mm open width", "5.32");
		
	BuildSelection(BoxDefn, LineArray);
}

function DoFelt_size()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Felt_size", "Select thickness", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	
	LineArray[0] = new BoxLine("TO071", "500 x 500 x1.5 mm Felt ", "16.31");
	LineArray[1] = new BoxLine("TO073", "500 x 500 x3.0 mm Felt ", "23.00");
		
	BuildSelection(BoxDefn, LineArray);
}
