

var compArray = new Object();
compArray[0]      = new Object();
compArray[0].Id   = 'bidon';
compArray[0].Name = 'Bidon';
compArray[0].Text = 'The bidon is a French term for water bottle.';
compArray[1]      = new Object();
compArray[1].Id   = 'bidoncage';
compArray[1].Name = 'Bidon Cage';
compArray[1].Text = 'This is a water bottle holder generally attached to the frame.';
compArray[2]      = new Object();
compArray[2].Id   = 'bottombracket';
compArray[2].Name = 'Bottom bracket';
compArray[2].Text = 'This is a bearing system fitted into the bottom of the frame that allows the pedals %26 cranks to spin.  It is generally a sealed cartridge unit.';
compArray[3]      = new Object();
compArray[3].Id   = 'brakelevers';
compArray[3].Name = 'Brake levers';
compArray[3].Text = 'These are fitted to the handlebars with a cable leading to the brakes.  When pressure is applied to the levers it allows the brakes to close on the wheel slowing the bike down.';
compArray[4]      = new Object();
compArray[4].Id   = 'brakeblocks';
compArray[4].Name = 'Brake blocks';
compArray[4].Text = 'Rubber blocks attached to the callipers in line with the top of the rim.  When pressure is applied to the brake lever%2c the blocks close on the rim slowing or stopping the wheel from turning.';
compArray[5]      = new Object();
compArray[5].Id   = 'chainring';
compArray[5].Name = 'Chain Ring';
compArray[5].Text = 'The pedals are connected to the cranks%2c which in turn are connected to the chain rings. There are usually two or three chain rings that allow you to use a different range of gears. The big chain ring is for high gears or harder gears. The smaller chain rings are for lower or easier gears.';
compArray[6]      = new Object();
compArray[6].Id   = 'chain';
compArray[6].Name = 'Chain';
compArray[6].Text = 'Transfers the energy from the pedals to the rear wheel. As the pedals turn the chain wheel drags the chain around the sprockets at the rear wheel.';
compArray[7]      = new Object();
compArray[7].Id   = 'chainstay';
compArray[7].Name = 'Chain Stay';
compArray[7].Text = 'Lower part at the rear of the frame running parallel with the chain.';
compArray[8]      = new Object();
compArray[8].Id   = 'cliplesspedal';
compArray[8].Name = 'Clip-less pedal';
compArray[8].Text = 'Does not require a toe clip%2c as it allows a cleat%2c which is fixed to the sole of the shoe to lock into the pedal.';
compArray[9]      = new Object();
compArray[9].Id   = 'cluster';
compArray[9].Name = 'Cluster';
compArray[9].Text = 'A group of cogs or sprockets found on the right side of the rear wheel. There can be between five and nine sprockets on the cluster. They will range from small on the outside to larger nearer the wheel.';
compArray[10]      = new Object();
compArray[10].Id   = 'crank';
compArray[10].Name = 'Crank';
compArray[10].Text = 'Assists rotation of the pedals and is attached to the bottom bracket axle and chain rings.';
compArray[11]      = new Object();
compArray[11].Id   = 'frontderailleur';
compArray[11].Name = 'Front Derailleur';
compArray[11].Text = 'Moves the chain from one chain ring to another when we change the gear range. It is connected to the frame above the chain rings and is operated by a cable from a controller on the left handlebar.';
compArray[12]      = new Object();
compArray[12].Id   = 'diskbrakes';
compArray[12].Name = 'Disk Brakes';
compArray[12].Text = 'Braking device with a circular disk called a rotor%2c which is mounted near the wheel hub.  When pressure is applied to the brake lever two pads close onto the rotor slowing or stopping the wheel spinning.';
compArray[13]      = new Object();
compArray[13].Id   = 'hanger';
compArray[13].Name = 'Dropout';
compArray[13].Text = 'Part of the frame where the rear wheel sits in the frame.  More expensive bikes are fitted with replaceable dropouts.  These dropouts can be replaced if the rear of the bike is bent or damaged.';
compArray[14]      = new Object();
compArray[14].Id   = 'downtube';
compArray[14].Name = 'Down tube';
compArray[14].Text = 'A tube within the frame which runs down at a 45 degree angle from the handlebars to the bottom bracket.';
compArray[15]      = new Object();
compArray[15].Id   = 'forkblade';
compArray[15].Name = 'Fork blade';
compArray[15].Text = 'Extension of the steerer tube%2c which connects the wheel to the bike.';
compArray[16]      = new Object();
compArray[16].Id   = 'gearlever';
compArray[16].Name = 'Gear lever';
compArray[16].Text = 'There are several styles of gear levers or shifters - some operate by levers and others operate by twisting a part of the handgrip. Shifters are usually located on the handlebars but on some older style bikes they will be located on the frame. Whatever the location%2c the shifter on the left operates the front derailleur and the shifter on the right operates the rear derailleur.';
compArray[17]      = new Object();
compArray[17].Id   = 'handlebars';
compArray[17].Name = 'Handlebars';
compArray[17].Text = 'Attached to the head stem and steerer tube which allows the rider to manoeuvre the bike.';
compArray[18]      = new Object();
compArray[18].Id   = 'headset';
compArray[18].Name = 'Head Set';
compArray[18].Text = 'A bearing set which is housed within the frame. It allows movement of the forks and handlebars%2c so the bike can be manoeuvred or steered.';
compArray[19]      = new Object();
compArray[19].Id   = 'headstem';
compArray[19].Name = 'Head Stem';
compArray[19].Text = 'A tube%2c which clamps to the steerer tube and fork at one end. At the other end the handlebars are attached.';
compArray[20]      = new Object();
compArray[20].Id   = 'hub';
compArray[20].Name = 'Hub';
compArray[20].Text = 'Centre of the wheel where the spokes attach keeping the wheel straight or true.';
compArray[21]      = new Object();
compArray[21].Id   = 'jockeywheel';
compArray[21].Name = 'Jockey Wheel';
compArray[21].Text = 'Small cogs that assist in pulling and guiding the chain through the rear cogs or sprockets.';
compArray[22]      = new Object();
compArray[22].Id   = 'nipple';
compArray[22].Name = 'Nipple';
compArray[22].Text = 'Located within the rim and attached to the spoke allowing the spoke to be tensioned so the wheel spins straight or true.';
compArray[23]      = new Object();
compArray[23].Id   = 'quickrelease';
compArray[23].Name = 'Quick release';
compArray[23].Text = 'A cambered lever attached to the skewer which when pulled into the frame secures the wheel to the bike.';
compArray[24]      = new Object();
compArray[24].Id   = 'rearderailleur';
compArray[24].Name = 'Rear Derailleur';
compArray[24].Text = 'Moves the chain from one sprocket to another when changing gears. It is connected to the frame below the cluster and is operated by a cable from a control on the right handlebar.';
compArray[25]      = new Object();
compArray[25].Id   = 'rim';
compArray[25].Name = 'Rim';
compArray[25].Text = 'Main body of the wheel which is held together by the spokes.';
compArray[26]      = new Object();
compArray[26].Id   = 'saddle';
compArray[26].Name = 'Saddle';
compArray[26].Text = 'The seat on which the rider sits.';
compArray[27]      = new Object();
compArray[27].Id   = 'seattube';
compArray[27].Name = 'Seat tube';
compArray[27].Text = 'A tube attached to the frame that holds the saddle onto the bike.';
compArray[28]      = new Object();
compArray[28].Id   = 'seattubecollar';
compArray[28].Name = 'Seat tube collar';
compArray[28].Text = 'A device that clamps the seat tube to the frame.';
compArray[29]      = new Object();
compArray[29].Id   = 'skewer';
compArray[29].Name = 'Skewer';
compArray[29].Text = 'An axle that runs through the centre of the wheel.  The skewer is required to attach the wheel to the bike.';
compArray[30]      = new Object();
compArray[30].Id   = 'toeclip';
compArray[30].Name = 'Toe clip';
compArray[30].Text = 'Device that secures a rider\'s foot to the pedal.';
compArray[31]      = new Object();
compArray[31].Id   = 'toptube';
compArray[31].Name = 'Top tube';
compArray[31].Text = 'Uppermost tube of the frame.';
compArray[32]      = new Object();
compArray[32].Id   = 'valvesp';
compArray[32].Name = 'Valve - Presta';
compArray[32].Text = 'The valve traps air within the tube of the tyre allowing the rider to inflate the tyre to the desired pressure known as psi.  There are two types of valves - a schrader valve and a presta valve.';
compArray[33]      = new Object();
compArray[33].Id   = 'valvess';
compArray[33].Name = 'Valves - Schraeder';
compArray[33].Text = 'The valve traps air within the tube of the tyre allowing the rider to inflate the tyre to the desired pressure known as psi.  There are two types of valves - a schrader valve and a presta valve.';
compArray.Length = 34;


function selectItem(itemId) {

		var header = document.getElementById('_comp_header');
		var detail = document.getElementById('_comp_detail');
		var image = document.getElementById('_image');

	  for(var i = 0; i < compArray.Length; i++) {
			if(compArray[i].Id == itemId) {
				
				header.innerHTML = unescape(compArray[i].Name);
				detail.innerHTML = unescape(compArray[i].Text);
				image.src = "Image.axd?File=Componentry/" + itemId + ".gif";				
				
				break;
			}
		}
}

