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 = ['(A size) Mini Bitfitter Bits 10 day–3 wks','(B size) Bit-fitter Bits for 3 – 7 weeks','(C size) Maxi Bitfitter Bits','.22 Blank Firing Dog Training revolver','.22 Blanks for Launcher Middle Distance - Yellow','.22 Short Blanks for Dog Training Revolver','1/4” SOFT GRADE PVC TUBING RUBBER','11 Game Bird Netting 38mm (1½")','110 Game Bird Netting 38mm (1½")','12 Gauge Plug','14 Game Bird Netting 38mm (1½")','14mm Staples','16" ELECTRIC FENCE STAKE','1lb Rabbit Skin Dummy','20 Gauge Plug','20mm Blue Alkathene Pipe (MDPE)','22 Game Bird Netting 38mm (1½")','32 Game Bird Netting 38mm (1½")','40kg Feeders','42 Game Bird Netting 38mm (1½")','55 Game Bird Netting 38mm (1½")','6 Strand Poly Electric Fence Wire 250m','6 Strand Poly Electric Fence Wire 500m','64 Game Bird Netting 38mm (1½")','7 Strand Galv. Electric fence wire 200m','7 Strand Galv. Electric fence wire 400m','7" Tray Feeder Attachment','7AH Battery for Lightforce Lamps','82 Game Bird Netting 38mm (1½")','Acme Plastic Dog Whistle - Field trial, Single pitch-212','Acme Plastic Dog Whistle (210 ½) - High Pitch','Acme Plastic Dog Whistle (210) - Ultra High','Acme Plastic Dog Whistle (211 ½) - Standard Pitch','Acme Thunderer Brass N.P.Whistle (58)','Alarm Mine-(Henry Krank)','Amber filter for Blitz (240mm)','Amber filter for Lance (140mm)','Amber filter for Striker (170mm)','Ambush Millet mix','American Great Owl Decoy (Large)','Animal spike for spiral feeder Attachment','Antec HD3 Heavy Duty Detergent - 5ltr','Antec Virkon S','Auto Netting Fastener Clips (CL22)','Aviary Top Netting 11x22','Balaclava - Realtree Advantage Timber','Basket Feeder - Wright Feeder','Bellows Double Capsule','BEWARE OF DOG SIGN','BIO LINK VX','BIO LINK BIOOCYST 5ltrs','BIO LINK EGG WASH LIQUID 5ltrs','BIO LINK EGGWASH POWDER LOW FOAM 10kg','Bitfitter Tool','Blank Cartridges (12g) (Black Powder)','Boonie Hat - Realtree Advaqntage Timber / Hardwoods Green','Bostitch Auto Netting Clips (SR8-062)','Bostitch Netting Pliers (P7)','Brinsea OvaView Candler','Bulb for Lance','Bulb for Striker or Blitz, 12v Zenon','Bumpa Bits','BUTTOLO BLATTER','BUTTOLO CHERRY WOOD CALL','Catching Net','Catching Net Complete With 3ft Handle','Ceramic Element','Chick Starter Feeders','Chick Starter Tray 400 mm','Chudleys Classic 15kg','Chudleys Salmon with Rice & Vegetables 15kg','Chudleys Working Crunch 15kg','Clip on Specs','Combo Drinkers','Connect Double Chick Box','CONSERVATION AREA SIGN','Corkscrew Tether','Corner Insulators c/w roller (Per 4)','Corrugated Card','Crow Decoy (with legs)','D3 Plastic Two Door Crate Size','Deluxe Roesack','Detoxerol Plus 1ltr','Dome Drinker','Dome Drinker Spares','Dot Grip Gloves','Drill Attachment For Screw In Insulator','Drinker Nipples','DRIVE WITH CARE (TRIANGULAR) SIGN','Duck Tape - Realtree Hardwoods Green','Dwarf Sorghum - PEN110','Dwarf Type Sunflower','Eco bale cardboard bedding.','Economy Electric Fence Tester','Electric Fence Gate Hook','Electric Fence Line Tester with Lights','Electric Fence Warning Sign','End Door for D3 Plastic Crate','ENDOSAN SANITISER','Entice/Holding Spice (Sufficient to treat 1 tonne)','Equivalent Hog Rings For Bostitch Pliers (SR8-062)','Fastening Pliers (for CL22 clips)','Fenceman 155AH 9v Dry Battery','Fenceman DP350B 6/12v Energiser','Fleece Backpack','Flexicoy Pigeon','Fodder Radish','FOOTPATH SIGN','Four Ten Mix','Fox Grid (for release pens)With 6 non exit fingers between uprights','Fox Snare (Free Run)-with stop fitted','G89 Automatic Drinker','G89 Drinker Spares','Galv, Crate Disinfectant Dip','Gamekeepa Game Liquivits','Gamekeepa Wax Leggings','Gamenet Release Pen Netting 1.2mtr x 100mtr','Gamenet Release Pen Netting 1.5mtr x 100mtr','Gamenet Release Pen Netting 2mtr x 100mtr','Garlands Adventurer Full Length Wellington Socks','Garlands Adventurer Walking Boot Socks','Garlands Deluxe Leather Cartridge Belt','Garlands Double Leather Certificate Holder ','Garlands Ear Defenders','Garlands Heavy Duty Cartridge Box','Garlands Ladies Long Breek Socks','Garlands Large Leather Cartridge Holder','Garlands Leather Bolt Holder - Brown','Garlands Leather Cartridge Bag - 100 cap','Garlands Leather Cartridge Bag - 75 cap','Garlands Leather Faux Fur Lined Zipped Rifle Slip - Brown','Garlands Leather Faux Fur Lined Zipped Shotgun Slip - 30','Garlands Leather Faux Fur Lined Zipped Shotgun Slip - 32','Garlands Leather Flapped Bullet Pouch','Garlands Leather Hand Guard','Garlands Leather Rolled Bullet Pouch','Garlands Long Breek Socks','Garlands Single Leather Certificate Holder','Garlands Walking Boot Bag - Green','Garlands Wellington Boot Bag - Green','Garlands Zipped Leather Pellet Pouch','Gas Match - suitable for safely lighting gas brooders','Gasolec Game 5 Gas Brooder 800 Chicks','Gasolec Game 5 Jet (20 - 310mb)','Gasolec Game 5 Regulator (20 - 310mb)','Gasolec Game 5 Thermo Couple (320mm-long)','Gasolec Gas Brooder','Gasolec SA Adjustable Regulator (50/150mb)','Gasolec SA Air Filter/Metal','Gasolec SA2 jet (no.37)','Gasolec SA4 Ceramic','Gasolec SA4 Flame Failure Valve','Gasolec SA4 Gasket Set','Gasolec SA4 Gauze','Gasolec SA4 Jet (no.50)','Gasolec SA4 Low Maintainance Filter/Paper','Gasolec SA4 Support Hook and Nut','Gasolec Spares:Auto Change-Over Valve','Gasolec Spares:Gas Hose (High Pressure) Orange (per meter)','Gasolec Spring Clip for SA Ceramic','Giant Sorghum - Rox Orange','Glenmuick Brass Game Hook - per 10','Goldeneye','Granger’s Footwear Proofer','Granger’s G-Wax','Granger’s Wax Spray','Grey Squirel Poison Hopper','Grit 25kg','Grouse on Gold','GRÜNER ANGELITER','Gun Oil (all purpose lubricant)','Gun Shield','Gun Sock','Gundog Slip Lead-Leather Fittings','Gundog Slip Lead-Rubber Fittings','Hand Held Blitz 240mm Lamp (800m beam)','Hand Held Lance 140mm Lamp (400 beam)','Hand Held Striker 170m Lamp 600m beam','Hand Tally Counter (1 – 9999)','Hand Throwing Dummy (1lb) Green','Hand Throwing Dummy (1lb) Orange','Hand Throwing Dummy (3lb) Green','Hand Throwing Dummy (puppy)','Heavy Duty Solvent Cleaner','Humane Dispatcher','In Line Water Filter','Intelec Traditional Overhead Heat Lamp (does not include Bulb)','Intermediate Sorghum - Sprint 11','Jade Bromadiolone Bait','Jubilee Clips for Hose','Jumbo Gamenet 1.2mtr x 100 mtr (4ft)','Jumbo Gamenet 1.5mtr x 100mtr (5ft)','Jumbo Gamenet 1.8mtr x 100 mtr (6ft)','Kania 2000 Trap','Keepa Ground Feed Seed Mixture 20kg : Bulk prices per tonne available on request','Kestrel Decoy','Kingfeeder 25kg','Kingfeeder Spares','Lanyard for Dog Whistle','Larsen Trap Springs (Pair)','Late Cover Mix','Le Chameau Chasseur','Le Chameau Chasseurnord - Ladies','Le Chameau Chasseurnord - Mens','Le Chameau Vierzonord - Ladies','Le Chameau Vierzonord - Mens','Leather Game Carrier – Double V type loops','Leather holster for Humane dispatcher','Leather Slip on Pad','Leg Rings','Live Catch Feral Cat Trap/Spring Door','Live Catch Fox Trap (Hook Type)','Live catch Rabbit Trap/Drop Door','Longbow Fox Call','Loose Bits','Mac Feeder Attachment','MacGaiter - Black','MacGaiter - Brown','Magnum 110 Rat Trap','Magnum 116 Mink Trap','Magpie Decoy','Maize 20kg : Bulk prices per tonne available on request.','Maize Blend','Mallard Drake Decoy','Mallard Duck Decoy','Manola Feeder','Manola Feeder Spares','Midget Squirrel/Rat Live Catch Trap','Millgame Millet Mix','Mini Master Spares','Minimaster Chick Drinkers','Minipipe Connectors 6mm 1/4"','Mink – Single Entry Live Catch','Mink-Double Entry Live Catch - 2 door','MK 4 Rat Trap','MK 6 Mink Trap','Mondial Crate Spring','Mustard (2 acres)','Nail On Insulator (Per 50)','NATURE CONSERVATION NO PUBLIC RIGHT OF WAY SIGN','Neoprene Bullet Holder - Green','Neoprene Rifle 6-cart Stock Cover - APG','Neoprene Shotgun 4-cart Stock Cover','Niggeloh Back Pack Rifle Sling - Green','NO BIKING ALLOWED SIGN','Non-Slip Binocular Strap - Green','Non-Slip Shotgun Sling - Green','Northern Star Game mix','NOT FOR PUBLIC USE SIGN','Opinel Beech Handle Knife No. 12 - 12cm','Opinel Beech Handle Knife No. 7 - 8cm','Opinel Beech Handle Knife No. 8 - 8.5cm','Opinel Folding Saw Beech Handle Knife - 18cm serrated','OvaEasy 190 Advance EX Series II Incubator','OvaEasy 380 Advance EX Series II Incubator','Over n Under Sorghum Mix','Overdrive (Quinoa/Kale)','OWL EYE RAPTOR DETERRENT – rigid Sign','Partridge laying box feeder','Partridge Netting 19mm (¾")','Peregrine Falcon Decoy','Picca Chick Feeder','Plasson End Plug MDPE 20mm (Inc liner)','Plastic 4 Compartment Chick Box (100 Chicks) (excludes lid)','Plastic Chick Box Lid for GAM 0402001','Plastic Clips for Top Netting (per 1000)','Plastic Disko Perforated Plate for Drinkers','Plastic Drinkers','Plastic Electric Hen Cover','Plastic Letter Box Feeder','Plastic Transport Crate','PLEASE CLOSE GATE SIGN','PLEASE KEEP DOGS ON LEAD SIGN','PLEASE KEEP OFF THE GRASS SIGN','Pliers for Standard Fasteners','Position Finders 1 – 10 (leather pouch)','Power Pack with dimmer for Lightforce Lamps','PRIVATE NO FISHING SIGN','PRIVATE NO PUBLIC RIGHT OF WAY SIGN','PRIVATE PLEASE KEEP OUT SIGN','Quinoa','Rabbit Snares (8 strand)','Rapid Fire','Rat – Monarch Multiple Live Catch','Rat Bait Box','Rateyre Poison Hopper','Red Filter for Blitz (240mm)','Red filter for Lance (140mm)','Red filter for Striker (170mm)','Reed Canary Grass','Reed Horn 12','Reed Horn 6','Remote control Handle Roof Mount (RC150)','Remote Handle for Roof Mounting (RC220)','Rifle Plug','RIFLE SHOOTING IN PROGRESS SIGN','Ring Brails','ROAMING GUARD DOG SIGN','Rocky Grizzly Jacket','Roof Mounted Blitz 240mm Lamp (800m beam)','Roof Mounted Lance 140mm Lamp (400m beam)','Roof Mounted Striker 170mm Lamp (600m beam)','Rubber Slip on Pad','Ruby Difenacoum Bait','SA Thermo Couple (250mm-short)','Saddle Connectors','Safety/Beaters Flag','Saphire Brodifaccum Bait','Scope Mounted Lance 140mm Lamp (400m beam)','Scope Mounted Striker 170mm Lamp (600m beam)','SCREW IN INSULATOR','Sentinel 2/3 Gun Cabinet','Sentinel 4/5 Gun Cabinet','Sentinel 5 Pistol/Ammo Box','Sentinel Plus 4/5 Gun Cabinet with Internal Locking Top','Sentinel Plus 4/5 Gun Cabinet with Shelf','Sentinel Plus 6/7 Deep Rifle Cabinet with Internal Locking Top','Sentinel Plus 6/7 Gun Cabinet with Internal Locking Top','Sentinel Plus 6/7 Gun Cabinet with Shelf','Shelterflex 2m x 45m Full Roll','Shelterflex 3m x 45m Full Roll','Shelterflexflex 1.1m x 45m Full Roll','SHOOTING IN PROGRESS SIGN','Side Entry Metal Larsen Trap','Six-Finger Fox Grid (Plain)','Sling Swivels','Snap Caps','Solulyte Liquid Electrolytes','Sovereign','Spiral Spring Feeder Attachment','Sportchief Allyear 3-Way Coat','Sporttac Electronic Ear Muffs Green','Springer MK 4 Rat Trap - British Made','Springer MK 6 Mink Trap - British Made','STALDREN DISENFECTANT 25KG','Stand Markers 1 – 10 (white)','Standard Pan Feeder Attachment','Standard Type Sunflower','STANLEY CLASSIC GREEN FLASK - 1 litre','STANLEY CLASSIC GREEN FLASK - 1.9 litre','Staple Gun','Stayput (Sufficient to treat 1 tonne)','Steddy Eddie Portable Gun Rack','Stop Valve MDPE 20mm (Inc liners)','Stormcure Accelerator','Stormslide Zip Oil','Stormsure Adhesive','Straining Wire (Non High Tensile) 2.5mm 25kg (640 mtrs)','Straining Wire 2.5mm (High Tensile) 25kg Coil (approx 640mtrs)','Super Plug','Surefire Kale Blend (Cruiser SB Flea Beetle Treatment)','SWC Hatching Egg Solution/Fogging Solution 5ltrs','Termoswed Light Crew Neck Top','Termoswed Light Long Trousers (Gents)','Termoswed Membrane Socks','Termoswed Plus Balaclava','Termoswed Plus Hunting Shirt','The Deluxe Eco Feeder 12kg','Thermostat for Gasolec Game 5 Brooder (no.27)','Thermostat for Gasolec SA4 Brooder','Thermostat for Gasolec SA8 (no.60)','Top Entry Metal Larsen Trap','Top Slide for D3 Plastic Crate','Traditional Game Cover','Trent Drinkers','TRESPASSER WILL BE PROSECUTED SIGN','Tunnel Mole Trap','VCI Pro Chips','VCL Cleaner/Degreaser 1 Gallon','VCl Cleaner/Degreaser 5 Gallon','Water Pipe Joiner Elbow MDPE 20mm (Inc liners)','Water Pipe Joiner Tee MDPE 20mm (Inc liners)','Water Pipe Joiner/coupling MDPE 20mm (Inc liners)','Watermaster Adapter (1/4")','Watermaster Complete Neck','Watermaster Complete Neck Spares','Watermaster hanging Drinkers','Watermaster Plastic Coated Hanging Cord 100’','Watermaster Side Outlet','WaterPipe Liners MDPE 20mm','WCS Collarum Trap','WCS Tube Trap','Whitby Machete Wood Handle (plastic sheath) - 14','White Millet','Whole Pigeon Decoy (upright)','Wide Non-slip Neoprene Rifle Sling - Realtree Advantage Timber','Wire Netting Fasteners (Standard)','Wire ties 18','Wire Twisting Tool','Wool & Thinsulate Gloves - Green','Yellow Blossom Clover','Zippo Handwarmer' ]; $('#our-products .typeahead').typeahead({ hint: true, highlight: true, minLength: 1 }, { name: 'products', limit: 20, source: substringMatcher(products) });