/* Popular phrases - COAST-STORES - 10:57:50, Fri Feb 10, 2012 */
__SLI_ClientDefaults =
[

['ShowBrandingFooter', false ],

];


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