/* Popular phrases - 7FORALLMANKIND - 20:20:29, Wed Feb 8, 2012 */
__SLI_ClientDefaults =
[
    //['Alignment', 'offsetrelative' ],
    ['TargetURL', 'http://denim.7forallmankind.com/search?w=' ],
    //['TextBoxIDCustom', ['searchfield']]
];
var asPhrases=new Array ('straight leg','a pocket','search','dojo','short inseam','roxanne','long inseam','austyn','gwenevere','bootcut','shorts','kimmie','a pocket womens','josefina','petite','high waist','skinny','kaylie','lexie','kimmie curvy','maternity','mercer','standard','dojo jeans','jiselle','relaxed','leggings','rhigby','jeans','flynt','ginger','original bootcut','austyn relaxed straight leg','roxanne classic skinny','maternity jeans','corduroy','nakita','skinny second skin','slimmy','gwenevere super skinny','kimmie straight leg','mens bootcut jeans','size guide','36 inseam','roxanne skinny','seven jeans on sale','kimmy jeans bootcut','long inseam womens','white jeans for men','sale','high waist bootcut','nate','skirt','slim','jeans for men','white jeans women','black skinny jeans','slimmy jeans men','shorter inseam','gummy','shorts for women','stretch jeans','crystal','petite jeans for women','corduroy men','slimmy jeans','high waisted jeans','kaylie bootcut','second skin','austyn jeans','a pocket flare','white','utility pant','new york dark','jeans for women','kimmie curvy bootcut','mens standard jeans','button fly','jeggings','gwenevere jeans','black','bootcut women','los angeles dark','kimmie bootcut','bootcut new york dark','skinny jeans','boots','a pocket new york dark','boyfriend jeans','flare','velvet','standard classic straight leg','neon','grey','crystal pocket','roxanne skinny jeans','jiselle flare jeans','straight leg women','long','black jeans','aiden','lexie petite','gwenevere skinny','high rise skinny','brett','a pocket bootcut','mid rise womens jeans','mens a pocket jeans','mens black jeans','a pocket bootcut men','women skinny jeans','high waist straight leg','sale mens jeans','short inseam women denim','grey skinny jeans','jeans 36 inseam','high waist womens','extra long','white skinny jeans','a pocket men','32 inseam','dojo flare leg trouser','grey jeans','a pocket relaxed','chester row wash','straight','womens shorts','skinny boyfriend jeans','trouser','white skinny','denim shorts','legging jeans skinny','petite jeans','colored jeans','bell bottom jeans','classic straight leg','relaxed fit','bootcut original fit','seven on back pocket','the skinny second skin legging','pregnancy jeans','boyfriend','lady jeanette','cropped jeans','trouser jeans','the skinny second skin legging jean','cargo','josefina skinny boyfriend','womens petite jeans','chester row','kaylie jeans','gwenevere gummy','super skinny','classic straight leg jeans','destroyed','relaxed jeans','velvet pants','slim trouser','boot cut','extra long jeans men','austyn relaxed','infant','cropped skinny','highwaist straight leg','mid rise bootcut','mercer men','jean jacket','30 inseam','tall jeans','size','relaxed mens jeans','a pocket bootcut womens','42','long inseam for men','black bootcut','original bootcut in new york dark','men','corduroy pants','30','cerrillos','kimmie straight leg jeans','montana','a','baby','featherweight','shoes','super flare','kids','slim straight leg','sale jeans women','blazer','stretch','brett modern bootcut','23','skinny crop and roll','dojo wide leg','size 33 women','tucker blues','rinse','aviator','gummy denim','ginger jeans','mens jeans','distressed jeans','mens slimmy','leather','corduroy jeans women','jiselle phenomenal slim fit flare','men jeans spandex','women sale','slim bootcut','chino','wide leg','a pocket short new york dark','khaki','high rise jeans','nate slim bootcut','gwenevere grey','mens boot cut','eyewear','austyn mens jeans','size 34 women','japanese denim','dojo short inseam','selvage','mens stretch denim slim','flynt men','lexie a pocket petite','porter blue','slouchy','men jackets','baywater','new york medium wash','earheart','low rise jeans','x long','white jeans','indigo blue','sunglasses','belt','roll up short','curvy','bag','alluring night','mens short inseam','driftwood storm','mens shorts','indigo bootcut','mens austyn','gray jeans','button fly men jeans','rustic amber','second skin legging','spandex','leather jacket','p344-380s','tank','cairo','black straight leg','slim straight','rhigby skinny','dress','salton sea','women\'s a pocket','relax fit mens jeans','montana mens','contour waistband','denim skirt','white shorts','coat','u0041s660s','women','inseam 32 men','austyn los angeles dark','shorter inseam men','womens black jeans','crop josefina','edge boot','bianca','jeans no spandex','relaxed slim jeans','tall','cropped','pink jeans','extra long women','mens white jeans','a pocket womens jeans','high','georgia','crystal jeans','roxanne classic','mens bootcut','slimmy slim','slimmy straight leg','petite bootcut jeans','neon jeans','kimmie jean','bootcut jeans','roxanne black','grey jeans straight','fit guide','straight leg men','los angeles','handbags','shirt','west cairo','standard mercer','colored skinny jeans','crop and roll','gwenevere skinny jeans','blackout','ankle zip','vintage loring','jared','spandex bootcut men','relaxed a pocket jeans','black out','black jeans for women','button fly jeans','alabama dusk','josefina jeans','womens sizes','cord','34','7 pocket','dojo flare','pull on leggings','premium denim','kids jeans','nakita wash','wide leg jeans','standard mens','lockheed','austyn sale','mid rise','grey skinny','andie','hawaiian','corduroy jeans','double knit','aviator pants','low rise bootcut','skinny rinsed indigo','swiss dot','dress shirts','vintage casablanca','shipping','standard jeans','chester','amber light','denim jacket','curvy fit jeans','33','98','vest','black pants','lyocell','slate nite','gwenevere black','womens denim shirt','high waist original bootcut','size 16 jeans','kimmie boot cut','grey mens jeans','petite lexie bell bottom','pregnancy','a pocket jeans','ghost','white denim jeans','peacoat','camo','flare jeans','long legs bootcut','standard in mercer','drake','bootcut stretch','light blue jeans','dazzling drake','t520nb061u','high waist skinny','bell bottom super flare','denim dress','twill pants','x long jeans','silky pleated crop','drape dress','bootcut mercer','black leggings','gwenevere zipper','gardiner','georgia high waist wide leg trouser','mens skinny jeans','easy shirt','jeans flare leg','classic flare','made in usa','slimmy slim straight leg','melbourne','pink','black jeans for men','medium new york','boot cut jeans','womens jeans','rinsed indigo','women size 14','original bootcut medium new york','womens roxanne','usa','montana boot cut','cardigan','wren','dark blue','size 34 jeans','original','34 waist','mercer jeans','second skin skinny jeans','ap344y997','sateen','gummy leggings','womens flare jeans','high waist skinny jeans','size 16','original fit','kimmie straight','paso robles','petite denim','stretch denim','36 inseam austyn','springwater blue','parka','wide leg trouser','maternity sizing','fur vest','98 cotton','dojo petite','style','springwater','austyn black','henley','kaylie slim','38 inseam','the skinny second skin jegging','denim shirt','los angeles dark in austyn','35 inseam','gwenevere indigo','velvet flare','ap344y702','coated jeans','petite curvy jeans','baywater blue','jeans with spandex','roxanne skinny stretch','relaxed long','panel','roxanne flood','winter sale','watercrest','98 cotton 2 spandex','jegging sale','100','at511y061','pocket design','classic bootcut','black stretch jeans','jiselle phenomenal flare','concrete','30 inseam mens','wedge','worn mercer','nouveau new york dark','36 x 36','bootcut in nakita','u190-380s','jeweled pocket','coated denim','aiden tailored straight leg','shorts on sale','at511y447','a pocket nakita','original bootcut new york','ripped jeans','featherweight skinny','kaylie five pocket flare jeans','neon pink','biancha','au075y998','vintage','bellbottom','x long inseam','dark indigo','flare leg contour a pocket','slim trouser jean','made in italy','tank top','mid roll up short','rhigby men','glasses','dojo trouser','a pocket flare with contour waist in new york dark','the skinny jeans in rinsed indigo','34 inseam','kids skinny jeans','men\'s spandex','long legs','flap pocket','ultra destroyed','the trouser 4 pocket','aiden 38','overcast','grey denim','tucker','new york dark wash','porter','courderoy','men shirts','tee','arctic','bell','inseam','georgia trouser in new zealand','magnetic moonstone','dark wash bootcut','marty','35 inseam women','military','pants','petite sizes','hoodie','u0150-757s','roxanne rinse','at521y173','white denim','driftwood','super skinny gummy','kittenger','mens khaki','empire blue','crop denim','button fly womens jeans','hawaiian ocean','high waist straight','the skinny in black','mens long inseam','jean leggings','zipper trouser detail skinny jeans','inseam 29','perfectly worn','mens denim','shrug','stud','short inseam women','welt pocket trouser','au130ff17a','highwaist','la','skinny pants','flare leg contour waistband','cliffside','ocean','sale petite jeans','high waist boot cut','khaki pants','men white denim','black corduroy','31 inseam','polyester','ap179y702','curvy petite','lexie kaylie','black boot cut jeans','lady jeanette wash','arctic shock','indigo','straight leg white','jennison','size 27','signature','36 long bootcut','crop and roll second skin','back rise 14','womens straight leg dark','zip fly','7 for all mankind jeans a pocket new york fit','a-pocket bootcut jeans','classic','cliffside dark','back pocket design','castroville','mens belts','ghost squiggle','28 inseam','size 12','jeans size 23','new ultra destroyed','black skinny','new rinse','twill','charcoal','33 inseam','clean white','embroidered','denim sale','mid-rise','alluring sunset','silk','roxanne skinny dark wash','ginger flare','shiny','colored denim','44','mens long','brown','size 18','original bootcut in amber light','kimmie curvy straight leg with contoured waist in washed boheme blue','a pocket stretch jeans','hereaux','black jeggings','men new york dark','7 for all mankind straight leg in rinse','shirts on sale','at511y702','erin','leather skinny','charcoal straight leg jeans','leg opening 22','gwenevere super skinny gummy denim in black','bermuda','new york dark standard mens','straight leg in new york dark','citron','kimmie straight leg jeans in dark rinse wash','mon tete rouge','a pocket in baywater blue','women tall','austyn chester row','ponte','distressed','light wash','the skinny second','bell bottom super flare in vintage california','roxanne ultra','second skin jegging','mid rise boot cut','standard porter blue','austyn a pocket','austyn relaxed straight leg in los angeles dark','au130y916n','dojo flare leg trouser in new york dark','boot cut new york dark','high waisted original fit','jeans with crystal pocket','sequin jacket','new a pocket jeans','flare new york dark','crystals on the pockets','standard indigo','relaxed fit montana','lexie a pocket','front rise 9','black denim sale men','zip','spandex men relaxed','skinny men','38 x 36','polyester jeans','vintage jeans','mens 36 inseam','t520xl061u','addison','jiselle flare leg jeans','maggee','kimmie sale','slimmy black','roxanne jeans','size 23','gwenevere gummy denim leggings','printed','061u','flynt pocket','plaid','low rise skinny','ripped','mercer wash','jiselle earheart','gray skinnies','roxanne jennison','waist','cotton jeans','short pant','skinny super stretch','roxanne 27','nakita jeans','kimmie black','au190y702','high rise straight leg','sale for women','size 42','black velvet pants','original bootcut in new york dark short','am4186f96','ankle','edge','standard new york','dusk','jean for women on sale','kimmie curvy bootcut with contoured waist in new hereaux','at511y080','california wash','am9121c46','men leather jackets','bootcut in new york dark','baby jeans','grants pass','austyn dark','button down','boys','30 inseam women','super skinny gummy denim','black skinny legging','au130p702','a pocket flare with contour waist','slimmy in chester row','bootcut montana','linen','ankle zipper','roxanne sale','original bootcut in alluring night','austyn indigo blue','ora','mens khaki pants','double wrap belt','salton','size 33','dazzling dark','bootcut petite','modern bootcut','shimmer','original bootcut in tucker blues','relaxed mercer','black stretch','women high waist straight leg','mens cargo shorts','light denim','front rise 7','mid rise white','au115-42a','standard tracer','3 pocket plaid shirt','yellow jeans','roxanne high rise','dojo black','romper','sequin','mercer standard fit','slimmy white','nouveau','a-pocket stretch jeans dark new york wash','elastane','8 rise','ap179y03a','original bootcut in montana','a pocket skinny','men boot cut jeans','alexis blazer','zipper fly mens','montana wash','front rise 8','kimmie boot cut denim','a pocket boot cut','petite dojo trouser','white pants','tie','womens boot cut jeans','highrise','a pocket flare leg contour waistband','rise','a pocket petite','cashmere sweater','outerwear','a pocket bootcut for men','boot cut jeans for men','mens jeans size 42','size 18 jeans','camp ashland','california del sol','the skinny with zips','jiselle flare','gray','size 38','curvy fit','long jeans','relaxed spandex','size 24','stone','bootcut in medium new york','medium los angeles','evening dresses','echo blue','standard medium','rayn','42 jeans','7 for all mankind womens a pocket jean','size 14 jeans','high rise bootcut','the','rinsed indigo wash','new york boot cut','sweater','dark blue black','natural rise','original bootcut short inseam','puffer','longer inseam','dazzling','utility skinny','relaxed fit jeans','rustic','women\'s dojo','a-pocket short','relaxed montana','daria one shoulder top','roxanne corduroy','kaylie flare','women extra long jeans','men black','a pocket short','cut off shorts','industrial grey','womens corduroy','sweater dress','utilitarian shirt','gwenever skinny','gwenevere super skinny gummy denim','blue label','high rise boot cut','black velvet','blue black','skinny stretch jeans','women denim','cooper','mens cargo pants','rhigby driftwood','boys size 12','pregnancy denim','34 32','coral top','clogs','women belts','classic boyfriend','drapey','biker jeans','modern straight','skinny legging 29','white jeans for women','jiselle phenomenal slim fit flare in earheart','straight leg mercer','au190y996','a pocket black','roxanne vintage','a pocket flare with contour waist in heritage light','contour waist','womens jegging','courtney cardigan','royal','the skinny denim leggings in rinsed indigo wash','high rise flare','slimmy gray','extra long bootcut','petites women','austyn long','gummy indigo','no stretch jeans','tapered','jeanette','size 33 women jeans','au130y995','kimmie curvy straight','andie super flare','womens long','amber','spandex bootcut','a pocket lady jeanette','slimmy slim straight leg in mercer','register','standard porter','skin','dojo style','contour','kmmie','jeans size 25','the skinny in black shiny featherweight','black flare jeans','lexie petite super flare','distressed vintage','savannah','sunset gold','seven jeans petite','raven','super flare jeans','austyn melbourne','gosling','crystal pockets jeans','dark blue black wash','straight leg jeans','gwenevere super skinny gummy denim in indigo','sale skinny jean','waist 32 inseam 32','white a pocket','crop josefina skinny boyfriend','anchor','curvy straight','dojo new york dark','velvet leggings','squiggle','no break','ap179y814','original bootcut in medium new york','bootcut jeans in new york dark','ginger flare leg','size 40','aggressive siren','slimmy 98%','gray skinny jeans','women bootcut in new york dark','mens blazers','harem trouser pant','boheme','loring','37','jean jacket women','wool','cuffed jeans','nouveau new york','relaxed fit in west cairo','au115s42a','slimmy squiggle jean','light weight mercer','lightweight skinny','ap179y42a','ap179y916','chino pants','the skinny black shiny featherweight','women fit guide','california','jeans on sale for men','honolulu','nate slim','cashmere','vintage flash','relaxed straight leg','captivating overcast','austyn driftwood','austyn relaxed straight leg jean','slimmy grey','women colored jeans','heels','roxanne skinny in jennison','ap179y975','size 29','basic jeans','ap179y44p','blue','monteterge','7fayg008','rinse 2','relaxed fit marine indigo','au190y997','au115y954','petite flare jeans','ginger mercer','standard new york dark','kaylie 5 pocket','one shoulder','7fayg018','7faxg017','cotton','maggee pant','austyn 42','biancha los angeles','7faxg025','five pocket','am4218e40','7fanu003','boot cut short inseam','biancha short','drawstring skirt','mens rhigby skinny','braided','alluring','georgia trouser','lexie kimmie','size 34','women leather jacket','raw','cantaloupe','slimmy mercer','harem','kimmie curvy straight leg with contoured waist','slimmy corduroy','at waist','a pocket in new york dark','bootcut new york','classic skinny','off register','coral','double knit legging','slimmy in blackout','am0152f97','sateen pants','a pocket lurex','wind song','leopard jacket','the skinny in rinsed indigo','boot cut corduroy','standard twill pant','mid rise skinny','ginger trouser in lightweight mercer','sweet crocus','29 inseam women','am6089d82','slimmy new york dark','at520y702','size 44 men','black denim','seven jeans flare','ap179y997','brenda','super skinny black','slim fit trouser','green jeans','white denim shorts','roxanne stretch','7 pocket design','standard classic straight leg in los angeles dark','button fly relaxed mens','austyn west cairo','womens high rise','au130s702','dawn top','tweed coat','extra long mens','relaxed slim','womens slim trouser','womens denim shorts','heritage light','size 7','miniskirt','seamed skinny jeans','black straight jeans','corduroy a pocket','rudeboy','black slim jeans','kimmie bootcut lexie petite fit','roxanne original skinny in baywater blue','josefina mini skirt','a pocket kids','jeans straight leg women','short inseam denim','cordoroy','austyn 2.0','dojo denim','light indigo','32','button fly boot cut','roxanne skinny made with','men relaxed fit button fly','button side seam short','water crest','brass','military jacket','size 33 waist','deep emerald','lightweight denim','standard button fly','black bootcut jeans','relaxed button','l\'amour','pea coat','black classic','ata519-30a','roxanne destroyed','ap179y985','white women','an4765f49','color pocket','camo pants','the skinny rinsed indigo wash','luxe','standard corduroy','classic boot cut','indigo skinny','cargo shorts','16','second skin jeans','midnight','petite boot cut','womens boot cut','front rise 6','27 inseam','erin wide leg','7 jeans','men black bootcut jeans','tailored denim','color','mens grey','roxanne white','sale jeans','a pocket flare leg','white 7 on pocket','cropped skinny jeans','roxanne lady jeanette','34 waist relaxed','black slimmy men','bootcut denim','pull-on','help','jeans spandex','am6090c57','high waist original bootcut in los angeles dark','a pocket grey','am6086c12','skinny second skin indigo','roxanne original skinny','crystal denim','sequin blazer','plaid shirts','halter','super skinny in black','3','mens low rise','mens stretch bootcut','seamed utility','a pocket mercer','casablanca','7 back pocket','dark rinse','a pocket denim','original flare','velvet blazer','nolita','a pocket stretch new york','plaid flannel','am0090c97','mens standard straight leg','sand','black blazer','seven on pocket','roll up denim shorts','10 oz','skinny twill','the skinny wind','classic mercer','nate men','skinny second skin black','womens 32 inseam','brick','l amour','closer tee','racerback','bootleg','indigo skinny jeans','denim women jeans','los angeles dark wash','cigar','coat wool','size 10','sangley point','button fly relaxed','caden dress','leg opening','roxanne new ultra destroyed','3d','flynt bootcut','tencel','bell bottom distressed','lexie rinse','high waist trouser jean','back rise','the skinny second skin legging in new hereaux','a pocket relaxed mens','new ultra','suit','skinny zip','sale dojo','kaylie petite','mid rise original bootcut in l\'amour empire blue','roxanne skinny leg rinse wash','dyess','a pocket flare with contour waist in nakita','brett bootcut','mid-rise boot cut los angeles dark wash','olive jeans','roxanne skinny in rinse','88','faded jeans','38','ata521x173','lexie petite kaylie','mid','calee','gray denim','bootcut crystal','classic straight leg in lady jeanette','knit','tan','am9172nyl','pleated short','dafnee','original boot cut','lightweight','a pocket contour','back pocket','bootcut nakita','industrial','austyn porter blue','tux','black denim women','ladyjnette','dojo fit','austyn los angeles','rayon','second skin indigo','high rise wide leg','dojo stretch','teal velvet','women a pocket short inseam','cotton spandex','t519xl061u','size 44','a pocket straight leg','2.0','black men sevens','s on pocket','castle rock','sale skinny','mens denim shorts','motorcycle jacket','heritage','roxanne ultra destroyed','curvy short','the skinny in indigo','kimmie petite','slim straight jeans','mens long relaxed','women skirts','austyn spandex','trousers women','new york dark short inseam','slimmy 2.0','faux fur jacket','low rise flare','footwears sale','7fayg038','dojo short','am5127g27','kimmie bootleg','sangley','trouser 4 pocket','new women jeans','patch pocket','pocket fit flare jeans','long denim','am9076e73','gwenevere ankle','a pocket black jeans','size 24 jeans','pure','gwenevere squiggle','31 x 34','bootcut stretch jeans','elastic waist','worn mercer wash','a pocket flare with contour waist in captivating overcast','denim size','mankind','7','a pocket flare with contour waist in new york dark short inseam','34 x 36','new york relaxed','kimmie skinny','12 oz','super low stretch','slimmy squiggle','men coated denim','36 32','size 32 jeans','belly','aiden men','dark','size 32','clean pocket','size 14','standard black blue','the skinny second skin legging in rinsed indigo','28','final sale','standard black','22','black jacket','midrise','emerald','austyn fit','fit','black leather jacket','regular inseam','highrise womens jeans','stretch corduroy','austyn straight leg','skinny stretch','a pocket contour waist','27','jennison wash','roxanne skinny in stretch corduroy','arabelle dress','captivating','black legging jean','no pocket','7 for all mankind straight leg','indigo care','printed shorts','mens relaxed','am0147c70','black flare','standard classic straight leg in mercer','soft','26','relaxed west cairo','austyn ghost','new york fit','rinse 061u','cairo men','jeans with crystals','a pocket boot','bootcut boheme','low waist','austyn vintage loring','sale shoes','slimmy straight','standard medium new york','bellbottom vintage california','madelyn','long sleeve corduroy shirt','boys jeans','heather jersey','tight ankles','classic jeans','mens size 28','95','skinny in new york dark','34 x 34','7 for all mankind','am5135g27','slimmy slim straight leg in industrial grey','light grey','slimmy sale','36 men','t521-290u','standard new york men','sale shirts','new york wash','relaxed straight','standard straight leg','black straight leg jean','coy blouse','high waist classic','women 34','boot cut mercer men','men\'s a pocket','antoinette','high skinny','a pocket new york','amber light standard','24','dark jeans','victory','high cast luxe','29','jeans size 26','black black','austyn flynt','low rise boot cut','marlo','worn nakita','mens sweaters','women top','coronado','long sleeve v-neck','woven','women dresses','grey sweater','9.25','7 for all mankind skinnies','grey leather belt','indigo slub','shimmer skinny','mid rise flare','a pocket short inseam','mens relaxed fit','mens longer inseam','standard straight leg in cliffside dark','leopard','big mens jeans','shimmer pants','skinny military','lexie petit bootcut','high waist original','knit jeans','mens sale','bootcut vintage flash','97','standard classic straight leg new york medium','a pocket womens jeans bootcut','new arriva ls','color skinny','slim fit bootcut','dotted a pocket','32 long','roxanne original skinny in l\'amour empire blue','size 28','classic straight leg in new york dark','skinny jeans with pocket','women a pocket short','straight jeans','white standard','womens size 32','clean black','cable','chandra','women\'s denim','puffer vest','a pocket in nakita','aviator sweater','straight leg in black','classic straight leg in los angeles','denim button fly','second skin rayon','sale items','striped flight shirt','no break jeans','medium indigo','slim jeans','size 8','wanderer pant','jeans 36','gingham','standard in gulfport','women\'s black pants','denim trouser','leather utility','slimmy blue','classic straight leg in black','dark smoke grey','dojo in new york dark','petite trouser','indigo blu','dirty','moto pant','anya','the skinny second skin legging jean in clean white','blackout jeans','a design','classic straight leg in gosling','kimmie 32','standard fit straight leg','men 34 jeans','jeans size','dojo womens jean','second','cordelia','carla racerback','contour waist in new york dark','relaxed fit men\'s','straight leg indigo','roxanne skinny rinse','austyn vintage','stretch flare','slub polo','coconut','highrise jeans','long sleeve slub thermal v-neck henley','blue velvet pants','leather vest','lexie a pocket jeans','expeditor','a pocket melbourne','standard straight leg black','sal','bootcut in grant pass','pea','motion t-shirt','long womens jeans','long men jeans','single anchor','original bootcut in slate nite','size 29 jeans','x-long','stoned leather','stretch flare medium new york','classic straight leg dark indigo','wide flare jeans','am0153f90','arabelle','70s','relaxed 34','standard straight leg jean','size 26','low rise womens bootcut','skinny second skin crop','mens flynt jeans','dark featherweight','p330-380s','kaylie lexie petite fit','cutoff shorts','clean black skinny','military henley','austyn denim','an4808g10','a pocket los angeles dark','skinny fit','austyn denim men','13.5','lurex staple a','skinny dark smoke grey','mens a pocket original bootcut','relaxed salton sea','kaylie aggressive','arianna','standard classic straight leg black out','an0488dg08','washed black','red shirt','austyn 100%','austyn camp bullis','slim fit boot cut','mens jeans on sale','mens slimmy slim','women denim in black','mens standard black jeans','women size 29','a pocket new york dark bootcut','sale on women\'s jeans sale','skinny corduroy','gwenevere dark super stretch','denim skinny','austyn relaxed straight leg in driftwood storm','robles','sales for men','a pocket dazzling drake','a pocket dojo','white flood','relaxed men\'s a pocket','standard arctic shock','a pocket womens crystal','an0370-d61','a pocket flare contour nakita','grey womens jeans','montana boot cut jean','white men','size 31','women\'s petite','long sleeve twill','24 inseams','a pocket standard','camp ashland standard','a pocket nyd','collection','standard stretch','women black pants','washed boheme','maggie','dai top','size 36','jeans with a zipper','a pocket 100','men red jeans','leather a pocket','classic straight leg in los angeles dark','slate','italian','back rise 12','ashi cardigan','mid roll up short adara night','deep cantaloupe','men\'s sweater','roxanne in new york dark','clara long sleeve top','s','cody','cropped ankle zip','daisy','a pocket flare womens','roxanne dark wash','men standard black','standard vintage loring','straight leg in mercer','relaxed fit button fly','whisker wash','classic blackout','cordelia shirt','slim fit jeans','roxanne victory','bead','women jeans size 34','mid waist','long legs a pocket','austyn squiggle','black knit','midrise flare','boot cut nakita','long boot','a-pocket short in new york dark','straight leg rinse','skinny with squiggle','lexie bell','skinny new york dark','standard classic straight leg in stretch twill','soil','campaign','austyn twill','denim skinny jeans','denim with crystals','medium wash straight leg','blue jean jacket','a-pocket stretch jeans','daria','short new york dark','women\'s sale','dark flare petite','sale denim mens','catherene','dark grey skinny','roxanne skinny stretch jeans','side zipper','denim relaxed','7 for all mankind a-pocket stretch jeans dark new york wash','black double knit','large','standard sea shadow','women\'s black bootcut jeans','long sleeve shirts','men new york','silk top','long rise jeans','a-pocket-flare','standard classic straight leg black','straight leg women a pocket','standard khaki','classic straight earheart','men straight classic','slimmy in white','graphic tees','size 40 men denim','classic straight leg rinse','slimmy squiggle pocket jeans','36 waist','mens chino','relaxed 36','black label','standard dark blue','los ángeles dark','lexie a pocket petite in rinse','men los angeles dark','black shorts','size 1','dark skinny','belinda','mens standard mercer','cropped gwenevere','austyn loring','mens seven jeans style a','standard classic straight leg in worn mercer','carlotta','austyn relaxed straight leg in chester row','standard 2.0','11','ap179yj05','slimmy slim straight leg in decatur','slim leg','big 7','mens colored jeans','lexie sale','shoulder top','leather bomber','slimmy slim straight leg in white','skin legging','skinny jeans a pocket','colored corduroy','corduroy kimmie bootcut jeans','bootcut jeans women','starburst','crossbody','white cords','wool puffer vest','size 6','all mankind','straight leg los angeles','7 for all mankind mercer','classic straight mercer','a pocket flare with','slimmy with multi squiggle glykas','stacked hem','slimmy chester','long sleeve heathered v-neck','chloee jacket','mens denim 38 sale','austyn long inseam','skinny gummy','a pocket dark rinse','button back pocket','ruby','amber light wash','roxanne skinny in black black','blue jacket','au130y374c','womens classic straight leg','austyn relaxed straight leg in dunsmuir','leather detail','7 for all mankind a-pocket stretch jeans','womens white skinny jeans','aiden tailored gardiner','straight stretch jean','relaxed x-long','standard castaic','an4797f41','leather utility jacket','bootcut alabama dusk','classic blue','cotton polyester','denim extra long','am0038-f20','stretch straight leg','long a pocket','sunrise a pocket','size 30 women jeans','bootcut in black black','skinny stretch velvet jeans','calandra','7 for mankind','slimmy slim straight in new york dark','long rise men','classic fit mens jean','straight leg los angeles dark','shrink','bootcut lexie petite fit','black skinny second skin legging jeans','a pocket with studs','short rise','roxanne skinny in jamshid','leg chino','boys 12','standard classic straight leg in black out','a pocket new york fit','approx inseam 30','boot cut jean in new york dark','bootcut crystal squiggle','carisa','standard classic straight leg in dunsmuir','a pocket straight','a pocket shorter inseam','bell bottom for women','30 inseam jeans','relaxed fit new york dark','straight leg los angeles dark wash','clean','slimmy leg','7msp1105','bootcut stretch denim','slimmy in new york dark','ankle length','14 oz','womens distressed','roxanne jeanette','am9095e81','austyn size 36','mona','studded denim jacket','bootcut blackout','sketchy','stretch legging','bootcut for men','7faxb061','standard classic men','am0146f78','womens 38 inseam','cassara blazer','camille shirt','slimmy slim misawa','mens bootcut in new york dark','30 x 36','mens sizes','gwenevere super skinny knit','standard classic new york medium','black skinny pants','mercer slim fit','skinny with zipper','light mercer','standard classic straight leg in medium new york','40 x 34','dohny beach','low flare','standard twill','mens twill','2% spandex','s s','straight high','blue black wash','an3050wol','standard straight leg in arctic shock','cissy','classic straight los angeles','mens 29','gwenevere dark','34 x 30','caileen','aiden fisherman','38 length','covered belt','austyn relaxed straight leg in dark military','austyn in blutar','colored stitch','7 for all mankind kimmie straight-leg in dark rinse','a pocket stretch womens basics','32-32','storm','7fam','cyzarine','leather women','bootcut our original fit lexie petite fit','shadow black','bootcut in','lightweight chambray panel shirt','ashi','skinny spiced','stretch jegging','roxanne rins','6','slimmy slim straight leg in bainbridge','broken in','standard classic straight leg chino in sea shadow 1','lexie flare','standard dunsmuir','low rise womens jeans','7 for all mankind highwaist straight leg','bell bottom pants','7 embroidered back pocket','mens long denim','stretch contour','waist 25','shades','slimmy slim straight leg chino','super skinny gwenevere in zuma sunrise','long sleeve henley','slimmy porter blue','austyn chester','roxanne nyd','mens size 42','austyn los','slimmy rinse','austyn pants','slimmy dark','signature bootcut','black cords','men 7 jeans','standard in black','austyn la','classic crystal','women 7 pocket','all a pocket','men squiggle','slimmy brick','super soft','a pocket swiss dot','cocoon','covered','mens jean high rise','mens 29 inseam','classic oxford shirt','classic double face check shirt','cwen dress','leopard coat','an9153f07','relaxed in new york dark','austyn relaxed straight leg with a pocket in pemberton','gwenevere fit black','12.5 oz','classic straight leg in adara night with binding','roxanne skinny in california','boot petite','men seven jeans','black cropped','la relaxed','14 relax','mens button fly denim','medium grey','basic bootcut','machine wash','gray a pocket','women\'s high waist straight leg','black boot cut','a pocket flare with contour waist in clean white','sales mens classic 98 cotton 2 spandex','bootcut 100','austyn relaxed straight leg dunsmuir','lexie petite a pocket flare','an0454f38','slimmy concrete','a pocket in womens','long leg womens','a pocket with stones','slimmy slim jean','a pocket pemberton','bootcut slim black','all mens a pockets','crescent heights','straight fit','gwenevere zip','large size','grey corduroy','mens henley','classic straight medium new york','mens stretch jeans','7 blue jeans','standard in los angeles dark','mens original bootcut','bootcut black out','mens tees','straight california','slimmy in cerrillos','multi check tailored shirt','7.5','cait','size 4','a perfect','an4761f41','men accessories','cove','moonstone','classic boot','black trouser','sheen','slimmy slim black','bootcut light','austyn tricolor','classic straight leg in earheart','austyn relaxed straight leg in paso robles','men blue','all','standard straight leg 2.0','blue top','classic rise','7 for all mankind relaxed a pocket in melbourne','city','short sleeve shirt','blue a pocket','seven gwenevere','slimmy new slim','relaxed fit in misawa','silky safari short','standard straight leg in tailored denim','standard relaxed','relaxed gray','standard tailored denim','4 button','mens high waist','ann','classic straight leg with piping in mid manhattan','black in black','standard tailored','camp ashland wash','standard classic straight leg in bainbridge','relaxed 38','slimmy slim straight leg in concrete','austyn relaxed straight leg with a pocket in pemberton 1','austyn relaxed straigt leg in gardiner','bootcut in new york','black skinny denim','contrast stitch','relaxed zipper','standard straight leg in grants pass','classic straight leg in overcast vintage','an5164f65','sugar','gwenevere clean','womens denim shorts sale','seven standard','austyn 2','standard in los angeles','classic straight leg in new york','most relaxed fit','black skirt','women boyfriend','second skin denim','signature squiggle','bootcut jennison','slick','classic straight leg a pocket','mens high waist jeans','skinny in dark wash','carlotta cowl neck sweater','clean pocket dojo','slimmy straight-leg jeans','a pocket tees','mens 34','am9143e12','skinny bermuda short','curve','sits at waist','stretch straight','standard grey','sale mens shirts','sea wash','bootcut clean white','12.75','slim bootcut contour waistband','rich','roxanne azul','skinny baby blue','standard leg','strand','slim trouser new york dark','cactus','29 x 36','an6219-f05','aviator chic styles','a pocket bootcut in new york dark','classic white','sahara crop','classic straight black','black colored mens jeans','slimmy straight leg jean','austyn and standard jeans','lexie petite a pocket flare with contour waist in grey','bootcut fit','waist 44','am0109c71','blue coco','au0041t464','relaxed short','roxanne distressed','bootcut polyester','black top','a pocket with flap','2.0 tracer','au199y','bootcut indigo wash','relaxed fit cairo','roxanne pure indigo','women utility','stretch trouser','bootcut 30','studded belt','shimmer top','am0109e04','size 2','at0265m05','spring twill','long flare','army tee','barrow','straight leg maternity with extra belly flap','blue shirt','an0435d70','dojo flare leg trouser jean','approx inseam 34','austyn relaxed straight leg in simon lake','roxanne in brushed indigo sateen','roxanne skinny new york','stretch pants','skinny azul','standard classic straight leg in royal','bell bottom denim jeans','a pocket clean white','am4132c60','check western','mona shirt','a pocket flare washed pure indigo','cmp bullis','leather sandal','relaxed fit west cairo','medium slimmy','longer length','7 for all mankind rinsed indigo pull-on legging','a pocket with back pockets','roxanne coast','an0318b18','bootcut pure indigo','gwenevere-skinny','bootcut stretch jeans washed pure indigo','completes','7 for all mankind gummy gwenevere leggings','austyn with 3d squiggle jean','a pocket oceanside','austyn 2.0 in misawa','roxanne skinny single anchor','slimmy squiggle pocket','supima rib tank','reflection romper','am4134c36','dip dye shirt','standard micro squiggle','silk drawstring pants','rumor','slimmy in bezmer','austyn in white','bootcut dark blue','slimmy in inky acid','an4767f49','sale boots','slimmy slim straight leg with ghost squiggle in sangley point','an0408d61','straight leg sunset coast','washed out slimmy cargo','contrast twill leather hoodie','bootcut maternity with extra belly flap in new york dark','mens short sleeve shirts','studded diamond dress','straight leg clean white','an4613d04','men red','a-pocket boot cut jean','slimmy in','an0405d61','slub jersey','am5093c14','blue cat','am5104c25','am0038c75','am0121c79','am9119c62','am0104a35','a pocket vintage california','am6084c22','stripe scoop top','summer jeans','blue tar','slimmy lackland','a-pocket-relaxed','stretchy','white denim a pocket','chunky cardigan','clean white short','crop twill','black cargo','standard charcoal','button short','shirred','slimmy slim straight leg in stretch twill','a pocket white jeans','white rolled shorts','copper a pocket','standard zip fly','size 11','slimmy organic','standard distressed jeans','standard in desert dune','standard medium straight','boyfriend white','slimmy clay','marilis','shadow sweater jacket','straight leg twill pant','mixed yarn long sleeve','striped bias pocket polo','bleached marilis 3','cpisrno','standard 33','slim stretch trouser','standard classic straight leg in lackland','an0416d51','black or grey jeans','slimmy dark indigo','classic crop','boot cut black men','austyn relaxed straight leg in desert dune','a pocket flare in nakita','roxanne flood classic skinny','standard classic straight leg in new york dark long inseam','austyn los angeles dark long','boot cut indigo','rhigby button fly','bootcut in medium','an4682bb39','bootcut vintage nakita','roxanne with peekaboo ditsy print in destroyed adara blue','standard denim jeans','roxanne with peekaboo','an4562b20','collection vintage patchwork standard in antiparos','ribbed tank top','7 premium','roxanne crystal pocket','austyn relaxed straight leg in melbourne','bootcut washed pure indigo','coated twill bomber','am4149c38','skinny light wash','skinny knit','slimmy 100%','relaxed fit bootcut','clear gray','a pocket vintage courage','standard in winter grey','clean a-pocket','brushed sateen','black sateen','womens boot cut denim','rugby stripe tank','scoop','white linen','sits on hips','round scoop pocket short','an4614d04','a pocket new york men','crops sale','roxanne skinny grey','a pocket wide leg','slimmy boho','relax no break jean','slim thigh','sale only','low boot cut','basic bootcut jeans in new york dark','scoop neck jersey top','a pocket rinse','sdmj4184oh','standard in blue','mtlc wash','a pocket relaxed sleepwalk','slimmy with updated slimmy squiggle in riverbluez','se1h3401so','mirror','size 13','men denim slimmy','women\'s white jeans','a pocket boot cut jeans','seamed tunic','slim skinny','28 slimmy','relaxed in west cairo','straight leg maternity','a pocket relaxed in sleepwalk','slub tank','slimmy in black white','women military jacket','standard nakita','classic womens jeans','slim fit bootcut jean','cord top','slimmy desert dusk','relaxed in charred','seven logo','light jersey tank','silk drape dress','mesh top','superfine','stvb4377','standard grayling','standard with ghost','canvas belt','standard in night cat','austyn la wash','stmj4185g','austyn white collar','austyn street','standard ghost squiggle in rebourn','slimmy in night','sale boot cut','slimmy in walker park','an5112b02','straight los angeles dark','stripe and cuffed shirt','3 4 sleeve pullover in black','lip','scoop neck','standard 31','slimmy riverbluez','rhigby freshwater','a pocket with contour waist','lexie oleander','relaxed x-long in rainy indigo','7 for all mankind jeans austyn','ruffle jacket','darkblue','austyn stretch','a pocket in soleado','a pocket vintage port','relaxed chester row','relaxed in nakita','rugby stripe cardigan','dojo shorter','boot cut in new york','chunky cowl sweater','slimmy montana','dina','crew neck sweater','austyn perforated','an4530a98','standard polyester','rolled tux gwenevere beecher','bordered','sale sweaters','a pocket bootcut in beachwater','straight leg provocar','standard 98','bootcut no break jeans','brown a pocket','relaxed rainy','denim 25','bush','bootcut 7','bootcut in new york dark shorter inseam','austyn in chester row','austyn in west cairo','collaborations','roxanne blue','a pocket new york wash','a pocket boot cut in beachwater','long t shirt','austyn ghost squiggle in stormy night','a pocket fit flare','men 33','bootcut ghost squiggle','a pocket new york shorter inseam');
/* $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);
    }
