/* Popular phrases - BASSETTFURNITURE - 18:56:3, Fri Nov 20, 2009 */
var asPhrases=new Array ('chair and a half','sleeper sofa','crib','leather sofa','sleeper sofa clearance','coffee table','queen sleeper sofas','sectional','camelback sofa','bar stools','sleeper chair','desk','armoire','grayson','recliner','sleeper loveseat','leather sectional','sofa','ottoman','sofa table','loveseat','baby cribs','sonoma','sleeper','grayson bedroom','guilford','twin beds','media chest','sectional sofas','round dining tables','bookcase','bench','hanover','redin park','leather recliners','covington','chairs','console table','club room','5th avenue','elway','full bed','custom classics','king beds','cu2','swivel chair','sofa bed','mirror','leather chairs','baby furniture','end tables','easton','cocktail table','alex sofa','fremont','louis philippe','chatham','wing back chairs','dining table','headboards','brewster sofa','club room sofa','credenza','hudson','twin sleeper','sleeper sectional','southport','dillon','5th avenue bedroom','stool','alex','baby','easton tables','tight back sofa','hudson leather sofa','sonoma sofa','buffet','chest of drawers','redin park bedroom','custom sectional','cocktail ottoman','counter stools','louis philippe dining','5th avenue dining','nailhead leather sofas','jefferson sofa','king headboard','recliner chairs','high back sofa','brewster','john elway','parsons chair','fremont leather sofa','bassett baby','slipcover','cu2 sectional','nesting tables','beds','mercer','leather loveseat','king sleigh bed','guilford modular storage','storage bed','leather tufted ottoman','evert','reclining sofa','covington bedroom','fabrics','queen storage bed','southport bedroom','hanover entertainment','giselle sofa','fairfax','chatham bedroom','dillon sectional','bishop swivel chair','louis philippe tables','mercer sectional','guilford desk','dresser','covington dining table','bellewood','slipcover sofa','glass coffee table','reclining loveseat','leather ottoman','reef bay','carlyle sofa','west end','chaise','storage ottoman','bunching tables','evert motion sofa','guilford work spaces','hanover credenza','louis philippe bedroom','chaise lounge','redin','sofa and loveseat','elway sectional','cabinet','tate sofa','gramercy','platform bed','fabrics for sofas','nightstand','wing chair','glass top tables','sleigh bed','dempsey','glass end table','ottoman cocktail table','guilford tables','slipper chair','console','leather sofa and loveseat','coral key','reef bay dining','chair with ottoman','coral key bedroom','grayson secretary','curio','upholstery fabric','lingerie chest','california king bed','leather reclining sofa','tate','oxford recliner','hanover tables','belmont sofa','oxford chair','rugs','mirrored chest','garrett','cu.2','crib beds','berkeley','hudson sofa','sanders sectional','elway sofa','hutch','china cabinet','buchanan bedroom','elway table','giselle','hanover desk','redin park dining','chair and ottoman','tray table','jefferson','bryce chair','custom ottoman','cu2 sofa','townhouse sofa','loveseats only','king poster bed','entertainment unit','accent chair','louis philippe desk','sullivan sofa','dempsey sofa','classic elway','redin park media','motion sofa','sectional sleeper sofa','cassidy','louis-philippe bedroom','twin','garrett leather sofa','fincastle','woodberry','oxford','secretary desk','elway recliner','riverdale','round cocktail table','pub table','cassidy sofa','office desk','dillon leather sectional','duvet','covington credenza','mattress','dining chairs','pedestal table','easton sectional','louis-philippe','buchanan','swivel','hudson recliner','eleanor chair','king mattress sets','black','upholstered headboard','claridge ottoman','sanders','nail head sofa','riverdale sofa','louis philippe entertainment','jefferson loveseat','brewster chair','cedar chest','louis philippe media','club room chair','manor','baby beds','secretary','tables','alex chair','grayson bed','huntington sofa','tv media','accent chest','hawthorne tables','elway elite','reclining sectional','wardrobe','bishop','riverdale chair','guilford collection','fleming chair','leather sleeper sofa','white','4469','7306','kittery bay','clearance','sonoma tables','caldwell accent chair','slate end tables','jewelry chest','counter height table','media','ottoman\'s','changing table','amherst chair','redin park end table','upholstery','manor sofa','lounge chairs','monticello sofa','lancaster chair','7306-62','ottoman with storage','grayson upholstered bed','wall unit','club room loveseat','custom upholstery','coffe table','preston','sideboard','wine','chair and a half and ottoman','fremont loveseat','china hutch','entertainment wall unit','entertainment armoire','leather dining chairs','wall mirror','dawson','dawson chair','tall chest','bombe chest','elway entertainment','covington media','guilford entertainment','king beds clearance','grayson table','bakers rack','hudson chair','hanover tall media cabinet','easton console table','leather bench','easton end table','dillon sofa','easton cocktail table','covington dining','hanover resource center','cherry end tables','bench seating','acacia','lancaster','trent','rocker recliner','guilford credenza','fairfax sleigh bed','leather parsons chair','chifforobe','guilford end table','corner entertainment wall','tv credenza','trunk','reef bay ottoman','headboard only','4776','sonoma credenza','kent','panorama sofa','fincastle tables','traditional sofa','townhouse','9776-0856','white desk','sonoma chair','avery chair','elway classic sectional','round ottomans','sectional sofa with chaise','abingdon','alex chair and a half','cobblestone sofa','corner desk','pillows','carlyle','3846-62','king storage bed','3408','cu2 chair and a half','mercer right chaise sectional','office chair','cobblestone','bedroom','custom dining','2117','king mattress','computer hutches','louis philippe credenza','scarlette accent chair','charles of london arms','harper side chairs','sullivan','9776-0772','changing','warranty','file drawer','baby collection','rocker','fleming','white beds','mattress sets','etagere','gaston chair','loft sofa','warwick','upholstered dining chairs','art','huntington','fremont sectional','1646-02','display cabinet','full bed headboards','enzio','sonoma console','redin park table','preston sofa','round coffee tables','desk with hutch','fairfax bedroom','loft','bar chairs and stools','media cabinet','tv','3811','garrett recliner','canopy bed','round end table','full mattress','lift top coffee table','sonoma bedroom','elite elway sectional','6376-0613','lamps','stratford recliner','cassidy chair','cal king beds','kendall spindle bed','abingdon glass top table','wine rack','hudson loveseat','rubix','eleanor','loveseat sleeper sofa','white dresser','rattan','alex sleeper queen','easton round cocktail','5th avenue bench','3858-62','floor lamps','2455','west end mirrored hall chest','finishes','6a00-a642','dining table with leaves','guilford cocktail table','9630','media sectional','6039','weston sectional','magazine caddy','cu 2','custom dining table','loft sectional','hidden storage','guilford custom storage','custom classics sectionals','latex king mattress','sconces','redin park bed','table lights','9776','chair bed','covington bench','jefferson chair','home office','windsor chair','6729','arm chair','computer desk','manor sectional','louis philippe console table','9205-0856','hudson sectional','2776','club chair','estate sofa','covington bed','garrett chair','cooper ottoman','swivel bar stool','entertainment credenza','hawthorne','jefferson chair with legs','olympia bay slipper chair','clifton chair','caldwell','weston','tall media cabinet','claridge','2417','deville chair','indurance','oak table','3848','5th avenue credenza','chatham armoire','motion','bar chairs','brewster loveseat','wine cabinet','monticello','avery parsons chair','custom classics loveseat','baldwin accent chair','bassettbaby','accent tables','custom bed','covington table','2639','twin mattress','queen panel bed','redin park media chest','floor mirror','5th avenue bed','lateral file','3638-05','marble top','mercer ottoman','desk chair','3676','cherry dresser','hanover office','6729-k649','coral key sleigh','gathering table','grayson poster bed','mirror clearance','legend','cameron chair','1825-02','belmont','evert loveseat','1825','panorama','1953','elise accent chair','3850','giselle loveseat','9860-0854','small desk','alex loveseat','cherry','6376','new american living chair','clifton','bellewood bedroom','estate','evert glider recliner','6620','3611','sofa\'s','elway home','tv armoire','guilford storage','southport desk','3850-72','bedside table','chandler','round cocktail','hudson ottoman','3676-62','4469-0386','westover chaise','dunhill','2417-0237','1978-02','entertainment wall','3431','sommersby accent chair','2639-0272','bishop chair','sonoma media','bishop swivel','saw horse desk','wood sofa','4469-5454','grayson coffee table','lift top','6620-0641','1853','cooper','reef bay end table','library','cameron sofa','9776-k258','2702','poster beds','3950','louis phillipe','2639-0228','cocktail coffee tables','custom dining chairs','striped chest','hall table','cu.2 sectional','sonoma cocktail table','grayson hall chest','8000','4469-0688','9776-k835','sleeper sofa\'s','3674','chatham storage bed','writing desk','southport armoire','counter chairs','woodberry end table','glass tables','bellewood tables','3246-62fc','hanover leg desk','6550','grayson demilune','fremont recliner','amherst accent chair','chatham panel bed','coral','3904','wool rugs','reader\'s night table','demilune','king size beds','4000-72t','bench ottoman','gramercy bed','4727-k545','sullivan recliner','easton bunching tables','dillon recliner','cu.2 sofa','vogue','giselle chair','twin headboard','1644-02','club sofa','discoveries tropez bombe chest','hanover cocktail','6273','tate loveseat','vancouver chair','9630-0856','2727','black bed','fremont media sectional','king','queen bed','huntington chair','sofa seat cushions','enzio chair','fabric sofas','cobblestone loveseat','dempsey chair','michelle','3508','66a9-0620','3906-62','computer cabinet','6273-0641','6620-0665','woven chair','chandler accent chair','bassettbaby cribs','fairfax mirror','3854','parson','amherst','clearance sofas','4469-t48l','elise','pierce leather chair','leaner','twin sleeper chair','6273-0698','6322-g613','living room','dillon motion sofa','slate top table','counter height dining','2402','6376-0698','elite','upholstered bed','sectional with chaise','9455-0848','deville accent chair','logan recliner','allegheny plaid','6a00-a668','west end clearance','table lamps','3703','3721','broadway accent chair','counter height','occasional tables','reef bay dining chair','6376-0665','3852','queen headboard','3638','3246','shelter island slipcover sofa','2927-0237','baxter office chair','buchanan sleigh bed','4469-3838','butterfly leaf table','demilune console tables','fabric choices','9860','square cocktail tables','6550-0699','6a68-d626','jewelry','keaton','monticello loveseat','2860','lift-top coffee table','credenza\'s','avery dining chair','2417-0272','harper arm chair','3908','6729-wkit','vancouver','covington king sleigh bed','home office desks','kent chair','stratford chair','4547k565','6205','7000','6a00-a643','leather chair and ottoman','conversation sofa','4000','greencroft nesting table','michelle striped chest','slipper','1494','6729-0699','woodberry console','cooper sofa','fincastle cocktail table','round dining table with leaf','round','1000','club room ottoman','white chest','fremont sofa','1953-02','queen sleeper','2455-b257','nailhead sofa','covington cocktail','3904-62','cooper chair','48 credenza','charles of london','lingerie','easton coffee table','leather chair with ottoman','hillstone','easton sofa','2639-0237','fabric recliners','2869','vancouver accent chair','3848-lsect','bryce','southampton','swivel accent chair','leather bar stool','track arm','3674-12','9547','covington lift top','grayson media chest','fremont chair','blanc de chine','4776-a451','wing','townhouse sectional','office','club','down filled','6737-0613','manor custom','round table','vienna headboard','club room leather','coffee table with lift','lawford dressing mirror','california king','slipcovered chair','kittery bay woven round cocktail table','sofa with chaise','4927','cu-2','studio sofa','bellewood end table','cube','3246-62','louis-philippe dining','custom classics ottoman','wilson','woodberry round book table','latex mattress','display','6429-k535','6429','3809','hurricane','cu2 loveseat','dawson accent chair','discoveries tables','baldwin','6205-0613','motion loveseat','media table','hanover end table','abingdon stone top cocktail table','3906','kent fabric chair','quilted teal pillow','1000-s2','7306-3','oxford accent chair','club room queen sleeper sofa','chairside tables','dawson ottoman','4455-4083','black media','tate chair','1933-02','small sofa','greencroft','8000-72t','2927-k135','claridge leather','1815-02','pierce','mercer 3936','6039-0672','table leaf','bunching cubes','7306-12','pebbles','3852-12','unique treasures','3825','2547','sullivan loveseat','harper dining chairs','bar saddle stool','6a69','6271-0605','6648-0641','jasmine accent chair','1496-02','bachelor chest','elway console','leather swivel chair','yaletown','gaston','kitchen stools','4469-7010','classic','4469-4260','clifton recliner','olympia bay','3852-72','6455','queen mattress set','alex sleeper','9376','oxford leather recliner','curved sofa','fincastle display case','6550-0613','woodberry open bookcase','guilford writing desk','buffet lamps','nail head','woodberry cocktail table','2658','3908-12','garrett ottoman','leaf','3721-49mc','platform storage bed','8302-d008','john elway recliner','canopy','3825-62','cameron','2702-62','67a2','stratford','2117-0270','club room recliner','acacia coffee table','2776-0265','deville','9455','66a9-f699','hathaway','1650-02','k138','1911-02l','scarlette','charging station','tall media','redin park bunching','abingdon console','2547-0257','4469-0685','clearance bedroom','chestnut','sweater chest','dressing table','leather headboard','3674-62','natalie sofa','4469-3660','2500-k159','leather sectional sofa','easton bunching','sonoma ottoman','wilson chair','chatham bureau','barrel table','baldwin chair','clearance chairs','6378','oxford leather chair','media storage','4469-2685','6860-0615','4860','9376-k812','1497-02','bamboo','bureau','sonoma dining','redin park poster bed','avery','2776-m254','3721-62mc','8490-i045','dining','1494-02','4700-k685','4469-2000','unique treasures crib','chaise sectional','black bedroom','6a00','9376-kt32','brewster ottoman','6378-k615','storage boxes','warwick storage','custom classic studio sofa','2688-0271','grayson dresser','1000-01','hanover console','charger','louis','3655','american','1553','4547-0944','6a69-0641','american home','reef bay cocktail','3811-62ls','mansion bed','1853-02','side chair','redin park bunching tables','6729-kl44','reef','1945-02','4469-3000','hudson bench','2834','4469-4848','67a2-d698','1939-02w','custom classic chair','covington panel bed','cu2 chair','berkeley console','bombe','66a9','entertainment','queen sleeper sectionals','harper','mahogany','houndstooth','3936','6039-0671','6729-0640','1553-02','sloan end table','3948','hanover 48','9376-0881','2776-0252','9547-0848','leather colors','accent pillows','3827-62','1981-02','louis philippe dining chair','guilford home office desk','cu 2 sectional','houndstooth pillow','4260','carlyle chair','9205','6455-0641','62','6729-0661','computer','covington king panel bed','rain rug','5th credenza','3934','bed headboard','counter saddle stool','813p','riverdale ottoman','square dining table','dempsey leather sofa','6620-0630','rubix storage cube','caldwell chair','6455-0699','full','jasmine','cushions','counter table','2639-0252','2702-12','6547-0616','1497','2455-0271','6648-0614','wardrobe armoire','2417-k159','woven dining chair','discoveries chest','winston','media credenza','dunhill console table','black damask','esprit','cedar','swivel counter stool','custom classic sofa','6737-0665','1915','fabric sectional sofa','6363-0699','brewster queen sleeper sofa','6339-v643','9376-0810','covington queen panel bed','classic elway 3508','guilford double stacking','shelter island','rings','4469-1000','brewster twin sleeper','3938','custom bench','8420-k567','oval table','round leather ottoman','dining room chairs','cobblestone chair','1945','custom upholstery sectionals','saddle stool','guilford wine rack','3927-62','8214-u623','cu.2 l-shaped sectional','bacall','twin mattress set','2869-0218','4469-t54l','3506','louis philippe chair','elway home credenza','6729-kl32','2734-0273','triangle table','6322-g699','2927','2927-0242','3805-12','4752-4272','6729-0613','elise chair','townhouse custom uph','natalie','guilford console','kidney pillow','storage library','6322','1931-3','8214-u078','2776-0255','9630-0772','file','reclaimed','6550-0640','devon','devon ottoman','2547-0270','tradition bed cherry','motion sectional','meridian chinoiserie bar','wood frame sofa','redin park console','chatham headboard','4469-4000','3850-usect','3856','3848-72l','custom townhouse sectional','redin park buffet','elway cocktail','bedroom dressers','8301-o443','8110','shibui','cobblestone leather sofa','wood top round cocktail','storage wine racks','chatham lingerie','media chairs','2702-18','oval pewter clock','8301-p739','secretary style desk','67a2d698','sonoma collection','rectangular coffee table','broadway','67a2-d668','7408-92','1005','3637-05ls','8130-f054','camel back sofa','l sectional','2547-k159','1921','java','2734-0257','9455-0772','9376-0683','rectangle dining table','2500','6547-0613','2117-0228','grayson cocktail','lift top table','storage cocktail table','glass furniture','king bedroom','elway credenza','paisley','john elway tables','hanover sofa tables','1215-8','4700','fairfax poster bed','9376-0856','bluffton','estate chair','cherry bed','china','full sleigh bed','6729-w613','louis philippe armoire','bed with drawers','chatham nightstand','sofa with recliner','1965','lawford mirror','6455-0665','broadway chair','6729-k256','china buffet','louis cocktail','4263','cameron ottoman','louis philippe coffee table','kittery bay bedroom','k606','office hutch','fabric sectionals','pheasant','fairfax dark cherry','6363','evert glider sofa','prescott mirror','kathy ireland','shag','2869-0254','baxter chair','sonoma dresser','credenza with hutch','2547-k153','antique brass box','wood','small china cabinet','cottage white','ascot paisley bedding ensemble','post bed','2402-d231','louis xv','discoveries round table with brass plating','leather wing back','sullivan motion sofa','oxford 1496','chatham lingerie chest','desmond','3408-62ls','horse','garrett sofa','easton sleeper','2776-0259','2402-c242','delfina','huntington loveseat','kara bedding','66a9-f671','3508-62sectl','grandeur','landscape mirror','white bedroom','2547-k150','811p-u011','townhouse loveseat','6429-k934','3950-62mp','cruz chair','philippe','giselle ottoman','office cabinet','vogue recliner','4547','trunk end tables','4752','wing back','barrel','leather storage ottoman','mission crib','vases','9376-k881','continental sketchbook','custom leather','sunroom','tufted ottoman','9630-0810','sofa attached back','0810','4727','gaston ottoman','leaner mirror','motion leather','3938-62ls','3834','6363-0661','8410-e815','lamp shades','hawthorne lamp table','1644','4423','dempsey leather','riverdale loveseat','twin sleigh bed','2455-0237','6729-0665','hanover 65','8212-q002','5th avenue headboard','readers','8302-c001','5th avenue panel bed','8211-u008','jaipur','woodberry tier table','810p-u142','tight back sectional','8ael','0272','6c00-c761','8214-u075','8110-v443','estate sectional','6429-k517','3711','8110-v483','8450-y015','9547-k856','8110-u005','6322-0613','2927-k150','1944','0252','8213-u049','8120-v445','ladderback chair','sofa chair','sonoma entertainment','8130-v344','pierce ottoman','8490-w075','cassidy ottoman','3825-12','heirloom','8440-z153','8301-p742','medallion rugs','8450-k998','2860-0273','8410-i010','9405','heirloom collection','a642','8302-l029','2737','1009-02','4547k55c','8470-i866','8440-z104','arch','8212-i063','cherry dining','6647-0278','round glass coffee tables','television','redin park console table','3637','cherry finish bed','810p-u121','commode','6273-0665','8450-k216','1494-3','coral key bed','guilford office chair','dining bench','classic elway recliner','91-172','4860-0647','barcelona','4469-4263','covington bureau','grayson nightstand','oak dining table','granite','6c00-c605','grayson chippendale stand','5000-72t','65a9-k610','1652','6264-0641','2860-0270','allegheny plaid bedding','southport mirror','cu2 leather','limited lifetime warranty','l shaped sofa','fleming chair fabric','crystal lamps','leather sofa with recliner','3838','townhouse chair','meridian','lawford','tray','cube tables','2688-k159','martha\'s vineyard','2117-k264','right chaise sectional','brass beds','coral key sleigh bed','redin park credenza','west indies','new american living','2734','1646','southport double dresser','devon accent chair','1605 chair','stella mirror','8110-f016','twin sleeper sofa','5000 sectional','2927-0252','4776-m356','sofie mirror','extendable tables','hillstone chairside table','1945-01','tripod end table','pebbles mink','custom table','southport panel bed','plantation bed','812p-u012','2455-k173','woven loom chair','theater','covington cabinet','empire','oatmeal linen magazine caddy','vertical stripe chest','6c00c761','discovery bombe chest','southport drawer chest','prices','olefin','grayson lamp table','reclining sofa sleeper','organic','cabana','3858-72s','pitcher','8301-bc12','scarlette chair','3613','l-shaped sectional','natalie loveseat','1553 broadway chair','3805-62','3858','black furniture','reef bay table','6a00-d698','clifton wing chair','home office cabinet','camelback','monticello chair','custom furniture','sonoma loveseat','1953-02a','2776-0242','wallsaver','1996','fleming ottoman','shades','country sofa','2776-0228','3934-62ls','6547','3838-62','1745-02','sleigh','dream maker','iron','counter','elway cocktail table','3660','duchess','vienna','3846','avenue','bed covers','4727-k450','throw','square coffee table','6205-0665','6620-0605','4776-2453','4423-0687','new','iron age','garrett loveseat','round lamp table','6729-kl34','cu2 3850','sonoma counter stools','chair and one half','chester floor lamp','easton sectional sofa','2734-0251','chinoiserie','1737-02l','louis philippe cocktail','southport full bed','walnut table','cottage bedroom','louis sleigh','paladium mirror','8450-z268','oak nightstand','animal skin','pedestal desk','demilune console','guilford open entertainment wall','elyse duvet','oval dining table','hanover pedestal','quilted teal','louis-philippe collection','cherry entertainment','3848 sectional','trent round table','manor chair','chaise sofa','4469-0357','oak credenza','6376-0699','desk table','6664-0640','avon','elite recliner','4776-kb54','1947','alfresco rug','gaston accent chair','leather sleeper','dempsey ottoman','redin park bunching cube','queen bed with storage','9776-k856','black armoire','deville ottoman','triple display','7524','tufted chair','dining table to seat 10','redin park entertainment','2734-k171','812p-u011','3246-12','bamboo table','cosmopolitan','redin table','covington panel','gabrielle mirror','custom pillows','iron table','woodberry tables','6455-0625','4542-e648','1605-02','oak bed','coral key chest','guilford triple','1931','0856','spindle bed','oak dresser','1005-02','6376-0615','fabric selections','5th avenue table','1737','bedroom desks','oak entertainment','trent round accent table','mansion','1009','glass and brass end tables','redin console','covington chest','parsons counter stool','2639-0271','9547-0856','1421-02','9927-0856','chairside end tables','6647-0615','9630-0848','easton oval','miriam slipper chair','upholstered bench','chase mirror','fabric chairs','3856-62','accessories','tapered rectangle table','toile','3669-02ls','5th avenue sweater chest','1737-02','3669','cassidy loveseat','5000','tripod','2639-k137','artist studio','3721-62-mc','1815','guilford office','fabric loveseat','3601','black chest','welby floor lamp','9776-k835w','8110-f159','2927-0272','4775','elway home stone','safari rug','louis philippe hall table','black lamp shades','u shaped sectional','hinges','hanover 48 credenza','1421','leather sectional recliner','continental','richmond lamp','mirrored armoire','fincastle display','6729f683','6376-0671','veneer panel bed','kittery bay woven','windsor table','studio loveseat','6729 k649','hanover cherry','rustic table','metal chairs','west end tier table','reef bay ottoman cocktail table','9205-kb56','desk hutch','alex ottoman','hampton','9376-k856','trestle dining table','3805','hanover media','hidden drawer','metropolitan','1933','4469-7000','8110-u028','2776-k159','bluffton chair','full headboard','1703','1939','pierced urn','covington tall media cabinet','timber creek','bryce ottoman','gabrielle','cu.2 leather','1703-bn','3811-msectls','x','covington china','weston chair','kara','7524-62','6665','4776-1452','damask','slate table','leather cocktail ottoman','hanover home office wall','91-102-9120','rain','redin park charging','antique silver','sable','dressing','6729-kt42','solutions','lift table','pad','wrought iron','handmade','9630-k865w','headboard footboards','total rest plush','demilune sideboard','3839','6c00-c642','seat','0683','black desk','4737','slate','pedestal dining table','3846-12','6648-0698','suzani bedding','abingdon table','manhattan','2927-0238','casual dining','3850-62','covington 48','3856-12','caldwell ottoman','aspen','4547-0281','5th avenue nightstand','4776-4676','coral key louver','rattan tables','covington bedside table','leather bed','kent leather accent chair','813p-u022','cu2 ottoman','square ottoman','1000-00','kendall','oval coffee table','4469-4444','sr-138','mercer right chaise','three drawer chest','bedside chest','covington nightstand','vancouver 1853','welby lamp','elway console table','hanover 56 desk','6647-0604','double bed','redin park round cocktail','alex sofa bed','3850-s2','1915-02','5th avenue round','louis philippe buffet','1947-01','caldwell accent','colors','6 drawer chest','seat and a half','brown','1933-01','0386','6860','hudson leather furniture','hanover door base','medallion','810p-u141','hanover display library','workspaces','3711-01','2860-k159','firm','leather sets','plank','grayson box on stand','barcelona headboard','nail','6455-0643','latex','leather top desk','enzio accent','queen platform bed','cherry king bed','box','shelter island slipcover','home office wall','grayson round lamp','3711-62','reynolds table lamp','buchanan panel bed','cu 2 chair','9455-0859','48 round table','chatham dresser','8490-i075','cal king headboard','6363-0641','k159','2727-0252','southport tv chest','5th avenue chair','9630-k823','square end table','elite elway 3506','8uge-1174','1981','water mill','round dining','810p-u122','black cherry','hanover open hutch','glen haven','8213-u003','conrad','guilford drawer','3854-12','studio','china top','1816-02a','2734-0231','44 pedestal table','west end mirror','6860-0665','flanders mirror','round hall table','home entertainment','2402-u209','cu.2 chair','cal king','4469-4466','1986-cl','writing table','6378-0613','legends rug','6039-0698','3908-62','elway end table','8110-f040','silk pillows','6547-0671','leg desk','distressed','redin park dresser','redin park storage bed','memory foam','3195','0270','medium cherry','8490','kensington','4469-0687','elyse','5454','2776-0272','redin park round accent table','2688-0237','2727-0242','louis credenza','elway motion sofa','padded bench','craft desk','round fabric ottomans','plaid','twin bed headboard','full length mirror','barley twist','recliner warranty','square coffe table','ansley mirror','water mill chair','custom classics studio','1921-750-5x8','2402-kc33','double credenza','custom chair','1917-02','metal tables','kittery','custom accent chair','hanover coffee table','1948-02','fairfax bed','louis-philippe mirror','louis-philippe end table','dempsey loveseat','new american chair','louis-philippe chair','white tv','jefferson ottoman','custom headboard','1000-ro','1605','black headboard','sloane table','richmond','2776-0237','easton oval cocktail table','office wall','king size storage bed','guilford chair','seats 10','plantation','louis philippe chest','suffolk','elway home sectional','covington media chest','8302-d004','leather arm chair','4776-a450','nickel','grant','hanover storage','manor large','sommersby chair','1945 dawson','open entertainment wall','chatham king size panel bed','louis philippe sleigh','full sleigh','lamp base','club room leather chair','stackable shelves','3927','6264','4455-k356','3948-sect','wilson stool','hawthorne end table','mattress warranty','2455-0251','3506-sectl','811p','covington entertainment','8490-e847','starburst','6378-0641','3436-6','hanover pedestal table','buchanan sleigh bed full','louis-philippe wardrobe','acacia cocktail','36 round table','6647','custom sofa','guilford executive office chair','west end mirrored chest','woven loom','67a2-c625','patina','6378-0665','clearance desk','chairs with casters','1496','jameson','6205-0699','6665-0615','low profile beds','7000-62t','tapered table','oatmeal','welby bronze','chase','chester','4752k606','desk top','8213','jar','classic motion','2776-kc38','locking file','oak china','brass table lamp','blue and white','camelback sleeper sofa','hexagonal bamboo','4737-k476','counter bar stools','teal pillow','1911','kendal','6039-0678','kittery bay end table','cu','2800-k139','black dresser','west end hall chest','fincastle nesting tables','cruz','2639-k138','1562-02','cube ottoman','baldwin 1965','6363-0640','reef bay console','reclining wing chair','coffee','theodore','4776-kb46','2000-bf','6039-0605','kt32','italian leather','pedestal','tobacco','amherst ottoman','8110-f156','table for 12','0772','8110-v342','6729-k81r','2639-0231','chatham poster queen','reef bay accent table','sonoma end tables','dresser drawers','butterfly','barrell table','rush seat','elway warranty','jacobean','caribbean','redin park king storage bed','top grain leather','lift up coffee table','small tables','arched mirror','captain chair','executive','welby table lamp','clearance coffee tables','logan','louvered bed','hanover tall media','2869-k159','bachelor\'s chest','3601-3','2727-0237','gramercy chest','design sectional','club chair recliner','evert recliner','6322-0699','2800','club room leather sofa','8213-u067','sullivan 3950','taylor','lift top cocktail table','redin park mirror','modular','6648','contemporary end tables','tufted','8301-l008','3613-12','leather motion loveseat','southport desk with hutch','coral key commode','ladderback bar stool','cu 2 loveseat','espresso nightstand','3838-02','9860-0870','3711-12','coral key door commode','6455-0605','fremont ottoman','nesting','michelle chest','chatham king bed','wilson leather chair','nadira','hanover end','easton sofa table','1988-oce','china blue','louis philippe tall media','2869-0252','1948','king panel bed','8301-j391','6339','decorative tray','fremont leather','3613-01','7408','leather living room','2927-0259','legends hollis rug','custom dining table legs','accent console','hanover 9630','woodberry tiered server','k376l','nautical','6271-0641','guilford corner desk','3834-62','leather collection','4423-4444','glass cocktail table','richmond table lamp','gramercy nightstand','1917','6929-k678','leather cube','king platform bed','walter','3948-sectw','3948-0w','1650','poster','3544-3l','8130','stone top table','1978','6378-0699','1817 avery','3196','2547-0228','fabric headboard','8212','9630-0812','leather counter stools','3544','8301-l018','english garden','1976','dub','8301-d111','caramel','leather media sectional','occasional','91-120-9501','1817-02a','louisphillipe','6239-w604','new haven changing table','king canopy bed','buchanan bed','2869-0262','grandeur rug','ebonized oak','hunter toile bedding','8000-72-t','1652-02','lantern','oxford ottoman','covington lift','3438','asian','hanover credenza with hutch','coral key dresser','8440-n885','safari','2658-k150','4702','walnut dining','covington side chair','centerpiece','louis-philippe table','4469-0682','grayson bedside table','rolled back sofa','cherry sleigh','cherry credenza','king buchanan bed','black console','1494-3lf','3 drawer chest','spindle','redin park nightstand','west','6729-k812','cu-2 sofa','evert sofa','louvered','covington sleigh bed','5000 sofa','louis philippe cocktail table','resource center','media hutch','natalie ottoman','slate coffee table','grayson cocktail table','covington demilune sideboard','4469-3636','custom uph townhouse loveseat','clifton ottoman','louis philippe console','miriam dining chair','dining chairs with rush seats','3655-12ls','813p-v640','1911-02lf','6729-k810','monica lamp','3948-62mw','1999','3544-3','guilford console table','monica','3506-6','sofa with skirt','pierce chair','1494-01','covington round table','magazine','custom storage ottoman','needlepoint','self storing leaves','stafford arch mirror','56 sonoma credenza','alex 2702','louis philippe pedestal desk','louis philippe king bed','modular storage','leather loveseat sleeper','twin poster bed','modular sectional','reynolds','redin park coffee','mystique rug','guilford coffee table','tropez bombe','4700 reef bay','chatham storage','tiered server','1817-02','6429-k334','persian rugs','4455-k451','4547-k55c','redin park china cabinet','fremont queen sleeper','fremont leather recliner','3196-12','charles','9125','3721-9s','2000-bn','reynolds saffron lamp','1007','motive bedding','elway home console table','guilford double credenza','sonoma bed','9205-k856','hudson storage ottoman','6429-k306','easton console','baby changing table','antique brass','gathering','custom loveseat','distressed leather','furniture warranty','m390','new zealand wool rug','jute color','1948-02l','chairside tier table','oak king bed','1947-02','2402-d227','2658-k159','acacia end table','gramercy panel bed','white twin bed','5th avenue china','media ottoman','lanier','welby','desk lamp','tapered rectangle','redin park tall media cabinet','covington low poster bed','hanover hutch','louis philippe side chair','6322-0671','t54l','round pedestal dining','west end tier','cameron loveseat','pillow sham','3927-12','54lg','white nightstand','woven table','zac','6264-0665','woven','white queen bed','discoveries barrel table','6c00-dd41','southport louvered','media armoire','covington chair','k678','5000 manor','fairfax dark','24 stool','back panel','6c00-d698','3611-12','8130-v452','walter table lamp','high poster bed','3508-6l','pasadena scarlet bedding','white desk with hutch','echo table','reef bay rectangular cocktail table','redin park dining chair','hanover corner office','m-64','fairfax twin sleigh','elway home elite motion sectional','estate size sectional','indigo','black pillows','queen sofa bed','meridian chinoiserie','redin pier','redin park pier unit','white armoire','9776 0772','sonoma mansion bed','brewster sleeper','6429-0188','6729-kq42','leather sleigh bed','redin park readers','boxspring','4469-4060','surrey lamp','louis philippe media cabinet','forte sconces','mahal bronze rug','hanover tall','end','easton end','mirrored table base','8213-u051','4469-6000','lift top coffee','1496-02l','black finish','3839-62','1982-02','louis chair','bryson','stanton','chatham twin','weston sofa','covington tripod end table','upholstered seat','811p-u022','2117-0259','cu.2 ottoman','cu chair','redin park tall media','guilford stacking double credenza','louis philippe panel bed','leather rocker recliner','2702-s2','redin park cubes','bedside cabinet','queen mattress','cu 2 ottoman','louis philippe 9776','cosmopolitan rug','glass console','9630-k865','7306 chair and ottoman','3827','redin park sofa table','6729k256','c019','hand painted furniture','allure rug','mahogany bedroom','louis philippe canopy bed','extra large','3655-62ls','louis philippe office chair','9630-0865','quilted pillow','richmond floor lamp','louis philippe file','estate loveseat','2547-0271','covington end table','9927','guilford media','6a00a668','bay','smyth mirror','right sectional','bassett bedding','louis philippe bureau','custom sideboard','mahogany bed','glass lamps','southport twin','3938-3ls','hanover storage library','reef bay side chair','custom dining counter stool','3846-62l','cherry chest','dining table leaf','k545','king size platform bed','2455-0270','chatham poster bed','hanover home office','club recliner','fletcher mirror','marcel','4469-kg54','white king bed','pierced mirror','9776-k845','30 bar stool','hunter','red rugs','woodberry book table','sand','fern','bed sizes','72 round dining table','discoveries nesting tables','louis philippe leg desk','bird','louis philippe bedside','richmond nickel lamp','door commode','easton 3195','1976-02','redin park open entertainment wall','plaid bedding','8110-v437','9455-k859','cherry headboard','2727-0271','club room 7306','elway home lift top table','redin park storage','walnut dining chairs','elway sofa table','scroll iron end table','4469-0309','covington demilune','6239','walnut leather sectional','rectangle ottoman','bryson lamp','box on stand','scarlette ottoman','elway home sofa','k150','left chaise','all leather sofa','44 round','4702-0685','covington 2547','club loveseat','southport door commode','motive','st gilles','redin park panel','8301-l017','810p-u111','cherry queen bed','guilford triple display','cu loveseat','1494-02l','sisal rug','accent pieces','st','easton coffee','florence','leather reclining sectional sofas','9630-k678','8130-v444','huntington ottoman','plush mattress','easton round','elway stone top','guilford wood top','810p-u221','6429-k117','rectangle table','65a9','brass box','0848','sisal','8420-z006','guilford wood top cocktail','coral key king bed','louis hall table','cosmo mirror sconce','0625','coral key king louvered bed','elway leather sectional','4776-k356','burford','kittery bay stripe chest','discoveries round table','9630-k868','2869-0275','6429-k306w','redin collection','54 round','cu sofa','4469-83ls','8150-v346','water mill slipcover','54 table','6271-0699','new american living 1745','elway coffee table','southport bed','louis philippe end table','2547-b258','2688-0251','geo diamond pillows','6429-k636','framed mirrors','2639-kc37','k859','fremont leather sectional','guilford lateral file','shelter island loveseat','geo diamond','8430-e094','sliding door','guilford cocktail','desmond bedding','cherry wood','clearance pillows','covington reeded storage','hanover chairside','twin poster','theodore table lamp','1951-01l','sofa depth','pistachio','louis panel','redin park china','65a9-f614','5th avenue complete china','chatham poster','8430','louis desk','redin china','king storage','club room queen sleeper','6729-kl42','body fabric','black panel bed','coral key x mirror','coral key queen','easton round table','ariana','2869-0270','3438-6','damask pillows','louis-philippe armoire','ribs','1007-sbr','decorative pillows','stoneridge','elway end','greek key','club sofa sleeper','cherry traditions','queen sleigh bed','southport queen','chatham chest','l-shaped sectional sleeper','townhouse 4000','9630-k832','artichoke','moss green','8110-f015','8213-u016','fairfax full','bolivar mirror','tripod table','8130-f018','white full bed','chatham panel headboard','grayson bedside','aspen table lamp','6205 0613','marble buffet','foot bath','wall desk','fremont media ottoman','camel back loveseat','louis philippe corner desk','redin park chair','allegheny plaid queen bedding','twin full beds','coil','soapstone','additional leaf','louis-philippe poster bed','2776-0231','skirted westover chaise','fairfax twin bed','dining chair slipcover','grayson queen','fincastle nesting','l-sectional','curved','total rest','fabric bed','guilford pedestal desk','8150-v345','ariana rug','8abk-0829','fremont sleeper sofa','4469-84ls','mercury','1997','firm mattress','scarlette 1644-02','shalimar','fairfax collection','shagri-la','covington turn post','birch','4776m390','4469-0684','louis philippe bedside chest','louis-philippe dresser','8450-b138','carved mirror','reef bay china','k135','holly','guilford modular','covington poster bed','mahogany chest','chatham panel','91-102-7900','mercer storage ottoman','louis armoire','hanover wall office','8910-g163','abbott','covington reader','queen canopy bed','silver and glass wall sconce','leather sectional sleeper','2106-425-5x8','preston chair','elway home large credenza','dream','91-172-9500','louis-phillipe','footbath','cactus','lacquer','6363-0665','5th avenue java finish','decatur bowl','reef bay dining table','black queen bed','calder lamp','rubix cube','louis philippe poster','stanton floor lamp','6363-0698','grayson chest','2727-0259','8430-e096','zac floor lamp','8301-j393','wood coffee table','ascot paisley bedding','brass floor lamp','covington living room','camel sofa','cosmo','water','black glass','southport full','redin media','8110-f041','louis philippe china','91-102-9105','91-102-9370','bali floral','california','0678','91-180-9105','reef bay woven chair','miles mirror','locking drawer','8110-f053','1995','38','dorset table lamp','king platform','wing recliner','91-120-7901','big','91-172-9405','custom stools','flanders','2658-0242','01','chatham vertical landscape mirror','dalton mirror','91-120-9131','91-141','standard finishes','casual','redin console table','stone metal tables','bed green','walnut bed','grayson media','elway lift top table','sofa console','white coral','3829-62','westover 1986','cherry wood dresser','laurel table lamp','tsiari vase','louis bedroom','fremont sleeper','2455-ks59','stone end table','guilford open entertainment','4547-k356','raj collection','king latex','covington turned post table','reef bay round table','5th avenue mirror','touch','coral key poster bed','custom uph','tsiari','reef bay end','austin recliner','charging','91-121-9120','hand carved wall plaque','2776-k153','broadway accent','suzani','black poster bed','beveled mirror','shisham wood','redin nightstand','guilford triple credenza','grayson king bed','kittery bed','black and white bedding','grandeur meridian rug','reef bay complete china','au natural rug','marble nightstand','high bed','media box','k153','white shelf','cherry espresso','southport king bed','wire management','create sectional','rush','king leather bed','ensemble','cherry bedside table','4469-80ls','redin park king panel bed','k685','resource','k450','louis tall media','brushed nickel','saw','all leather','redin park cocktail','smyth','elway media','elway leather','91-172-9130','38 square table','barrell','cherry poster bed','guilford work','twin white','lift coffee table','grayson chippendale','chatham queen panel bed','accent lamps','tight back','kilim','redin park wall','welby brass floor lamp','grayson king panel bed','cherry wood bed','slide','9630-k605w','guilford open etagere','pistachio pillow','8213-u053','capri rug','guilford display cabinet','gramercy mirror','round end','modular desk','0218','round oak table','6322-g671','warm tobacco chairs','tapered','8301-d003','loose back','3811-01ls','echo chairs','guilford entertainment wall','base media','rush chair','6-c00-d698','hanover resource','bronze end table','0254','raj','kc53','redin park queen panel bed','27','hexagon table','louis philippe bedside table','wainscoting','leather rocker','fairfax twin','wood storage','custom side chair','guilford double','cherry sofa table','coral keys queen bed','sofa with nail heads','emerson bedding','chatham full bed','complete china','custom bar stools','hanover open entertainment','4469-0686','leather queen sleeper sofa','guilford lamp','herringbone weave chair','woven cube','91-172-7730','guilford stacking','other','91-172-9755','8410-r471','guilford writing','custom dining side chair','discoveries round','guilford top','2547-0251','covington antique brass box on stand','0812','5th avenue queen panel','sofa pleated','fairfax poster','club room loveseat recliner','d004','spa','hudson storage','fairfax headboard','discoveries barrell','taupe','hanover lamp table','2776k138','hanover 56 credenza','reef bay coffee table','louis philippe entertainment wall','jute rugs','elway motion sectional','coordinating fabrics','covington tripod table','guilford office credenza','20 pillows','6322g613','louis philippe entertainment armoire','queen storage','louis philippe bed','guilford coffee','leather top table','louis-philippe pedestal desk','hanover leg','9630-k810','aldridge lamp','ascot paisley','tilt','pebbles oatmeal','glass doors','coral sculpture','leather cocktail','peacock','welt','10 seat table','a450','8150v345','mahogany cocktail table','capri liaison beige','stone metal','king poster','king plush','allegheny','5th avenue queen bed','1650-02a','hanover 9630-0772','guilford media wall','hudson warranty','southport white','custom estate sectional','4547-k54c','reef bay round dining table','guilford open pedestal','1933-3','easton sect','6729-kt72','easton wood round top cocktail table','fairfax sleigh queen','0262','floor light','48 dining table','single display','l sofa','gallery tray','elway home console','twin panel','sail cloth','chatham queen bed','embroidered','4469 2000','diva','2351-700','louis-philippe king bed','ca','choose fabric','sofa 2 2','louis-philippe cocktail table','cherry wood twin bed','hidden','62t','black ivory','glamour','leather queen sleeper','skirt','k81r','54','front','covington king','coral key poster queen bed','hanover 56','guilford tv','9630k868','spring flowers rug','8110v687','mahal','fairfax full sleigh','6729kl42','louis panel bed','black lingerie chest','3827-42','leather seating','redin storage','0613','5th avenue accent chair','7 drawer chest','medium sofa','8302-l012','reef table','hanover media hutch','attached cushion leather sofas','sofa 7306','56 credenza','inlaid','40 coffee table','louis-philippe arm chair','38 table','amballa','elway coffee','temple jar','grayson round cocktail','black office','fretwork mirror','duval mirror','9630-k812','6c00-d699','8302','louis philippe sleigh bed','6729-kq56','guilford cocktail glass','louis dining','elway lift top','louis-philippe entertainment','810p-u212','reef bay round','tibetan','24','fairfax 2402','white rugs','8430-e255','6729-kl43','8','custom round ottoman','leather nailhead','8213-u014','square lamp','levelers','guilford stack drawer units','harper arm','d003','8490-e258','round coffee','91-102-9735','sweater pillow','6c00c640','bed comforters','louisphilippe hall table','redin armoire','5th avenue queen','leather top cocktail ottoman','chatham full','cherry wood sofa tables','6c00d698','fern rug','hanover wall','leather twin sleeper sofa','guilford quad','5th avenue 2927','46','carved chair','cherry wall mirrors','0859','louis end','louis buffet','8910-g173','turned post dining table','6729-kt45','18','hunter\'s toile','melamine','6729-kq55','beehive','2 leafs','euro sham');
/* $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);
    }