// this script contains the specific data for the product(s) sold on this page

// updated 02-01-09

// 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("Winter ASI ","TI010",0.00,1.00,1,"");
		productData["Ai"] = new pObject("Winter ASI Ivory ","TI010i",0.00,1.00,1,"");
		productData["B"] = new pObject("Winter Altimeter ","TI020",0.00,1.00,1,"");
		productData["Bi"] = new pObject("Winter Altimeter Ivory ","TI020i",0.00,1.00,1,"");
		productData["C"] = new pObject("Winter Mech Vario ","TI030",0.00,1.00,1,"");
		productData["Ci"] = new pObject("Winter Mech Vario Ivory ","TI030i",0.00,1.00,1,"");
		productData["D"] = new pObject("Vario Capacity ","TI040",22.99,1.00,1,"");
		productData["E"] = new pObject("5 Way Quick release Coupling","TI050",27.99,1.00,1,"");
		productData["F"] = new pObject("Single Turn ASI ","TI060",0.00,1.00,1,"");
		productData["G"] = new pObject("Sensitive Altimeter 80mm ","TI070",0.00,1.00,1,"");
		productData["J"] = new pObject("MacCready Ring","TI090",0.00,1.00,1,"");
		productData["K"] = new pObject("Hole Blank/Reducing Plate","TI100",0.00,1.00,1,"");
		productData["L"] = new pObject("Compasses","TI300",0.00,1.00,1,"");
		productData["M"] = new pObject("Instrument Hole Cutter","TI400",0.00,1.00,1,"");
		productData["N"] = new pObject("ASI Colour banding kit","TI160",0.00,1.00,1,"");
		productData["P"] = new pObject("Compass Fluid 250 cc","TI330",5.23,1.00,1,"");
		productData["Q"] = new pObject("Compass Overhaul Kit","TI331",16.11,1.00,1,"");
		productData["U"] = new pObject("Instrument Template","TI410",0.00,1.00,1,"");
		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoASI_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$ASI_Form", "Select Model", 6);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI011","  80 mm  140 knots over 1 1/2 turns", "264.89");
	LineArray[1] = new BoxLine("TI012","  80 mm  160 knots over 1 1/2 turns", "264.89");
	LineArray[2] = new BoxLine("TI013","  80 mm  200 knots over 1 1/2 turns", "264.89");
	LineArray[3] = new BoxLine("TI014","  57 mm  140 knots over 1 turn", "234.91");
	LineArray[4] = new BoxLine("TI015","  57 mm  160 knots over 1 turn", "234.91");
	LineArray[5] = new BoxLine("TI016","  57 mm  200 knots over 1 turn", "234.91");

	BuildSelection(BoxDefn, LineArray);
}

function DoASI_Ivory_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$ASI_Ivory_Form", "Select Model", 6);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI011i","  80 mm  140 knots over 1 1/2 turns", "284.89");
	LineArray[1] = new BoxLine("TI012i","  80 mm  160 knots over 1 1/2 turns", "284.89");
	LineArray[2] = new BoxLine("TI013i","  80 mm  200 knots over 1 1/2 turns", "284.89");
	LineArray[3] = new BoxLine("TI014i","  57 mm  140 knots over 1 turn", "284.89");
	LineArray[4] = new BoxLine("TI015i","  57 mm  160 knots over 1 turn", "284.89");
	LineArray[5] = new BoxLine("TI016i","  57 mm  200 knots over 1 turn", "284.89");

	BuildSelection(BoxDefn, LineArray);
}

function DoAlt_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Alt_Form", "Select Model", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI021","  80 mm  20,000 ft", "609.76");
	LineArray[1] = new BoxLine("TI023","  57 mm  20,000 ft", "609.76");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoAlt_ivory_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Alt_ivoryForm", "Select Model", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI021i","  80 mm  20,000 ft", "659.74");
	LineArray[2] = new BoxLine("TI023i","  57 mm  20,000 ft", "659.74");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoCAlt_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$CAlt_Form", "Select Model", 1);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI071"," Non Approved 80 mm  20,000 ft", "199.40");

	BuildSelection(BoxDefn, LineArray);
}

function DoVario_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Vario_Form", "Select Model", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI031","  80 mm Winter Vario 10 - 0 -10 Kts", "379.85");
	LineArray[1] = new BoxLine("TI032","  57 mm Winter Vario 10 - 0 -10 Kts", "379.85");
	
	BuildSelection(BoxDefn, LineArray);
}


function DoVario_ivory_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Vario_ivory_Form", "Select Model", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI031i","  80 mm Winter Vario 10 - 0 -10 Kts", "429.83");
	LineArray[1] = new BoxLine("TI032i","  57 mm Winter Vario 10 - 0 -10 Kts", "429.83");
	
	BuildSelection(BoxDefn, LineArray);
}


function DoRing_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Ring_Form", "Select Size", 4);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI091","  80 mm marked ring", "57.98");
	LineArray[1] = new BoxLine("TI092","  57 mm marked ring ", "57.98");
	LineArray[2] = new BoxLine("TI093","  80 mm Adaptor Ring", "38.70");
	LineArray[3] = new BoxLine("TI094","  57 mm Adaptor Ring ", "35.60");

	BuildSelection(BoxDefn, LineArray);

}
function DoBlanks_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Blanks_Form", "Select Size", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI101","  80 mm Hole Cover Plate ", "4.46");
	LineArray[1] = new BoxLine("TI102","  57 mm Hole Cover Plate ", "3.62");
	LineArray[2] = new BoxLine("TI103"," 80 mm to 57 mm Reducing Plate ", "9.43");

	BuildSelection(BoxDefn, LineArray);
}

function DoCompass_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Compass_Form", "Select Mounting Method", 6);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI315"," Airpath 2300 Panel Mounted EASA Approved ", "139.94");
	LineArray[1] = new BoxLine("TI316"," Airpath 2400 Pedestal Mounted EASA Approved ", "144.80");
	LineArray[2] = new BoxLine("TI322"," SIR Navigator Compass Panel Mounted ", "136.09");
	LineArray[3] = new BoxLine("TI320"," SIR Navigator Compass Pedestal Mounted ", "139.94");
	LineArray[4] = new BoxLine("TI325"," SIR Navigator Compass Pedestal Mounted + Form 1 ", "160.00");
	LineArray[5] = new BoxLine("TI322"," SIR Navigator Compass Panel Mounted + Form 1", "160.00");

	BuildSelection(BoxDefn, LineArray);
}

function DoHolecutter_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Holecutter_Form", "Select Size", 4);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI401"," Hole Cutter 57 mm ", "8.82");
	LineArray[1] = new BoxLine("TI402"," Hole Cutter 60 mm ", "8.82");
	LineArray[2] = new BoxLine("TI403"," Hole Cutter 80 mm ", "8.86");
	LineArray[3] = new BoxLine("TI404"," Hole Cutter Arbor ", "9.02");

	BuildSelection(BoxDefn, LineArray);
}

function DoBanding_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Banding_Form", "Select Size", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI161"," Colour Banding Kit 57 mm ", "4.91");
	LineArray[1] = new BoxLine("TI162"," Colour Banding Kit 80 mm ", "4.91");

	BuildSelection(BoxDefn, LineArray);
}

function DoTemplate_Form()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Template_Form", "Select Stencil or Guide", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("TI411"," 57 mm Stencil ", "4.28");
	LineArray[1] = new BoxLine("TI412"," 80 mm Stencil ", "4.28");
	LineArray[2] = new BoxLine("TI413"," Drill guide plate  ", "7.60");
	BuildSelection(BoxDefn, LineArray);
}

