prolific.extend('defs', function () {

	var entities = {	
		'A.I.R.':	'Air Injection Reactor',
		'AT':	'Automatic Transmission',
		'AWD':	'All Wheel Drive',
		'BBL':	'Barrel',
		'C.A.R.B.':	'California Air Resources Board',
		'Carb':	'Carburetor',
		'CFI':	'Central Fuel Injection',
		'CID':	'Cubic Inch Displacement',
		'CA/CALIF':	'California Air Resources Board',
		'CO':	'Carbon Monoxide',
		'Cyl.':	'Cylinder',
		'DTC':	'Diagnostic Trouble Code',
		'EEC':	'Electronic Engine Control',
		'ECM':	'Electronic Control Module',
		'EFC':	'Engine Family Code',
		'EFI':	'Electronic Fuel Injection',
		'EFN':	'Engine Family Number',
		'EGR':	'Exhaust Gas Recirculation',
		'EHC':	'Electronic Heated Converter',
		'EPA':	'Environment Protection Agency',
		'EXC':	'Except',
		'FWD':	'Front Wheel Drive',
		'HC':	'Hydrocarbon',
		'H.O.':	'High Output',
		'I.D.':	'Inside Diameter',
		'IM':	'Inspection Maintenance',
		'INJ':	'Injection',
		'MFI':	'Multiport Fuel Injection',
		'MIL':	'Malfunction Indicator Light',
		'MT':	'Manual Transmission',
		'NA':	'Not Available',
		'NOX':	'Oxides of Nitrogen',
		'NR':	'Not Required',
		'O.B.D.':	'On Board Diagnostic',
		'O.D.':	'Outside Diameter',
		'OXD':	'2 Way Converter (oxidation converter)',
		'PPM':	'Parts per Million',
		'RWD':	'Rear Wheel Drive',
		'SAE':	'Society of Automotive Engineers',
		'SFI':	'Sequential Fuel Injection',
		'TBI':	'Throttle Body Injection',
		'TPI':	'Tuned Port Injection',
		'TWC':	'3 Way Converter',
		'TWC/OC':	'3 Way with Air Converter',
		'2WD':	'2 Wheel Drive',
		'4WD':	'4 Wheel Drive',
		'Wheel Base':	'To measure the wheel base it is from the center of the front hub cap to the rear of the center of the hub cap (Inches)'
	};
	
	function wrapEntities (html) {
		var e;
		for (e in entities) {
			html = html.replace(new RegExp('\\b' + e + '\\b'), '<span class="acr" title="' + entities[e] + '">' + e + '</span>');
		}
		return html;
	}
	
	return {
		wrapEntities: wrapEntities,
		init: function () {
		}()
	};
});

