/* Popular phrases - SPORTSUNLIMITED - 20:21:55, Fri Nov 20, 2009 */
__SLI_ClientDefaults =
[
    ['Alignment', true]
];
var asPhrases=new Array ('stadium seats','north face','465-sc1-chair','stadium chair','under armour hand warmer','football hand warmers','under armour','mouthguards','football gloves','oakley sunglasses','heelys','ping pong tables','cheerleading uniforms','oakley','backpacks','236-ay2u','football helmets','compression shorts','golf','shoes','us divers','under armour hoodie','field hockey sticks','minnesota twins directors chair','indoor field hockey stick','socks','padded shirts youth','236-ac6w-r','ohio state','pool table','football visors','new era baseball hats','face masks','shoulder pads','sleds','north face bookbag','custom football jerseys','shoulder brace','soccer socks','arm sleeves','cutters football gloves','basketball hoops','dna face mask','ice skates','store locator','under armour cold gear','new era','quarterback shoulder pads','stadium seats with backs','football back plates','boogie board','clearance','pom pom','winter jacket','revo helmets','mouth guard','football pants with pads','outdoor pool table','roller skates','youth football cleats','bleacher seats','running back face mask','football shoulder pads','nose guard','oakley football eyeshield','lacrosse bags','rain gear','mlb hats','basketball knee pads','hand warmers','back plate','football face mask','snorkel set','under armour backpacks','under armour socks','patagonia','youth football helmets','swim suits','ladder ball','cutters sleeves','visors for football helmets','sale','cheerleading socks','kids football costume','youth football gloves','jump rope','mouthpiece','women north face jacket','tetherball set','outdoor ping pong table','jansport backpacks','389-hd-2400','bodysuits','mens basketball shorts','life is good','ankle brace','street hockey','football pants','visors','youth shoulder pads','florida gators','schutt dna face mask','knee pads','skull cap','shield youth mouth guard','penn state','north face denali','cheerleader costumes','sunglasses','folding ping pong table','aerobic steps','soccer goalie gloves','swim goggles','facemask','receiver gloves','nfl miami dolphins fan merchandise','tetherball','football equipment','football cleats','youth football face mask','womens north face','cutters','ankle weights','grays field hockey stick','field hockey bag','north face jackets','street hockey stick','croquet sets','denali jacket','helmets','muck boots','north face backpack','soccer shin guard','hoodies','riedell figure skates','lacrosse eye shields','stadium seats wide','volleyball net system','pedometer','riddell helmets','vikings','air xp','mouthguard for braces','236-af9v-21r','snorkel','weight lifting gloves','cutter receiver gloves','notre dame','air hockey table','marmot','eyeshield','body togs','gloves','under armour shoes','running shoes','custom jerseys','air mattress','rowing machines','rain jacket women','under armour sneakers','locations','free weights','steelers','denali','yankees','kettlebell','halloween costumes','stiga ping pong table','figure skates','rain jacket','bleacher chair','schutt ion 4d','titanium necklace','revolution helmet','bengals','bodyboard','oakley goggles','lacrosse rebounders','columbia coats','catchers gear','kids soccer goal','duffle bags','rain pants','catcher\'s helmets','georgia tech','elbow pad','spandex shorts','tether ball','schutt shoulder pads','horseshoe set','iowa hawkeyes','football pads','michigan wolverine','kettler ping pong table','jansport','martin kilpatrick cyclone 2 player ping pong paddle set','whamo superball','missouri tigers','bogs','under armor','dumbbell set','water bottle','nocsae approved shinguards','ice hockey skates','poncho','riddell chin strap','oklahoma state','patented stadium chair','lacrosse sticks','football costumes for kids','dakine backpacks','hockey shooting target','sliding shorts','cheerleading','lacrosse equipment','game table','hockey','sports bra','soccer goals','roller hockey','douglas back plates','insanity workout','soccer balls','womens lacrosse sticks','football socks','under armour jacket','ruff wear','wristbands','swimming','denali fleece jacket','backboard padding','north face hoodie','watches','rib protector','nocsae shin guards','youth wrestling singlets','dna helmet','ski goggles','women\'s raincoats','nike socks','ab trainer','indoor composite field hockey sticks','basketball shorts','chair','boston red sox','red lion socks','bike shoulder pads','glare strips','heelys mens size 14','dita field hockey sticks','youth cheerleading uniforms','wrestling','schutt ion 4d helmet','ear warmers','gascan','bocce set','franklin youth shoulder pads','ion 4d','youth football visor','stx field hockey sticks','half jacket','hockey stick','roller blades','lsu bedding','cutters original receiver glove','cup','new orleans saints watch','obo yahoo field hockey goalie hand protector','wide width stadium chair','colts jersey','youth football shoulder pads','rain suit','114-e650fs-bk','football jersey','swim cap','costumes','ionetix','wrestling singlet','nike gloves','lacrosse balls','lacrosse','lacrosse gloves','cheerleading uniforms women','seats','saints','khumbu','helmet pads','goalie jersey','riedell','ua coldgear hood','football helmet visors','compression shorts for women','step','schutt helmets','skates','mini field hockey sticks','swimsuits','sleeping bags','reebok football gloves','dallas cowboys','all white cutters','fins','coldgear','volleyball net','weights','wisslax','youth soccer goalie jersey','jackets','jawbone','flagpole','red oakleys','multi game tables','ping pong paddles','stadium chair wide','penn state fleece','basketball','life is good womens t shirt','95-0112-y','stores','helmet visors','jock strap','north face mens jacket','oakley wisdom goggles','dita sticks','umpire','kayak','massage','youth lacrosse gloves','under armour hat','hip hop abs','mcdavid hexpad','bookbags','shipping','turf shoe women','harvard game tables','glow in the dark bocce ball','hand grips','snow sled','women\'s waterproof rain coat','turf shoes','pink bookbag','wheeled backpacks','mcdavid','long sleeve youth','football helmet shields','pro feet youth socks','ping pong table conversion','messenger bags','franklin street hockey','bench seat','flag poles','738-nl-100','cornilleau','kinesio tape','basketball rims','flag football','fitness gloves','usc trojans','catchers mitt','goalie gloves','spalding','youth indoor soccer shoes','vest','cheer briefs','juliet','stadiumchair','riedell r3','heckler','umbrella','shoulder support','columbia fleece','phiten','minnesota vikings','heckler backpack','under armour loosegear men\'s full t-shirt','knee braces','college football costumes','tabletop games','ping pong','ping pong table covers','manchester united jersey','tube socks','football costume','ping pong balls','back pad','stx g22','peyton manning jersey','riedell roller skates','youth soccer socks','duke','dakine','phillies','carry bag','bed rest','under armour slides','phiten titanium necklace','eye black stickers','drew brees jersey','hockey skates','youth face mask','chicago bears pool balls','backpacks for school','11-sm7751','football','eye strips','4-oat-cx','diamond leg guards','youth lacrosse sticks','turbo jam','salomon','jansport superbreak','notre dame mat','p90x','wrist coaches','chin up bar','womens swimsuits','quarterback gloves','jaw pads','triclimate','phiten necklaces','reebok step','harrow','youth visor','super rope','youth field hockey sticks','inflatable','marshmallow gun','womens columbia jackets','syracuse','camo oakleys','shock doctor','lacrosse goggles','schutt dna recruit','san diego chargers','bodyboard bags','youth under armour shirts','youth football pants','padded compression shorts','scooters','new york giants','heeleys','oakley woods','youth football girdle','soccer shoes','winter socks','womens rain gear','york bench','poker chips','zephyr','men long sleeve','spalding ball','west virginia mountaineers','waterproof jacket','skimboard','riddell revolution youth football helmet','bike','bodytogs','bloomers','polamalu','bangerz','goalkeeper jersey youth','combination tables','stx lacrosse balls','baseball stirrups','sweatpants','compression shirt','neck roll','185-24-153','windwall','table tennis tables','texas tech','youth helmets','t shirts','north face denali women\'s jacket','north face apex bionic','gloves for football','street hockey pucks','football jerseys for kids','chin strap','smith holt single shot audio helmet ipod compatible matte black','mouthguards youth braces','rain coats','trekking poles','ncaa basketball shorts','resistance bands','the north face denali jacket','lotto soccer cleats','6-1211-413','basketball sleeves','youth nba shorts','kansas jayhawks','adjustable dumbbell','251-8450','nerf','slingpack','white sox','oakley crowbar','cleats','pool ping pong tables','red sox','bench','down jacket','brett favre','miami hurricanes costume','demarini bat','twins directors chair','navy','riedell skates','camping','walking sticks','sports mouthguard','soccer shin guards size xl','a4 football pant','stadium chair back','manning','gift certificate','youth football turf cleats','under armour visors','nebraska','bogs women','badminton','toddler','north face fleece','bra','soccer cleats','womens compression shorts','tomlinson','handwarmer','under armour sweatpants','under armour shirt','236-anc4','headbands','camelbak','under armour all sport socks','running','air beds','yankee youth jersey','baseball cleats','desean jackson jersey','waist trimmer','fun ride deluxe','youth hand warmer','morey boogie board','pittsburgh steelers','york','49ers','sling backpack','mens under armour hoodies','georgia bulldogs','snow boogie','brine clutch','pool table covers nebraska','ion 4d face mask','new era hats','water gun','virginia tech','schutt air xp','baseball tee','lifeline','youth football equipment','bow and arrow','oakley juliet','nike basketball shorts','columbia womens rain jacket','goggles','mens rain gear','ncaa shorts','fit 2 win','leg weight','rib','pink north face backpack','lacrosse complete sticks','titans','bumper pool','goalkeeper jersey','oakley splice','mens sweatpants','inmate','oregon ducks','oil rig','toddler costume','flak','bogs boots','washington huskies','tyr','football training equipment','york dumbbell set','cold gear','necklace','giants','dallas cowboys uniform','kicking net','butterfly tr21','swim fins','ohio state jerseys','shin guards youth','duke blue devils','twin city','fleece jacket','nerf football','warrior punisher','womens north face denali jacket','volleyball','table tennis','riddell revolution football helmet','the north face khumbu fleece jacket','youth football uniforms vikings','douglas shoulder pads','dumbbell','stx crankshaft 10 7075 men\'s attack lacrosse stick shaft','forearm shiver','swimming lap counter','baseball','football rib protectors','lacrosse shorts','adrian peterson youth','youth lacrosse equipment','goalkeeper gloves','speed roller skates','bar stools','tights','north face quiver','roller','nascar','columbia rain coat','columbia rain jacket','vikings youth jersey','youth jerseys','202-a5429','north face isabella','stadium chair carry bag','boston college table','under armour bags','umpire chest protector','augusta jersey','n-strike nerf guns target','water pack','youth basketball uniforms','ncaa replica football helmets','kettler table tennis','aqua jogger belt','soccer nets','polo shirts','denver broncos','cutters quarterback','medicine ball','mossbud','bed in a bag','conversion top ping pong table','brett favre youth jersey','atlanta falcons','nike bags','sleeves','exercise machines rowing','revolution visor','womens under armour hoodie','tetherball poles','cups or jock straps','under armour compression shorts','texas longhorn costume','reebok gloves','kettler','stirrup socks','kettle bells','knee high socks','padded shirts','dog','face shields','hockey goal','detroit tigers','russell','shaun t insanity','custom under armour','florida gators bed set','butterfly tables','pop up soccer goals','exercise step','kick scooter','missouri uniform','the north face borealis backpack','184-3333','all star soccer goalie helmet','youth football jersey','oakley m frame strike sunglasses smoke black iridium','twist n go','youth soccer ball','pink football gloves','bicep pads','foosball table','goalie sticks','phillies jersey','the north face heckler backpack','underwear','harness','under armour bands','tailgate flagpole','lsu','3-lw220','tent','indian clubs','north face vest','altus','pittsburgh penguins','runners pack','life is good womens','isabella north face backpack','oakley m frame','schutt dna youth helmet','stx tilt','cheer uniforms','womens bogs boots','cutters golf gloves','swim harness','slim in 6','23-7032-400','bottle','weight bar','smith serpico sunglasses','dolphins uniform','snow pants for men','stx bag','army','wilson softball','bike helmet','chalean extreme','oakley hazmat backpack','backgammon','hawkeye','brine wk30','square','hockey goalie','bodyboard fins','mylec','clear lense ski goggles','95-0236','sports gifts','7 pool table','womens outdoor roller skates','171-a6400-orih','lsu football','stx lacrosse goggles','18-5670','auburn','11-rm3021','debeer envy pro','womens adidas slides','170-slvpun','nike shorts','frisbee','florida state','578-ld-tm','chess sets','youth mouth guards','free weight rack','illini comforter','whirl ball','singlet','ping pong net','step aerobic steps','darts','kentucky','chalean','new orleans saints','athletic tape','375r3','bumblebee sock','futsal ball','basketball uniforms','ruffneck','weight lifting gloves for women','grays gx7000','twin city socks','220-clh2-stock','pub table','the north face women\'s grace jacket','nike football gloves','220-clh2-custom','363-20-5030','seth morrison crowbar','bodysuits for cheerleaders','366-421-250','667-tb06','starter kit','mouthguard braces','duke shorts','womens jackets','street hockey balls','zip line','mlb fitted caps','pink gloves','shoulder pads linebacker','sleeveless','nfl jerseys','sticks','womens north face fleece','clemson tigers watch','football girdle','shin splint','texas longhorns jerseys','infant eagles','under armor cold gear','barcelona','eye black','riddell little pro youth football helmet with gray face mask','ping pong conversion tops','caps','shirts with pads','dart boards','indoor ping pong table','whamo sled','chicago bears','table tennis conversion table','dart board cabinets','kids fleece jackets','syracuse lacrosse jersey','adidas field hockey','drew brees','goalkeeper pant','boxing','texas longhorns','tapout','pump','18-1956','power 90 home boot camp','bogs women\'s boots','95-0102-y','saints fan gear','spalding od658','dart sets','field hockey goggles','kids nfl jerseys','air bed queen','reebok cheerleading','stx womens lacrosse stick','cold gear mock turtleneck','youth catchers mitt','raw power','dartboards cabinets sets','texas backpacks','training equipment','georgia bulldog shot glasses','sooners helmet','363-74-4009','texas longhorns office chair','silver polarized','wilson junior golf clubs','236-afxd','yankees pool tables','236-abjr','lacrosse heads','shakeology','grays gx9000','patagonia men','composite field hockey sticks','ohio state bedding','usc jersey','inline skates','revolution facemask','baseball bases','smartwool socks','fanny pack','columbia jacket','lacrosse hoodie','replacement cleats','alabama crimson tide','hokies','ucla','pittsburgh steelers bedding','resolve women','oakley dart','stick bags','pro feet socks','wrist weights','slate pool tables','football towel','oakley case','football chin straps','field hockey gloves','tape','wave rebel','amonte','soccer uniforms','reebok aerobic step','628-pdmd','exercise mats','neo sports wetsuits','under armour sock sizes','champion sports multi-sport net pitch back screen','20 flagpole-to-go large diameter portable telescoping flagpole','heart monitor','shin guards','417-274','youth football hand warmers','3-taiga1-package','nutcracker','bike football pads','steelers blanket','ama dablam','adams','alabama flag','bases','basketball arcade game','weight vest','lotto','north face isabella womens backpack','volleyball set','pitchback','017q','ohio state watch','oakley conduct','grays','the north face women\'s osito fleece jacket','baseball pants','golf gloves','shorts','jester','falcons','youth cold gear','football sleeve','diadora','contact us','yankees jerseys','horseshoes','clear football visors','condor','lacrosse crankshaft','pittsburgh steelers bedding set','dallas cowboys helmet','32-bc-250s','kba basketball clip','ion 4d helmet','dumbells','under armour hood','schutt dna pro','nathan\'s 10k runner\'s pack','fin socks','stanford','steelers costume','bearcats','corn hole game','miniature golf','oakley a frame goggles','a4','saints jersey','men\'s long sleeve','youth north face jackets','dita v40','calgary flames','252-4100a','youth under armor shirts','rod hockey tables','oklahoma sooners','wilson golf clubs','dna','oregon','new england patriots bedding','236-aank','oakley sunglass case','razor scooter','beachbody slimming formula','raincoats for men','small ping pong table','harrow one piece lacrosse sticks','fitness cables','michigan tennis','under armour underwear women','troy polamalu jersey','wall mount','shaun t\'s insanity 60-day total body conditioning program','stx k18','north face nunatak','columbia rain gear','jb bloomers','briefs','teva','locker room','minnesota fats vegas pool table','crankshaft','khumbu jacket','spalding hi bounce balls','oakley gascan','active wrap','poker','bed skirt','lacrosse hats','wrestling knee pads','columbia','schutt face mask','warrior','miami dolphins','dudley softball','osito','football mouthpieces','under armour cap','puck','balls','under armour shorts','adams facemask','oakley wisdom','nokona','wham-o superball','stx stringing kit','riedell outdoor roller skates','columbia backpack','cheerleader skirt','denali women\'s jackets','baseball jerseys','nunatak backpacks','best football glove','north face windwall','lakers','nike sharks','backgammon set','laptop backpack','football belt','chicago cubs','florida gator backpacks','tailgate chair','shuttlecocks','lat machine','vikings bedding','hockey set','baseball gloves','girdles with pads','schutt dna','294-534','stiga titanium','roll a score','ft186','adidas duffle bags','georgia bulldog bedding','445-64-1037-07','cheer','schutt chin strap','spalding peel n stick basketball backboard padding for 72 glass backboards','dodgeball','futsal','badminton racket','arizona cardinal costumes','guardian','kwik bench','under armour coldgear men\'s action leggings','scandium pro','schutt armor flex football shoulder pads','envy pro','114-mft800','brine field hockey sticks','uniform sets','hammock chair','lacrosse shafts womens','directors chair','timex','golf sets','girdle','soft shell jackets','marmot venus','roller skate wheels','womens gloves','adidas flip flops','red lion','street hockey goalie','carolina panthers costume','nfl cheerleader costumes','power wheel','110-idyapb','18-6850d','reflective','golf tees','sports duffle bags','super soaker 50','beanie','smith holt audio helmet','465wsc1','ski','junior sized footballs','left hand baseball glove','step workout equipment','steps for step aerobics','men bib snow pants','egop','warrior cleats','accessories','cranbarry sticks','women\'s north face tka 100 pants','oakley stockholm polarized','athletic shorts','rawik snow pants','oakley a frame ski goggles','jets costume','columbia mens ascender softshell jacket','tire mount','mens hoodies','kids','diploma frame oklahoma state','under armour pants','weighted gloves','lacrosse turf shoes','patriots bedding','women\'s rain jackets','dita field hockey','reebok 2009 2010 nfl jared allen minnesota vikings youth replica football jersey','university of kansas','4-g22f-13','missouri tigers backpack','251-2030','mens football cleats','pandora','dartboard','oakley ski goggles','weight set','gx1000','under armour sweatshirt','tempest pro','lacrosse elbow pads','mini lacrosse stick','185-06-620','adidas sandals','oakley crosshair','michigan state','usc','soccer bags','youth football uniforms','youth baseball bat','superball','244-abt','pool balls','patriots watch','794-dlg-d','under armour golf','north face resolve men\'s jacket','oakley visor','schutt jaw pads','shuffleboard','gyroball','18-6604f03p3s','under armour cleats','new york yankees youth jerseys','boxing bags','the north face womens kcs denali jacket','a frame','chiefs','the north face tent mules','florida gator youth football uniform','49-15-9100a','aconcagua','returns','cowboy collar','grays gt600','florida gators blanket','276-6840-crpk','native sunglasses','compression','pink cutters gloves','youth catchers gear','lifeline cables','pool cues','69-a4','notre dame football jersey','notre dame watch','the north face men\'s triclimate shaka jacket','under armour mens socks','peterson','youth lacrosse sets','oakley football visors','minnesota fats fairfax 7 pool table','under armour frost','outdoor volleyball set','texas longhorn youth uniforms','referee jersey','youth air helmets','diadora maracana','riddell minnesota vikings authentic revolution full-size nfl football helmet','91-bstfb','adidas bags','chinstraps','turtleneck','stick ball bat','236-abkb-001-black','thermarest','new orleans saints jerseys','insoles','adams a4','rainwear','brine amonte women\'s lacrosse head strung','winter headbands','ab roller','mikasa volleyball','finis','the north face womens rain jacket','foot brace','gym sack','ropesport','pink','college shorts','long compression shorts','mens under armor','swim goggles case','oakley 5 squared sunglasses','od658','the north face pandora backpack','kids indoor games','club set','football pads and equipment','cheer bloomers','steelers helmet','wenzel','ski gloves','mcdavid hexpad shirts','phillies throwback','youth lacrosse helmets','ducati','mouthguard case','youth basketball','under armour sleeveless','magnum','735-10-296','youth football pads','notre dame jacket','magnum boots','170-kozy','sauna suits','yonex badminton racket','43-btsh45','hip pads','womens snow pants','236-ax0u','back plates for football','splinter','419-ncs01','nike duffel','pitching machine','ohio state jackets','armour','softball pants','pizzazz','youth snorkel','reusch raptor pro sg soccer goalie gloves','football chest protectors','athletic supporter','reeboks receiver gloves','uhlsport','putter','metal','nike air speed destroyer 5 8 men\'s lacrosse shoes','side panel','366-411-508','cheerleading pom poms','reusch lucina women\'s soccer goalie jersey','polamalu bust','under armour heatgear men\'s tech short sleeve t-shirt','spain','217-18j5-ginn','lotto zhero gravity','slides','vegas pool table','stx sc ti','adams football pants','roller hockey sticks','wisdom','382-tc1000','jock','punching bag','15-t8503','oakley ducati fives squared','stadium blankets','pool stick','bar','nfl youth uniform set','men\'s north face denali','217-18j5-brees','arm sleeves youth','underwrap','nfl footballs','olympic weight set','cascade lacrosse helmet','red sox bedding','debeer tempest','217-16j7-manning','batting tee','volleyball socks','venture','under armour skull wrap','new orleans saints costume','oakley fives','185-eyeshield','ab toner','eagles jersey','angels','isabella','skirt','debeer identity gear pack lacrosse backpack','youth goalie jersey','schutt youth helmets','shooting sleeves','465-cb1','notre dame pajamas','womens adidas sandals','north face osito','size 4 soccer ball','under armour polo','forearm pads','stadium bag chair','under armour towel','nfl youth helmet','black isabella','110-comtrxt-mw','kids football gloves','goalrilla','pole pads','kettle','sports necklace','15-t814n','oakley square wire','iowa hawkeye bedding','scuffed football helmets','attack lacrosse stick','185-24-144','20 lb','349-110-11','mylec goals','bangerz youth polycarbonate goggles hs-6000','oakley radar','debeer lacrosse goggles','north face resolve','ladies golf','276-6119-nppu','wham-o','mens under armour shorts','brooklyn dodgers jersey','under armour tnp','resolve','yankees bedding','baseball net','portable net','thorlo','washington redskins','796-cm3000sbt','stx cell','north face gloves','cheerleading tops','locker','mexico','life is good t shirts','kickball','cold weather football gloves','vikings jersey','jared allen','north face tent','benton springs','adams youth shoulder pads','youth baseball gloves','tennessee','shirts','youth beanie wells jersey','radar range','gx5000','thigh pads','soccer bench','12-476','harrow sticks','pit boss','monster dog','kids north face','pull up','squat rack','69-bep','youth lacrosse','adams shoulder pads','snorkel bag','ping pong table top','363-64-1002','north face messenger','palmgard','new era caps','left handed throw baseball glove','jockstrap','youth shorts','beachbody','wetsuit','the north face vault backpacks','roman chair','lacrosse shoes','butterfly tr16','807-ut40','nike eyeshields','practice jersey','leash','womens ski pants','375-r3','radar path','wood baseball bats','outdoor games','aerobed stadium chair','field hockey','fathead','rinat joker youth soccer goalie jersey','stx lacrosse multi-position training rebounder','pocket mod','sandals','fluid rowing machine','oakley whisker','eagles','water belt','womens backpacks','indoor volleyball net','gatorz','youth throwback football jerseys','skate helmets','236-alj0','champion sport bras','franklin goalie pads','stx balls','kettler ping pong table cover','folding telescopic plastic soccer goal by goal sporting goods 9 sizes','bumblebee','mlb bedding','chicago bears infant','216-7009a-reed','under armour bookbags','brine triumph 20-250 soccer ball','schutt armor flex skill football shoulder pads','black isabella north face','draft','tarheels jersey','outfield gloves','dakine bookbags','florida state backpacks','mohinder laser','square wire','body glove body board','legend excel','ohio state uniform','417-858','duffel','electronic dartboard','boogie board leash','glow in the dark balls','stepper','youth colts jersey','womens underwear','841-33-444','snyder','225-gf0055','meteorlight','under armour spring trainer cap','822-9010','canucks','defense stick','under armour forearm sleeve','stx g22 with crankshaft 10 7050 men\'s complete attack lacrosse stick','211-booster-notre dame','114-ptct1','4-fsb-2p','rice paper lights','north face jester back pack','columbia benton springs fleece jacket','yankees bar stools','mr fixit','weights dumbbells','youth hockey','211-coldhs0010','236-aad6','dash','harley davidson poker chip sets','stadium seats for bleachers','raptors','hideapole','youth soccer uniforms','dynaflex gyroball','net system','7713','barry sanders youth jersey','roller derby skates','portland trail blazers','new orleans saints home decor','33-2414-new england patriots','womens snow bibs','404-1930','marshmallow fun company','snowskate','stx katana','new orleans saints merchandise','eastern kentucky university','zebra compression shorts','ohio state womens jersey','trail blazers','strap on skates','mini air hockey table','lacrosse gear','kettler outdoor table','franklin volleyball','216-7009a-fitzgerald','softball uniforms custom','404-711','kids nfl football jerseys','tailgating gear','276-4239-rose','366-411-556','youth volleyball','barry sanders jersey','chin strap baseball','alabama windbreaker','15-t0760','185-01-860','glo bocce ball','jared allen football jersey','lax ornament','630-gx-4','stepping exercise equipment','oakley livestrong','171-a6200fc-w r-meth','snow suits','yankees table','vikings flags','under armour women\'s fleece','18-2778','florida dartboard','men\'s boxer','bern baker','outdoor cover','texas longhorn messenger bag','greek soccer','miami dolphins gifts','umbrella sun','finger save','marion barber jersey','butkus jersey','under armour pullover','11-sm6524','nfl travel mugs','116-7482s','philadelphia eagles merchandise','the north face chillkats men\'s boots','schutt catchers helmet','236-ax4d-o4b','306-ns111','tabletop foosball','chase utley jersey','oakley goggles pink','new orleans saints youth jerseys','riedell bronze','custom cheerleading uniforms','redskins santa','masonic','ohio state gifts','under armour clothing','yankee pool','new winter jackets','champion sports baseball team equipment bag','44 inch bodyboard','clearance shorts','florida football','large messenger bags','football bag','diadora gamma carbonio soccer shinguards','ohio state slippers','k18 head','morey','arizona wildcats','mens shorts','stx atk women\'s complete lacrosse stick with propel shaft','654-eguard','youth helmet and uniform set','youth pads','carolina panthers','eguard','spandex compression shorts','69-ypfp-82','candy jar','nfl sunglasses','heelys size 10','walter payton youth jersey','outdoor volleyball system','4-odt-ti','pitching rubber','oakley antix','grays field hockey bag','cones','adidas duffel','prewrap','snow pants','lamps','322-23-3215','oakland raiders','stx av8','giants jerseys','ski helmets','dna pro plus','weight football','shin guards for field hockey','red wings lawn','bike back plate','soccer shorts','69-24','striped tube socks','kettler riga','oakley juliet carbon','miami dolphins costume','236-at6x','florida state seminoles blanket','32-gt-411','balaclava','christmas ornaments','beachbody meal replacement shake','3-lgldef6g','small duffle bag','fitness dvd','youth under armour twister pants','oakley a frame shaun white goggles','pong tables','mats','chargers','cardinals','nose and face guard','hydration packs','95-0112-a','womens rain coats','tom brady','kids under armour','schutt football pants','baseball socks','flip flops','ohio state cheerleading uniform','bottlecap','warrior dolomite','asics','harley davidson','sackpack','enell sports bra','cutters gloves','running jacket','oakley hijinx','polo','harvard','ny giants','shield youth mouth guard strapless','monster','oakley straight jacket','running back pads','wide width stadium seat','paddles','goalie masks','4-av82','rib protection','money clip','marshmallow shooter','carlos chiu paddle','running accessories','cranbarry','tony romo','youth soccer shoes','dodgers hat','mens leggings','stx gust indoor field hockey stick','womens thermal','mizzou','under armour boxer','mens lacrosse sticks','mens winter jacket','32-ts-cl','ohio state football costume','goodie hoodie','18 field hockey stick','reflective vest','oakley half jacket xlj','802-1027','159-9b906','bodyboard leash','kettler nets','lacrosse goalie sticks','ping pong table net','jacket 236-ac6w-r','women under armour heat gear','columbia sportswear men\'s shelter cove waterproof rain jacket','womens fleece jacket','404-9310','womens north face resolve','debeer proflex','110-temgl','glow in the dark air hockey','under armour women shirt','43-7275','oil drum','folding bench','field hockey goalie stick','wenzel insta-bed raised insta-flex air mattress with built-in pump','over the calf socks xxl','texas longhorns football helmets','717','under armour heat gear all sport socks','st louis cardinals bedding','217-12j9-brady','glow in the dark frisbee','fun ride','fleece pants','fleece hoodies','795-b120','callaway golf','chucko','26-3107','towables','beach volleyball nets','170-lppproy','football pants with built in pads','413-050','field hockey sweatpants','table soccer','28-ack','hopkins','indoor basketball game','exercise cables','11 in 1','polamalu jersey','canes','brine compression sleeve','spectrum','wilson staff','stick ball','heated stadium seat','matt forte jersey','croquet balls','gci outdoor bleacher-back seat','ropo-dw','795-b114n','adidas sports bag','pittsburgh steeler jerseys','diadora gamma','6-1111-020','pull overs','park and sun spectrum classic','ba500','stiga ping pong paddle','28-ack-silencer','adidas cleats','nike sport elite water bottle','382-402','junior golf sets','youth uniforms','185-half jacket','217-28j-joneal','216-7009a-favre','oakley square whisker polarized','shot','4-oat-z7','power pushup','18-5695','12-165','95-1032-a','prince','stiga 275','york 90 lb chrome cast iron adjustable spinlock dumbbell set','366-421-253','oakley gascan polarized','men\'s heelys','warrior lacrosse shoes','rinat metallica alpha soccer goalie gloves','harbinger women\'s power training and lifting gloves','aqua ankle weight','236-ac7e','umbro soccer shorts','185-13-713','texas rangers jersey','778-tonw2634-black','5-ft184','soft coolers','college jerseys personalized','brewer jerseys','table top games','r4','ny giants gifts','185-02-671','icontrol','49ers beer mug','28-ack-nano2','beavers','nfl collectibles','177-481r','snowboard sled','177-646r','franklin pop up mini goal','28-ack-throttle','under armor polo shirts','170-g1x950p-rht','college of william and mary','heelys size 7','nfl wall clock','dwight howard','half mass','power 90 workout','217-28a9d-gay','mueller hg80 wrist brace','217-18j5-marshall','youth lakers jersey','185-12-956','charger christmas stocking','in the day jersey','football pump','north face glacier 1 4 zip','philadelphia phillies hats','youth football sets','women\'s ski goggles','indoor soccer table foosball','under armour youth hoodie','265-sr','clutch strung lacrosse head','ohio state buckeye jerseys','18-5650','outdoor basketball hoop','warrior lacrosse cleats','masonic hoodie','uhlsport goalie pants','43-b8211','hockey goalie helmets','frisbee golf set','vintage orioles baseball cap','infant cowboys','purdue sphere chairs','stx bionic head','217-18j5-samuel','penn state bag','mens sleeveless under armour','backyard golf','fitness steps','stx lacrosse sticks','bike ankle brace','177-757t','adrian peterson jersey youth','nc state divot tool','under armour laptop backpack','kettler riga indoor','columbia hoodie','the north face girl\'s denali thermal jacket','womens shirts','mcdavid padded shirt','rolbak','twin city candy stripe softball socks size small','lifeline tnt cable','ice pick','snowboard jackets','st louis cardinals bean bag toss','tpx warrior','713-709yltt','womens under armour mock turtlenecks','st louis cardinals merchandise','fantom x','step for aerobics','185-pro m frame strike','newgrip','185-02-638','43-btco17','43-baco27','wilson golf club set','steelers throwback jersey','sigg water bottle','pamir windstopper','triton baseball bat','wood team lockers','green bay packers bar stool','217-16j7-peterson','men\'s underwear','michigan state bedding','ice skates for men','david wright','paris kindersled','ribbon shorts','grays gx 2000','ravens golf','95-0243','185-001-0001','denver nuggets jersey','785-speed bag-intermediate','217-18j5-e.manning','harrow pulse 100','stx crankshaft lacrosse','harvard air hockey table','junior field hockey sticks','cardinals jersey','frosty tight','rinat joker','pads','north face flip flops','bayou','177-787t','philadelphia eagles hat','lacrosse helmets','dita','north face resolve jacket','lsu jersey','spandex','towel','dakine watercolor backpack','air hockey','field hockey ball','pull up bar','women cold gear','outdoor roller skates','indoor','marshmallow fun company marshmallow skull crossbone shooter','texas longhorns shorts','kids soccer socks','69-asp-y','whisker','rebounder','cheerleading skirt women','waterproof pants','tailgate tents','bracelet','argentina','braves','denver nuggets','soccer backpack','womens sneakers','womens north face fleece jackets','nfl agent watch','stx al6000','st louis cardinals jerseys','jockstrap and cup','field hockey socks','nike weighted glove','017lt','maxi field hockey sticks','under armour proto speed ii','phillies hat','6-1211-419','baseball chest protectors','217-18vl1-eagles','radar','under armour youth cold gear','football equipment bags','mens socks','puma backpacks','grays surf 500','under armour sandals','north face grace','womens khumbu fleece','15-t8190','hood coldgear','tony horton','sports bags','purdue','all water guns','texas state','arkansas uniform','dallas cowboys pool table','dartboard cabinets','womens denali','schutt air standard youth football helmet with ropo face mask','236-abke-001-black','lacrosse starter set','adams usa youth football shoulder pads','columbia fleece womens','denver broncos costume','lacrosse practice jersey','team bench','stove','waist packs','nerf guns','diadora team backpack','portable basketball','788-6719','stadium seat carry bag','celtics','youth under armour','youth hoodies','wide','bison 5 in 1','penn state helmet','youth ski goggles','georgia state university','110-lucgsww','cleveland cavaliers','teva mush flip flops','458-bb','backboard','oakley polarized flak jacket','mens lacrosse jersey','mueller 3333','mirror visors','protective cup','fiddlestx','linebacker','the north face vault bookbag','ski ball','nike weight lifting gloves','north face heckler','320-i-beam','patented stadiumchair stadium seat','wood softball bats','denali thermal fleece','florida gators bedding','56-evotun','football kicking nets','minnesota twins director\'s','205-wlbh','dakine cheetah','ohio state dart board','badminton set','brooklyn dodgers','minnesota vikings jersey','447-yankeesbedset');
/* $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);
    }