/* Popular phrases - THESPORTSHQ - 11:24:35, Sun Feb 12, 2012 */
__SLI_ClientDefaults =
[
	'TargetURL', 'http://search.thesportshq.com/search?w='
];
var asPhrases=new Array ('adidas','woodworm golf','cricket equipment','treadmill','woodworm','sunglasses','suitcase','gazebo','marquee','woodworm tour','batteries','electric bike','vibration plate','cross trainer','tents','luggage','bike','taylor made','confidence fitness','ashworth','woodworm cricket','taylormade','waterproofs','idry','cricket','mens adidas','ski','callaway','putters','base layer','ski jackets','belt','poker','ionics','nike','woodworm bag','cleveland','woodworm clothing','darts','ladies','golf shoes','confidence','sweater','balls','table','dumbbells','dumbells','folding bike','exercise bike','woodworm shirt','cyclamatic','waterproof suit','jacket','power plate','shorts','camping','4 wheel suitcase','3 wood','polo shirts','greg norman','palm springs','cyclamatic bike','sun glasses','i-onics','pop up gazebo','boxing','kettle bell','beanie','golf','rowing machine','trampoline','golf gloves','socks','gloves','folding table','pull up bar','umbrella','ice machine','woodworm golf shoes','rucksack','mountain bikes','golf travel bags','hybrid clubs','extra wide golf shoes','electric','golf bag straps','golf shorts','bags','party tent','lined sweaters','adidas golf mens','ladies clothing','golf batteries','wilson','sleeping bag','forgan','left handed','travel bags','adidas golf','driver','cricket bats','adidas trousers','shoes','odyssey','golf trousers','weights','hybrid','cap','ram','4 wheel cases','prosimmon','junior left handed sets','ski wear','swiss case','srixon','kettlebell set','woodworm bats','adidas golf trousers','childrens golf sets','ladies golf shoes','suitcase set','holdall','travel cover','motorised treadmill','vibration','climalite','ebike','tracksuit','bench','winter gloves','resistance','thigh pad','woodworm sweater','xxxl','clothing','palm springs e2i','abs','golf shirts','electric golf trolley','cricket stumps','nike balls','tubes','left hand driver','shirts','power plus','woodworm pads','chipper','iron covers','cricket gloves','chin up','lightweight suitcase','iron sets','woodworm bike','boots','ice maker','trousers','adipure','4 man','yeti','2ez','roll neck','visa 3 wood','golf balls','polo','waterproof trousers','woodworm ibat cricket bat','tees','golf bags','hard suitcase','inversion table','cricket shoes','ladies golf clothing','cricket helmets','ladies golf','toilet','spikeless golf shoes','hard case suitcases','stowamatic trolley','junior golf sets','stumps','fleece','adidas ladies','boxer shorts','wide fit golf shoes','confidence treadmill','left handed clubs','skort','vibration trainers','ashworth half zip','golf trolley','mens shorts','shoe bag','fairway woods','rescue wood','long sleeve polo shirts','mitts','10 x 10','poker chips','ladies golf sweaters','yellow','bats','lake balls','running machine','mat','skirt','young gun','fit-bk2005','palm springs marquees','woodworm ski','izzo','darts mat','electric trolley','cricket bags','callaway golf clubs','spikes','woodworm lined sweater','shag bag','junior golf','skins','baselayer','yellow golf balls','adidas zip','iphone','adidas pullover','golf club grips','golf polo','ashworth clothing','vibration machine','assembly instructions','dartboard','golf trolley bag','winter golf gloves','confidence golf clubs','powakaddy','climawarm','push up','ca bats','woodworm sunglasses','golf sets','sand wedge','swiss','ashworth sweater','card shuffler','junior clothing','ab trainer','hats','foam roller','cricket box','dumbbell set','wedges','poker set','cricket sets','folding party table','palm springs folding table','junior cricket','driver head cover','trolley','inversion','merino','e-bike batteries','gym mats','stowamatic golf bag','forgan hybrid clubs','5 fairway wood','training bench','palm springs 2ez','camping tent','hoody','club covers','practice mat','2','20kg','taylor','barbeque','footjoy','golf strap','roll neck shirt','nike golf gloves','party table','ionics magnetic band','lightweight luggage','ladies golf polo','woodworm shorts','travel','ram golf set','junior cricket bats','golf boots','left handed golf clubs','phone','trolley batteries','gazebo with sides','score counter','2 in 1 elliptical cross trainer','trolley bags','woodworm ski jacket','golf trolley batteries','taylormade driver','ladies golf gloves','powerkaddy','forgan woods','e bike','1 longer','ski trousers','golf belts','forgan golf boot','callaway golf balls','taylormade irons','woodworm boxers','climaproof','9 iron','young gun deluxe white ball putter left hand','taylor made golf clubs','palm springs fairway woods','kettle','yes','vest','confidence power plus treadmill','climacool','adidas socks','bmx','deals','golf bag cover','helmets','cricket pads','taylor made golf balls','boxers','yellow balls','iphone cover','long sleeve polo','vibration power plate','rain cover','iphone case','idry case','clearance','custom fit','confidence vibration plate power plus','patio heater','west indies vest','total core','soft spikes','clubs','diablo','compression','wool sweater','scales','storage','popup gazebos','umbrella holder','cyclamatic electric bike','adidas adipure two tone her pants','luggage set','pro v1','cyclamatic battery','e2i','ladies golf trousers','sports bags','woodworm base layer','storage box','spring back stumps','confidence elliptical cross trainer','golf jumpers','11 wood','towel','net','golf clubs','t bar','ladies left handed drivers','shag','pilates','junior bats','golf cart bag','heavy duty marquees','confidence 3 wood','woodworm golf bag','woodworm holdall','luggage scales','ladies trousers','watch','folding electric bike','ladies skorts','hi-tec','dartboard surround','golf flight bag','ram sets','shuffler','junior left handed','spikeless','cleveland launcher','pro trainer','titleist','footjoy golf shoes','wedding tent','kids cricket shoes','performance sunglasses','test','remix','hirzl','training tops','dart board','cricket whites','holder','taylor made drivers','palm springs dumbell','callaway diablo','woodworm golf tour mens golf shoes','lined jumpers','nike bags','golf hats','ashworth merino','rowing','soft dumbbells','slippers','long sleeve','weight bench','door gym','waterproof hats','round table','heater','woodworm clubs','long sleeve shirts','mens mountain bikes','roulette','golf mittens','golf waterproofs','adidas climaproof','mens winter golf gloves','nike golf shoes','confidence clubs','stowamatic continental aluminium 3 wheel trolley','confidence pro','palm springs storage box','prosimmon putter','orange golf shirt','tech','12kg','abs suitcases','top flite beanie','ramfx100','stowagrill','freestanding','dart surround','adidas belt','power band','cq','lined wool sweater','forgan 3 wood','ashworth half zip sweater mens','ladies jackets','adidas climalite','adidas caps','hippo','confidence suitcase','golf woods','foldable exercise bike','golf vests','forgan golf shoes','sleeveless','wilson hybrid','pro sunglasses','callaway irons','callaway diablo irons','orange','4 wheeled suitcase sets','trampoline ladder','right handed golf sets','kids golf clothing','drinks bottle','shot','tee mat','ladies golf jackets','forgan shoe bag','nike sport cart','plastic folding table','palm springs 10 x 30 party tent marquee','putting','left hand hybrids','numbered poker chips','waterproof jacket','cricket balls','chairs','mens golf waterproofs','2 iron','winter mitts','long sleeved golf shirts','duffle bag','cricket trousers','bbq','draw driver','golf travel','powakaddy battery','woodworm golf deluxe travel cover','woodworm golf tour','golf umbrellas','cq poker','golf shoe bag','golf waterproof suit','mens belts','roll neck golf shirt','base','ladies putters','confidence pro trainer magnetic exercise bike','adidas climaproof mens','ruck sack','yeti ski jacket','golf flag','formotion','woodworm coat','left hand golf irons','headcovers','swiss luggage','swiss suitcases','air bed','youth cricket pads','driving iron','mens golf sweater','wilson ultra','right handed woods','instruction manual','golf towel','young gun sgs','elliptical trainer','sit up','mens golf trousers','kit bag','wide fit mens','ionic sports band','kids golf sets','ram golf clubs','grips','iphone 3gs','boot bag','confidence vibration plate','ca cricket bats','woodworm player','ram fx100','3xl','junior golf club sets','wedding marquee','titleist nxt tour balls','nike polo','srixon distance','greg norman hat','woodworm bat performance','junior helmets','arm guard','elliptical','confidence power plus motorised treadmill','adidas sweater','ice cube maker','forgan golf balls','age 3','taylor made irons','cart bags','4 wheel swiss','taylormade fairway woods','ladies golf pants','taylor made clubs','woodworm golf lined wool half zip sweater','white gazebo','taylormade clubs','red suitcase','poker chip set','prosimmon drk','adidas shoes','sports watch','pop up tent','gazebo feet','underwear','carry on','wicket keeping gloves','pvc marquee','palm springs golf balls','ladies winter gloves','palm springs portable toilet','walking shoes','travel bags for golf clubs','ladies golf sets','casino','left handed mens drivers','stowamatic','elliptical cross trainer with computer','7 wood','confidence 25kg dumbbell set','dst','ladies golf bags','tailor made','womens golf shoes','cases','junior clubs','taylor made golf bag','taylor made fairway woods','golf drivers','ram 2011 evolution','marquees and gazebos','woodworm driver','confidence cross trainer','pilates set','woods','equestrian','oversize woods','golf suit','adidas vest','top flite','cricket sunglasses','left handed stand bag','2 for 1','flight bags','exercise mat','magnetic rowing machine','cricket duffle','anchoring kit','fit vibration plate','golfgirl','adidas wind','woodworm boxer shorts','garden storage','callaway diablo edge irons','spares','folding portable','woodworm cricket clothes','driver headcovers','band','palm springs clubs','pull up','5 wood','odyssey putters','e-bike','forgan driver','15 wood','woodworm waterproofs','tcb','heart','ionic band','foldable bike','ladies golf clubs','taylormade golf','young gun pro','golf waterproof trousers','woodworm trousers','woodworm mock turtle','winter mittens','nike golf','palm springs toilet','instructions','3m x 6m','evolution','airflow','taylormade gloves','ashworth half zip sweater','3 piece swiss case','golf mats','confidence power','nike cap','swiss case 4 wheel','push trolleys','left','irons','palm springs driver','callaway golf','2 in 1','gilet','waterproof iphone case','2 man tent','adidas shorts','chinning bar','junior cricket gloves','folding','ca','push','carry','adidas pinstripe','forgan golf grip and swing trainer','ca somo bat','outdoor','golf travel case','purple','autograph','pink swiss case','ice','st andrews','hot tub','wilson hope','3 man tent','argyle','young gun irons','golf caps','golf mitts','dual strap','hitec pure power','woodworm fleece','mens golf','chips','junior woodworm golf clubs','woodworm tops','pink golf balls','palm springs irons','forgan hybrid','woodworm wool','lightweight cases','wool','foldaway bike','ca cricket somo','pink cases','stowamatic electric trolley','confidence mono 3 man waterproof tent','briefs','chicago','kids','adidas pants','palm springs hybrid','putter covers','winter boots','confidence fitness vibration plate','ab pro','roulette felt','junior caps','battery bag','confidence putters','roll neck sweaters','marquee weights','inflatable','titleist balls','ladies sets','golf offers','confidence watch','nike hat','forgan 7 wood','gm','woodworm tent','2 in 1 cross trainer and exercise bike','personalised','junior pads','golf ball retriever','woodworm gxi','palm springs heavy duty marquee','4 wheel luggage','roller','chipping mat','roulette tables','woodworm zoom junior','picnic table','golf winter boots','score card','mens waterproof golf trousers','ram clubs','woodworm golf zoom package set 1 shorter','ashworth vest','garden','lime green golf shirt','left handed rescue wood','steel shaft clubs','confidence ab master','texan power 2','golf glove left handed player','adidas nitro','windshirt','woodworm umbrella','boys cricket pads','cleveland launcher dst','7 iron','folding chairs','kids cricket helmet','ionics power band','mens sweaters','folding portable party table','swing trainer','wheeled luggage','mens polo','weighted gazebo feet','prosimmon x9 complete golf clubs set','road bikes','ladies right hand golf glove','junior golf sets with every iron','confidence clothing','pilates foam roller','nike golf clubs','confidence pro tour','heart rate monitor','junior sets','green free 2 for 1 10 voucher gift pack','mens trousers','hybrid woods','ez pop-up gazebo','cricket holdall','cleveland driver','club cleaning kit','boys cricket gloves','left handed putter','cross trainer and bike','cricket protection','junior woods','coloured balls','confidence woods','lightweight','woodworm jackets','ladies polo shirts','ram wizard','top flite hat','sports holdall','soft spikes for golf shoes','right hand gloves','mens long sleeve polo shirts','skipping','adidas skorts','magnetic','elliptical cross trainer','junior golf clubs','merino golf shirts','lateral','rain suit','expandable suitcases','bag cover','electric trolley bags','light luggage','square head drivers','duffel','powerbilt','compression tops','confidence plus','roll','ladies carry bags','electric pump','continental','woodworm pro select cricket soft spike shoes','taylor made golf irons','palm springs golf','putting mat','cricket bat grips','woodworm cart bag','golf holdall','burner','palm springs visa 460cc mens golf driver','harrow bats','chin','folding exercise bike','junior','gazebo weights','palm springs outdoor garden storage box','diablo edge','electric fold','taylormade burner irons','palm spring 3 wood','hitec football boots','eva','discount','iron head covers','size 7','golf equipment','dumbbell bars','10 x 30 marquee','ball retriever','i onics','3 iron','bucket hat','casino games','poker 500','batting shorts','confidence total abs machine','woodworm zoom','golf clothing','hi tec','10 x 20','north gear','swiss case 4 wheel hard 2pc suitcase set','outdoor garden storage box','titleist golf balls','waterproof golf shoes','forgan series 1 wedge','bat care kit','woodworm sun glasses','confidence luggage','dri','flagstick','ashworth argyle','callaway locker room duffel','e-bikes','cleveland dst','power bike','gift vouchers','taylor made burner','heart rate','forgan putters','idry waterproof phone case','boys cricket','bat grips','woodworm base tech base warming layers','taylormade stratus','gym','golf glove pair','taylormade 2.0','ladies right handed golf set','windcheater','outdoor garden storage','adidas clothing','plate','ladies drivers','prosimmon golf bag','golf slippers','callaway mitts','waterproof clothing','portable toilet','adidas shirt','flyer','magnetic bands','palm springs party tent','pro series','junior hat','left handed golf driver','door','counter','trolley travel cover','adidas hat','filter','ladies vest','portaloo','score card holder','putting aids','esp3','trolley carry bag','fairway 3 wood','taylormade golf bags','ladies left handed golf sets','gazebo side panels','golf windshirts','side walls','heart rate monitor with chest strap','womens golf','ladies sweaters','junior golf bags','sleeveless golf','confidence 2-in-1 elliptical cross trainer and bike','golf garage tidy','palm','confidence space saver','mens rh batting glove','3man tents','woodworm cricket bat junior','confidence dumbells','custom','palm springs 3m x 9m party tent','rescue','visor','folding bench','left hand carry golf bags','climalite trousers','xxl','500','vibration plate power plus','ca power','20kg dumbells','sun hats','travel wheeled bags','double','woodworm darts mat','stowamatic accessories','yes madison','taylormade wedges','woodworm chairs','woodworm 10ft trampoline','3 piece','stowamatic carry bag','electric trolley carry bag','stand bags','mock','connector','vogue','forgan golf clubs','confidence vibration','poker shuffle','nike hybrid','6man tent','forgan left handed','practice balls','ashworth golf shirt','party tent marquee','pink balls','half zip sweater','prosimmon golf tour dual strap stand bag','black suitcase','childrens golf','vibration plate plus','voit golf sets','confidence fitness pulley rower rowing machine','golf trolley umbrella holder','power plus e-bike','asworth','womens shorts','lanyard','confidence heart rate monitor','callaway ladies 7 wood','pinstripe','phone case','callaway hat','cyclamatic power plus battery','white hot','computer','taylormade golf clubs','golf bag rain cover','madison','ashworth shirts','belt buckle','automatic card shuffler','swing aid','mens golf shorts','woodworm zoom driver','gents bike','mens clothing','2 in 1 trainer','treadmill white','windstopper','wide fitting','confidence 2 in 1 elliptical cross trainer','forgan irons','junior waterproofs','frying pans','woodworm dartboard surround','golf winter','woodworm golf tops','cyclamatic spare battery','dumbbell set 20kg','hard luggage','mens waterproof trousers','yuasa 36 hole','forgan bag','womens golf clothes','palm springs outdoor','mens waterproofs','woodworm superlight 28 suitcase free 20 case','sweat','elliptical cross trainer and bike','windproof jacket','swiss case purple','gt2 electric trolley','36 hole batteries','powakaddy freeway','utility bench','hard suitcase set','vinyl','confidence dumbbell set 20kg','four wheel suitcases','forgan series 1','junior stand bag','poker 600','2-in-1 elliptical cross trainer','air bed pump','junior bag','ashworth e-z tech','woodworm travel bag','dealer shoe','carry-on luggage','windproof tops','ladies pants','iron gym','forgan series 2 putter','iphone waterproof cover','ltt','cyclamatic power plus e bike','lefthand clubs','waterproof trolley bags','woodworm pro','nike juice','battery for stowamatic gt','grip cone','confidence eva floor mat','outdoor storage box','ram gloves','spikeless shoes','forgan series','pique','west indies cricket hat','felt','woodworm tshirt','palm springs tour players travel cover with wheels','ladies polo shirts white','accessories','single pleat microfibre','freeway 2','microfibre','glacier','izzo golf strap','adidas golf shorts','county','wizard','rainsuit','gazebo leg weights','oil','electric bike spares','idry waterproof case','merino sweater','mens polo shirts','dice','iphone 4 waterproof case','bags back','woodworm long sleeve','bbq tool set','cricket thigh pad','carry golf bag','nike polo shirts','woodworm gloves','massage','prosimmon trolley bag','palm springs 10 x 20','pro v1 golf ball','woodworm dart board','1 wood','nitro','21 suitcase','padman shorts','confidence roller','young gun golf','adidas balance','left handed golf','poker felts','junior cricket shoes','left handed junior woods','5 wood ladies left','callaway x','wilson pro staff','z star','izzo dual','palm springs tent','forgan series 3','series 3','idry 4','cabretta','marqueee','mens golf waterproof suits','gas','stowamatic cart bag','cyclamatic foldaway bike','young gun junior','iphone 4 waterproof','boxer trunks','woodworm towel','taylormade fairway','left junior drivers','green gazebo','taylor made bags','htc waterproof case','junior 5 irons','youths cricket','lambswool','left handed childrens','golf vouchers','gift','party gazebo','palm springs chipper','young gun junior golf clubs','craps','young gun xp','golf clubs for children','junior 6 iron','adidas skirt','electric motors','mens palm springs','confidence power package','confidence visa','waterproof shoes','confidence golf driver','young gun 3 iron','waterproof gloves','wide','ladies chipper','golf trolley carry bag','lined trousers','palm springs gilet','ladies shirts','fitness equipment','stowamatic gt2 carry bag','mens golf shoes size 12','v2','core','golf 7 wood','cheap golf sets','cyclamatic e bike','full set','idry iphone 4','tracer balls','double canopy umbrella','antiscuff','taylormade burner driver','wedding','pro staff','mock shirts','woodworm stripe','nike gloves','forgan suits','palm springs pro classic','taylor made iron set','garage tidy','woodworm suits','palm springs low profile wood','wind proof','womens golf clubs','ladies golf packages','poker dice','1 2 zip','ladies pink golf shoes','west indies shirt','storm','woodworm golf long','confidence pro magnetic elliptical cross trainer','battery yc20','confidence shirt','invertion table','forgan series 2 square driver','golf sets left hand mens','confidence ab pro','floor guards','batting leg guards','golf caddy','half sleeve','golf cup','confidence golf junior clubs set and bag','poker top','umbrella stand','taylormade woods','golf hole','woodworm west indies','golf gifts','golf trolley covers','palm springs heavy duty 3m x 6m marquee','cq poker set','golf junior 4 hybrid','cyclamatic foldaway battery','stowamatic stowaway','womens golf gloves','callaway golf cap','gray nicholls','soft feel golf balls','sq','party lights','wicket keeper pads','prosimmon glove','cleveland cg15','palm springs shirts','palm spring golf bag','cyclamatic gte','gun metal','cleveland clubs','golf roll neck','golfballs','wind cheater','golf trolley cover bag','woodworm golf waterproof half sleeve top black','golf sticks','woodworm golf polo shirt 4 pack','woodworm golf waterproof half sleeve','camp matresses','wide fitting black golf shoes 8.5','cq poker chips','confidence trainer','cricket mallet','golf wood covers','waterproof golf boots','palm springs deluxe dual strap stand bag','confidence long sleeve polo shirt','callaway cap','woodworm cricket equipment','confidence expandable suitcases with wheels','taylor made hat','golf winter mitts','trolley umbrella','skinny','golf mens waterproof jacket','wheeled suitcases','texan hybrid','confidence ladies irons','springback','taylor made burner superfast','white shirts','prosimmon x30 driver','power trolleys','cricket wear','texan hyper','womens golfing shirts','cq 6-in-1 at home casino set','childrens sets','taylormade burner superfast','pink golf glove','palm springs ice','golfgirl fws2','wind umbrellas','stowamatic cart','card table','white roll neck','cricket bat sh','confidence golf deluxe waterproof suit','green trousers','stowamatic gts electric golf trolley','cricket training','palm springs visa ladies','confidence 4 wheel hard 2pc suitcase','confidence multi combination training set','prosimmon golf set','personalised cap','palm springs visa woods hybrid','woodworm youths','confidence power ii left hand golf clubs set bag','set graphite','woodworm gxi mens','powakaddy trolley','short sleeve','confidence polo shirt','wet gloves','women\'s waterproof','woodworm tour shirts','woodworm 4 pack','golf shoes size 7','wilson club sets','ca plus pads','confidence golf quality waterproof golf suit','powerkaddy bags','palm springs 3m x 9m party tent marquee','greg norman interlock','square hybrid','woodworm lined','golf t','graphite clubs','size 12 shoes','cleveland hibore','confidence golf junior','stowamatic pro','prosimmon 14 way divider trolley bag new model','cricket duffle bag','polycarb','cyclomatic batteries','confidence hq7 rescue wood','cyclamatic e-bike','graphite iron set','cq poker delux set','confidence right hand','golfgirl fws2 pink collection golf club set','woodworm 5 wood','palm springs visa complete golf clubs package set','club sets','confidence golf rollnecks','crew','woodworm zoom 5 iron','prosimmon drk package','stiff shaft golf clubs','pro gloves','woodworm 3 pack shirts','woodworm golf polo shirt','woodworm supreme','side walls for gazebo','sports clothing','spokes','prosimmon drk all graphite golf package set','confidence rower','small left hand golf gloves','cross.trainer','ca cricket power','confidence circle','ca plus bat','starter','woodworm 3 pack','wilson dc','performance stripe','srixon golf cap','woodworm beta keeping pads','golf shoes size 2','prosimmon all weather glove','woodworm golf belt','confidence visa lefty woods','custom fit clubs','prosimmon x30 wood lefty','confidence camping backpack','womans golf shoes','cotton','cleveland shirt','white pop up gazebo','golf clubs left','womans woods','woodworm golf waterproof half sleeve top','confidence performance','castle','woodworm glowworm fizz','woodworm loche','palm springs 2ez ladies','golf sets for women','woodworm woods','portable 6ft bench','confidence golf power package set','security','palm springs 2ez driver ladies','groove','package sets','womens clubs','woodworm double canopy','gazebo roofs','woodworm junior full set','cricket equipment junior','woodworm black label','green woodworm','cricket glowworm pads','wilson maximum','cleveland fairway','cricket gloves lh','confidence mars tent','golf glove left','woodworm firewall','wide shoes men','putting green','grade 1 cricket bats','spirit','ca gold 5000','pop up party gazebo','west','stiff shaft fairway woods','confidence holiday 6 man 2 room camping tent','woodworm pro series padman shorts','spin balls','confidence left hand','woodworm golf premium 8 stand bag','woodworm folding camping chair 2 pack','glowworm buzz batting','confidence 20kg','woods drivers','woodworm camping gestic 20l daysack','clothing and headwear','touch','water proof marque','woodworm folding camping','woodworm arcos 55','cricket soft spikes','picnic bench','ca somo batting pads','ca plus batting gloves','gents wood','woodworm cricket spikes','waterproof 2 man tent','cyclamatic folding','palm springs cxi complete golf clubs set g s','woodworm cricket hard drive','golf junior set texan','golf wood lady left hand','cricket pads mens','womens left handed golf sets','steel shaft golf driver','woodworm ibat beta','ca cricket somo english willow cricket bat','tour golf shoes','ca batting pads','confidence mono extension 2 man','summer base layers','woodworm performance batting gloves boys rh','confidence classic','store','smart core','wicket pads','cleveland monster xls','palm springs performance','gold','woodworm cricket glowworm buzz batting pads mens','somo gloves','woodworm golf striped','cricket withes','spa\'s','childrens left handed drivers','gents','woodworm cricket buzz','chip drive mat','greg norman golf trousers','confidence cases','golf cups and flag','swiss case 4 wheel ez2c 2pc suitcase set fluvo','picnic 2 person','woodworm black extra wide golf shoes','putting arc','woodworm training','garden spa','palm springs 6ft','confidence hard 30','top 10','woodworm hood','woodworm cricket shoe kids','golf cleaner','golf garage','palm spring golf 14 way divider bag','woodworm size 3','simulator','ca somo cricket bat','woodworm basetech','callaway hx bite','cheap golf shoes','card shuffle','woodworm turtle','confidence esp3 woods','taylor-made','woodworm performance batting pads boys lh','woodworm stand bag','golf rollnecks','size 5 golf','willow','waist','golf putting mat','cricket beta','small boys','palm springs leisure','prosimmon ladies irons','somo batting pads','care kit','confidence travel','woodworm junior zoom package','woodworm 55l','confidence 10ft x 10ft','power2','woodworm shower','woodworm 2 pack','sport nets','srixon 333','confidence long sleeve polo golf shirt','cq poker delux','taylormade golf irons','woodworm summer base layer','golf irons ram','golf ball balancer','taylormade rac irons','palm springs 4m x 10m','powerdry fabric','woodworm beta wheeled bag','woodworm plain polo','woodworm tour shoes','woodworm golf set graphite','confidence classic stripe polo','golf\'clubs','woodwork ski jacket','cabinets','woodworm sports bag','cq chips');
/* $Revision: 3828 $
 *
 */

if(typeof(_sli_init )!='object'){var _sli_init=new Array();}
if(typeof(sli_init )!='function'){function sli_init(){ for(var x=0;x<_sli_init.length;x++) _sli_init[x]();}}
if(typeof(asPhrases)!='object'){ var asPhrases = new Array(); }
if(typeof(__SLI_customisations)!='object'){var __SLI_customisations = new Object();}
if(typeof(__SLI_ClientDefaults)!='object'){ var __SLI_ClientDefaults=[]; }
if(typeof(__SLI_validSearchBoxes)!='object'){ var __SLI_validSearchBoxes = new Array(); }
if(typeof(__SLI_asug_used_flag)!='object'){ var __SLI_asug_used_flag = false; }
if(typeof(__SLI_width)!='object'){ var __SLI_width = 0; }
if(typeof(sli_targeturl)!='object'){ var sli_targeturl = ""; }


    __AutoComplete = new Object(); //namespace...
    __AutoComplete_mouseMoved=false;

    // Basic UA detection
    isIE = document.all ? true : false;
    isGecko = navigator.userAgent.toLowerCase().indexOf('gecko') != -1;
    isOpera = navigator.userAgent.toLowerCase().indexOf('opera') != -1;

    /* defaults and options */

    var __SLI_ApplicationName = 'AutoSuggest';
        __SLI_customisations[ 'AutoSuggest' ] =
                {
                    'ShowBrandingFooter' : true
                    ,
                    'TextBoxIDPrefix' : 'sli_search_'
                    ,
                    'BrandingFooterImagePath' : 'http://assets.resultspage.com/autosuggest/sli_systems-powered_150_15.gif'
                    ,
                    'BrandingFooterTitleTooltip' : 'AutoSuggest Powered by SLI Systems'
                    ,
                    'DropListMinWidth' : 150
                    ,
                    'MaxListItems' : 10
                    ,
                    'Alignment' : true
                    ,
                    'TextBoxIDCustom' : []
                    ,
                    'ValidSearchBoxes' : false 
                    ,
                    'IE6SelectBox' : false 
                    ,
                    'IE6SelectBoxPadding' : 0
                    ,
                    'TargetURL' : ''
                    ,
                    'IframeAlignment' : false
                    ,
                    'AlignmentBorderBug' : false
                    ,
                    'IE6OnFocus' : false
                };
    /* 0 = keyname, 1 = value */
    for( defaultValuePair in __SLI_ClientDefaults )
    {
        __SLI_customisations[__SLI_ApplicationName][__SLI_ClientDefaults[defaultValuePair][0]]=__SLI_ClientDefaults[defaultValuePair][1];
    }

    /* pre-fetch branding footer image if being used...
     */
    if( __SLI_customisations[ __SLI_ApplicationName ][ 'ShowBrandingFooter' ] )
    {
        
        if(location.protocol == "https:")
        {
            __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ] = __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ].replace(/http:/i, 'https:');
        }
    
        var __AutoCompleteBranding = new Image();
        __AutoCompleteBranding.src=__SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterImagePath' ];
    }


    function AutoComplete_init()
    {
        if(!isOpera)
        {
            var oldonresize=function(){};
            if(typeof(window.onresize)=='function')
                oldonresize = window.onresize;//play nicely with other people's toys
            window.onresize= function(){ oldonresize(); AutoComplete_HideAll(); AutoComplete_Create( asPhrases ); }

            AutoComplete_Create( asPhrases );
            
            var els = document.getElementsByTagName('input');
            if(els)
            {
               for ( i = 0; i < els.length; i++ )
               {
                  if(els[i].name == "asug")
                  {
                     els[i].disabled = true;
                  }
               }
            }
        }
    }




    /**
    * Attachs the autocomplete object to a form element. Sets
    * onkeypress event on the form element.
    *
    * @param string formElement Name of form element to attach to
    * @param array  data        Array of strings of which to use as the autocomplete data
    */
    //function AutoComplete_Create (id, data)
    /*
     * iterate over 'sli_search_*' assumes one or more search boxes numbered from 1...
    */
    function AutoComplete_Create( data )
    {
        var idx=1, e, id, searchBoxPrefix=__SLI_customisations[ __SLI_ApplicationName ][ 'TextBoxIDPrefix' ];
        while( e = document.getElementById(searchBoxPrefix+idx) )
        {
            AutoComplete_AttachHandlers(e, data);
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
            {
                __SLI_validSearchBoxes.push(searchBoxPrefix+idx);
            }
            idx++;
        }
        
        
        //this array comes from the customised list
        var otherTextBoxIdList = __SLI_customisations[ __SLI_ApplicationName ][ 'TextBoxIDCustom' ];
        if( otherTextBoxIdList)
        {
            for(idx=0;idx<otherTextBoxIdList.length;idx++)
            {
                e = document.getElementById(otherTextBoxIdList[idx]);
                if(e)
				{
					if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
                	{
	                    __SLI_validSearchBoxes.push( otherTextBoxIdList[idx] );
                	}
					AutoComplete_AttachHandlers(e, data);
				}
            }
        }
        
    } 

    function AutoComplete_AttachHandlers(e, data){
        var iframe,id;
        id=e.id;


        __AutoComplete[id] = {'data':data,
                              'isVisible':false,
                              'element':document.getElementById(id),
                              'dropdown':null,
                              'highlighted':null};

        __AutoComplete[id]['element'].setAttribute('autocomplete', 'off');
        __AutoComplete[id]['element'].onkeydown = function(e) {if (!e) e = window.event; return AutoComplete_KeyDown(this.getAttribute('id'), e);}
        __AutoComplete[id]['element'].onkeyup = function(e) {if (!e) e = window.event; return AutoComplete_KeyUp(this.getAttribute('id'), e);}
        // The function call on the next line was changed by Andrew Grieve April 2008
        __AutoComplete[id]['element'].onkeypress = function(e) {if (!e) e = window.event; return AutoComplete_KeyPress(this.getAttribute('id'), e);}
        __AutoComplete[id]['element'].onclick = function(e)
        {
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'IE6OnFocus' ] )
            {
                __AutoComplete[id]['element'].focus();
            }
            if (!e) e = window.event; e.cancelBubble = true; e.returnValue = false;
        }



        // Hides the dropdowns when document clicked
        var docClick = function()
        {
            if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
            {
               for(var i=0; i < __SLI_validSearchBoxes.length; i++)
               {
                   if(document.getElementById(__SLI_validSearchBoxes[i]))
                   {
                       AutoComplete_HideDropdown(__SLI_validSearchBoxes[i]);
                   }
               }
            }
            else
            {
                for (id in __AutoComplete)
                {
                   AutoComplete_HideDropdown(id);
                }
            }
        }

        if (document.addEventListener) {
            document.addEventListener('click', docClick, false);
        } else if (document.attachEvent) {
            document.attachEvent('onclick', docClick, false);
        }


        // Max number of items shown at once
        if (arguments[2] != null) {
            __AutoComplete[id]['maxitems'] = arguments[2];
            __AutoComplete[id]['firstItemShowing'] = 0;
            __AutoComplete[id]['lastItemShowing'] = arguments[2] - 1;
        }

        AutoComplete_CreateDropdown(id);

        // Prevent select dropdowns showing thru
        if (isIE) {
            iframe = document.createElement('iframe');
            __AutoComplete[id]['iframe'] = iframe;
                iframe.id = id +'_iframe';
                iframe.style.position = 'absolute';
                iframe.style.top = '0';
                iframe.style.left = '0';
                iframe.style.width = '0px';
                iframe.style.height = '0px';
                iframe.style.zIndex = '98';
                iframe.style.visibility = 'hidden';
                
                if(location.protocol == "https:")
                {
                   iframe.src = 'https://assets.resultspage.com/autosuggest/blank.html';
                }
                
                if( __SLI_customisations[ __SLI_ApplicationName ][ 'IE6SelectBox' ] )
                {
                  iframe.style.width = __SLI_width  + __SLI_customisations[ __SLI_ApplicationName ][ 'IE6SelectBoxPadding'];
                }

            if( __SLI_customisations[ __SLI_ApplicationName ][ 'IframeAlignment' ] )
            {
                document.body.insertBefore( iframe );
            }
            else
            {
                __AutoComplete[id]['element'].parentNode.insertBefore( iframe, __AutoComplete[id]['element'] );
            }
        }
    }

    /**
    * Creates the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_CreateDropdown(id)
    {
        var theSearchbox = __AutoComplete[id]['element'];
        var theDropDown;
        var left_top = AutoComplete_getPos( theSearchbox );
        var left  = left_top[0];
        var top   = left_top[1] + theSearchbox.offsetHeight;
        var width = theSearchbox.offsetWidth;

        if ( width < __SLI_customisations[ __SLI_ApplicationName ][ 'DropListMinWidth' ] )
        {
            width = __SLI_customisations[ __SLI_ApplicationName ][ 'DropListMinWidth' ];
        }

        theDropDown = document.createElement('div');
        theDropDown.className = 'autocomplete'; // Don't use setAttribute()


        if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == true && document.body)
        {
            theDropDown.style.position = 'absolute';
            document.body.insertBefore(theDropDown, document.body.nextSibling);
            
            // Position it
            theDropDown.style.visibility = 'hidden';
            theDropDown.style.left       = left + 'px';
            theDropDown.style.top        = top + 'px';
            theDropDown.style.width      = width + 'px';
            theDropDown.style.zIndex     = '99999';
        }
        else if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "offsetrelative" && document.body)
        {
          theSearchbox.parentNode.insertBefore(theDropDown, theSearchbox);
          // Position it
          if(sli_getStyle(theSearchbox.offsetParent, 'position') != "absolute")
          {
            theSearchbox.offsetParent.style.position = 'relative';
          }
          theDropDown.style.position = 'absolute';
          theDropDown.style.left = (theSearchbox.offsetLeft) + 'px';
          theDropDown.style.top = (theSearchbox.offsetTop + theSearchbox.offsetHeight) + 'px';
          theDropDown.style.width = (theSearchbox.clientWidth) + 'px';
          theDropDown.style.visibility = 'hidden';
          theDropDown.style.zIndex     = '99999999';
        }
        else
        {
            theSearchbox.parentNode.insertBefore(theDropDown, theSearchbox);
            // Position it
            theDropDown.style.visibility = 'hidden';
            theDropDown.style.left       = left + 'px';
            theDropDown.style.top        = top + 'px';
            theDropDown.style.width      = width + 'px';
            theDropDown.style.zIndex     = '99999';
        }
        

        __AutoComplete[id]['dropdown'] = theDropDown;
        __SLI_width = width;
    }

    function /* array [ left, top ] */ AutoComplete_getPos( obj )
    {
        var curleft = curtop = 0;
        var sli_flag = 0;

        if (obj.offsetParent)
        {
           do
           {
              if ( __SLI_customisations[ __SLI_ApplicationName ][ 'AlignmentBorderBug' ] )
              {         
                
                if(sli_flag == 1)
                {
                    var clientTop = (obj.offsetHeight - obj.clientHeight) / 2;
                    curtop += clientTop;

                    var clientLeft = (obj.offsetWidth - obj.clientWidth) / 2;
                    curleft += clientLeft;
                }
                sli_flag = 1;
              }
           
              curleft += obj.offsetLeft;
              curtop += obj.offsetTop;
           }
           while (obj = obj.offsetParent);
        }
        return [curleft,curtop];
    }

    /**
    * Shows the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_ShowDropdown(id)
    {

        AutoComplete_HideAll();



        var value = __AutoComplete[id]['element'].value;
        var toDisplay = new Array();
        var newDiv    = null;
        var text      = null;
        var numItems  = __AutoComplete[id]['dropdown'].childNodes.length;

        __AutoComplete_mouseMoved=false;
        // SLI Code Modification - Start - Andrew Grieve April 08
        // Trim the textbox so that if is starts with a space then the feature will still work
        //value = value.replace(/^\s+|\s+$/g,"");
        value = value.replace(/^\s+/g,"");

        if(value.length == "")
        {
            // If Textbox length is nothing (after the trim) then don't show dropdown.
            return;
        }
        // SLI Code Modification - End

        // Remove all child nodes from dropdown
        while (__AutoComplete[id]['dropdown'].childNodes.length > 0) {
            __AutoComplete[id]['dropdown'].removeChild(__AutoComplete[id]['dropdown'].childNodes[0]);
        }


        var count=0;
        // Go thru data searching for matches
        for (i=0; i<__AutoComplete[id]['data'].length; ++i)
        {
            // SLI Code Modification - Start - Andrew Grieve April 08 - Added lower casing
            if (__AutoComplete[id]['data'][i].substr(0, value.length).toLowerCase() == value.toLowerCase())
            {
                // SLI Code Modification - End
                toDisplay[toDisplay.length] = __AutoComplete[id]['data'][i];
                count++;
                /* how many to display? */
                if(count == __SLI_customisations['AutoSuggest']['MaxListItems'] ) /* Code inserted to keep list to a maximum of 10 values (was 20 or 30) */
                {
                    break;
                }
            }
        }

        // No matches?
        if (toDisplay.length == 0) {
            AutoComplete_HideDropdown(id);
            return;
        }



        // Add data to the dropdown layer
        for (i=0; i<toDisplay.length; ++i) {
            newDiv = document.createElement('div');
            newDiv.className = 'autocomplete_item'; // Don't use setAttribute()
            newDiv.setAttribute('id', 'autocomplete_item_' + i);
            newDiv.setAttribute('index', i);
            newDiv.style.zIndex = '99999';

             // Scrollbars are on display ?
            if (toDisplay.length > __AutoComplete[id]['maxitems'] && navigator.userAgent.indexOf('MSIE') == -1) {
                newDiv.style.width = __AutoComplete[id]['element'].offsetWidth - 22 + 'px';
            }

            newDiv.onmouseover =
        function()
        {
            if( __AutoComplete_mouseMoved )
                AutoComplete_HighlightItem(__AutoComplete[id]['element'].getAttribute('id'), this.getAttribute('index'));
        };

            newDiv.onclick     =    function()
                                    {
                                    	  __SLI_asug_used_flag = true;
                                                                           
                                        AutoComplete_SetValue(__AutoComplete[id]['element'].getAttribute('id'));
                                        AutoComplete_HideDropdown(__AutoComplete[id]['element'].getAttribute('id'));
                                        AutoComplete_submitForm(id);
                                    }



            text   = document.createTextNode(toDisplay[i]);
            newDiv.appendChild(text);
            newDiv.title='Search for ' + toDisplay[i];

            /* ellipsis for IE only */
            if( isIE )
            {
                newDiv.style.textOverflow = 'ellipsis';
                newDiv.style.width = '100%';
                newDiv.style.whiteSpace = 'nowrap';
                newDiv.style.overflow = 'hidden';

            }
            __AutoComplete[id]['dropdown'].appendChild(newDiv);
        }
        /*
         * append DIV containing footer branding...
         */
        if(__SLI_customisations['AutoSuggest']['ShowBrandingFooter'])
        {
            i = toDisplay.length;
            newDiv = document.createElement('div');
            newDiv.className = 'autocomplete_footer'; // Don't use setAttribute()
            newDiv.setAttribute('id', 'autocomplete_item_' + i);
            newDiv.setAttribute('index', i);
            newDiv.style.zIndex = '99999';
            newDiv.innerHTML = '<a href="http://www.sli-systems.com/powered-by.php" title="' +
                                __SLI_customisations[ __SLI_ApplicationName ][ 'BrandingFooterTitleTooltip' ] +
                                '"><img class="autocomplete_footer_branding" src="'+__AutoCompleteBranding.src+'" /></a>';

            __AutoComplete[id]['dropdown'].appendChild(newDiv);
        }


        // Too many items?
        if (toDisplay.length > __AutoComplete[id]['maxitems']) {
            __AutoComplete[id]['dropdown'].style.height = (__AutoComplete[id]['maxitems'] * 15) + 2 + 'px';

        } else {
            __AutoComplete[id]['dropdown'].style.height = '';
        }


        /**
        * Set left/top in case of document movement/scroll/window resize etc
        */
        if(__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "true" || __SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == "false")
        {
            var left_top = AutoComplete_getPos( __AutoComplete[id]['element'] );
            __AutoComplete[id]['dropdown'].style.left = left_top[0];
            __AutoComplete[id]['dropdown'].style.top  = left_top[1] + __AutoComplete[id]['element'].offsetHeight;
        }


        // Show the iframe for IE
        if (isIE) {
            
            if(!__SLI_customisations[ __SLI_ApplicationName ][ 'Alignment' ] == true)
            {
               __AutoComplete[id]['iframe'].style.width  = __AutoComplete[id]['dropdown'].offsetWidth;
            }
            
            
            __AutoComplete[id]['iframe'].style.top    = __AutoComplete[id]['dropdown'].style.top;
            __AutoComplete[id]['iframe'].style.left   = __AutoComplete[id]['dropdown'].style.left;
            __AutoComplete[id]['iframe'].style.height = __AutoComplete[id]['dropdown'].offsetHeight;

            __AutoComplete[id]['iframe'].style.visibility = 'visible';
        }

    e =  __AutoComplete[id]['dropdown'];

    e.onmousemove =
        function()
        {
            if(!__AutoComplete_mouseMoved){__AutoComplete_mouseMoved=true;}
            this.onmousemove = null;
        }

        // Show dropdown
        if (!__AutoComplete[id]['isVisible']) {
            __AutoComplete[id]['dropdown'].style.visibility = 'visible';
            __AutoComplete[id]['isVisible'] = true;
        }


        // If now showing less items than before, reset the highlighted value
        if (__AutoComplete[id]['dropdown'].childNodes.length != numItems) {
            __AutoComplete[id]['highlighted'] = null;
        }
    }



    /**
    * Hides the dropdown layer
    *
    * @param string id The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_HideDropdown(id)
    {
        if (__AutoComplete[id]['iframe'])
        {
            __AutoComplete[id]['iframe'].style.visibility = 'hidden';
        }
        
        if (__AutoComplete[id]['dropdown'])
        {
            __AutoComplete[id]['dropdown'].style.visibility = 'hidden';
        }

        __AutoComplete[id]['highlighted'] = null;
        __AutoComplete[id]['isVisible']   = false;
    }


    /**
    * Hides all dropdowns
    */
    function AutoComplete_HideAll()
    {
         if( __SLI_customisations[ __SLI_ApplicationName ][ 'ValidSearchBoxes' ] )
         {
               for(var i=0; i < __SLI_validSearchBoxes.length; i++)
               {
                   if(document.getElementById(__SLI_validSearchBoxes[i]))
                   {
                       AutoComplete_HideDropdown(__SLI_validSearchBoxes[i]);
                   }
               }
         }
         else
         {
                for (id in __AutoComplete)
                {
                   AutoComplete_HideDropdown(id);
                }
         }
    }


    /**
    * Highlights a specific item
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    * @param int    index The index of the element in the dropdown to highlight
    */
    function AutoComplete_HighlightItem(id, index) // mouseover, index is the list element index, zero-based
    {
        if (__AutoComplete[id]['dropdown'].childNodes[index]) {
            for (var i=0; i<__AutoComplete[id]['dropdown'].childNodes.length; ++i) {
                if (__AutoComplete[id]['dropdown'].childNodes[i].className == 'autocomplete_item_highlighted') {
                    __AutoComplete[id]['dropdown'].childNodes[i].className = 'autocomplete_item';
                }
            }

            __AutoComplete[id]['dropdown'].childNodes[index].className = 'autocomplete_item_highlighted';
            __AutoComplete[id]['highlighted'] = index;

            //also see below...
            //__AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[index].innerHTML;
            //AutoComplete_SetValue(id);
        }
    }


    /**
    * Highlights the menu item with the given index
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    * @param int    index The index of the element in the dropdown to highlight
    */
    function AutoComplete_Highlight(id, index) // keyboard up/down - index is the direction of travel, 1==down,-1=up
    {
        var childNodes = __AutoComplete[id]['dropdown'].childNodes;
        if(childNodes.length)
        {
	        var lastItem = ( ( childNodes[ childNodes.length - 1 ].className != 'autocomplete_footer' ) ? childNodes.length - 1 : childNodes.length - 2 );

            // Out of bounds checking
            //if (index == 1 && __AutoComplete[id]['highlighted'] == __AutoComplete[id]['dropdown'].childNodes.length - 1) {
            if (index == 1 && __AutoComplete[id]['highlighted'] == lastItem ) {
                childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
                __AutoComplete[id]['highlighted'] = null;

            } else if (index == -1 && __AutoComplete[id]['highlighted'] == 0) {
                childNodes[0].className = 'autocomplete_item';
                __AutoComplete[id]['highlighted'] = lastItem;
                index = 0;//hack!
            }

            // Nothing highlighted at the moment
            if (__AutoComplete[id]['highlighted'] == null) {

                childNodes[0].className = 'autocomplete_item_highlighted';
                __AutoComplete[id]['highlighted'] = 0;
                newIndex = 0;
                
            } else {

                if (childNodes[__AutoComplete[id]['highlighted']]) {
                
                    childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
                }

                var newIndex = parseInt( __AutoComplete[id]['highlighted'] ) + parseInt(index);

                if (childNodes[newIndex]) {

                    childNodes[newIndex].className = 'autocomplete_item_highlighted';

                    __AutoComplete[id]['highlighted'] = newIndex;
                }
            }

            //populate textbox with currently highlighted term...
            //__AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[newIndex].innerHTML;
            AutoComplete_SetValue(id);
        }
    }


    /**
    * Sets the input to a given value
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_SetValue(id)
    {
        __AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']].innerHTML.replace(/&amp;/, "&");
    }


    /**
    * Checks if the dropdown needs scrolling
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_ScrollCheck(id)
    {
        // Scroll down, or wrapping around from scroll up
        if (__AutoComplete[id]['highlighted'] > __AutoComplete[id]['lastItemShowing']) {
            __AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'] - (__AutoComplete[id]['maxitems'] - 1);
            __AutoComplete[id]['lastItemShowing']  = __AutoComplete[id]['highlighted'];
        }

        // Scroll up, or wrapping around from scroll down
        if (__AutoComplete[id]['highlighted'] < __AutoComplete[id]['firstItemShowing']) {
            __AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'];
            __AutoComplete[id]['lastItemShowing']  = __AutoComplete[id]['highlighted'] + (__AutoComplete[id]['maxitems'] - 1);
        }

        __AutoComplete[id]['dropdown'].scrollTop = __AutoComplete[id]['firstItemShowing'] * 15;
    }


    /**
    * Function which handles the keypress event
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_KeyDown(id, e)
    {
        var result = true;

       var event;
       event = e;
       if(!event) event = window.event;

        var keyCode = event.keyCode;

        switch (keyCode) {

            // Return/Enter
            case 13:
                if (__AutoComplete[id]['highlighted'] != null) {
                    AutoComplete_SetValue(id);
                    AutoComplete_HideDropdown(id);
					
                    __SLI_asug_used_flag = true;
					
                    if( e = __AutoComplete[id]['element'].form['asug'] )
                    {
                        
                        e.disabled=false;
                        e.value = __AutoComplete[id]['asug'];
                    }

                }

                result = AutoComplete_submitForm(id);

                break;

            // Escape
            case 27:
                AutoComplete_HideDropdown(id);
                event.returnValue = false;
                event.cancelBubble = true;
                break;

            // Up arrow
            case 38:
                if (!__AutoComplete[id]['isVisible']) {
                    AutoComplete_ShowDropdown(id);
                }

                AutoComplete_Highlight(id, -1);
                AutoComplete_ScrollCheck(id, -1);
                
                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=false;
                   e.value = __AutoComplete[id]['asug'];
                }

                                
                result = false;
                break;

            // Tab
            case 9:
                if (__AutoComplete[id]['isVisible']) {
                    AutoComplete_HideDropdown(id);
                }
                return;

            // Down arrow
            case 40:

                if (!__AutoComplete[id]['isVisible']) {
                    AutoComplete_ShowDropdown(id);
                }

                AutoComplete_Highlight(id, 1);
                //AutoComplete_ScrollCheck(id, 1);

                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=false;
                   e.value = __AutoComplete[id]['asug'];
                }

                result = false;
                break;
        }
        return result;
    }


    /**
    * Function which handles the keyup event
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_KeyUp(id, e)
    {
       var event;
       event = e;
       if(!event) event = window.event;

        var keyCode = event.keyCode;

        switch (keyCode) {
            case 13:
                event.returnValue = false;
                event.cancelBubble = true;
                
                break;

            case 27:
                AutoComplete_HideDropdown(id);
                event.returnValue = false;
                event.cancelBubble = true;
                break;

            case 38:
            case 40:
                return false;
                break;

            default:
                AutoComplete_ShowDropdown(id);
                
                __AutoComplete[id]['asug']=__AutoComplete[id]['element'].value;

                if( e = __AutoComplete[id]['element'].form['asug'] )
                {
                   e.disabled=true;
                   e.value = "";
                }  
                
                break;
        }
    }

    /**
    * Function which handles the keypress event
    * This function added April 2008 by Andrew Grieve
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */

    // SLI Code Modification - Start - Andrew Grieve April 08
    function AutoComplete_KeyPress(id, e)
    {
        var event = e;
        if(!event) event = window.event;
        var keyCode = event.keyCode;

        if (keyCode == 13 && isGecko || isOpera)
        {
            return false;
        }
        
        if( __SLI_customisations[ __SLI_ApplicationName ][ 'TargetURL' ] )
        {
            if (keyCode == 13 && isIE)
            {
                return false;
            }
        }
        
    }
    // SLI Code Modification - End

    /**
    * Returns whether the dropdown is visible
    *
    * @param string id    The form elements id. Used to identify the correct dropdown.
    */
    function AutoComplete_isVisible(id)
    {
        return __AutoComplete[id]['dropdown'].style.visibility == 'visible';
    }

    function AutoComplete_submitForm(id)
    {
        var e, f, result=true;
        if( f = __AutoComplete[id]['element'].form )
        {
            if( __AutoComplete[id]['element'].value != '' )
            {
            	if(__SLI_asug_used_flag == true)
            	{
                   if( e = f['asug'])
                   {
                      e.value = __AutoComplete[id]['asug'];
                      e.disabled=false;
                   }
                }
                
                if( __SLI_customisations[ __SLI_ApplicationName ][ 'TargetURL' ] )
                {
                	asugvar = "";
                	if(__SLI_asug_used_flag == true)
                	{
                	  asugvar = '&asug=' + __AutoComplete[id]['asug'];
                  	}
                    
                    sliRegex = /resultsdemo\.com/;
                    if(sliRegExArray = sliRegex.exec(document.domain))
                    {
                    	sliRegex = /^http:\/\/(.*)\//;
                    	sliTargetDomain = sliRegex.exec(__SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ]);
                    	__SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ] = __SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ].replace(sliTargetDomain[1], document.domain);
                    }
                    
                	document.location.href = __SLI_customisations[__SLI_ApplicationName ][ 'TargetURL' ] + __AutoComplete[id]['element'].value + asugvar;
                }
                else
                {
                	f.submit();
                }
                
                AutoComplete_HideAll();
            }
            else
                result = false;
        }
        return result;
    }
    
    // get the style that will be applied by the browser, including stylesheets
    function sli_getStyle(el,styleProp)
    {
      if (el.currentStyle)
        var y = el.currentStyle[styleProp];
      else if (window.getComputedStyle)
        var y = document.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp);
      return y;
    }

    // register with onLoad(er...
    _sli_init.push( AutoComplete_init );
    
    function sli_addEvent(obj, evType, fn) {
    	if (obj.addEventListener) {
    		obj.addEventListener(evType, fn, false);
    		return true;
    	} else if (obj.attachEvent) {
    		var r = obj.attachEvent("on" + evType, fn);
    		return r;
    	} else {
    		return false;
    	}
    }
    
    function sli_load()
    {
    	sli_addEvent(window, 'load', sli_init);
    }
