/* Popular phrases - SOCKSHOP - 10:42:46, Sat Jan 28, 2012 */
__SLI_ClientDefaults =
[
    ['ShowBrandingFooter', false ]
];
var asPhrases=new Array ('heat holders','pringle','tights','toe socks','falke','leggings','bamboo','pringle mens socks','slippers','leg warmers','seamless socks','jeep','nike','thermal socks','gloves','bamboo womens socks','slipper socks','heat holder thermal socks','seamless socks for kids','burlington','stockings','pringle ladies','seamless','tartan tights','thermal','calvin klein','elle','pantherella','falke ladies socks','soft top ladies socks','hold ups','bamboo mens socks','wool socks','elle ladies socks','falke mens socks','bamboo socks','socks','cushioned socks','golf socks','slouch socks','bed socks','totes','seamless socks for men','pringle boxers','over the knee socks','tartan','trainer socks','falke tights','non slip socks or women','welly socks','flight socks','pretty polly','marvel','sale','burlington ladies','bridgedale','jeep socks men','farah','jeff banks','ladies bamboo socks','pantherella socks','burlington mens','d&g','thorlo','slipper socks womens','men\'s soft top socks','cashmere','legwarmers','mens socks','jeff banks socks','100% cotton womens socks','cushion sole socks','knee high men','pringle trunks','mens slipper socks','kids seamless socks','gentle grip mens socks','seamless toe','ankle socks','soft top mens socks','knee high','elle bamboo','soft grip socks','wristband','pop socks','jeep socks','pringle socks','mens bed socks','wool','colour burst','sports socks','size 12-14','striped socks','scarves','ribbed tights','angora socks','aristoc','knee high socks','boot socks','rollasole','elle comfort socks','trasparenze','armery','superman','nike socks','nike elite socks','ski socks','pink','over the knee','cotton tights','5 gold','elle tights','gentle grip ladies socks','mens slippers','bridal','diabetic socks','golf','forever friends','bridgedale socks','kickers','knee high tights','fluffy socks','green','toasties','heated socks','under armour','waterproof','wool tights','wool knee high socks','stripe tights','falke cottage slipper socks','waterproof socks','long johns','mens bamboo','body stocking','valentine socks','boys slipper socks','childrens seamless socks','suspender belts','urban knit','thermal tights','seamless toe socks','calvin klein wallet','non slip socks','calvin klein socks','soft top socks','soft grip mens socks','ski socks ladies','henry holland','dare to wear','orange','heatholders','boxers','100% cotton socks','kids','corgi','womens pringle socks','gentle grip','1000 mile socks','christmas socks','sockshop','wellington boot socks','ladies pringle socks','heat holders gloves','calvin klein boxers','boys socks','angora','house of holland','seamed tights','nike dri fit socks','totes slipper socks','jeep ladys socks','compression socks','levante','snood','mens over the knee socks','merino wool mens socks','running','red','shoe liners','kids seamless','mens heat holders','ladies bed socks','thermal leggings','cashmere women\'s socks','john smedley','mens ski socks','calvin klein mens socks','thigh socks','sloggi','argyle','purple','elle angora socks','kickers socks','cotton socks womens','falke mens','yellow','jeep trunks','pantherella mens wool','lace shoe liner','personalised','burlington argyle men','diabetic mens socks','footless tights','seamless tights','mary portas','long socks','tog rated sock','diabetic ladies socks','glitter socks','mens long socks','ladies seamless socks','frilly ankle socks','blue','lace tights','slipper socks for men','heat holders ski socks','yo gabba gabba','best man socks','soft top','ladies angora socks','childrens socks','calvin klein ladies socks','elite socks','pringle bamboo mens socks','mens red socks','organic','quarter socks','merino','maternity','support tights','fairtrade','womens warm socks','union jack socks','colourburst ladies socks','mens knee high socks','ladies socks','sock shop colours','pringle gift box','kids slipper socks','sealskinz socks','puma','pringle bamboo','bedsocks','size 14 socks','fine socks','jeep luxury terrain socks','roller sole','falke berlin','heart socks','cashmere mens socks','thermal kids socks','burlington socks','pringles mens','toe','elle organic','transparenze','burlington marylebone','bamboo tights','colourburst','travel socks','back seam tights','lhasa','cotton socks','opaque tights','10 denier classic nylon tights','kickers striped socks','nike no show','scott nichol','running socks','fishnet knee highs','mens days of the week socks','nike elite','argyle mens','no show','ladies jeep','bamboo soft top ladies socks','shoeliners','pringle cushion sports socks','pantone','heat holders long','peter jones','rollasole shoes','40 denier','ck bags','pringle hipster','spongebob','sealskinz','bamboo knee highs','slippersox','large mens socks','toeless','ladies gentle grip','100% wool socks','sandal toe','glenmuir','ladies heat holders','union jack','womens cashmere socks','hats','jonathan aston','comfort top ladies socks','1000 mile ladies socks','cotton','pringle bamboo socks','sloggi men','fishnet','jeggings','elle angora','fairisle','heart','falke support','thermal gloves','ladies slipper socks','lace socks','elle stockings','mens burlington socks','ladies gloves','mens named socks','thermal heat holders','numberjacks','ladies warm socks','sockshop tights','peter jones socks','nike dri fit','heat holder slipper socks','mens thermal','mens coloured socks','classic nylon','thermal ladies','mens tights','calvin klein knee highs','ski','fishnet seam','bridgedale endurance','falke cottage socks','hj hall','boxer shorts','jeff banks boxer shorts','fishnet tights','football socks','falke london sensitive','ladies burlington socks','mens heat holder socks','invisible socks','mens pink socks','fishnet socks','extra large tights','falke support knee high','turn cuff','stocking tights','single cotton','thick wool socks','personalised socks','spotty socks','flight socks mens','mens wool socks','cushioned','pooh','kids socks','hulk','ladies bamboo','love','knee highs black','seemless socks','j alex swift','wedding','cashmere tights','spiderman socks','jeff banks hipster','brown','pretty polly cool tights','men\'s pringle socks','heat holder socks','totes bed socks','toesocks','mens batman socks','ladies thermal socks','womens long socks','jeep terrain','compression','ladies cotton seamless socks','elastane','mens union jack socks','elle socks','days of the week','diamond tights','classic nylon tight','support socks','100% cotton','seamless socks kids white','falke hold ups','black tights','totes natural','knee high cotton rich','mens knee length socks','thermal vests','mock stockings','365','mens compression','boys marvel socks','five gold','groom','thermal socks for men','hold up stockings','kids tights','leggins','angora ladies','12-14 socks','ski heat holders','levante tights','leg shaper tights','elite','heat holder tights','elle slipper socks','ladies bamboo knee high','stores','suspender','30 denier stockings','alpaca socks','red socks','tipsy feet','vest','seamless socks for ladies','falke cotton touch','bamboo stripe','argyle socks','pantherella ladies','bootie sock','bright coloured socks','falke seasons','heat','elle knee high socks','pretty polly xxtra','workforce','pringle argyle','calvin klein trunks','batman','chunky wool socks','heart shaped','isobel','silky','calvin klein 365','grip','grip socks','seemless','totes toasties','flight','farah mens underwear','invisible','falke cottage','red tights','mens thermal socks','falke tiago','support knee highs','falke airport','shrug','walking socks','ladies boots','falke　walkie','diamond pattern','open toe','lace','hunter socks','school socks','seam free','mittens','liner socks','ladies thick wool socks','macwet','tartan socks','sockshop colour burst cotton sock','ribbon','glitter','under armour o series','flip flops','ladies slippers','large socks','stripe','nike dri','non slip','falk long socks','pretty polly 30 denier','bridgedale comfort','valentines day','charnos hold ups','betty boop socks','falke leggings','corgi socks','size 12','angora knee high','days of the week socks','argyle tights','farah socks','gift box','vertical','organic socks','elle boot socks','mens golf socks','boys slippers','heat holders tog 2.3','mens support socks','cotton trainer socks','christmas','vertical stripe','totes tots','toddler socks','pantharella','mens gloves','tatoo','alice','name socks','aristoc tights ultra shine control top','mens comfort top socks','mens nike socks','pringle hipster trunks','invisible step','heatholders ladies thermal','boys totes tots','falke shadow','softop','bow tights','jeep boxers','wellington','sealskinz gloves','yellow socks','shooting socks','calvin klein bags','childrens tights','100 denier','calvin','ladies seamless toe cotton socks','hipster trunk','ladies cashmere socks','mens scarf','cushion sole','tattoo','animal print tights','magic boxer shorts','workforce socks','thermal liner','banana','jeep thermal','barcelona socks','spiderman','blue socks ladies','beige socks','made in uk','shetland wool','burlington argyle ladies','12','bangkok','cotton leg warmers','elle over the knee','falke cotton touch footless','basketball','compression flight socks','mens cotton socks','swift','lurex tights','ladies hiking socks','falke ladies knee socks','falke knee sock','knitted slipper socks','heat holder leggings','sensitive','white tights','non elastic socks','mens argyle socks','womens socks','purple tights','roll top','mens soft grip','falke shadow socks','fiveg','barcelona','energia','mens seamless','mens long johns','mens shoe liners','pringle boxer trunks','patterned tights','richard james','heart tights','mens travel socks','micronet tights','burlington wool socks','scarf ladies','loose socks','valentines','thermal long','trainer liners','kids navy socks','insoles','lucky socks','falke shelina','diabetic','seam','dri-fit','bamboo hipster trunks','farah 100% cotton','ladies black socks','nike football','merino wool','airport','loose top socks','monkey boxer','poker','wicking','woollen','bamboo underwear','personalised mens socks','mens grip socks','cashmink','capri leggings','falke ladies sensitive london','jeep essential plain sock','celebrations','seamfree','nylon stockings','eeyore slippers','sparkly socks','pringle white fashion trunks','falke ladies sensitive','mens thorlo','sock shop seamless','bridgedale hiking','kids trainer socks','falke support socks','bewitched','long heat holders men','trasparenze knee highs','mens spongebob socks','falke striggings','polka dot','wool stockings','footless','hand warmers','totes mens socks','green tights','scarf','heavy knee socks ladies','jeep terrain leisure sock','pringle seamless','jeep woven','men\'s ankle socks','gentle grip mens cotton','hero','burlington men\'s socks','bamboo trunk','socks with bows','size 14 mens','work socks','colour','ck belts','fraas','roll up shoes','thermal t-shirts','barbie','70 denier tights','secret socks','ladies merino wool socks','waxx','ladies knee high socks','hunter','bridal hold ups','mens briefs','sloggi light cotton shorts','kids ski socks','white','swim','cashmere burlington','winnie the pooh','wedding socks','mens brown socks','elle wellie','suspender tights','mens soft top','jeff banks boxer','pretty polly suspended','falke sensitive mens','black elle socks','organic cotton socks','faulke ladies','cricket','block colour','falke tulle','light hiking socks','falke fashion striped','pringle drymen full cushion ribbed golf sock','glittery tights','dare to wear trunks','black cashmere socks','ladies seamfree socks','mens polka dot socks','mens liner socks','cashmere slipper socks','diamond','mens spiderman socks','vertical striped socks','levante lambswool','falke socks','seam free socks','sockshop ladies socks','ladies cotton','winnie','oroblu','comfort top sock','elle booty','basketball socks','flower','ladies walking socks','knee socks ladies','smedley','falke ladies','dance','kickers boxer','12-14','ladies','silver','anti blister socks','jockey','mens boot socks','square scarf','cupcake','sophie','toe covers','marylebone','mens trunks','jeep technical sport socks','30 denier tights','totes slipper socks mens','coloured tights','trasparenze jennifer','puma mini shorts','trasparenze cinzia','shelina','hyde','split toe','textured','mens 3 pair glenmuir plain bamboo half cushioned socks','thomas socks','mohair leggings','bamboo over the knee socks','nike dri-fit','fluffy','5g mens','thorlo running','foot petals','welly','cotton boot socks','compression socks mens','cashmere socks','argyle ladies','cottage socks','elle support tights','liner','womens knee high socks','1000 mile','mens black socks','ladies cotton socks','calvin klein handbag','rugby','fraas hat','coloured socks','kids seamfree socks','tiffany','aristoc tights','elle cotton tights','angora bed socks','batman socks','nike gloves','heavy socks','bridgedale mens','sandal toe hold ups','sparkle tights','5g','boys long socks','sparkly tights','braces','10 denier','silver fresh','sock shop bamboo','invisible socks men','welly boot socks','levante energia compression socks','jeep terrain sock','superhero','women diamond sock','bamboo polka dot','mens dare to wear','hosiery bag','boudoir','kids heatholders','ladies falke london','bridgedale snowboard','d&g shirt','control top tights','ladies thermal leggings','ladies falke knee high','pretty polly knee highs','gentle grip mens','shimmer','mens thermal long johns','j alex','large ladies socks','christmas tights','activity socks','long boxer','rabbit socks','leopard','winter tights','grey','tiny totes','100% cotton socks white','boxed socks','mens welly socks','mens thermal vests','womens heat holder gloves','mens grey socks','puma quarter','striggings','super hero socks','wide top socks','striped knee highs','glenmuir golf socks','pringles 2 button boxer shorts','ladies thick socks','bright socks','blue tights','100% cotton mens socks','ladies black knee high','natural bamboo','trouser','team spirit','omega','thinsulate','loose top','farah boxers','anti slip','spongebob socks','football','falke merino tights','macwet gloves','corgi mens','tiago','comfort top knee highs','elle striped angora','trekker','anti slip socks','slipper grip socks ladies','toe warmers','womens heat holder socks','opaque hold ups','t-shirt','men\'s bamboo socks','silk socks','sock shop london','chunky over the knee socks','mens pringle bamboo','falke liners','falke sensitive socks','2.3 tog socks','comfort top','wolverine','gripper socks men','mens homepad','charnos tights','open toe tights','wide leg socks','pure cotton socks','dot tights','jonathan aston leggings','kentallen','jockey y fronts','thick soled','pringle bamboo secret','ladies running socks','childrens trainer socks','paris','mens valentine socks','heatholder socks','sense socks','heat leggings','sarah','aristoc velveteen','larger sizes','smartouch','falke legwarmers','waverley','novelty boxers','spot','mens scarves','womens briefs','mens novelty socks','ladder resist','big feet','elle plain bamboo','elbeo','falke milano','kids slippers','john smedley socks','disney','totes twin','wool rich','isotoner slippers','extra wide mens socks','birthday','ladies wool socks','john smedley scarf','shoes','gripper slipper socks','pants','ribbed socks','womens heat holders','pringle louise','gentle grip socks','mens cotton rich','mens seamless socks','multi pack mens socks','10 denier stocking','colour burst cotton socks','jeep terrain thermal','sockshop mens socks','prestwick','seamless toe seam','berlin','ladies green socks','cotton stockings','over knee ribbed socks','cotton footless tights','termal','argyle knee high socks','britney','knee length cotton socks','jeep multi terrain','medium support tights','farah mens','ladies 3 pair pringle lola bamboo cushion sole sports anklets in 2 colours','womens boot socks','stripy socks','glitter tights','elle legwarmers','eeyore','heatholder ladies','jockey 3d innovation trunk','farah gentle grip socks','ladies soft top','dad socks','polka dot tights','bootie','oxford','mens underwear','ladies seamless','mens sports socks','calvin klein briefs ladies','totes supersoft','juventus','mens 3 pair pringle full cushion sports socks','burlington knee high','boys toasties','boot cuffs','silver tights','no elastic socks','kids slipper sox','pringle black fashion trunks','separate toes','beanie','ladies tights','30 denier','cool max','wide top','pom pom socks','bunny socks','cable knit','hiking socks','pringle knee high','ladies over the knee','left and right socks','1000 mile 4 season','falke leg warmers','kids purple socks','nike running socks','bamboo spot','1000','cool','pure cotton tights','elle cotton knee highs','striped thermal socks','thermal heat holders gloves','juniper','scented socks','ladies leggings','mens pringle argyle socks','cable knit tights','levante comfort top','anklets','backseam','sock drawer','heatholder slipper sock','under wear t shirt','grey tights','womens slippers','14','totes toasties ladies slipper socks','pringle full cushion sports socks','dr who','nike quarter socks','red tartan tights','jonathan aston tights','thorlo mini crew','nike dri fit half cushion','briefs','foot warmer','terry','knee high elle','heat holders thermal vest','falke knee highs','slipper socks minnie mouse','organic tights','peep toe socks','mens knee socks','novelty','heavy','cable knit leggings','kikiyo','bird','soft grip','ladies silk socks','size 3 socks','childrens slipper socks','tennis','contrast toe','pringle ribbed','glossy tights','cycling socks','jonathan aston micronet tights','size','seam free toe','ruched','ballet tights','sockshop plain sock','bingo ball','cricket socks','mock suspender','kids plain','no show socks','womens black socks','designer socks','compression socks for men','kids black socks','heatholders mens','giraffe','20 denier tights','hawaiian','fishing socks','thermal underwear','stars','warm socks','cream','ladies hats','shops','thick socks','ribbed','thick cushioned socks','ladies heat holder slipper socks','ladies long socks','crew','pringle gift','slouch','12 14 mens socks','elbeo stockings','headband','childrens heat holder socks','dad','body','falke block','v neck','kids football socks','ladies heat holder ski socks','elle soft top','pringle mens 3 pair','classic nylon hold ups','mens white socks','levante energia','15 denier smooth sheer','banks socks','ladies non elastic socks','boys school socks','calvin klein swim shorts','bugs bunny','nike elite basketball','elle bamboo fibre','elle cotton gentle grip','mens chunky socks','pregnancy','forever','cashmere knee highs','horse riding socks','neck warmer','lambswool','fishnet hold ups','100 denier stockings','knit socks','5g socks','tactel','falke opaque tights','elle knee socks','elle vine','calvin klein leg warmers','bow','nike snood','under armour socks','marvel heroes','all mountain','heat holders slippers','cotton gloves','nordic','rachael','levante wool stockings','colour burst ladies','flag','holdups','chunky legwarmers','trouser sock','sloggi tai','mens christmas socks','jonathan aston micronet','mag','swarovski','jonathan aston fishnet','ladies ribbed','ladies bridgedale socks','polished','knee high slipper socks','ladies socks 7-9','kids sports socks','ladies wool','duo','blue bamboo socks','opaque support tights','manchester','spotty tights','captain america','shapers','reinforced socks','woven boxer','gentle cuff','tattoo tights','nike quarter','trunks','dare to wear mens socks','princess','ladies pringle bamboo','mens fiveg fitted sports briefs in fairtrade cotton','vixen','welsh socks','kids winter socks','shorts','five g','comfort grip','knitted','tom and jerry','cartoon socks','falke footless tights','xl tights','mercerised','nike sport socks','merino wool tights','camel socks','seemless toe','farah gentle grip','black footless tights','rose pink','train socks','black pringle socks','jeep long','dare','3 pack','mens white cotton socks','mens soft top long socks','elle angora slipper sock','pringle full cushion','coolmax liner','jeep ski','trainer liners womens','touchscreen gloves','country','womens wellie socks','7 denier tights','ladies heat holder socks','black sports socks men','shoes in a bag','rudolph','bridgedale light hiker socks','60 denier tights','modal','farah 3 pair','pantone socks','60 denier','leather socks','elle toe covers','wide cuff','cable knit leg warmers','falke womens socks','winnie the pooh socks','dragon','jeep rugby','union jack boxers','jeep ski socks','black opaque tights','elle angora knee high socks','elle knee high angora striped socks','nike wristband','fiveg sport','knee high bamboo socks','winchester','peep toe','levante compression socks','plain slipper socks','mens hiking socks','ladies plain socks','willow','eyes tights','elle 15 denier stockings','cashmere leg warmers','knee boot socks','animal print scarf','reindeer','nan','tigger','ladies christmas socks','merino socks','heat holder stripe','childrens bed socks','wet look leggings','falke london','riding socks','bamboo ladies knee high socks','dot','ladies heat socks','100% nylon tights','banana socks','sparkle','handbags','support stockings','angora toe','pringle cashmere','pringle boot socks','falke invisible step shoe liners','heat holders extra long','ladies 100% cotton socks','no show trainer liners','ladies scarves','drawer filler','halloween','ultra fit','classic tights','pretty polly over the knee','antislip','pringle dundee bamboo striped socks','pringle new strathaven','jeep sports','ladies 3 pair elle plain socks with contrast heel and toe','pringle spot','pringle kinross','falke invisible step','pringle waverley argyle','marvel heroes men\'s socks','boot','silk bamboo','falke soft merino','pringle of scotland','wallet','fingerless','bandana','ladies knickers','reggae','red childrens socks','long sleeved thermal','best dad','garter','washbag','seamless cotton','pringle 3 button','daddy','roxanne','pringle prestwick','men size 7 socks','purses','ballet','mens striped socks','mens stripy socks','falke ladies knee high socks','pure wool socks','footies','sensitive london','nike 3 pair','fishnet ankle socks','mens totes slippers','linen','grey ankle socks','calvin klein shorts','80','ladies heatholder socks','british made socks','navy blue socks','thin sports socks','sensitive berlin','magic socks','wellington sock','christmas socks for men','slip brief','isotoner smartouch','opaque tights matt','sock shop tights','jeep gift box','100 denier tights','puma sport socks','preston','striped men\'s','mens 12-14','extra long heat holders mens','mens yellow','ladies calvin klein','knee warmers','elle 20 denier stockings','falke sensitive berlin','sense','pretty polly tights','mohair socks','thick','pelerine','invisible tights','elle organic cotton knee high socks','suit','mens t shirts','burlington ladies ankle','seamless black socks','mens sockshop bamboo socks','elle ladies organic cotton socks','falke cable tights','dogs trust socks','zebra','thermal tops','xxtra','mens bedsocks','men union jack','elle angora knee highs','fairisle tights','laird','ladies seamless ankle socks','ck','returns','isotoner','pashmina','winnie the pooh slippers','ladies falke wool socks','seamfree toe socks','knee high thermal ladies','cat','mens waterproof socks','pringle 2 button fly cotton fitted boxer','70','kickers underwear','red and black','mens day of the week socks','ladies diamond tights','burlington argyle wool','racket','jeep hipster trunk','medium weight socks','cupid','test','dvt','ladies colour burst socks','socks for kids','pantherella cashmere','two tone','merino mens','mens leg warmers','fairtrade socks','jeff banks durham hipster','knee high soft top socks','12-14 mens socks','simpson socks','mobies','dri fit','boxed','ladies isotoner','fairtrade cotton','mock','ladies extra long heat holders','cycling','totes chenille','snowboard','lucky','mens isotoner','mens pantherella socks','new york','wool mix','white stockings','falke malaga','little mix','pantherella mens wool socks','bridgedale bamboo','hiking','falke sensitive','heat holders striped ladies','bamboo gentle grip mens','silk scarf','thermal slipper socks','trainer','womens tights','ladies underwear','mens wallets','lilac socks','elle lace','union jack kids','bamboo sport','kids black','school','jockey vests','fuller figure','transparenze socks','boot warmers','patterned footless tights','kids yellow','womens elle bamboo socks','pringle ladies soft top socks','womens pooh socks','skull and crossbone socks','endrick','ladies totes socks','mens totes','mens kickers boxer','cottage','big socks','leeds','travel','jeff banks mens socks','christmas slipper socks','extra wide socks','chocolate','pringle sports socks','falke cashmere','cashmere blend socks','pringle sports','maxi tights','spotted socks','music','pringle boxer shorts','burlington dundee','nike elite basketball crew sock','isotoner pillowstep','7 denier knee highs','pringle button front','ribbed cotton socks','lilac','mens tartan socks','mobile','slipper socks womens totes','womens seamless socks','nike elite dri fit socks','disney slippers','british socks','mercerised socks','pringle lanark','farah gift box','elle bamboo socks','pringle waverley','trasparenze dora','merino wool socks','mens 3 pair','mules','wash bag','pringle laird','nike elite cushioned running socks','glossy','childrens over the knee socks','elle plain wellie socks','o series','elle bamboo striped','ladies 2 pair sockshop 40 denier plain soft touch tights 25% off','bedsox','nonslip grip','seamless toes over the knee socks','red seam','knee high sports socks','yellow green','elle luxury','pretty polly cable','plain falke','mens heated socks','paisley','anatomically','mens wool slipper socks','ladies heatholder gloves','long gloves','dogs trust','alex swift','falke support tights','holland','simpsons','falke wool tights','ladies novelty socks','kids sockshop','shamrock','y fronts','comic','tog','mens heat holder slipper socks','cotton slipper socks','business socks','heat warmers','burlington cotton','ladies thermal slipper socks','five g briefs','control tights','ladies roll top socks','70% angora','elle plain bamboo socks','pringles knee ladies','varicose veins','backpacker','mountaineering sock','black trunk','striped angora','crotch','rugby stripe','thin cotton socks','ladies totes','totes socks','walking','cartoon','gloss opaque tights','smartouch gloves','jeep thermal long johns','hall socks','nike cushioned','madeleine','falke slipper','alphabet','loose','wrist warmers','strip','mens knee','kiss me','fairisle sock','mummy','long grey socks','pure matt','ankle tights','khaki socks','falke sensitive london men','wool ultra','long golf socks','kids navy seamless socks','seamless socks white','lace knickers','kids totes','kickers cushion socks','novelty christmas socks','christmas leggings','falke striped','kids nike socks','soft and cosy','shimmer tights','pringle long golf socks','plain grey socks','sockettes','jonathan aston floral knee high sock','falke walking socks','skull','boys totes socks','pringle drymen','sockshop heat holder thermal socks','marvel heros sock','knitted tights','gentle grip cuff','warm','pretty polly nylons','faulke mens','nina','gentle grip cotton socks','10 denier tights','firm support stockings','key hole','falke wool socks','personalised ladies socks','bewitched scarf','mens trainer socks','personalised mens','bridgedale mens socks','christmas boxers','40 denier tights','jonathan','knee length','day socks','termal socks','disney cars','glenmuir golf','arch support','england','totes slouch bootie slippers','pantherella merino','xxl boxers','pringle argyle socks','chenille socks','christmas novelty','ankle warmers','whale net tights','folding shoes','elle gentle grip','womens thermal socks','keyhole','fully fashioned','long white socks','petrol','keyhole fly','kids wool sock','sockshop gentle grip mens','mens cushioned socks','womens novelty socks','pringle golf','non elastic top','ladies heat holder gloves','pillowstep','snowman','skin tone','diamante elle socks','kilt socks','soccer','falke cotton touch knee high','ladies golf socks','ski boot socks','england socks','mens 3 pair pringle hamilton stripe sock','knee high ladies wool','grumpy','eckford','7-9','elbeo support stockings','mum','lanark','ladies argyle socks','pringle leg warmers','ladies coloured socks','hosiery wash bag','nike swoosh','ultra shine','pringle tiffany','grey slipper socks','mens wide top socks','leopard print leggings','kids ankle socks','bright leggings','organic leggings','pringle ladies knee socks','ladies business socks','business','light grey socks','kids christmas','pretty polly ribbon','men stripey socks','homepad socks','calvin klein underwear','cable tights','ladies christmas slipper socks','numberjacks boys','ladies name socks','mens stripe','merino tights','kids heat holders','urban','cha cha cha','hosiery','boxer briefs','d&g t shirt','computer','mens walking socks','striped ladies socks','fingerless mittens','pringle knee','slipper socks womens thermal','jeep wool ski sock','burlington patchwork argyle socks','ladies hold ups','start','elle trainer','men\'s burlington','metallic','crystal','cotton leggings','pringle trainer socks','bright socks mens','boxers socks set','mens pringle fitted hipster trunk boxer shorts','womens wool socks','barcelona football socks','falke merino','long sleeved','mens kickers socks','pringle lauren','man socks','sockshop socks','d&g underwear','black and white stripe','boys bridgedale socks','15 denier','kickers striped','falke merino socks','asbo','3 pack calvin klein','long cotton socks','pringle strathaven','falke merino wool tights','chunky cable knit leg warmers','nike socks cushioned','scott-nichol','elle chunky knit','left and right','mum socks','sensitive ladies socks','mens socks 3 pairs','aristoc 10 denier ultra shine tights','100% cashmere','womens personalised socks','mens pure cotton socks','marl','drum','trasparenze melani','ladies support socks','denim blue','cotton boxer shorts','mens plain gentle grip','kilt','ladies leg warmers','cotton scarf','mobile phone sock','sock set','supersoft','seamless ankle socks','men\'s thick socks','my way','cotton scarves','mens scarf wool','weekly socks','ballet slipper','heat holder welly socks','velvet','mens shoeliners','ladies tigger slippers','love machine','totes bootie slippers','calvin klein 3 pack cotton stretch trunks','uncle socks','slipper socks for women','mens pringle cotton socks','shadow','cute','burlington argyle socks','calvin klein trainer socks','cashmere leather','stirrup tights','burlington preston','men\'s cashmere socks','packs of socks','cotton knee highs','trapper hats men','elle ladies knee high','non elasticated','hold ups sockshop','cable knit slipper','loose boxers','mens snoods','mens orange socks','ladies gripper socks','iphone gloves','waterproof hat','totes wool','sockshop bamboo','benmore','minnie mouse','patherella','totes digger','seidenglatt','womens christmas socks','blister','white sports socks','stripe gentle grip','well hung','trapper hat','long heatholders','mens christmas slipper socks','beret','mens non slip socks','mens pants','left','dogtooth','piglet socks','bridgedale all mountain','lady\'s socks','caravan','tough','workforce vest','hot wheels','diamante','silky tights','mens pringle briefs','memory foam slippers','long cashmere socks','disney princesses','jeep luxury terrain','black mens socks 3 pairs','christmas gripper socks','tots toasties','party tights','salsa','jeep keyhole','seventies','velvet bow','beer','ladies sloggies','christmas novelty socks men','ladies seamless toe','ladies briefs','mens wool thermal socks','black over knee','ladies no seams socks','elle plain cotton over the knee','calvin klein leggings','men heat holder long socks','long thermal socks','mens running socks','mens left and right socks','spaceman','ladies bridgedale','socks technical','pretty polly stockings','365 trunk','elle trainer liners','bamboo knee','extra wide','week','snowflake','ladies fine socks','xmas socks','mens 2 pack jeff banks durham fitted hipster trunk boxer shorts','kids seam free','fold','sockshop heat holder slipper socks','all wool mens socks','wool ribbed tights','best uncle','beanie hat','ladies falke cottage slipper socks','ladies sock in a bag','levante socks','jeep luxury','falke knee high wool','winter','falke elegance','totes wool slipper socks','annika','rollable','thorlos tennis','falke cashmere tights','burlington womens','winter socks','personal socks','trapper','jeep ribbed wool','thermal bed socks','mens socks with names','ladies ck socks','lace shorts','mens non grip socks','socks for wellies','mens funky socks','calvin klein mens sport socks','falke knee','socks for men','elle knee','ladies elle angora socks','offer','chilli','distressed','knee high thick socks','im laddered','farah easycare woven','welsh','whitby','santa slipper socks','heatholder tights','ladies mohair','ladies cashmere','toy box socks','pure cotton','cottage slippers','ladies personalised','nike running','black and white tights','boxed pringle socks','ladies elle over knee','well','thermal sock liners','ladies ankle','pudding','mens snowboard socks','ladies 1 pair burlington whitby extra soft argyle knee high','kids novelty socks','mid calf','insulated','ladies 1 pair burlington marylebone argyle wool knee highs','burlington ladies knee high','whitby extra soft','womens scarves','boys totes','popcorn','extra long','mountain','feather socks','ladies long heat holders','elle cable','pringle mens sports socks','stripe scarf','jeep terrain boot sock','puma training quarter','sheer to waist','footy mad','seize the day','louise argyle','heat holder long johns','stripe gentle grip socks','pair','3 kids','knee high 40 denier socks','slouch slipper socks','jeep mens thermals','numberjack 2','pringle lyndsey sport sock','all cotton socks','pringle golf socks','pretty polly 60 denier','father christmas socks','sheer toe tights','lace body','thomas','louise','betty boop','womens leggings','shark','dundee wool','doctor','carnaby','size 11','cottage slipper socks','aristoc shiny floral tights','extra large socks','cashmere seamless','falke cottage slippers men','elle striped cotton','plain bamboo socks','sockshop gentle grip','ladies mittens','d&g boxers','falke angora','mens santa sock','mens pringle boxed socks','black stockings','bang on the door','pretty polly naturals','mens warm socks','knee high bow ladies','santa socks','powder','snuggle socks','glove mittens','xmas','nike hat','thomas the tank engine socks','winnie the pooh slipper socks','argyle cashmere','mens captain america','long boot socks','2-3','cotton rich ladies socks','designer men sock','thermal heatholder','numberjacks 5','farah stripe','heatholder hat','womens merino','transparenze jennifer','levante 100 denier wool rib','pringle black sports socks','ladies cashmere bed socks','ladies 3 pair argyle','whale net','thorlo experia','nike lightweight','pint','pringle briefs','mens gift','elle rose','striped gripper','wool legwarmers','elle diamante','silly socks','nike trainer','pringle black trunk','striped knee socks','elle lurex','mens totes wool blend','hotwheels','heated gloves','5 pack farah','seamless mens pringle','childrens socks with grips','knee-highs','light hiker','pringle box','farah mens socks','rabbit','10 denier classic','teddy','dare to wear socks','dare to wear christmas','jitterbug tights','ladies trainer socks','thermal t shirts','mens jeep','falke alice cashmere knee high','falke striggings rib','burlington whitby','dora','super lover','silky scarlet ringer','leopard leggings','warm leggings','only hot','burlington ladies knee high socks','spandex','elle plain angora','men pringle socks grey','alison','levante bed sock','sherry','childrens totes','pringle ladies argyle','dublin','heat thermal socks','t-shirts','socks in box','falke wool','gabba','sox factor','nike neck warmer','jockey 3d','capricorn ladies','men\'s seamless toe socks','lace scarf','sockshop bamboo men','ribbed wool socks','tots','mens tote toasties','polyamide tights','sky blue','heated slippers','hipster boxers','bells','cracker','raspberry','small tights','luxury','black over the knee socks','sockshop knee highs','mens ski','john smedley gloves','ballerina','pure matt 100','nike basketball socks','ladies chunky socks','fluffy slipper socks','pringle eckford','foofa','no show liners','elle winter','childrens toe socks','micronet','mens patterned socks','boot slipper socks','pringle ella','experia','light blue','sensitive malaga','knee high support ladies','lola','mens fitted pringle','elle plain socks','cotton wool tights','ladies coloured tights','bamboo lanark','thick cushioned soled socks','seamless walking socks','ladies wellington boot socks','bamboo striped pattern socks','pretty polly daisy','red shoes','3 band socks','thermal over knee','ladies john smedley','grumpy old git','mens novelty','seamless cushioned','pringle lola','levante lambswool crew socks','elle cosy original','ladies initial socks','mens ribbed socks','womens bed socks','pringle hamilton','stripey tights','kids christmas socks','falke seidenglatt 15 denier transparent shining tights','elle angora luxury leisure socks','tom','drymen','black leggings','plain cotton men sock','pringle knee high socks','candy cane','cotton men\'s','socks with your name on','falke black mens','playing cards','womens totes','nike trainer socks','earth brown','glenmuir ladies','yo gabba gabba muno','totes socks womens','mens puma training quarter socks','scarf pockets','childrens ski socks','ladies over knee socks','pewter','james','semi opaque','mens heatholder gloves','pink slipper socks','xxxl','childrens heat holders','butterfly socks','safety sock','elle bamboo striped trainer liners','elle pattern socks','jitterbug','socks cotton pringle','pooh slippers','mens size','pringle cushioned','120 denier tights','mens angora','ladies isotoner smartouch stripe knit gloves','ladies plain black socks','mary and charnos','waterproof gloves','ladies welly socks','ladies vests','adam','zodiac','falke cashmere blend','sockshop colours','elle leg warmers','mens comfort socks','wide leg','ladies anti blister socks','assorted socks men','embroidered','heat holders wellington','net tights','red trunk','love doctor','non-slip','pringle argyle bamboo','spot tights','bob the builder','mens sockshop heat holder slipper socks','ella','elle cosy socks','big toe socks','falke alice','men\'s diabetic socks','snow','charnos knee highs','falke milano rib 100% fil d\'ecosse cotton socks','pringle hannah','cuban','seamless trainer','individual celebrations','plain trunk','falke ladies cotton socks','fun','falke cotton socks','footfile','nike sport crew','jonathan aston casino','mens 3 pair pringle new strathaven diamond argyle bamboo socks','cable knit slipper socks','annabelle','totes natural wool blend','casino','pringle woven','cashmere knee high socks','skintones hosiery ladies','falke black socks','lycra tights','birkdale','squash socks','rudolf','nike sweat','elle bamboo striped socks','mens black trainer socks','tummy control','ergonomic','womens striped socks','thermal t-shirt','ribbed leggings','smooth sheer','jockey active cotton brief','pringle new strathaven diamond argyle bamboo socks','pretty polly hold ups','snowman socks','totes cable sock with supersoft lining','elle ladies','heat ski','black shine tights','pringle lockerbie socks','mens pantone','x factor','elle patterned angora','party feet','ladies tights 60 denier','nike ladies socks','satchel','burlington extra soft','aristoc hold ups','mens marvel socks','nichol','pink slippers','mens xmas socks','trekking socks','black lace tights','music notes','eton','totes pom','pringle candice','ladies elle bamboo','falke stripes tights','i love mummy','elle 15 denier tights','dri','sockshop colour burst','black socks ladies men','mens big socks','gift socks','comfort trekker','striped angora socks','aristoc control top','elle lace polo','womens homepads','firm support tights','trasparenze dora rib wool tights','pringle long socks','bamboo bag','pringle lisa knee high','ladies tog','long heat holders women','gripper slipper','activity','womens over knee socks','jemma','burlington norfolk','big banana','wool soft top','mens anklets','extra','men\'s argyle','nike elite running cushioned stability','pringle glasgow','ladies wide top socks','nike dri-fit socks','white running socks','elle liner','elle chenille','nations','mens christmas','ladies cushioned socks','secret hero','ladies stripe','national socks','calvin klein roll top','jeep women','grey scarf','ladies bedsocks','stripe cashmere','ladies heat','cheers dad','women s cotton socks','richard','mens left right','mens colourburst socks','ruffle leggings','fine','ells chunky knit socks','calvin klein women','elle black','amethyst','falke bed socks','wide cotton socks','lauren','pretty cool','elle original','mens fine cotton socks','rollersole','perth','monique','mines a pint','pringle striped socks','cotton knee socks','knee high socks with bows','falke seidenglatt tights','red hold ups','ladies falke wool tights','duck boxers','ladies wellington socks','no toe tights','shine','pringle trouser sock','knee socks ladies wool','rock','mens belts','claire','malaga','disco diva','elle chunky cable knit','pringle sport sock grey','totes original slipper socks','zebra socks','norfolk','mens 2 pack pringle fitted hipster trunk boxer shorts','childrens thermal socks','mens glenmuir','13','pretty polly everyday fresh','corgi stripe','new strathaven','polly open','mens pringle contrast fashion cotton trunk boxer shorts','heat holder socks kids','calvin klein flip flops men','totes space dye chunky slipper socks','sockshop heat holders','corgi siene','christmas slippers','hannah montana','cream scarf','kids winter legging','non lycra','burlington mens knee highs','numberjack 4','falke striggings cable tights','pantherella lisle','pringle plain trunks','4 pair','ladies patterned socks','6-8.5','elle 15 denier with lycra','extra soft feeling','mens totes naturals','jersey scarf','pringle fitted boxer','slouch bootie slippers','womens heat holder thermal socks','handbag shoes','ladies 1 pair elle new striped angora slipper sock','hold ups purple','elle half cushioned','daisy duck','stretch trunks','trasparenze over knee','purple knee high socks','zara','french grey tights','candice','sock shop knee highs','long heat','burlington prussian blue','winter scarves','seamed fishnet tights','party shoes','elle 20 denier tights','black hold ups','ladies 3 pair','hold','lyndsey','levante toe covers','father','cream leggings','totes bedsocks','colours single cotton rich socks','days week','pringle lanark ribbed bamboo socks','elle 20 denier','blue scarf','bright green socks','pringle benmore','fine cotton ladies','run resist','womens argyle socks','falke pure matt 100','burlington dublin','anthony','elle soft angora','fairy','ladies cotton tights','scarf wool','lesley','womens flight socks','elle fishnet scoop neck with thin straps body stocking','burlington slipper socks','barely black','ladies large','levante soft cotton crew','fleece hats','ladies silver socks','tulle','white pringle socks','macduff','lockerbie','fiveg briefs','coloured hold ups','mens dots','alan','hen','sock gift set','elle angora slipper sock with pom pom detail','petrol blue','isotoner men\'s','cotton socks soft top','ladies 1 pair elle cosy slipper sock gift set','elle 30','ladies grey knee highs','blue leggings','jedburgh','pringle fitted hipster trunk','matthew','ladies 1000 mile','rose','j.alex swift','elle knitted','ladies 3 pair socks','pima cotton','16','ladies nike','satin tights','nike elite crew','falke 100','plain black socks','burnt orange','mumbai','falke over the knee','anti cellulite tights','osaka','pringle contrast','ladies running','pechino','black seam','dorella','pringle mens brown','elle body stocking','flight socks cotton','bamboo argyle','elle angora bed sock','soft top mens black','glenmuir mens socks','large fishnet tights','falke transparent','denier knee highs','mens pringle brown sock','invisible trainer socks','mens pringle argyle','katrina','sealskinz lightweight socklets','gareth','pringle mercerised','pringle lockerbie block striped socks','falke bamboo','heatholder slippers','marine','falke mens berlin','nylon tights hazelnut','double wide','levante plain organic cotton comfort top crew socks','halloween tights','childrens knee high socks','mens calvin klein pro stretch','burlington original','get stuffed','ladies 7-9','men\'s boxers shorts','cotton soft top','comb cotton','womens shorts','calvin klein sheer','pepita','crocodile','c','moss green','merlot','lounge','black wool socks','20 denier grey tights','sock shop gentle grip','fresh','katrina argyle','ladies 3 pair elle patterned cotton socks','kids brown tights','smedley burke','kim possible','summer','sand','lizzie','men sockshop cotton','mens quarter socks','my way 20 denier satin sheer tights','terrain','burlington knee','pretty polly sandal tights','cotton sports socks','slingback','ladies wool tights','extra 2','double','rib knee','anti cellulite','sock shop nylons','black and blue socks','cotton lisle','falke pure matt 100 tights','calvin klein trainer liners','green knee high','ladies red tights','barbie socks','marvel thor','letters','ladies 1 pair elle 70% angora luxury leisure sock','sock shop heat holders','ladies elle bamboo knee high','ladies slouch','calvin klein liner','womens ski socks','cotton red','ladies pringle bamboo socks','shape left and right','stay up','ladies beige socks','ladies 2 pair elle thermal bed slipper socks','totes space dye','fusion','falke golf socks','black leg warmers','boys black socks','pringle tiffany plain','falke cable','matt tights','fuller','pink tote','levante slipper','multi coloured scarf','white boxer shorts','black wool tights','pink bed socks','ladies ankle highs','stone','ladies flight socks','womens green socks','beverley pringle','smoke','men wool totes','ladies corgi socks','ladies boxed','madras','womens sports socks','champagne tights','pringle spotty','mens falke liners','men liner','ladies golf','burlington mens preston','ladies 1 pair sockshop 10 denier classic nylon tights in 7 colours medium hazelnut','bamboo cocoa','bobble scarf','colour burst grey','calvin klein shoe liner','ben','cosmogirl','black winter tights','full cushioned','picot','black mens dress socks','cigar','brown trainer liners','sockshop plain bamboo socks','back seam stockings','builder','bamboo cotton','parigi','ladies pantone','three quarter','classic','fluff','white bamboo socks','socklets','mens falke airport','busy feet','burnt orange socks','falke 20','shorty','burlington purple socks','ladies corgi','shredded','ladies ribbed socks','fa lke','ladies white sports socks','mens trouser socks','mens dress socks','ladies 1 pair elle tights factor 10 firm support','lisa','mens cream socks','falke rib','pale pink socks','ladies angora slipper socks','pink diamond opaque','pringle men cotton','mens trainer','mens pink argyle','mens 1 pair burlington preston extra soft argyle sock','falke susette','ladies 1 pair elle tights 15 denier 100% nylon','brigitte','sky','elle tootsies','ladies red knee high socks','fiveg fitted','mens secret sock','chiffon','men\'s liner','pringle eckford plain bamboo socks','blue cotton','pringle bamboo block stripe secret socks','tank tops','falke net','ladies 2 pair sockshop plain bamboo socks','plain cotton knee high','levante womens','seven pairs','black shoe liners','childrens orange socks','pringle white','mens hipsters','leanne','mens pink pringle socks','blue and black','black rollasole','cotton step','pretty polly naturals tights','burlington cotton socks','chain','sheer flight socks','men bamboo 12','sockshop of london','pretty polly tights sun oil sheen','falke sneaker','sock shop colourburst','ladies 1 pair levante foot petals killer kushionz','socks spot men','ladies opaque tights','ladies grey leggings','pringle selkirk fine striped socks','bright leggins','ladies nike running socks','ladies cream leggings','colourful hiking socks for kids','mens cotton briefs','falke mens wool','children\'s bridgedale socks','calvin klein mens socks blue','ladies fashion leggings','falke pure matt 20 ankle highs with sensitive top','mens sports falke','ladies feet','calvin klein cotton stretch trunks','calvin klein soft touch anklet','mens colourburst','mens toy story socks','womens plain socks','ladies toe covers','pretty polly secret slimmer','strap strips','sock shop stockings','buckhaven','fil','pringle endrick plain trouser socks','pringle cushioned secret sock','calvin klein ultra fit tight','ladies pringle tiffany plain trouser socks','pretty polly 40 denier','laird rib','ladies green tights','pretty polly lace top hold ups','ladies 2 pair calvin klein 365 cotton stretch bikini briefs in 3','mens coolmax socks','falke control top','pretty polly 30','black tights 40','ladies green','belle socks','ladies 100% cotton','low leg toner','flip','comfort summit','fuyo','pink ribbon','ladies 10 denier classic nylon tights','elle opaques','falke mens shadow socks','pretty polly lace','sage','mauve tights','nike elite stability','ladies plain navy socks','eire','phillip','ladies 1 pair burlington the original argyle patterned wool knee highs','mens black knee high socks','mens 1 pair falke homepads','brown wool','bamboo men socks orange','silky party','falke donna','pringle 2 colour ribbed','brenda','pringle grace','elle anastasia','pretty polly absolute','men\'s hats','falke bag','levante wool rib tights','ladies black angora','elle cashmere tights','ladies 1 pair sockshop toy box socks feather reindeer sock','pretty polly argyle tights','pretty polly everyday fresh knee highs','ladies cable knit socks','falke corsage','ladies 3 pair elle striped cotton socks','men jeep thermal long johns','mens thermal gloves','caballero','elle daisy','black cotton tights','numberjacks blues','mens 3 pair jeep striped cushioned sole socks in 2 colours','elle vertical stripe');
/* $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);
    }
