var ie=(document.all)?1:0;

function load_subMenu0 (veh,text){
	var tmp;
	var text = 'All Crawford Performance high performance engine parts are developed for the various Subaru models including the STI, WRX, Legacy GT, Legacy Spec B, and Forester XT. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	var title = '<span class=whiteBoldLarge>Engine Menu</span><br><br>';
	var menu0 = new Array();
	menu0[0] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-0&veh="+veh+">Short Blocks</a><br>");
	menu0[1] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-1&veh="+veh+">Short Block Installation Kits</a><br>");
	menu0[2] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-2&veh="+veh+">Rotating Assembly's</a><br>");
	menu0[3] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-3&veh="+veh+">Cylinder Heads</a><br>");
	menu0[4] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-4&veh="+veh+">High Performance Fuel Kits</a><br>");
	menu0[5] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=1-5&veh="+veh+">Engine Breather Kits</a><br>");
	menu0[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu0[0]+menu0[1]+menu0[2]+menu0[3]+menu0[4]+menu0[5]+menu0[6];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu0[0]+menu0[1]+menu0[2]+menu0[3]+menu0[4]+menu0[5]+menu0[6]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
function load_subMenu2 (veh,text){
	var tmp;
	var text = 'All Crawford Performance high performance turbo kits are developed for the various Subaru models including the STI, WRX, Legacy GT, Legacy Spec B, and Forester XT. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	var title = '<span class=whiteBoldLarge>Turbo Kits Menu</span><br><br>';
	var menu2 = new Array();
	menu2[0] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=3-0&veh="+veh+">Turbo Kits</a><br>");
	menu2[1] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=3-1&veh="+veh+">Turbo Installation Kits</a><br>");
	menu2[2] = ("<br>");
	menu2[3] = ("<br>");
	menu2[4] = ("<br>");
	menu2[5] = ("<br>");
	menu2[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu2[0]+menu2[1]+menu2[2]+menu2[3]+menu2[4]+menu2[5]+menu2[6];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu2[0]+menu2[1]+menu2[2]+menu2[3]+menu2[4]+menu2[5]+menu2[6]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
function load_subMenu3 (veh,text){
	var tmp;
	var text = 'All engine management systems can be used for the various Subaru models including the STI, WRX, Legacy GT, Legacy Spec B, and Forester XT. All engines management systems are for off road use only and are designed from the highest quality personal in the industry and are tuned with the highest percision in the market. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	var title = '<span class=whiteBoldLarge>Engine Management Menu</span><br><br>';
	var menu3 = new Array();
	menu3[0] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=4-0&veh="+veh+">I-Speed USA Engine Management</a><br>");
	menu3[1] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=4-1&veh="+veh+">MoTeC Engine Management</a><br>");
	menu3[2] = ("<br>");
	menu3[3] = ("<br>");
	menu3[4] = ("<br>");
	menu3[5] = ("<br>");
	menu3[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu3[0]+menu3[1]+menu3[2]+menu3[3]+menu3[4]+menu3[5]+menu3[6];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu3[0]+menu3[1]+menu3[2]+menu3[3]+menu3[4]+menu3[5]+menu3[6]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
function load_subMenu4 (veh,text){
	var tmp;
	var text = 'All Crawford Performance high performance drivetrain parts are developed for the various Subaru models including the STI, WRX, Legacy GT, Legacy Spec B, and Forester XT. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	var title = '<span class=whiteBoldLarge>Drivetrain Menu</span><br><br>';
	var menu4 = new Array();
	menu4[0] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=5-0&veh="+veh+">Street Clutches</a><br>");
	menu4[1] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=5-1&veh="+veh+">Race Clutches</a><br>");
	menu4[2] = ("<br>");
	menu4[3] = ("<br>");
	menu4[4] = ("<br>");
	menu4[5] = ("<br>");
	menu4[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu4[0]+menu4[1]+menu4[2]+menu4[3]+menu4[4]+menu4[5]+menu4[6];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu4[0]+menu4[1]+menu4[2]+menu4[3]+menu4[4]+menu4[5]+menu4[6]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
function load_subMenu5 (veh,text){
	var tmp;
	var text = 'All Crawford Performance high performance exhaust systems are developed for the various Subaru models including the STI, WRX, Legacy GT, Legacy Spec B, and Forester XT. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	var title = '<span class=whiteBoldLarge>Exhaust Menu</span><br><br>';
	var menu5 = new Array();
	menu5[0] = ("<a class=whiteBoldSmall href=db_parts.cgi?Menu=6-0&veh="+veh+">Crawford Performance Exhaust</a><br>");
	menu5[1] = ("<br>");
	menu5[2] = ("<br>");
	menu5[3] = ("<br>");
	menu5[4] = ("<br>");
	menu5[5] = ("<br>");
	menu5[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu5[0]+menu5[1]+menu5[2]+menu5[3]+menu5[4]+menu5[5]+menu5[6];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu5[0]+menu5[1]+menu5[2]+menu5[3]+menu5[4]+menu5[5]+menu5[6]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
function load_mainMenu (veh,title,id){
	var tmp;
	var text;
	var title = '<span class=whiteBoldLarge>'+title+' Menu</span><br><br>';
	var menu = new Array();
	if (id == 0){
		text = 'Crawford Performance high performance parts developed for the 2004-2007 USDM Subaru Impreza WRX STI. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	} else if (id == 1){
		text = 'Crawford Performance high performance parts developed for the 2002-2005 USDM Subaru Impreza WRX. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	} else if (id == 2){
		text = 'Crawford Performance high performance parts developed for the 2006-2007 USDM Subaru Impreza WRX. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	} else if (id == 3){
		text = 'Crawford Performance high performance parts developed for the 1999-2004 USDM Subaru Impreza 2.5 RS. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	} else if (id == 4){
		text = 'Crawford Performance high performance parts developed for the 2005-2007 USDM Subaru Legacy GT Turbo. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	} else if (id == 5){
		text = 'Crawford Performance high performance parts developed for the 2004-2007 USDM Subaru Forester XT Turbo. All parts are for off road use only and are designed from the highest quality materials and personal in the industry. With a combined 30 years of racing performance history we stand by our products and work with proven results!';
	}
	menu[0] = ("<a class=whiteBoldSmall href=javascript:; onclick=load_subMenu0('"+veh+"')>Engine</a><br>");
	menu[2] = ("<a class=whiteBoldSmall href=javascript:; onclick=load_subMenu2('"+veh+"')>Turbo Kits</a><br>");
	menu[3] = ("<a class=whiteBoldSmall href=javascript:; onclick=load_subMenu3('"+veh+"')>Engine Management</a><br>");
	menu[4] = ("<a class=whiteBoldSmall href=javascript:; onclick=load_subMenu4('"+veh+"')>Drivetrain</a><br>");
	menu[5] = ("<a class=whiteBoldSmall href=javascript:; onclick=load_subMenu5('"+veh+"')>Exhaust</a><br>");
	menu[6] = ("<br>");
	if (ie){
		tmp=eval('document.all.descText');
		tmp.innerHTML=text+'<br><br>'+title+menu[0]+menu[2]+menu[3]+menu[4]+menu[5];
	} else {
		var ni = document.getElementById('mozillaText');
		var newdiv = document.createElement('div');
		var divIdName = 'mozillaText';
		newdiv.setAttribute('id',divIdName);
		newdiv.innerHTML = '<br><p class=greyBoldSmallMed id=descText>'+text+'<br><br>'+title+menu[0]+menu[2]+menu[3]+menu[4]+menu[5]+'</p>';
		ni.parentNode.replaceChild(newdiv,ni);
	}
}
