/* Popular phrases - COAST-STORES - 10:56:20, Sat Jan 28, 2012 */
__SLI_ClientDefaults =
[

['ShowBrandingFooter', false ],

];


var asPhrases=new Array ('allure','symphony','shrug','maxi dress','bolero','shrugs and cover ups','dresses','red dress','prom dresses','shoes','symphony short dress','cover up','luna','purple dress','fur','bridesmaid','maxi','black dresses','symphony maxi dress','teal dress','tamara','jocasta','allure maxi dress','victoria jane','revello','elita','geri','lace dress','allure short dress','sevrene','white dress','cleo','lorna','lace','coats','cardigan','fascinator','teal','analee','navy dress','alva','prom','kingfisher','victoria jane dress','irah','bridesmaid dresses','tanya','midnight blue dress','nikita','faux fur jacket','aubergine dress','aubergine','bags','tosca','shrug bolero','wedding dresses','enya','juniper','geri dress','royal blue dress','luna dress','jumpsuit','jackets','oyster dress','blue dress','goddess','sale','belts','wrap','abigail','carlton','mercy coat','olivia','oyster','blouses','thyme dress','faux fur','champagne dress','michigan maxi dress','analee dress','allure dress','goddess maxi dress','green dress','birdsong','sleeved dresses','cream shrug','lotus','purple','pebble','jocasta dress','felicity','black lace dress','pink dresses','saphire hitched dress','cleo dress','tamina','winter coats','navy bolero','purple maxi dress','cleo maxi dress','allure maxi','kyla','skirts','harper','sevrene maxi dress','clutch bags','irah shift dress','red coat','feather','elita one shoulder maxi dress','thyme','black shrugs and cover ups','savannah','fur shrug','emmy','long sleeve dresses','nadina','cardigans sale','long dresses','duchess satin dress','pink','hudson','kelly','tamara short dress','adler','mercy','kingfisher dresses','ivory dress','symphony short','tia','symphony dress','alva dress','merlot','mischa','symphony maxi','coast symphony maxi dress','harper duchess satin dress','michegan maxi','freya','wrap dress','aubergine shrug','navy blue maxi dress','victoria','jules','tosca dress','juniper maxi dress','revello maxi dress kingfisher','mimi','fur coat','lucie','lorna maxi','fion','rachael','nikita ruched dress','cocktail dresses','navy blue dress','orange dress','teaoni','kelly cover up','tanya maxi dress','saphire','laveda','coral dress','adler dress','navy shrug','navy','tamara maxi dress','panthea','brit','black cardigan','bolero jackets','lotus drape dress','revello maxi dress','michegan','bethan','love at first sight','savannah maxi dress','duck egg blue dress','allure maxi dress chocolate','pebble lotus drape maxi dress','freya coat','coast coats','florissa','bridal','maxi dress navy','wendy','aubergine bolero','lorna dress','one shoulder dress','clutch','riona','tops','allure short','teal maxi dress','knitted dress','blue','ruched dress','teaoni lace dress','vida tube dress','mulberry','blue lace dress','layla','birdsong dress','lora','cardi','silk dress','teal shrug','fur jacket','black maxi dress','almera','amy','forest','emilia','sage green','derya','zeta','sale shrugs','jenny','trousers','ivory shrug','maxi skirt','tia maxi dress','fawn','forest green','zoe','duchess','molina','michigan','enya dress','coral','silk','nolita','enya maxi dress','all red dresses','victory','marcia','marissa','red','mulberry dress','cerys','faux fur coat','black shrug','soft pink','jindra','merlot dress','genevive lace dress','champagne','lotus drape maxi','glory','olivia jersey dress','feather shrug','lilac dress','faux fur shrug','dream dress','victory dress','shift dress','allure thyme','kathlyn','allure purple','makie','ivory','bella','the forever dress','teardrop','franco','one shoulder','panthea cover up','felicity feather bolero','paloma','makieno','luna cover up','geri oyster dress','grace maxi','melody','jersey dress','franco dress','alex','betty','red maxi dress','the love at first sight dress','fion dress','wren','silver dress','white','spot dress','daisy may','genevive','cream trousers','raspberry dress','pearl','luna dress purple','the miracle duchess satin dress','ceri scallop dress','floridita','bustier','ashley','fur bolero','one shoulder maxi dress','eliana','juniper dress','sale dresses','suzanne coat dress','black coat','green','victoria jane dress navy','elita maxi dress','janet','felicity bolero','agnes','stephanie','amelia','bijou','duck egg blue','hitched','kayla','cream dress','corine','necklace','wendy dress','shylo','clancy','halter neck dress','gloves','cupid','lorna maxi dress','orange','masquerette','ruched','mischa lace dress','navy blue shrug','alyssa','tippet','mimi trouser','fari frill coat','polly lace dress','roisin','bracelet','turquoise dress','emmy crepe dress','symphony pebble','ama','daisy may maxi','cameo','fiona','selena','sale bags','ivory jacket','polly','forest green dress','raspberry','ama dress','pashmina','tia maxi','kayla dress','spot','melody twist','jade dress','jersey','navy symphony maxi dress','emilia beaded maxi','forever','bijou lace dress','marissa sequin dress','symphony short dress pebble','feather bolero','animal print','revello short dress','symphony dress navy','oyster shoes','allure short thyme','janet dress','princess dress','sage dress','black top','camelia ruched dress','geri feather dress','burgundy dress','insca','cape','aylenna dress','sequin','formal dresses','ivory maxi dress','wool coat','pink maxi dress','layla dress','hudson dress','isla shoe','aylenna','rachel','miranda','pearl bag','roisin bandeau dress','severne','jewellery sale','ivory bolero','lucky','coast couture','ruby shoe','zoe jacket','carlton dress','selena shoe','mink','minda','zeta dress','corset','coast jocasta dress','symphony soft pink','grey dress','vida','novia','lysle','cordelia coat','aubergine shoes','petunia','ivory shoes','rosanna','uk store','hitched dress','irah dress','doris','juniper maxi','lee','wedding guest','sevrene maxi','white coat','violet dresses','olivia dress','cleo maxi','tamina duchess satin cutwork dress','rose','abigail cardigan','skater dress','beatrice','scarf','carlton jersey dress','veil','nikita teal','abigail dress','deco','black faux fur jacket','uma','lena','nadina dress','cowl neck top','navy blue bolero','maxi dress turquoise','black jumpsuit','evening tops','carlton long sleeve dress','polo','kyla maxi dress','black and white','victoria jane taffeta dress','novia knit dress','luna dress aubergine','darling','taylor','scarlet','pebble dress','martha lace dress','floral dress','black','monet','lee ruched dress','ruby','jade','juliet','michegan maxi purple','sale maxi dress','abigail jewel cardi','makie dress','teardrop cover up','martha','duchess satin','victoriana','alva teal dress','olive green dress','forest dress','scallop dress','fari frill','sizes','oyster bolero','debbie','nikita dress','irah shift','annika','calla','stephanie dress','grace','magenta dress','coat dress','almera maxi dress','sairah','wedding','leopard print dress','tasmin','wren dress','jewellery','green allure dress','laveda duchess satin dress','stores','satin','champagne maxi dress','colour block dress','jules dress','revello maxi','amy shoe','crepe dress','analee navy','emerald green dress','duck egg dress','pearl clutch','elita dress','nolita dress','carmella','calandra','uma colour block dress','jenny jersey top','mae','madame cardi','isla','bandeau dress','scarlet symphony dress','goddess maxi','nancy','marcia blouse dress','pencil skirt','georgia may duchess','duck egg','halter neck','makieno long sleeve dress','polly ponte dress','severne maxi','dream','mink dress','breita','raspberry maxi dress','oyster colour dresses','symphony kingfisher','black trousers','symphony rose','birch dress','savannah maxi','gayle dress','molina maxi','teaoni dress','red bettie coat','sayleene','silk tops','cordelia','princess jersey dress','cream jacket','bella dress','lena layered cardigan','brit dress','lotus dress','alberta','oyster shrug','princess','annora','tanya maxi dress navy','pacey polo','cream coats','navy blue bridesmaid dresses','zilli fur shrug','cover','ronnie','oyster jacket','celebration collection','severne maxi dress','saphire hitched','the danced all night dress','birch','madame cardigan','michegan maxi dress','white fur coat','theresa','red sale dresses','star','olive dress','enya maxi','donna shoe','dresses with sleeves','olive','kirsten','suzanne','animal print dress','andie','taylor cowl neck dress','cameron','hair','feather dress','lorianne','satin jacket','teal symphony dress','tasmin dress','madame','bethan dress','pebble symphony maxi dress','alex lace jersey dress','bridal dresses','camelia','lysle maxi dress','daina','silver shrug','kathlyn dress','gwenn','savannah dress','summer dresses','esme','cora','katya','allure blue dress','clancy maxi','black jacket','teresa lane maxi dress','bronze dress','dress and jacket','chance','ronnie jersey cover up','cropped jacket','lilou','lorna maxi navy','jersey maxi dress','silver shoes','katya top','black jeans','avalana','clarissa','leopard','emmy dress','hair accessories','jeans','symphony maxi pebble','mimi jumpsuit','elle cover up','ellen mesh dress','grey coat','rachael dress','dorea','black knit dress','jumpers','amelia frill dress','ursula','miranda cuff','fia','goddess dress','doris necklace','zizzi','allure maxi chocolate','teal maxi','rose dress','floral','riona tunic knit','tanya dress','merlot shrug','laveda printed dress','jayma','navy blue','teresa','patrice','carla','braelyn blouse','dusky pink maxi','fari','halter neck tops','teresa lane','constance','sairah dress','gold','alberta shoes','cowl back dress','chocolate dresses','knitwear','minette cape coat','shauna shoe','victoria jane ivory','lilou lace dress','carla halter top','claret','florissa dress','zilli','cuff','scarlet dress','vella','chocolate','black maxi','georgia','pippa','ursula dress','caroline','rachael animal print dress','lena layered cardi','georgia may','cleo rose dress','black skirt','francesca','bandeau','gayle','purity','sage','tamara dress','danced all night','black bolero','silver bag','blazer','evalina','flower','crimson','gold jewellery','lotus drape','tamara short','raquel','mono adler dress','danute','donna','jewel','stole','red shift dress','tuxedo jacket','purple satin dress','spotty fawn','edda','jenny top','elita black','flecka','coast maxi dresses','ida','grape','allure maxi dress thyme','allure chocolate','halter','chiffon dress','scallop','lily','party dress','gilly glitter belt','ashley fur coat','allure dress navy','navy blue maxi','lilya dress','sophie dress','oyster lace dress','lace shoes','black suzanne coat dress','cowl','gertie','coast revello maxi dress','erin','pale blue dresses','carissa fluffy bolero','lotus drape maxi dress','tessa','frill','ivory coat','tunic','coralie','ivory cover up','roberta bracelet','champagne coloured dresses','oyster clutch bag','occasion dresses','v neck dress','shylo jersey','mendez','crystal','vida tube','violetta','teal top','andrea bag','curtis','harper duchess','red shoes','fur cover up','rachelle','lolita','scarlet tosca dress','kelly maxi','lipstick coat','multi uma colour block dress','black fur jacket','allena','wide leg trousers','angelica','coast sale','red ruched dress','corine dress','black lace','turquoise','allure oyster','bettie coat','animal','esther','laveda dress','shylo jersey maxi','corset tops','mimi wide leg trouser','tanya maxi','knee length dresses','grecian','black cover up','radella','black shoes','ivory cream dresses','black eliana fur cover up','freda','daisy','rosanna dress','orchid','coverup','mae fur coat','allure maxi purple','jersey wrap dress','crystal deco','cleo dress aubergine','victoriana dress','darling dress','purple shrug','strapless dresses','white fur jacket','julianna','pink symphony','dorea skirt','sequin dress','black satin dress','mono','purple bolero','panthea cover','first kiss','lora jacket','inica','black and white dress','eloise','black duchess satin','becca','jane','white shrug','monet ruched dress','black fur','long sleeve','cowl neck dress','lucie cover up','vitesse','libi jean','theresa wrap','katy top','mimi jacket','hartley duchess','fishtail skirt','white shirt','nancy fascinator','kelly pearl','michigan maxi','masquerette dress','thea','bride','hazel','carissa','panthea shrug','lily dress','allure dress champagne','sally','ceri scallop','crystal deco necklace','red wren dress','sweetheart','allure blue','rouched dress','kyla dress','tamara maxi','ring','makita','marcia blouse','alva d s dress','ruffle bag','sevrene dress','katy','jules leopard','green jocasta dress','colour block','ruffle dress','gloriella','mara coat','susanna','ellen','pagan polo','peach','lucie satin dress','rachelle faux fur shrug','andie rouched dress','red bag','miracle','pleated skirt','gloriella top','black blouse','purple symphony maxi dress','coral maxi dress','radella trouser','teal lace dress','rosa','short dress','20s','cornflower dress','kirsten dress','block dress','lace skirt','mink fascinator','insca duchess satin','ria','pink bridesmaid dress','black sequin dress','alyssa frill dress','marissa dress','cream satin jacket','hartley','leather skirt','teardrop shrug','orange coat','plum dress','nicola','elita one shoulder','red top','ensemble','orion bracelet','teresa lane maxi','jemma','the miracle duchess','twinkle scarf','derya bracelet','marcia dress','coralie pleat maxi skirt','orange madame cardi','glynis','marissa sequin','inica duchess satin','lora dress','jacey','cameo trousers','oyster maxi dress','shylo jersey maxi dress','silver cover up','carrisse','satin dress','dusky pink','antonia sleeve dress','taylor cowl neck','sayleene shoe','danute cover up','hedda','beaded maxi dress','vanessa','allure champagne','coast tia maxi dress with belt','xanthe tippet','marlena shoes','prego','breita dress','cream top','jackie','navy cover up','fia colour block dress','allure maxi thyme','layla knit dress','tiriano','gilly','tuxedo','lucky dress','lucerne','clancy maxi dress','faye clutch bag','polly lace','verona','ellen mesh','mimosa','amelia dress','cream fur coat','breita bandeau','bags in sale','evalina dress','elita maxi','knit','ivory fur bolero','long leather gloves','red skirt','jeweled cardigans','flissy','symphony short dress blue','starlet bag','madeline bracelet','juliet dress','jackie coat','martha dress','revello dress','ivory jocasta','hair clips','jocasta forest','luna cover up purple','coast emilia beaded maxi','leticia coat','jocelyn','claire','low back','lilac maxi dress','purple coat','felicia','obi belt','laveda printed duchess satin dress','forest maxi','juliet maxi','elita one shoulder metalic maxi','collection','lucy dress','susanna dress','juniper clutch','evening bags','violetta cover up','bronze shoes','mitzy dress','strapless','tamina dress','glory maxi dress','red shrug','breita bandeau dress','grecian maxi dress','sophie','coast allure maxi dress','goddess maxi dress champagne','mocha','debbie jersey dress','blue maxi','tamina duchess','chiffon','irah shift dress black','dip dye','heather','eliana fur cover up','plain blouse','kyoto','coast','chocolate symphony','glitter belt','avia','black fur shrug','love','burgundy','panthea knit coverup','tamina duchess satin','freya purple coat','annika duchess dress','pacey','petunia dress','coast symphony','roisin dress','bijou dress','blue wendy dress','pagan','navy satin','jenny lipstick','cameo dress','harper dress','roisella','red maxi','white trousers','rachel bracelet','monroe','celeste','paloma dress','merlot cover up','tailored jacket','black fur coat','theresa beaded wrap','black maxi skirt','symphony turquoise','analee red','blouse dress','pearl drop','victoria jane thyme','sale white dresses','angelique','irah shift dress mink','leather','heather shoe','purple bridesmaid dress','chance cowl neck dress','miracle dress','alex lace dress','navy shoes','xanthe','black and gold dress','twinkle','aubergine donna shoe','black tie dresses','red trousers','spot top','tasmin duchess satin crop jacket','sadie','rose necklace','savannah maxi dress blue','jemma duchess satin dress','phoebe','midnight blue','ivory cardigan','cora lace maxi dress','zadie dress','carmella cowl top','floor length','miranda pearl','mesh','miranda necklace','gun metal','rachel shoe','lace top','libi','luna jacket','thyme green','claire shoe','allure maxi ivory','beaded maxi','hairband','tilly','waterfall jacket','matilda','tamina cutwork top','black bardot top','irah shift dress ivory','navy pashmina','marlena','ivory cordelia coat','red bolero','jersey maxi','oyster cover up','nikita ruched','fion dress red','lucy jacket','maxi dress plum','purple allure dress','glory maxi','cowl dress','reenes','bella shoes','flecka dress','satin skirt','symphony short pink','jenny ruched','glitter','black pencil skirt','vania','workwear','waterfall dress','shrugs violet','red pencil skirt','red cover up','tulle','tatianna','pearl wrap','love heart box','purity slash knit','verdigris','royal blue','evening trousers','caramel','cream','plum','coralie maxi skirt','jocasta dress navy','resolution clutch','jenny jersey','carmella cowl','black luna dress','beaded','shara cover up','melissa shoe','cream bags','ashley fur','pleat','magenta shrug','glory dress','skater','magenta','orion','monochrome','bridal bag','ocean blue','pink tamara dress','molina maxi dress','symphony green','kacie','izzia','frill coat','dance','revello short','doris twist bracelet','carlton jersey','allure navy','navy strapless dress','sale cover ups','zilli shrug','jocasta purple','melissa','black bolero jacket','porcini','laverne','faux fur bolero','georgia mae','black jersey dress','bronze','cream cover up','clarissa faux fur stole','elvie','lauren','claret dress','lilya','jules leopard print','pewter bag','victoria jane taffeta','andy ruched','annika duchess','rachael animal dress','zoe skirt','salma dress','satin trousers','purple one shoulder','wide leg','sarah jersey top','fauna','cowl neck','black bag','accessories','molly','verona dress','pearl bracelet','ashley jacket','pink shoes','kelly shrug','orchid dress','champagne cardigan','analie','lidia lace blouse','forest symphony maxi dress','betsey','cameo drape','white lace','peach dress','claridge duchess satin','caroline shoe','sage green dress','silver top','oyster felicity feather bolero','ellis dress','camille','lotus drape dress blue','tina top','symphony short dress pink','alva duchess','avia dress','eliana jacket','laveda printed','amante','freyja','letty dress','fia colour block','freda clutch','teardrop silk cover','harper duchess satin','navy symphony','makieno dress','roisella trousers','sandals','dress blue savannah','derya hair band','winter white coat','lyndsey top','red symphony dress','pippa bag','nolita ruched dress','feather cover up','sarah spot jersey top','coast bolero','angelina','mercy coast','navy lace','lbd','teaoni lace','ivory bag','uma colour block','watermelon','lucerne jacket','tia red','kingfisher maxi dresses','genevive dress','drape','cream blouse','cleo rose','miracle satin','simona space dyed slash nk','daryl','long sleeved black dress','mink top','salma','split','beaded dress','pencil','leather coats','annika duchess satin','floral summer dress','cleo maxi dress rose','v back','shirt','champagne jacket','raquel blouse','aston duchess','claudia','angelica dress','thea dress','allure sage','all knitwear','flower dress','print','slash','faux fur cape','resolution','analee duchess satin dress','cameo jacket','pleated maxi skirt','chevron dress','fur stole','hazel cover up','black faux fur shrug','pussybow','fur scarf','symphony short dress kingfisher','black jocasta dress','carmella metalic cowl','pink tamara short dress','sale shoes','layla knit','panthea knit cover up','multi dress','pagan stripe polo','white bag','coast allure maxi dress chocolate','red fascinator','purity slash neck knit','symphony maxi dress scarlet','monet ruched','blue fawn dress','jenny ruched jersey top','symphony short dress soft pink','lilou dress','pink and purple','rose gold','blue silk','coast tops','thea embellished','vonda','allure short dress oyster','aruba','willow','symphony teal','ivy trousers','blue wrap','allure crimson','cream lace','lee ruched floral dress','lee ruched','violet symphony','races','chance cowl dress','gilda dress','fur collar','mischa dress','amy skirt','metallic dress','black polo','mimosa dress','black party dresses','lucianna','fiona colour block','sale maxi','blue maxi dress','coast saphire hitched dress','dempsey pleat top','lee dress','navy bridesmaid','camerone tux jacket','tina','irah kingfisher','red wrap','claridge','pebble symphony dress','silver clutch bag','letty','coralie foil pleated maxi skirt','natural','occasion jackets','nadina jacket','cupid bandeau dress','madeline','alejandro faux cape','ria rouched cover up','oyster silk','luna cover up aubergine','duck egg blue jacket','reenes blouse','debbie jersey','lotus dress blue','madeline necklace','fur cape','evening','pearl clutch bag','tanya bag','francesca clutch','novia dress','kelly dress','ivory bridesmaid dresses','sheer','turquoise chiffon dress','black faux fur coat','layla lace','print shift dress','print bag','black jersey','lotus short dress','makita jersey dress','purple one shoulder dress','freya clutch','shylo maxi','fauna coat','uma block','bridal store','decca','couture','black and gold','kacie bracelet','kelly bolero','tia dress','ivory fur','nikita red dress','navy satin dress','starlet','mercy coat black','fion red','green maxi dress','rosie','milly','coast black dress','mitzy','oyster fascinator','georgia mae coat','sale earrings','darla','starlight','roxie frill top','fluffy bolero','pearl theresa wrap','ocean','fiona block dress','savannah fur jacket','blue irah shift dress','ruffle coat','corey cardi','cubic','aline skirt','black dresses enya','alejandro','camel skirt','mendez dress','fiona dress','lilac victoria jane','red satin dress','midi','bodice','tallulah cuff','amy jacket','sevrene short','jules animal','first dance maxi','ashley teal','pink maxi','purple cover up','mesh top','melange','patrice dress','cover up jackets','detachable straps','debbie jersey maxi','cream clutch bag','wrap over','tasmin jacket','nicola dress','navy fascinator','mallory','red one shoulder dress','jindra dress','ruched floral dress','victoria jane duck egg','mallory skirt','crimson juniper','bolero champagne','juniper teal','back dress','navy silk dress','symphony maxi scarlet','fion black dress','natural bolero','cobalt blue','nikita purple','teardrop cover','symphony maxi dress red','gilda','rosa bootcut','shylo maxi dress','purple satin','suzanna','rini tulle spot dress','tamina cutwork skirt','symphony short dress teal','print dress','coast dresses','annora dress','pearl jewellery','polly ponte','silver clutch','paloma shift duchess satin dress','black fishtail','block','multi ruched dress','teardrop top','chocolate maxi dress','millia','dempsey','red wren','cayda','black satin shoes','soleil','black spot top','sarah spot','vanessa bracelet','grey trousers','florrie faux tippet','roma','ruffle','lee ruched print','lena cardigan','pale blue','gilly belt','lolly earring','lucie print duchess satin dress','tuxedo trousers','persephone maxi dress','silk satin','silver wrap','duchess dress','leila necklace','allure ivory','black ruched top','bolero cardigan','aubergine maxi','beige jacket','daisy may maxi dress','allure ivory short','blue dress sale','studded','daisy maxi','edda chervon knit dress','navy chiffon','black and ivory dress','ruched print dress','spring summer','blue jersey dress','navy lace dress','fishtail','violet','camel','bow cuff','fawn dress','sleeve','symphony short navy dress','ceri black dress','feather cream dress','victoria jane forest','katy top black','florrie faux fur tippet','crystal cuff','cuff bracelets','bronze bag','red strapless','tatianna sleeve','creda','knitted top','purple maxi','daryl coat','metallic','victoria jane cornflower','white bolero','cream shoes','lucie bolero','edda dress','pink bag','dolce','agnes colour block dress','tailoring','wrap over dress','carmie','cream cardigan','spotty fawn dress','bronze belt','teal jacket','faux','maxi dress peacock','tamina cardigan','rose maxi dress','full length dresses','genevive lace','black lace top','shola','lane','crimson dress','layla lace skirt','mae coat','aubergine bustier','embellished dresses','carlton long sleeve','hair band','ann bag','lyndsey jersey','20','alejandro faux fur cape','felicity shrug','miranda earrings','blue drape dress','gold top','amante veil','star band','tux jacket','black paloma','long teal dress','sale black dress','hedda coat','cami','limited edition','vecaria','shara','coat jacket','green goddess','white jacket','sale tops','black ruffle bag','abigail jewel','jocasta black','miro ruched dress','melody twist maxi','little black dress','almera maxi','black cordelia coat','victoria dress','cream fur','allure short dress thyme','alva teal','star light clip','elita one shoulder maxi','black clutch','aruba ruched','summer sequin bag','lysle maxi','black carlton dress','elle','bridal cuff','elita one shoulder dress','sky blue dresses','amelia frill','emilia maxi','green shift dress','silk trousers','ria ruched cover up','severne short dress','fluffy','symphony short kingfisher','debbie maxi','blue symphony','suzanne coat','evening bolero','gold bag','cream bolero','feather bolero cream','ria cover up','blue satin','blue jacket','oyster silk dress','fay','emma','fia colour','high heels','symphony short pebble','violet wrap','carlton rose','black feather','nicola dip dress','lucky bag','emilia beaded dress','moira','blue bag','leggings','lucy bag','red jacket','dresses with straps','champagne shrug','almera dress','frill dress','satin bolero','clip','ivory fur coat','corinne top','high waisted trousers','leopard dress','matinee skirt','gown','black tops sale','sevrene short dress','rachael animal print','decca ruched bustier','blue cover up','pippa metallic','stripe','allure short dress sale','abigail cardi','insca duchess','leather gloves','cap sleeve','jules black dress','coast allure maxi','miranda pearl cuff','sale jackets','wrap blouse','collar','jewel cardi','eliana faux fur cover up','red tia maxi dress','eloise printed jersey','novia knit','shoulder','roberta necklace','black and cream','silk cover','kayla print','purple pleat dress','red one shoulder','sale necklaces','natural shoes','night','lucie cover-up','column','shutter','frill top','cayda halter top','braelyn','fur collar coats','teresa wrap','tina wrap top','mischa lace','all sales dresses','samantha','black satin','sandy','clancy dress','oyster coat','bib','sale navy dresses','black cardi','mole','lolita bracelet','venetia','teal cover up','sally bag','1950\'s style','black feather bolero','work','carrisse wide leg trouser','tube','fion coast dress','martha lace','forest victoria jane dress','elita one','darla necklace','carissa bolero','becca beaded bag','dresses with feathers','pleat maxi dress','avia printed jersey dress','low heel','irah shift ivory','blue bracelet','klover','nikita blue','blue print dress','summer sequin','natalia blouse','strapless maxi','teal bandeau','long purple dresses','jayma pleat skirt','angelique necklace','cream blazer','coral jacket','julianna dress','cupid earrings','coast lotus drape maxi dress','florrie','jocasta ivory dress','chance cowl','corey','avalana dress','coral maxi','ivory fur jacket','lucie cover','coast elita','teal bolero','cutwork','amethyst','scarlet tosca','lindsay','shelette dress','navy bag','severne short','tux','scoop neck','samantha fascinator','symphony maxi teal','sevrene maxi dress merlot','fashion','coast coast lotus drape maxi','claridge dress','navy victoria jane','victoria jane dress pink','bronze top','below the knee','blue satin dress','adler mono','taylor cowl','bridal jewellery','kimmy','all bandeau dresses','taffeta','allure maxi dress purple','mauve','sweetheart neckline','poppy spot top','red block dress','sally hairband','ashley long haired','pearl shoes','amethyst dress maxi','snake','eliana fur cover','frida cardigan','long','ashlea','felicia bag','andie rouched','lora trousers','love at first','slash neck','lora skirt','black shift dress','alex lace','porcini shoes','shelette','spotty','sandy dress','tamina skirt','zoe bag','jocasta red','leticia','minette','rachel top','olive green','tube dress','love at','anna','star light','lipstick bag','lipstick','victoria jane dress ivory','floral shift dress','vonda crew knit','taylor cowl dress','cream fascinator','allure short dress blue','slim','tatianna spot long sleeve blouse','catherine','1st dance maxi','erin shell','rachel animal print','teal prom dress','pink top','offers','1950 dress','beige shift dress','panel dress','bronze carmella','paloma shift duchess','debbie jersey maxi dress','jamie shirt','a line','tatiana','black wrap','wrap top','lotus maxi','bra','erin shell top','ronnie cover up','lace blouse','alyssa frill','kingfisher maxi','teaoni teal','tia wrap dress','blue lace','waterfall','lace sleeve dress','carmie trousers','carmella metalic top','high waist','navy long dress','shift dress teal','emmy crepe','animal dress','lyndsey','carmelina','ashley coat','obi','layla lace knit','trapeze','taffeta dress','analee dress ivory','patrice one shoulder dress','black blazer','tamina cutwork dress','ocean blue dress','debbie maxi dress','maxidress','multi colour dress','lucie print duchess','mirror','stretch dress','tanya navy','lotus maxi pebble','low back dresses','the first kiss dress','panthea cover-up','andie ruched dress','shauna','crystal deco earrings','caramel dress','forest cover up','empire','lyndsey jersey top','pink symphony dress','insca dress','clarissa stole','blue bolero','1950s dress','estelle top','rula cowl knit top','jamie','emilia beaded','black earrings','red satin','black bolero shrug','goddess jersey maxi dress','black one shoulder dress','day dresses','drape maxi','a line dress','sale skirts','verona wrap dress','faux fur cover up','knee length','cora lace','flare dress','satin cover','luna dress and jacket','cream maxi','black rose dress','sparkle bag','raquel tie back blouse','may','slinky','mink shoes','cristiana jacket','rosie clip','navy blue symphony dress','dress with zip','embellished cardigan','emerald green','kingfisher shrug','champagne top','clutch sale','glitter shoes','carmella top','colette bag','theresa pearl ivory wrap','coast symphony short dress','rachel necklace','lolly','merlot maxi dress','roxy','cream maxi dress','harper duchess dress','daisy dress','harper satin','irene clutch','luna dress blue','pearl drop earrings','red jersey dress','wedding dresses sale','lora wide leg','alva dress navy','black fascinator','jocasta green','black and white cardigan','cluster earrings','hartley duchess satin dress','bolero fur white','silk and lace','rachel bag','coast luna','polly dress','allure sale dresses','calandra one shoulder','black shirt','navy victoria','calla top','white skirt','luna black','gertie earrings','bolero tops','moira wrap','dress with belt','lauren bag','leila','raquel tie blouse','jocasta jade','silk blouse','black satin skirt','v neck','black and cream shift dress','saphire dress','sale fascinator','black tie','oyster clutch','violet calandra','twist','spot bag','vine','clarissa faux stole','minda stripe','bijou lace','silk cover up','turquoise maxi','tavia top','black tube dress','shell top','severne dress','purple jacket','miro','lidia top','crepe','matilda necklace','edda chervon','pewter','kitten heel','cream wrap','eliana fur','fur cover','analee dress navy','neutral dress','stretch satin','juliet maxi dress','bow tie','party','simona space dyed slash','edda chevron','zaria dress','vania v neck knit top','sevrene navy maxi dress','maxi allure turquoise','mimi skirt','dance the night','beaded bag','dip','lee ruched print dress','drape dress','navy maxi','purple top','harper dress satin','tassel','symphony maxi violet','lu lu','luna cover','jacey skirt','crop','revello teal','blue bridesmaid','navy blue bag','esther frill blouse','lace panel dress','cupid sparkle bead bracelet','gwenn blouse','black beaded wrap','black cowl neck top','carlton long','tunic tops','natalia','ottoman','jackie frill shirt','bronze clutch','luna bolero jacket','black cropped trousers','taylor dress','brittany lace','blue shrug','claudia boxed set','sevren merlot','frill shirt','beige','suzanne dress','silk jersey','laveda printed duchess','box bag','frill skirt','zip','layer skirt','pink sweetheart','ups','hollywood','first','green shrug','rachelle fur','below','lucie duchess','cristiana','black spot','drop waist','red halter','caramel coat','dionne','pearl earrings','gun','spot mesh','symphony maxi navy','salerio','symphony ivory','dress pocket','white cover up','silver heels','teardrop black','frosted earrings','blue top','coralie pleat skirt','ronny jersey','saphire-hitched-dress','green maxi','long navy','coast lucie satin cover up merlot','court shoes','grey faux fur jacket','wendy earrings','teal coat','felicity feather','sarah top','first dance','cowl back','kyla maxi','metallic top','navy wrap','turquoise lace','shoes and bags','wrap shirt','jersey cover up','coral bridesmaid','lilac symphony','goddess jersey maxi','square neckline','bridesmaid shrug','teal kelly cover up','slim leg trousers','champagne bridesmaid','delia','tamina top','dress with spots','white wedding','ruched top','cowl top','fur coast','black sequin','coast allure','coast cleo maxi dress','eliana faux fur shrug','irah shift black','luna shrug','lorna navy','irah green','elita maxi bronze','blue blouse','symphony short dress red','blue short dress','curtis earrings','juniper short','agnes dress','taylor cowl back','cleo silk dress','victoria jane dress cornflower','slinky studs','symphony purple','allure silk maxi dress','thyme maxi','on the knee dresses','exclusive','60s dress','rose tosca','symphony maxi dress violet','tanya earrings','lidia','ellie bracelet','curtis necklace','amethyst short dress','eliana faux fur','black ceri','chiffon shrug','pagan strip polo','duck','pearl shrug','green silk','black wool coat','lucie print bag','rini black dress','uma dress','salerio jacket','fashion tape','back','coast uma colour block dress','agnes colour block','rose bag','jewellery sets','pussybow blouse','forest goddess maxi','silver bolero','teal bag','fern bracelet','becca bag','tan trousers','lea wide leg trouser','pleat maxi','chocolate allure dress','turquoise lace dress','duchess skirt','dip skirt','coast analee','simona','drop waist dress','red jocasta dress','jocasta ocean','maxi dress pebble','blue earrings','cover alls','victoria jane dress teal','short trousers','white jocasta dress','amelia earrings','teresa maxi dress','black jenny jersey top','dye dress','spot cardigan','alice earring','black marcia dress','cream fur jacket','faye bag','rosa trousers','sarah spot top','coast cleo','cropped trousers','rachelle faux fur','black harper','summer wedding','black cowl neck dress','allure black','symphony maxi dress teal','maxi pebble','coast shoes','coast lee','raspberry bag','pisa','sadie spotty','green bolero','angelique maxi','coast rachelle faux fur shrug','sequin wrap','lilou lace','giselle cuff','zaria','symphony scarlet','raquel top','slash top','green goddess maxi','bridal sale','black silk top','luna pleat','blue wrap dress','sale trousers','lovely dress','black feather shrug','mistrel','fur short jacket','rosa bootcut trouser','coralie skirt','pearl dress','luna aubergine','high heel shoes','shola cover up','mimi wide','roberta pearl','jacey aline','silk chiffon','gorgeous dresses','danute cover','1st dance maxi skirt','catherine bag','scarlet theresa wrap','coast rini','coast lee ruched dress','salerio skirt','bolero turquoise','belted coat','aruba top','cream faux fur','black chiffon','jenny cowl neck','poppy top','irah black','coat with fur collar','symphony red','alva navy','mink clutch bag','aphrodite bracelet','sequin bag','black dress with flowers','teresa lane dress','rula cowl','black silk dress','lilac chiffon','champagne bag','shoulder bags','lurex','box','carmen trouser','tan jacket','merlot colour dresses','pebble lotus','make up bags','allure maxi blue','cream wedding dresses','black sheer sleeve','shoulder red dresses','statement dress','blue dress symphony','prego earrings','blue strapless dress','allure dress thyme','faux tippet','mole mae','blue irah shift','pleated blouse','scarlet maxi dress','black scallop dress','beaded jumper','cardigan layered','lidia lace','mid heel shoes','coast harper','sheer sleeve','mercy coast navy','scoop back','shoulder dress','black long sleeve','red coast','black sparkle','teal duchess','coast goddess','multi uma','print top','silver metallic top','tweed coat','symphony maxi blue','blue jersey top','tan cardigan','metallic cowl','analee dress blue','analee purple','coast symphony dress','black rouched dress','sculpting','silk shrug','boned','pink clutch bag','rosie clutch','a line skirt','black ruffle','riched','feather and lace dress','sabine boxed set','pearl theresa','carlton red','red lace dress','short skirts','tailored dress','coasts shift dress','evening cover up','red halter dress','lotus drape maxi pebble','tulle maxi','all black dresses','matching bag','fitted','black enya','black evening bag','aubergine top','rachelle shrug','blue chiffon','party skirts','multi maxi','black lace skirt','slim trouser','coast symphony dress navy','cinch','blue duchess satin dress','black carmella','sheer sleeve dress','coast sevrene','red coast dress','coast irah shift dress','ltd addition','black satin shift dress','colour dresses','ruffle maxi','teal clutch bag','teardrop bolero','allure cream','starlet cover up','analee teal','coast saphire hitched','sy mphony','crepe trousers','coast cover up','blue satin jacket','textured dress','coral shrug','silver bracelet','cover up violet','black ruched dress','satin teal dress','long sleeve purple','allure green','teal satin','bead wrap cream','plum coat','complete','allure sale','all night long','coast tamara','mitzy mono','red shift','black maxi one shoulder dress','metallic clutch bag','autumn','smart trousers','sale bracelets','starlet dip','coral satin','smart','allure-short-dress','symp hony','allure thyme green','tatum cardigan','savannah ivory','turquoise bracelet','luna bolero','alex mono','sale of symphony','black shift','saphire natural','pink dress wrap','silk halter','beige skirt','megan cuff','allure-maxi-dress','bow shoes','printed maxi dress','chocolate shrug','coral bolero','anna silk top','cotton sateen','salerio wrap skirt','coral cover up','floaty skirt','cream halter neck dress','flattering','black floral dress','be','twist bracelet','pleat clutch','beaded clutch bag','cover up tops','penny top','coast jocasta','lilac bags','teal blue dress','printed shift','mink jacket','saffron','black jewellery','blue taffeta','saffron silk mix knit','cream duchess satin dress','magenta wrap','raspberry maxi','taffeta tie','black savannah maxi dress','lily drape','mink wrap','lily print top','silver trousers','salerio wrap','shoulder wrap','coast one shoulder','flrois','twist neck','pink wrap','cream silk','feather top','purple necklace','coast to you','lotus natural','cover top','saphire dress blue','spot clutch bag','lilac bolero','maxi one shoulder blue','by a','lilac purple','saffron silk mix','coast juniper','champagne cover up','all trousers','bright pink','spot mono');
/* $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);
    }
