/* Popular phrases - YOURCHEMISTSHOP - 13:5:31, Sat Feb 4, 2012 */
var asPhrases=new Array ('accuchek','bodytrim','isowhey','duromine','african mango','viagra','canesten','viagra 100mg','quickslim','green lipped mussel','body trim','cialis','rapid loss','krill oil','aquasun','swisse hair skin','circulation booster','lifestream chlorella','circulation booster v3','regaine','optifast','skin doctors','duromine 40mg','quick slim','sculpt','cialis 20 mg 8 tabs','silica tablets','caverject','bodytrim cookies','vein away','probiotics','protein powders','bodytrim bars','nurofen plus','wart remover','duromine 30mg','fish oil','yaz','flomaxtra','coaguchek xs','bepanthen','detox','vitamin d','roc','accu-chek mobile','diuretic','cartia','bodytrim protein bars','inr machine','wart','xenical','revivogen','yasmin','lapurete','colon cleanse','imedeen','panadeine','testosterone','propecia','blackmores','one a day fish oil','isowhey complete','cetaphil','body trim protein bars','lancet','xyvion','horleys','elevit','sandra cabot','horleys sculpt','codeine','diflucan','vicks','ibilex 500','kenacomb ointment','nizoral','lifestream aloe vera','accu chek','magnesium','livial','ameda','test strips','slim right','no no 8800 hair removal','vitamin b12','minoxidil','nexium','retrieve cream','amazonia','sexual','vital greens','swisse','cholesterol health','blackmores omega','krill','goat weed','body trim cookies','blackmores fish oil','laxative','clomid','avent','nasonex aqueous nasal spray','coaguchek','fexotabs','no no','pinetarsol','coq10','qv','irvingia','pariet','joint formula','xanax','bodytrim plus weight loss kit','no no hair removal','hair more','metermine 40mg','sleeping tablets','david babaii','omega krill oil','blackmores hair skin','telfast','canestan','gluten free weight loss','silica','low carb protein bars','blooms svelte','zoloft','fat blaster','reducta','thermometer','green tea','hair removal','super greens','natures way super krill oil','stilnox','levlen','kosmea','mango','milton','vitamin e','policosanol','ultralieve pro','metamucil','evening primrose oil','body trim shakes','regaine foam','pariet 20mg','protein','valerian','aldara cream','iodine','glucosamine','skin physics','fat blaster max','emu fire','kicstart','milky foot','detox n burn','testogel','coconut oil','lipitor','glucosamine and chondroitin complex','zinc','svelte','acai','smoking','valtrex','loceryl','clymax','mederma','mersyndol','temtabs','wet ones','ultrasound','green coffee beans','qsilica','emtrix','curcumin','saw palmetto','quicktrim','isowhey protein bars','sapoderm','panadol','hand cream','voltaren','neostrata','blood monitor','ky','valium','crystal body deodorant stick','hairscience','melatonin','coenzyme q10','green tea tablets','potent c skin doctors','erection','pain relief','blood pressure monitor','sebamed','elidel','macuvision','olive leaf extract','vortex','betty baxter','low dose aspirin','ostelin','ultralieve gel','lutein','bioglan super fish oil','levitra','nasonex','olmetec','swisse joint','liquid nitrogen','rectogesic','combantrin','tramedo','cymbalta','ventolin','skin doctors cleanser','codral','bioglan one a day super fish oil','minoxidil extra strength','spirulina','mobic','ionil t','cialis 20mg 4 tabs','vitex','cabot','rapid loss meal replacement','stretch marks','lyprinol','isowhey shake','microgynon 30','blackmores coq10','kliogest','acne','superfade','spider veins','fisiocrem','nagesic forte','oz health arthritis relief cream','circadin','evening primrose','alpha-lipoic acid','pramin','braun thermoscan','zanidip','vitamin b stress','shaker','anthogenol','accucheck','wotnot','multivitamin','veins clear','condoms','lice','singulair','efudix','lyrica','osteoeze','hiprex','rosehip vital','goji berries','accutrend plus','vitamin c','esipram','rose hip vital','30 plus','moisturizer','seretide','panadeine extra','wild yam','ibuprofen','trisequens','benzoyl peroxide','lamisil','mitchum','micardis','cholesterol','diaformin','bounce','blistex','body trim cereal','lengout','swisse ultiboost chlorophyll','flaxseed oil','accu-chek lancets','nicorette','blackmores pregnancy','accutrend glucose strips','stem cell','calcium','dry eyes','arimidex','betty baxter soup','somac','panamax','panadeine forte','medislim','wart off','vitamin d3','high strength fish oil','benzac','loratadine','perfume','lipitor 40mg','spermicide','acai berry','blackmore multi vitamin','green tea capsules','blood pressure','chlorsig','minax','valium 5mg','antacid','breathe right nasal strips','accu-chek mobile test cassette','crestor','avamys','temaze','green barley','large cuff microlife','hamilton','hydrozole','viscotears','wyld','vaporizer','dry shampoo','tagamet','eco tan','oricom','goji','androcur','bcaa','strips','floss action','triclosan','pedialyte','organic','tinea','whey protein','hemorrhoid','detox and burn','salbutamol','linotar','nilstat','blackmores bio zinc','avamys nasal spray','viagra 50mg','omron','nurofen','super slim','thyroid supplement','celebrity slim','movicol','sleep','nicorette inhaler','freezeframe','chia seeds','celebrex','natural deodorant','bowel cleanse','blackmores nails hair skin','ginseng','slimmm shakes','famvir','sudafed pe','magnesium tablets','metermine','milk thistle','slimmm','medical vita diet','swisse fish oil','dermorganics','aveeno','blackmores joint formula advanced','green tea extract','cleanser','krill oil 1000mg','shampoo','slim and detox','2000mg fish oil','brahmi','cat','sunscreen','ativan','daktagold','meal replacement','natural protein powder','hi dow','amolin','sandrena','zeffix','accu chek mobile test cassette','roc cleanser','executive stress','coq10 60mg','toner','apple cider vinegar','co-enzyme q10','horleys ripped','tramal','rogaine','nail fungus','insect repellant','metabolism','crampeze','lipitor 20mg','microgynon 20','menopause tablets','accuchek mobile lancet','l-carnitine','accu chek mobile','qv cream','acia berry','thursday plantation','diane 35 ed','primer','chlorophyll','orthaheel','strattera','accu chek performa','swisse mood','trifeme','freezeframe wrinkle filler','amoxil','lutein vision','ozhealth','viagra 25mg','atrovent','nutra shot','coversyl','lanate','bactroban','cherub baby','tamanu oil','ibs','relaxaderm','premarin','natures way','qvar','pevaryl','sleep formula','protein shakes','pinetarsol bath oil','femoston','inr','opti','budesonide','period pads','persantin','fluid retention tablets','freezeframe lip injection','eulactol heel balm gold','proscar','zofran','q10','chlorella','hair skin nails','iron','motilium','psyllium husk','no no 8800','scar','ginkgo','lanacane','dettol','no no hair','herron osteoeze active','remifemin','lemon detox','eye','dr lewinns','b12','dimetapp','swisse hair and nail','vitamin c 1000mg','tegretol','liver detox support','manuka honey','skin doctors gift pack','ego qv wash','isowhey complete butterscotch','fatblaster max','gastro stop','hair spray','glucomannan','cla','dermatix','roc complete lift','resveratrol','hidow','bilberry','ear clear','loette','fixomul','pigeon','bushman','mersyndol forte','male enhancement','blackmores joint','chromium polynicotinate','bio organic essential enzymes','ego pinetarsol gel 500gm','trileptal','accu check lancets','sustained release multi','niacinamide','bowelbiotics','bodytrim shakes','enema','postage','zinc and castor oil cream','invisible zinc','rozex','soap','panadol osteo','chlorpheniramine','nicotinic acid','horleys carb less','caltrate','regaine 2%','dr red','st johns wort','nurofen children','bounce balls','nucolox','fatblaster','digestive enzymes','lexapro','moroccan oil','papaya','fungal nail infection','glucosamine chondroitin','menopause','hair loss','glucosamine sulphate chondroitin','berocca','listermint','ego resolve','psoriasis','magnesium orotate','swisse slimaluma','azelaic','performa','worm','corn','kosmea mist','telfast 180','dove','chafing','toothbrush','bad breath','corn pads','4321','stop bleed','nature\'s own magnesium','sperm max','skin doctors gamma hydroxy','advanced joint','swisse krill oil','raspberry leaf','bioglan women','quicktrim fast cleanse 48 hour super diet detox 480ml','bowel biotics','nupentin','rogaine foam','lubricant','hydroxyburn','prozac','lifestream barley grass','ingrown hair','propolis','oratane','hair no more','lithicarb','glucose','canesten cream','skin doctor sd white','roc correxion','bragg','bricanyl','stop smoking patches','gotu kola','jojoba company','horseradish','poison','swisse womens ultivite','hydrozole cream','emu oil','oilatum','salt','coversyl plus','tan','micardis plus','rafen','soap free','fobt','nasal irrigation','avent magic cup','magnesium chelate','glyceryl trinitrate','exfoliating glove','svetol','dr lewinns facial polishing gel','blackmores digestive aid','bio oil','blackmore co-enzyme q10','astaxanthin','optiderma','insomnia','flamazine','green coffee','promensil','olive leaf','sleep spray','pms','ridaura','liquid fish oil','antihistamine','glucosamine 750 chondroitin 400','wild krill oil','flagyl','echinacea','kids multi','zinc cream','retrieve','micardis 80','eryacne','superfood','head lice','colloidal silica','trixera','drixine nasal spray','super krill oil','blackmore fish oil 1000','lomotil','selsun','green lipped mussel capsules','super colloidal silica','bee natural','facial cleanser','mum','full','check out','large dogs','edronax','diflucan one','blooms','blackmores total calcium','nizoral 2','bodylicious','prostate','topical','full shake','roaccutane','gift pack','isowhey fibre','zyrtec','braun','veins','lifestream vitamin c','blackmores joint formula','claratyne','losec','fosamax','lifestream natural calcium','restoria','skin care','durotram','weight loss tablets','elle macpherson','appetite','mens multivitamin','digital thermometer','lacrilube','palmetto','effervescent','collagen tablets','herron osteoeze','nail fungus treatment','rapid burn','natural viagra','cinnamon','doxycyline','executive b','elmore oil','omron blood pressure monitor','weight scales','nexium 20mg','lyrica 300mg','hydroxycut','microlife','roche','clexane','caduet','personal lubricant','trinovin','blooms silica','hair','diabetes','diane 35','maqui berry','teething gel','ultralieve pro gel','minulet','fluid retention','durotuss','vytorin','foot powder','soov','odourless fish oil','microdermabrasion','depo medrol','progout','acetyl','tobrex','spirulina synergy','vapo steam','whitening','neurontin 300mg','blooms glucosamine','acetyl l carnitine','provera 5mg','betty baxter vanilla','zithromax','body trim bars','aha','hissyfit','pregnancy test','accu-chek performa nano','nexium 20 mg','bowel','ego qv face','optimum nutrition','whey','liver','fucidin','aerogard','palmers','bonjela','appetite suppressant','charcocaps','caltrate plus','advantix','daktarin','suppositories','wart cream','crestor 20 mg','snug','erectomax','tape','ego qv conditioner','bsc','penta vite','coumadin','carb detox','natures way restore','totally natural fluid away','resolve balm','hair and nails','powerbrasion','resolve tinea','retinol','ascorbic acid','lip injection','shipping','ovulation test kits','hydroquinone','circulation','microgynon','calcium magnesium zinc','omega3','systane','slimshake','pristiq','rescue remedy','hair polish','ethical nutrients','conceive well gold','forehead thermometer','swisse women\'s','tamuskin','sudafed','moroccan','inr monitor','imigran','vitamin c powder','alpha lipoic acid','maybe baby','blackmores odourless fish oil 1000 capx400','estradot','insure','multiclix','duramine','h balm','boston','vaginal','wild salmon oil','female libido','lactate','superslim','pycnogenol','andriol','neo-b12 injection','bromelain','lariam','magnesium powder','fish oil capsules','paxam','floss','b3','travelan','aquaear','cilamox','sexual performance','cissus','warfarin','anti histamine','ethical nutrients urinary tract','hydrogen','januvia','estelle 35 ed','sensa','dermaveen','bioglan','moxicam','lifestream spirulina','celestone chronodose injection','breathe right','same','oral-b','sulfur','dental floss','blackmores conceive well','endep','nicabate cq clear','head lice treatment','mens performance','lamogine','rhinocort','isowhey shaker','septrin','blackmores propower','curash','singulair 10mg','monistat','sudocrem','horleys replace','celapram','fastclix','fleet','optium','bactrim','eyelid','cough','salpraz','eye q fish oil','triple action','eye ointment','dentotape','body trim caramel','acidophilus','omega 3','invite vitamin e oil','ventolin inhaler','circulation booster gloves','motion sickness','svelte gcb 45 green coffee bean','durex','qsilica colloidal','pregnancy','glucosamine chondroitin msm','estelle','genital wart remover','tena slip maxi','accutrend','swisse ultiboost mood tabs 50','omega','teeth whitening','libido','silic 15','emu','white soft paraffin','advil','degas','instant natural protein','circadin 2mg','norflex','naphcon-a','skin physics liposculpt','billie goat soap','digesic','ovulation kit','prednisolone','v drive','hair loss shampoo','phenergan','selenium','phytolife','fat blaster fat magnet','mobicosa','clearblue','hissy fit','epsom salts','botox','slimaluma','bodytrim cereal','blackmores cranberry','anaesthetic','comfrey','ovulation tests','tooth whitening','baby powder','elivit','sinus','dermaid cream','hair oil','nappy bags','skin rash','myadec','disprin','glutathione','minomycin','protos','blackmores sugar balance','climara','swisse men','shark','blackmores milk thistle','painstop','lifestream ultimate greens','lamictal','estrofem','goanna','sinutab','pimple','memory','polaramine','hand','naprosyn','ichthammol ointment','accu-chek test strips','zoton','alodorm','option','vitamin d tablets','superslim food','isowhey banana','swisse gluten free','vitamin d3 1000iu','ethical nutrients iron plus','nutrex','nicabate mini','tena for men','performa nano','alpha keri','conductive gel','flo','innoxa free and easy','logynon ed','keflex','efexor','codeine tablets','canestan cream','nature \'s own omega 3 high strength odourless fish oil 1500 mg x 200 caps','genital warts','herbalax','bio-organics glucosamine rapid cream','alprim','lens cleaner','gaviscon','natures way protein powder','instant facelift','beconase','liposculpt','knee strap','colofac','hem7211','acetyl l-carnitine','breath','blackmores glucosamine sulfate 1500 x 180 tablets','propower','oxygen','digestion plus','elocon','night multivitamin','nurofen gel','mascara','svelte gcb 45','ego sunsense','blackmores vitamin d','asmol inhaler','ponstan','natures way detox','naprogesic','wagner','mouth ulcer','casein','rejuve','refresh eye drops','konjac fibre','otrivin','paroven forte','fish oil for kids','genteal','green mussels','fluvastatin','blackmores nail skin','wrist','gel arch support','tena fix','isotrex','leukopor tape','cream','systane ultra','fat blaster shake','isoflavone','rose hip oil','eulactol','grisovin','doloxene','redoxon','oz health','supprexxa','scar treatments','dht blocker','rosehip oil','ferro gradumet','pod','airborne','rapid white','underpads','refresh eye','celery juniper','bp monitor','herb','unisom','blackmores executive stress','ozhealth arthritis','zovirax','hair removal cream','proctosedyl','slim stix','watson and son','steriliser','lysine','nature\'s own fish oil','chromium picolinate','accu chek integra','efamol','emu fire eczema','fess','nausea','fertility','slimright detox and burn','15 day detox','argan oil','musselforte','intal','diaformin 1000','joint enhance','hugo boss','curash wipes','protein drinks','coffee','youth cell','trilogy','liquid iron','sifrol','agnus castus','ultivite','nardil','champix','karvea 150mg','rosacea','snorestop','gout','zizyphus','fat magnet','betadine','watson','sculpting gel','nasal','blackmores nail','glycoprep','robitussin','levlen ed','serenoa','intelligender','akamin','digestive balance','desitin','blackmores vitamin e','numbing','swisse ultivite','bosistos','back pain','methotrexate','milky feet','ovestin ovula','egoderm ointment','reach dental','aspirin 100mg','cleaning','chemist','lexotan','fluid away','cranberry','neutrafluor','avapro','gastro health','elm','ky jelly','paroven','salmon oil','perspi guard','advil caps','blackmores 10 day detox','rough rider','norsca','johnson and johnson baby','topical antihistamine','ansell','amaryl','hair a gain','quickloss','micronized creatine','blackmores kids','tribulus','eco','self tan','natures own glucosamine','tena lady','diane','urea','innoxa deodorant','oscillococcinum','snoring','kalma','artichoke','evening primrose oil fish oil','spf 8','travel sickness','isowhey diabetic','zyban','topamax','infusion rx','insoles','silicon gel','bioglan ibx','risperdal','ubiquinone','fish oil 400','ladybird','zinc ointment','organic spirulina','travacalm','chromium','blackmores detox','sigmacort','baby monitor','rescue','accu-chek strips','roc wrinkle filler','roc retinol','safe t pro','refresh plus','kenkay','sage tablets','lemsip','burn aid','aqua','migrastick','qv shampoo','advantage','mens sexual health','neurontin','naphcon','ginger','seroquel','malarone','wyld for women','neomercazole','digestive aid','international shipping','swisse appetite','hay fever','augmentin duo forte','keto','lifestream bowel','vitamin tonic','bsc whey protein','eden','mineral oil','aloe vera','lucas papaw ointment','sugar balance','differin','bodytrim protein','murelax','weightloss','donnatab','nolvadex','atacand plus','emu fire heel balm','seroquel xr','epiduo','relaxaderm advance','painstop night','avanza soltab','bioglan multivitamin for boys','ego qv cream 250g jar','oil free moisturer','slimright detox n burn','antifungal nail','prescription','gymnema sylvestre','aphrodisiac','inderal','v-pro','gastrolyte','serc','normacol','epipen junior','sentinel','ascabiol','protein bars','natures own','cookies','norgesic','osteoporosis','pudding','omron blood pressure','swisse spirulina','spearole tea','blackmores metabolism','vortex mixer','stress formula','karvezide','horleys awesome mass','betnovate','lanolin','aldara','wild fish oil','ovestin','eyelash','dark circles','nexavar','48 hour rapid detox','epsom','linotar lotion','renagel','heat rash','celltech','freestyle','astragalus','ethical nutrients lysine','itch','sumagran 50','dalacin c','lutein advanced','resistance band','cellulite','procyanidin','atacand','hives','ems','tanning creams','boston advance','immune boost','honey','blackmores shakes','mojo','marvelon','fat blaster weight loss shake','cortival','rectinol','ego aqium','dry mouth','serepax','back pain formula','eleuphrat','imedeen derma one','spirulina powder','symbicort inhaler','slimstix','allerfexo','hair growth','protein shake for diabetics','toe nail','slimm','bioglan ginsynergy','algae','swisse student hd','monofeme','xanax 2mg','lovan','inhaler','sd white','genteal eye drops','nizoral shampoo','wart treatment','skinny','nature \'s own fish oil','avocado oil','luvox','chelate','penaten','issey miyake','taurine','hair more conditioner','mum dry','coloxyl','aspro clear','imuran','pampers','arnica cream','vallergan','blackmores joint formula advanced 120 tablets','blooms coenzyme q10','repellant','frontline plus','jelonet','dry cough forte','lanolin cream','dandelion tablets','norvasc','ibilex','zofran zydis wafers','diabex','stieva','elocon lotion','arthro aid','deralin','tegretol 200','skin doctor eye','diprosone','tommee','imodium','stud','fess little noses','peritone','diamicron','simplotan','travad','blackmores bio c chewable','perfect pout','blackmore sustained','opti free','naltrexone','bisolvon','senega ammonia','celestone','swisse womens green','blackmores digestive bitters','azclear lotion','aspro','ameda purely yours','difflam','spray tish','codalgin','acimax','heart','mega','augmentin','express shipping','vermox','questran','rehydration','stressless','maxolon','macrodantin','actonel','pepcidine','advanced digestive enzymes','scalp psoriasis','calmoseptine','accu chek test cassette','brenda','hair gel','diclofenac gel','metsal','skin doctor eye cream','alphamox','iressa','cash back','anti-fungal cream','elocon cream','imovane','symbicort','abbocillin','heel cups','serophene','serc 16mg','kenacort','sore throat','triple strength','clear eyes','gauze','minirin','cotton balls','womens health','bodytrim products','prednefrin','eye liner','rexona roll-on','sevikar 40 10','keri','vanilla','panafcortelone','poly tears','st marys thistle','alepam','weight gainer','skin doctors vitamin c','wipes','swisse green','skin doctor eyetuck','tenormin','scheriproct','mineral cosmetic','novasone','accutrend lactate','anti inflammatory','restless legs','dry skin','glucophage','knee brace','womens fragrance','marevan 1mg','cleanse','calcium orotate','eye smooth','menoeze forte','mussel','pharmacy only medicines','lumigan','doryx','antenex','shea butter','rapid loss latte','blackmores prodefinition','marina','cassette','fatigue','bioglan accelerex','suppressant','cystitis','roc retinox','paradex','sofradex','plaquenil','accupril','acqua','alpha co-q10','night cream','omega 3 vitamin d','noten','liver clear detox','accu chek strips','nail biting','hydrea','fosamax plus','skin doctors ingrow go','polytar','petroleum jelly','naramig','strepfen','zan extra','rubesal spray','frisium','karvea 150','movalis','antiseptic cream','ginkgoforte','banlice','eyeliner','euphoria','mens fragrances','biaxsig','antabuse','blackmores lutein vision','gel insoles','salofalk','azopt','elmiron 100mg','ear ache','wartner','lactic acid','cetrimide','nature\'s own fish','bust','migraine aid','monoplus','biloba','narciso rodriguez for her','skin doctor\'s gift','evista','allergic rhinitis','glucosamine sulfate 1500','calvin','aerius syrup','kids immunities','logicin','nurofen cold and flu','womens ultivite','cherub one step','supermoist spf30','ego sunsense milk','callous','invite','perspirant','silvazine','zimstat','handihaler','wellness','3088','nasonex spray','epo','rynacrom','passiflora','lucas','gluconate','b5','minerals','pmt','capadex','marvelon 28','sylk','dha','salmon','sweat','adalat','clamoxyl','fittydent','tritace','black xs','accu-chek integra','cararthron','aldactone','sinoclear','bicor','elmiron','microgynon 30 ed 4 months','depo-provera','zep','pod liquid','ever moist','lopid','ego skin care','wildaid','karvea','roc hydra','aricept','simply radiant','barrier cream','super fruit smoothie','steradent','shipping information','sandra cabot \'s','fml','reishi','hem-7200','cosmetics','zabel','roc multi correction','moduretic','implanon implant','hayfever tablets','nitrotech','nature\'s way slim right full shake chocolate 375g','nozoil','scar away','swabs','toe fungus','boss perfume','fish oil vitamin d','exelon','asasantin','qv lotion','fragrance free','eyetuck 15ml skin doctors','nolvadex-d','ankle','best weight loss','c-flox','nutraplus','swisspers','bruise','dr cabot','foot spray','natures way full bar','bodytrim books','eye tuck','saving face','pillow','scholl','sole','ceclor cd','codalgin forte','rash','sevikar','decongestant nasal spray','glucovance','synergy organic super greens powder 200g','mulberry','isotonic','brevinor','silicone gel sheeting','sudafed pe sinus allergy','sotacor','zyloprim','body building','blueberry punch','marine q10','hirudoid','pressin','allergy eye','arthrotec','b1','progynova','senokot','ego aqium gel 1 litre','spray fresh','climen','oxy rich','arthro balm roll on 50ml','natures way multi','rhinocorte nasal spray','tenopt','natures way children vitamins','placil','body building supplements','indigestion','saliva ovulation','coversyl 10mg tab 10 mg','purple carrot crystals','sinus sprays','muscle gain','purple','carrot','callus','celestone cream m','tofranil','albalon','intal forte','spiractin','hops','vita','no no face','caralluma fimbriata','accu-chek meter kit','daivonex','eventone','bioglan super fish oil advanced','clear zinc','berry powder','tension headache tablets','safe t','locacorten','nizoral shampoo 1','bunion','buf puf','pms relief','bloating','cradle cap','depo provera','smoothies','urex','adefin','oxy 5','zan','cordilox','arousal','cortic','nose','chlorpheniramine maleate','zocor','zoladex','lipidil','corn removal','blackmores ace','kidney','lifestream probiotics','isowhey french','diane-35','spiriva','panafcort','covitol','nature\'s own omega 3 ultra odourless one a day capsule x 60','antibacterial cream','normison','reef','lipex','ebixa','murine','premia','vigor','sandra','ingrow','breath pearls','tea tree oil100m bosistos','hamilton wash','benzyl','campral','blackmores skin','bio organics glucosamine','mycoderm','swisse cranberry','fragrance free shampoo','axit','phenylephrine','sheer cover','prothiaden','ego hairscience','lucas papaw','actifed','gel sunscreen','llysine','youthcell','trental','super multi plus','peppermint','minipress','epilim ec tab 200 mg enteric coated 100','exit pain cream','panalgesic','blackmores kids multi','salazopyrin','dothep','logynon','brauer nervatona','natures way krill','foot file','bronzinc','husk','c serum','sumagran','blackmores proseren','control solution','supermoist spf 30+','condyline','arch','swisse fish','childrens fish oil','abilify','super moist','centrum select','sigmacort cream','pessaries','protein tablet','avent magic','blackmores garlic','brufen','cherub colour change','airomir','calcium powder','artificial tears','accu chek go','brauer nappy','cetaphil oily skin cleanser','andrographis','probiomax','nature \'s way super krill oil concentrated fish oil 30 cap','cleocin','sm','blackmores teen','sinemet','accu-chek multiclix','skin bond','stalevo','pain no more','breath a tech','cherub teat','nuelin','nicorette microtab','nidem','chitin','augmentin duo','mc510','stamina','primolut n','cosopt','age spots','mens 50+','nasal aspirator','peroxyl','novonorm','sone','blink','edta','actonel combi d','cholecalciferol','avent baby','avamis spray','agiolax','breathing aid','cyklokapron','sandra cabot tropical','eventone capill repair15m','metsal cream 500g','st.johns wort','actonel combi','salve','paludrine','blood meter','permax','ammonium chloride','alvesco','senega','bowel cancer screen','lanoxin','soframycin','poly visc','burberry london for men 100ml edt','leukosilk','adalat oros','blackmores gold','clinitest','snack bars','salvital','actos','cardizem','propylthiouracil','accelerator','cold','aratac','blackmores cough','mysoline','pregnant test','benadry','bile salts','bmi','nizoral shampoo 1% 200ml','burn fat','cosamide','cosudex','swisse wild','saliva','protein supplement','medi-rub','male','chubs','bioglan brain','skin support','silvazine cream','neuropathy','skin tone','boston rewetting drops','swisse shake','sun spot','nose baby','septrin syrup','agnus','com','bald','nupentin 300','little fess','liquid fish','breastfeeding vitamins','suppos','pine bark','calcium plus','pumpkin','microwave','bloated stomach','accu strips','diclocil','primrose fish','soluble','again','nizoral 2% shampoo','allicin','combine','dr john tickell','potent','avelox','men\'s ultivite','tolvon','dilatrend','proxen','panadol chewable','b12 folic','tang','bite','tonsillitis','blackmores peritone','spf 4','everyday stress','mother','cabaser');
/* $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);
    }
