			productInit = function ()
			{
				products = 
				[
					{
						id: 01, 
						parentId: null, 
						name: "Anti Vibration / Vibration Isolation",
						link: null
					},
					{
						id: 02, 
						parentId: null, 
						name: "Levelling (Only)",
						link: null
					},
					{
						id: 03, 
						parentId: null, 
						name: "Anti vibration &amp; Levelling",
						link: null
					},
					{
						id: 0101, 
						parentId: 01, 
						name: "Elastomeric (to 6Hz)",
						link: null
					},
					{
						id: 0102, 
						parentId: 01, 
						name: "Coil Spring (to 3.2Hz)",
						link: null
					},
					{
						id: 0103, 
						parentId: 01, 
						name: "Air (to 2.7Hz)",
						link: null
					},
					{
						id: 0201, 
						parentId: 02, 
						name: "WLF",
						link: "products/wedgemounts.html"
					},
					{
						id: 0202, 
						parentId: 02, 
						name: "WLB",
						link: "products/wedgemounts.html"
					},
					{
						id: 0203, 
						parentId: 02, 
						name: "WLT",
						link: "products/wedgemounts.html"
					},
					{
						id: 0204, 
						parentId: 02, 
						name: "LE",
						link: "products/wedgemounts.html"
					},
					{
						id: 0205, 
						parentId: 02, 
						name: "Jackmounts",
						link: "products/jackmounts.html"
					},
					{
						id: 0206, 
						parentId: 02, 
						name: "Jackmounts captive",
						link: "products/captive_jackmounts.html"
					},
					{
						id: 0208, 
						parentId: 02, 
						name: "MF",
						link: "products/mf_mounts.html"
					},
					{
						id: 0301, 
						parentId: 03, 
						name: "Isomount",
						link: "products/isomounts.html"
					},
					{
						id: 0302, 
						parentId: 03, 
						name: "Isobloc",
						link: "products/isomounts.html#isobloc"
					},
					{
						id: 0303, 
						parentId: 03, 
						name: "WL-C",
						link: "test.html"
					},
					{
						id: 0304, 
						parentId: 03, 
						name: "WL-D",
						link: "test.html"
					},
					{
						id: 010101, 
						parentId: 0101, 
						name: "Free standing",
						link: null
					},
					{
						id: 010102, 
						parentId: 0101, 
						name: "Bolt through",
						link: null
					},
					{
						id: 010103, 
						parentId: 0101, 
						name: "Decoupled (flexible support)",
						link: null
					},
					{
						id: 010104, 
						parentId: 0101, 
						name: "Decoupled with rebound control / fail safe",
						link: null
					},
					{
						id: 010105, 
						parentId: 0101, 
						name: "Isolated foundations",
						link: "products/isolated_foundations.html"
					},
					{
						id: 010201, 
						parentId: 0102, 
						name: "Load / mount range / mount  5 to 3800Kg",
						link: null
					},
					{
						id: 010202, 
						parentId: 0102, 
						name: "Load / mount range / mount 2800 to 17000Kg",
						link: null
					},
					{
						id: 010203, 
						parentId: 0102, 
						name: "Structural Viscous Dampers",
						link: null
					},
					{
						id: 010301, 
						parentId: 0103, 
						name: "SLM",
						link: "products/slm_air_isolators.html"
					},
					{
						id: 01010101, 
						parentId: 010101, 
						name: "Isomount",
						link: "products/isomounts.html"
					},
					{
						id: 01010102, 
						parentId: 010101, 
						name: "Isobloc",
						link: "products/isomounts.html#isobloc"
					},
					{
						id: 01010103, 
						parentId: 010101, 
						name: "Cornerfoot",
						link: "products/cornerfoot_sidefoot.html"
					},
					{
						id: 01010201, 
						parentId: 010102, 
						name: "Anti-vibration pad & AW washers",
						link: "products/typical_applications.html"
					},
					{
						id: 01010202, 
						parentId: 010102, 
						name: "STC",
						link: "products/stc_mounts.html"
					},
					{
						id: 01010203, 
						parentId: 010102, 
						name: "REF",
						link: "products/ref_elastic_fixing_inserts.html"
					},
					{
						id: 01010301, 
						parentId: 010103, 
						name: "Bobbin mounts",
						link: "products/form_a.html"
					},
					{
						id: 01010302, 
						parentId: 010103, 
						name: "REM",
						link: "products/rem_mounts.html"
					},
					{
						id: 01010305, 
						parentId: 010103, 
						name: "RTS",
						link: "products/rts_mounts.html"
					},
					{
						id: 01010401, 
						parentId: 010104, 
						name: "REM",
						link: "products/rem_mounts.html"
					},
					{
						id: 01020101, 
						parentId: 010201, 
						name: "SM",
						link: "products/sm_mounts.html"
					},
					{
						id: 01020201, 
						parentId: 010202, 
						name: "FSL",
						link: "products/fsl_spring_isolators_svai.html"
					},
					{
						id: 01020301, 
						parentId: 010203, 
						name: "FV Damper",
						link: "products/fv_viscous_dampers.html"
					}
				];
			}			
				
				
				productSelector = function (elemId, testId, step)
				{
					if (testId != "")
					{
						var link = null;
						var name = null;
						var i=0;
						var showOnPage = "";
						step+=1;
						
						$("#"+elemId).nextAll().remove();
						for (i=0; i<products.length; i++)
						{
							if (products[i].id == testId)
								{
									link = products[i].link;
									name = products[i].name;
								}
						}
						
						if (link != null)
						{
							showOnPage = "<div class='steps' id='step" + step + "'><a href='" + link + "'>Go to <strong>" + name + "</strong> page &gt;</a></div>";
						}
						else 
						{
							showOnPage = "<div class='steps' id='step" + step + "'><span>" + step + "</span><select onchange='productSelector(this.parentNode.id, this.value, " + step + ");' name='products'><option value=''>Please select</option><option value=''></option></div>";
							for (i=0; i<products.length; i++)
							{
								if (products[i].parentId == testId) 
									{
										showOnPage += "<option value='"+products[i].id+"'>"+products[i].name+"</option>";
									}
							}
							showOnPage += "</select>"
							
						}
						$("#right > #productSelector").append(showOnPage);
						$("#step"+ step + " > select, #step"+ step + " > a").focus();
					}
				}
				
				
$(document).ready(function()
{
	var products = [];
	productInit();
	productSelector(null, null, 0);
});
