var substringMatcher = function(strs) { return function findMatches(q, cb) { var matches, substringRegex; // an array that will be populated with substring matches matches = []; // regex used to determine if a string contains the substring `q` substrRegex = new RegExp(q, 'i'); // iterate through the pool of strings and for any string that // contains the substring `q`, add it to the `matches` array $.each(strs, function(i, str) { if (substrRegex.test(str)) { matches.push(str); } }); cb(matches); }; }; var products = ['0.6mm x 5Kg Spool SG2 Mig Wire','0.6MM x 15Kg Spool SG2 Mig Wire','0.8MM x 5Kg Spool SG2 Mig Wire','0.8MM x 15Kg 316 Stainless Mig Wire','0.8MM x 15Kg Spool SG2 Mig Wire','0.8MM x 2.0KG 5356 NG6 Aluminium Mig Wire','1.0MM x 5Kg Spool SG2 Mig Wire','1.0MM x 15Kg 316 Stainless Mig Wire','1.0MM x 15Kg Spool SG2 Mig Wire','1.2MM x 15Kg 316 Stainless Mig Wire','1.2MM x 15Kg Spool SG2 Mig Wire','1.6mm 2% Thoriated Tungsten Electrodes Pack of 10','1.6MM Ceriated Tungsten Electrodes Pack of 10','1.6mm E3 (Purple) Tungsten Electrodes','1.6MM x 0.5Kg 316 Stainless Tig Wire','1.6MM x 2.5KG 4043 NG21 Aluminium Tig Wire','1.6MM x 2.5Kg 5356 NG6 Aluminium Tig Wire','1.6MM x 5Kg 316 Stainless Tig Wire','1.6MM x 5KG Triple Deoxidised A15 CCMS Tig Wire','1.6MM Zirconiated Tungsten ElectrodesPack of 10','1.8M x 1.8M (6FTx6FT) Metal Curtain Frame','1.8M x 1.8M (6FTx6FT) PVC Curtain','10-14 Hole Brush','110MM x 90MM Shaded Welding Lenses','115mm Diameter Ceramic Sanding Discs','115mm Diameter Zirconium Sanding Discs - Box 25','115mm x 22mm Rust Removal Poly Disc','14" Safetube Electrode Storage Canister','15mm Hole Brush','18" Safetube Electrode Storage Canister','2 Row Heavy Duty Wire Brush','2.4MM 2% Thoriated Tungsten Electrodes Pack of 10','2.4MM Ceriated Tungsten Electrodes Pack of 10','2.4mm E3 (Purple) Tungsten Electrodes','2.4MM x 0.5Kg 316 Stainless Tig Wire','2.4MM x 2.5Kg 4043 NG21 Aluminium Tig Wire','2.4MM x 2.5Kg 5356 NG6 Aluminium Tig Wire','2.4MM x 5KG 316 Stainless Tig Wire','2.4MM x 5Kg A15 Triple Deoxidised CCMS Tig Wire','2.4MM Zirconiated Tungsten Electrodes Pack of 10','200A Earth Clamp Crocodile Type','27/75 NM Cutting Torch','3 Mtr 400A MMA Welding Lead Set 35mm Dix','3 Row Heavy Duty Wire Brush','3.2MM 2% Thoriated Tungsten Electrodes Pack of 10','3.2mm Bohler AWS 6013 MMA Electrodes','3.2MM Ceriated Tungsten Electrodes Pack of 10','3.2mm E3 (Purple) Tungsten Electrodes','3.2MM x 2.5Kg 4043 NG21 Aluminium Tig Wire','3.2MM x 2.5Kg 5356 NG6 Aluminium Tig Wire','3.2MM x 5Kg A15 Triple Deoxidised CCMS Tig Wire','3.2MM Zirconiated Tungsten Electrodes Pack of 10','4 Row Heavy Duty Wire Brush','4.1/2" x 5.1/4" Shaded Welding Lenses ','4.1/4" x 3.1/4" Shaded Welding Lenses','40% Silver Solder Brazing Alloy Ag 140 5 Rod Pack 1.5mm diameter','400A Earth Clamp Crocodile Type','400A Progress Twist Grip Electrode Holder','5.710.121 Nozzle Retaining Cap Compatible Spare','55% Silver Solder Brazing Alloy Ag 155 5 Rod Pack 1.5mm','600A Earth Clamp Screw jaw','600A Twist Grip Electrode Holder','8" Clear Visor','8" Shade 3GW Visor','Acetylene Hose 5M x 6MM Fitted 1/4" C.V','Acetylene Hose 5M x 6MM Fitted 3/8"C.V','Acetylene Hose 10M x 6MM Fitted 1/4"C.V','Acetylene Hose 10M x 6MM Fitted 3/8"C.V','Acetylene Hose 10M x 10MM Fitted 3/8"C.V','Acetylene Hose 20M x 10MM Fitted 3/8"C.V','Acetylene Multi Stage Two Gauge Regulator','Acetylene Single Stage Plugged Regulator','Acetylene Single Stage Two Gauge Regulator','AFN Cutting Nozzle 3-6mm Cut - Size 1/32"','AFN Cutting Nozzle 6-20mm Cut - Size 3/64"','AFN Cutting Nozzle 20-30mm Cut - Size 1/16"','Aluminium Mig Wire 0.8MM x 2.0Kg 4043 NG21 ','Aluminium Mig Wire 1.0MM x 2.0Kg 4043 NG21 ','Aluminium Mig Wire 1.0MM x 6.5Kg 4043 NG21 ','Aluminium Mig Wire 1.0MM x 6.5Kg 5356 NG6 ','Aluminium Mig Wire 1.2MM x 6.5Kg 4043 NG21 Aluminium Mig Wire','Aluminium Mig Wire 1.2MM x 6.5Kg 5356 NG6 ','ANM Cutting Nozzle 3-6mm Cut - Size 1/32"','ANM Cutting Nozzle 6-12mm Cut - Size 3/64"','ANM Cutting Nozzle 12-75mm Cut - Size 1/16"','ANM Cutting Nozzle 75-100mm Cut - Size 5/64"','ANM Cutting Nozzle 100-150mm Cut - Size 3/32"','ANM Cutting Nozzle 150-300mm Cut - Size 1/8"','Anti-spatter Spray S-360','Argon/CO2 Multi Stage Two Gauge Regulator','Argon/CO2 Single Stage Two Gauge Regulator','ASFN Cutting Nozzle 0-3mm Sheet Metal','ASNM Cutting Nozzle Sheet Metal 0 -3mm Cut','Back Cap Long 41V24','Back Cap Long 57Y02','Back Cap Medium 41V35','Back Cap Short 41V33','Back Cap Short 57Y04','Bent Adaptor 3/8"M - 1/4"F LH','Bent Adaptor 3/8"M - 1/4"F RH','Bevelled (Conical) Twist Knot Brush 115mm','Binzel MB15 x 3Mtr Mig Torch Euro Fitting','Binzel MB15 x 4Mtr Mig Torch Euro Fitting','Binzel MB25 x 3Mtr Mig Torch Euro Fitting','Binzel MB25 x 4Mtr Mig Torch Euro Fitting','Binzel MB36 x 3Mtr Mig Torch Euro Fitting','Binzel MB36 x 4Mtr Mig Torch Euro Fitting','Binzel MB36 x 5Mtr Mig Torch Euro Fitting','Blow Pump','Bohler 200A Twist Electrode Holder','Bohler Core 185 MMA 230/110V Inverter Welder','Bohler CORE 210 MMA 230V/110V Inverter Welder Package','Bohler Gig Vision Grinding Visor','Bohler Guardian 50FM PAPR Air','Bohler Guardian 62 Rockstar Helmet','Bohler Guardian 62F Welding Helmet','Bohler Q E6013 RC MMA Electrodes. 350mm long','Bohler Snap 200 Amp Electrode Holder','Browguard','C1304 x 5 Plasma Cutting Tip Compatible Spare','C1396 x 5 Plasma Cutting Tips Compatible Spare','C1402 x 5 Plasma Electrode Compatible Spare','C1510 Swirl Ring Compatible Plasma Spare','C1520 x 5 Plasma Electrodes Compatible Spare','C1521 x 5 Plasma Elecrodes Compatible Spare','Cable Lug Hammer On 50mm','Cable Lug Reusable 35mm','Cable Lug Reusable for 25mm Cable','Cable Plug 10-25 Small Pin','Cable Plug 35-50 Standard Pin','Cable Plug 50-70 Standard Pin','Cable Socket 10-25 Small Slot','Cable Socket 25-50 Standard Slot','Cable Socket 50-70 Standard Slot','Cast Iron Electrodes NIFe x 1 Kilo','Ceramic Flap Disc','Chemical Fix Cartridge Gun','Chemical Fix Cartridge Mixing Nozzle','Chemical Fix Polyester Mortar Resin Zetapro','Chipping Hammer Sring Handle','Chipping Hammer Wooden Handle','Clear Safety Goggles. Product may vary from image','CO2 Single Stage Two Gauge Regulator','Coarse Threading Taper (Cut) Metric Taps','Combination Spanner / Cylinder Key','Contact Tips (M6) MB25 & 36 Pack of 10','Contact Tips (M8) MB25 & 36 Pack of 10','Contact Tips MB15 Binzel Pack of 10','CP105 AG2P 2%Ag Copper Phosphorous Brazing Rods 2.5mm x 1 Kilo','Crosarc 161S MMA 230V','CROS-ARC 201C MIG / MMA Inverter Welder','Crosarc 201S MMA 230V Inverter Stick Welder','Cros-Arc 291C Compact MIG / MMA Welder','CROSARC MIG Multi-Function 160MF','Crosarc MIG Multi-Function 200MF','Cup / Bowl Spark Lighter Flints Pack of 10','Cup / Bowl Type Spark Lighter','Cup Brush Twist Knot 65mm','Cylinder Key','Defender 200 Welding Screen With Curtain','Defender 300 Welding Screen','Delta Plus Brava 2 Reader 15','Delta Plus Ergon Clear Safety Spectacle','Delta Plus HEKLA 2 Over Glasses','Delta Plus Iraya Clear Safety Spectacles','Delta Plus VULCANO2 Clear Safety Spectacle','Diffuser Standard Type 36 Torch Spare','E312 29/9 Electrodes','E316L Stainless Electrodes 2.5mm Dia x 1 Kilo','Easy-flo (Silver Solder) Flux Powder 250g','Easy-flo (Silver Solder) Flux Powder 500g','Electrode Holder 400A Twist Grip','FIX Mig Pliers No.1','Fix Mig pliers No.2','Flat Nose Parallel Plier Return Spring 160 mm','Fuel Gas Barrel Type Flashback Arrestor','Fuel Gas Re-Settable Flashback Arrestor','Gas Welding Goggles Ski','Good Hand G Clamps Extra Heavy Duty','HMT Carbide Max & Versadrive Cutter Set','HMT GoldMax™ Countersinks','HMT VersaDrive TCT Hole Cutters 55mm Deep','HSS Twist Drills 10mm - 13mm','HSS Twist Drills Sizes 3.2mm - 6.5mm','HSS Twist Drills Sizes 6.8mm - 9.8mm','JEI 3 Piece Fabricators Turbo Steel Cutter Starter Kit','JEI 3 Piece Turbo Tough Cutter Fabricator Starter Kit','JEI HM50 2 Speed Magnetic Drill','JEI HM50T Tapping Magnetic Drill','JEI Magbeast HM40EX','JEI MiniBeast Auto Magnetic Drill','JEI MiniBeast Magnetic Drill','Klingspor Cutting / Slitting Discs','Klingspor Grinding Discs','Kromer Cap','L/W Blowpipe / Shank','L/W Cutting Attachment','L/W Swaged Welding Nozzle Size 01','L/W Swaged Welding Nozzle Size 02','L/W Swaged Welding Nozzle Size 03','L/W Swaged Welding Nozzle Size 05','L/W Swaged Welding Nozzle Size 07','L/W Swaged Welding Nozzle Size 10','L/W Swaged Welding Nozzle Size 13','L/W Swaged Welding Nozzle Size 18','L/W Swaged Welding Nozzle Size 25','Large Cylinder Trolley Oxy/Acet','Large Cylinder Trolley Oxy/Prop','Lead Burning Tip Nozzle Size 1','Lead Burning Tip Nozzle Size 2','Lead Burning Tip Nozzle Size 3','Lead Burning Tip Nozzle Size 4','Lead Burning Tip Nozzle Size 5','Leather Sleeves - Pair','Lightweight Mixer','M10 x 130mm Threaded Rods Box of 10','M12 x 160mm Threaded Rods Box of 10','M16 x 190mm Threaded Rods Box of 10','M2-AL HSS Counter Sink','M2-AL HSS Magnetic Drill Annular Broach Hole Cutters 10mm - 22mm Dia 25mm Depth','M2-AL HSS Magnetic Drill Annular Broach Hole Cutters 23mm - 50mm Dia 25mm Depth','M6 Tip Adaptor Type 36 Torch Spare','M8 Tip Adaptor Type 36 Torch Spare','Maun 160mm Diagonal Cutting Plier For Hard Wire','Maun Long Nose 160mm Parallel Plier with return spring','MB15 Shroud Conical Nozzle Binzel','MB36 Contact Tips','Midi Cylinder Trolley Oxy/Acet','Mig Torch Liner 0.6-0.8mm Wire','Mig Torch Liner 1.0-1.2mm Wire','Mig Torch Liner Teflon 0.6-0.8mm Wire','Mig Torch Liner Teflon 1.0-1.2mm Wire','Model O Lead Burning Torch','Myking Type (copy) 200 Amp Electrode Holder Twist Grip Bohler','Myking Type 450 Amp Electrode Holder Twist Grip SWP','Nevada Type (copy) 300 Crocodile Earth Clamp','Nevada Type (copy) 500A Earth Clamp','Nozzle Cleaner Set','Nozzle Mix NM 18" 90 Deg Cutter','Nozzle Mix NM 36" 75 Deg Cutting Torch','Oxford WELDI 271 110V MMA Stick Welder','Oxford WELDI 271 230V MMA Inverter Welder','Oxygen Barrel Type Flashback Arrestor','Oxygen Hose 5M x 6MM Fitted 1/4" C.V','Oxygen Hose 5M x 6MM Fitted 3/8"C.V','Oxygen Hose 10M x 6MM Fitted 1/4"C.V','Oxygen Hose 10M x 6MM Fitted 3/8"C.V','Oxygen Hose 10M x 10MM Fitted 3/8"C.V','Oxygen Hose 20M x 10MM Fitted 3/8"C.V','Oxygen Multi Stage Two Guage Regulator','Oxygen Re-Settable Flashback Arrestor','Oxygen Single Stage Plugged Regulator','Oxygen Single Stage Two Gauge Regulator','Panel Socket 10-25 Small Slot','Panel Socket 35-50 Standard Slot','Panel Socket 70-95 Standard Slot','Pistol Spark Lighter Flints Pack of 10','Pistol Type Spark Lighter','PNM Cutting Nozzle 3-6mm Cut - Size 1/32"','PNM Cutting Nozzle 6-12mm Cut - Size 3/64"','PNM Cutting Nozzle 12-75mm Cut - Size 1/6"','PNM Cutting Nozzle 75-100mm Cut - Size 5/64"','PNM Cutting Nozzle 100-150mm Cut - Size 3/32"','PNM Cutting Nozzle 150-300mm Cut - Size 1/8"','Portable Trolley Adjustable Handle Oxy/Acet','Predator (Tiger) Gold Welders Gauntlets - Pred 4','Predator (Tiger) Tig Welding Gauntlets - PRED 6','Proban Hood','Propane Hose 10M x 10MM Fitted 3/8 C.V','Propane Hose 20M x 20MM Fitted 3/8" C.V','Propane Single Stage Plugged Regulator','Red Leather Jacket Size L','Replacement Lens for Bohler Big Vision (Pack of 2)','RS2DP-B Double Palm Rigger Gloves','Shroud / Nozzle Spring MB15 Type Torch Compatible Spare','Shroud Conical Nozzle MB36 Type Torch Spare','Shroud Conical Nozzle MB25 Type Torch Abicor Binzel','Shroud Tapered Nozzle MB15 Type Torch Abicor Binzel','Shroud Tapered Nozzle MB25 Type Torch','Shroud Tapered Nozzle MB36 Type Torch Spare','Spindle Mounted Flap Wheels','Std Ceramic Cup 6mm Bore 10N50 Pack of 10','Std Ceramic Cup 6mm Bore 13N08 Pack of 10','Std Ceramic Cup 8MM Bore 10N49 Pack of 10','Std Ceramic Cup 8MM Bore 13N09 Pack of 10','Std Ceramic Cup 10MM Bore 10N48 Pack of 10','Std Ceramic Cup 10MM Bore 13N10 Pack of 10','Std Collet 1.6MM 10N23 Pack of 5','Std Collet 1.6MM 13N22 Pack of 5','Std Collet 2.4MM 10N24 Pack of 5 Std','Std Collet 2.4MM 13N23 Pack of 5','Std Collet 3.2MM 10N25 Pack of 5 Std','Std Collet 3.2MM 13N24 Pack of 5','Std Collet Body 1.6MM 10N31 Pack of 5','Std Collet Body 1.6MM 13N27 Pack of 5','Std Collet Body 2.4MM 10N32 Pack of 5','Std Collet Body 2.4MM 13N28 Pack of 5','Std Collet Body 3.2MM 10N28 Pack of 5','Std Collet Body 3.2MM 13N29 Pack of 5','Stealth Digi-Tech Auto Darkening Welding Helmet','Strong Hand Ratchet One Handed Clamps','Strong Hand regular duty clamps','Stronghand 4 in 1Utility Clamps','Sumner Hi Fold-A-Jack Pipe Jack','Sumner Hi Heavy Duty Jack','Sumner Hi Pro-Jack Pipe Jack','Sumner Pro Roll Pipe Stand','Superon Super Optimal 6013 MMA Mild Steel Electrodes','SWP Chaos Variable Shade 9/13 Welding & Grinding Helmet','Talc Stick Holder Flat','Talc Sticks / French Chalk Flat Box of 144','Talc Sticks / French Chalk Square Box of 50','Tec Arc Plasma Pi 51 PRO','TecArc Ci 251 Pro Compact MIG, (MMA & Lift TIG) Welder 230V','TecArc Ci 253 Pro Compact MIG, (MMA & Lift TIG) Welder 400V','TecArc Ci 253, 303, 403 Pro Compact MIG, MMA & Lift TIG Welder Range 415V','TecArc Ci 301 Pro Compact MIG, (MMA & Lift TIG) Welder 230V','TecArc Ci 303 Pro Compact MIG, (MMA & Lift TIG) Welder 400V','TecArc Ci 303 Pro SWF MIG, (MMA & Lift TIG) Welder 400V','TecArc Mi 220 PRO 100% Duty Cycle110V MMA Stick Inverter Welder','Tecarc Mi 251 PRO 100% Duty Cycle MMA Stick Inverter Welder','TecArc Mi 401 PRO 100% Duty Cycle MMA Stick Inverter Welder','TecArc MMA 250i Arc Welder','Tecman TH1000 Flip Front Auto Darkening Welding Helmet','Tecmen Eagle Auto Darkening Helmet','Tecmen Hard Metal Auto Darkening Headshield','Tecmen V1 PAPR Air Fed Welding Helmet','Tecmen V3 PAPR Air Fed Helmet','Tip Adaptor M6 Std Type 25 Torch Abicor Binzel','Tip Adaptor M8 Type 25 Torch Abicor Binzel','Triple Flint Spark Lighter','Triple Flint Spark Lighter Flint Plates Pack of 5','TT600 Turntable Welding Positioner','Type 5 Blowpie / Shank','Type 5 Cutting Attachment','Type 5 Mixer','Type 5 Swaged Welding Nozzle Size 01','Type 5 Swaged Welding Nozzle Size 02','Type 5 Swaged Welding Nozzle Size 03','Type 5 Swaged Welding Nozzle Size 05','Type 5 Swaged Welding Nozzle Size 07','Type 5 Swaged Welding Nozzle Size 10','Type 5 Swaged Welding Nozzle Size 13','Type 5 Swaged Welding Nozzle Size 18','Type 5 Swaged Welding Nozzle Size 25','Weiler Metalynx PRO Cutting / Slitting Disc','Welders Angle Clamp','Welders Leather Apron','Welding Blanket Silica 2m x 2m 1300 Deg C','Welding Screen Complete 1.8M x 1.8M. Comes with Frame, Curtain & Rings','WP17 Type x 12FT Tig Torch','WP17 Type x 25FT Tig Torch','WP9 Type x 12FT Tig Torch','WP9 Type x 25FT Tig Torch','Zirconium Flap Discs' ]; var productsIDs = [ ]; $('#our-products .typeahead').typeahead({ hint: true, highlight: true, minLength: 1 }, { name: 'products', limit: 40, source: substringMatcher(products) });