/* Popular phrases - HANDMARK - 18:58:32, Fri Nov 20, 2009 */
__SLI_ClientDefaults =
[
    ['Alignment', true ]
];var asPhrases=new Array ('geocache navigator','pocket express','call of duty 6','scrabble','trimble outdoors','monopoly','tetris','sudoku','allsport','bejeweled','yahtzee','free','blackberry 8330 themes','ebay','wheel of fortune','blackberry storm themes','zagat','astraware','fall','mobiledb','chess','solitaire','bejeweled 2','free blackberry games','bible','blackberry gps','my-cast','ea','bookworm','ringtones','blackberry calendar','free games','sims','warfare','backgammon','crossword blackberry','blackberry today theme bold','blackberry storm games','express','weather','gps','free apps','blackberry today themes','eoffice','zagat to go','8330 themes','blackberry bold themes','tungsten','skype','dictionary','battleship','golf','calendar','mahjong','bible for blackberry','themes for bold','national football post','blackberry curve themes','tetris blackberry','tweetcaster','pilot','free game downloads for blackberry','my cast','splashid','mycast','chuzzle','pilot my-cast','text twist','quicken','fall themes','guitar hero','warfare incorporated','geocache','blackberry task','twitter','pilot my cast','astraware solitaire','sims 3','need for speed','photo contacts','im+','spades','blackberry golf','iberry theme','notes','blackberry chess','blackberry curve scrabble','nfp','calculator','pacman','free downloads','itunes','my little tank','ringo','brain training','crossword','spore','call of duty','blackberry office','my cast weather','jeopardy','tower defense','grocery list','craps','zuma','quicken blackberry','vlingo','bejeweled for blackberry','mycast weather','blackberry trackball','football','pocketmoney','mobitv','twilight','mobile shell','freecell','halloween themes','pilot mycast','nfl','tiger woods','amazon','droid','email','age of empires','facebook','email viewer','blackberry themes','blackberry 8310 theme','pushlife','blackberry word game','resident evil','poker','ewallet','lonely planet','diner dash','phase 10','palm pre','mobile database','blackberry expense','skyfire','mileage','caller id','express news','battle blocks for blackberry','radio','scrabble for pocket pc','expense','jewel quest','trimble','pocket auctions','nimbuzz','fish tycoon','blackjack','themes','ms pac-man','alabama','casino','skype for blackberry','games','wheel','hearts','tower','texas hold em','glu','scrabble blackberry','sim city','astraware sudoku','8900 curves games','clue','blackberry money','galaga','spb mobile shell','iberry','mileage tracking','pinball','webcam','family guy','animated themes','civilization','blackberry solitaire','spb','motorola hint','pocket quicken','monopoly palm','bejeweled blackberry','contacts','diet','asphalt','brain','blackberry 8330','excel','splashmoney','calorie','iphone','color pearl','forbes','fifa','word','mobiola','pdf reader','brain trainer','voice command','trivial pursuit','security','shopping','password','block caller','smartphone dictionary','oxford spanish english','boardgames','astraware games','blackberry','insaniquarium','golf games','today','simcity','frogger','im','light','masterdoc','android','risk','games for palm pre','card games','ring tones','chess for blackberry','blackberry storm','clock','backup','pim','blackberry print','spam','blackberry today','voice recorder','oxford american dictionary','stock','email for blackberry','pocket express for htc','blackjack for blackberry','word games','brain games','holidays','board games','slots','blackberry 8320 themes','ascendo money','checkbook blackberry','reuters','deal or no deal','traffic jam','translator','pocket','bubble','8350i theme','change color of trackball','countdown','diet and exercise assistant','national football','bejeweled ipaq 3800','need for speed shift','doom','flashlight','blackberry storm bible','my-cast weather','zeus quest','oxford spanish english dictionary','bowling','blackberry bold games','equilibria','3d','miami hurricanes','wall street journal','phone contacts','recipe','htc mogul','nfpost','garmin','usa today','dominoes','kenken','need for speed undercover','lemmings','calorie blackberry','dogz','memoryup','health and diet manager','spb wallet','klondike','super ko','ebay for blackberry','voice translator','remote desktop','call filter','quicken for blackberry','threaded text messages','movie trailers','allsport gps','blackberry contact management','astraware casino','app store','tetris for blackberry','crossword puzzle','weatherbug','ego theme','cbs news','aviation','video player','animated halloween themes','broken sword','worms','bbsmart','tradewinds','navigation','mail2fax','wiki','icons','upsnap','pdf','mobiola video studio','htc imagio','pet','storm theme','peggle','ohio state','scarface','palm pre software','pool','spell check','htc hd','spb mobile dvd','tasks','chainz','blackberry 8130 theme','golden tee','pushlife for blackberry','burger rush','holdem','free cell','wifi','chuzzle for blackberry','addiction','xplayer','reversi','contact manager','phrasebook','spb shell','wine','agendus','myspace','pocket money','bubble popper','spb tv','pilot-my-cast','call','weight watchers','life','monopoly blackberry','cubis','photo caller id','pac man','who wants to be a millionaire','music player','monopoly here and now','call record','splash wallet','splashshopper','scrabble dictionary','super solitaire','yahoo messenger','bejewled','grocery','shape shifter','spongebob','oxford american desk dictionary and thesaurus','news','contra','8330 today theme','e-mobile','fierce healthcare','itunes for blackberry','aces','pac-man','blackberry calculator','florida state','carb','dell axim','nba','notre dame','myphone','slingo','trivial','stopwatch','sudoku for blackberry','afp','pocket tunes','palm chess','call tones','texas holdem','spider solitaire','diet and exercise','wordsmith','appetite','mvoice','8310 themes','tungsten w','tones','bridge','blackberry curve 8900','handmarket','trial','voice on the go','today plus themes','currency converter','metal gear','wine guide','health and diet','financial calculator','solitaire for blackberry','zire 31','afp mobile news','infodev','video poker','pocketdoc','virtual villagers','street fighter ii','cipher','purple theme','london dk','final battle','kaglom','palm pre games','journal','age of empires 3','palm pre ring tones','medical reference','books','service log','bible translations','sms my position','constellation','word games for palm os','color id','calculator for blackberry','fight night round 4','chase banking','ap news','motorola droid','phone face','battleship for ipaq','dial pad','tungsten tetris','italian dictionary','web software','mobile app store','spb backup','myclock','word challenge','blackberry storm weather','sbsh','cake mania','excel for blackberry','mafia','themes for blackberry curve','tiger woods golf','hunting','informant','splashclock','berry locator','mafia wars','milage','tetris mania','to do','mobiledb excel','bookworm blackberry','handmark app','madden','cast','windows media player','ms pacman','flexwallet','tiki','meal planning','astrology','splashwallet suite for palm os','burnout','deer hunter 3','texttwist turbo','efile','monopoly htc','mobilecierge','pegs','omnia i900','nfl 2010','nokia 5130','oxford jewish study bible','sniper','converter pro for windows mobile pocket pc','big range hunting','joker','buzz','palm spanish english dictionary','pdf for blackberry','spellcheck','list','texas hold em blackberry','bejeweled for blackberry storm','winterface','catholic bible','bbsmart email viewer for blackberry','rdm','call manager','sparkle solutions','mobilecamviewer','african sunrise','upnp','food network','spb weather','fax','bounce out','today pro','civilization iv','the game of life','monopoly for centro','blackberry tour','messenger','build a lot','command and conquer','tetris storm','es musica','windows mobile','block phone call','fireworks','strategy game','megaclock','trivia pursuit','black and white','pilot my cast by garmin','better homes and gardens','drum','usc trojans','bingo island','spam blackberry','advanced','cupcakes','palm messenger','gangstar','complete idiots guide to harry potter','texas poker','fantasy football','write','palm tungsten w','messenger for palm','africa themes','astronomy guide','fifa street','today theme','hangman','platypus','peekawho','shell','mars needs cows','florida gators theme','q bert','playerx','vegas pool sharks','text editor','t x games','crazy penguin','handspring visor','blackberry mileage tracker','facade','msn','alien assault','blue systems','express sports','japanese','colors','crossword crazy','american idol','dialer','microsoft money','blood glucose','tetris game pak','glyph','7 habits','diary','memopad','pac','pilot my-cast for blackberry','bartender bible','beach volleyball','3d monster truck','age of empires iii','card game golf','rocket','imagio','carnival','todo list','tennis smash out','answer tones','backcountry ski','bulgarian','metric converter','electric pocket bugme','wma','breakout','backgammon blackberry','icon themes','document','saints row','cranium','grocery shopping','real estate calculator','harley davidson','jigsaw puzzle','osn','espell','lsu theme','iberry pink today plus','hellfire','family feud','skull','on screen keyboard','digital cyclone my-cast weather for blackberry','astraware classic','notification','blackjack blackberry','fuel','tank ace 1944','bold today','plus','glucose','gps maps','astraware bookworm','the vampire','samsung rogue','my alarm','text to speech','lost pyramid','spb news','guitar','storm','warfare inc','dance dance revolution','q-bert','pocket express for htc touch pro','skype blackberry 8900','mixx mobile','kids','rdm+','bubble town','bbsmart email viewer','tantao','bold themes','superutility','blackberry 9000 today theme','address book','blackberry tour 9630','dolphin theme','pocket express subscription','french english dictionary','photo viewer','brain exercise','resident evil uprising','media player for palm pre','tv guide for windows','blackberry remote control','iberry theme for blackberry curve 8330','text blocker','personality','melon','crossword 365','touch pro 2','world poker tour','brain tester 24-pack','transformers','cbs','portuguese','ea tetris for blackberry','cocktail','txtforward','tetris android','concrete software','samsung code','kaplan','bubble babble','ascendo money for blackberry','photo contacts pro for windows mobile pocket pc','quick memo','ms pac man','line rider','e-mobile email','astronomy','call control','green calculator','mobile mycast','pda safe','money theme','bible unleashed','golf for blackberry storm','iberry today','flying bubbles','code','slide','tetris ppc','dk','panoramic','diamond islands','free blackberry apps','lygea calculators pocket 10b se business calculator for blackberry','launchpad','mobstar','uninstall','skype blackberry','prison tycoon','spanish anywhere','motek','animation','simcity metropolis','lonely planet thai','gps for palm','skype for blackberry 8900','advanced brain trainer edition 1','spyhunter','if europe','google maps','microsoft voice command for windows mobile smartphone','registry','brain challenge 2','pink themes','harry potter','zeus','twitter blackberry','fried chicken','krystaloids','spb phone suite for touch pro','mahjong for blackberry','vintage diamond butterfly','alchemy','cherry','bubble town 2 for blackberry','rain','oxford university press','one calc','roller coaster rush','manual','liberty','nfp mobile','florida gators','pink','flashlight for blackberry','touch screen','sherlock holmes','amazon app for blackberry','oxford android','snooker','media video','ice age','mobstar media','batman','lonely planet spanish','antair call screener for blackberry','mobigloo','ipaq','westward','orc and elves 2','gts','power chat','command','mummy maze','world series of poker','spb traveller','8900','vr+','michigan state','voiceit','themes for blackberry 8330','driving','4connect','seven','zoom custom bottom zen','coinflipper','mahjong quest','killer mobile','manager','english german','tip calculator for blackberry','screen saver','cooking','tennis','monopoly world','lightning theme','italy','spades for blackberry','little tank','wall street','hands on mobile hands on world poker tour 2 for blackberry','construction','games for storm','data on the run','pirates','audio phrasebook','are you smarter','digital cyclone pilot my-cast for blackberry','astraware sudoku for windows mobile pocket pc','blue lite','garmin mobile','gonews','hells kitchen','games dominoes','sokoban','cia factbook','clemson','super slyder','village sim','horse racing','empire','extreme running','monopoly for blackberry','pda fitness','video caller id','8130','9550','golf score','mummy','blackberry backup','yourcall','twistbox','scrabble for blackberry','marble worlds','south park','digital chocolate','sprint picture mail','color led','ipaq 210','pathophysiology','dig dug','sims blackberry','handmarket apps for windows mobile','game show','emulator','spb online','berry finder','training','speed','rome','rick steves','expense report','track and field','mms','big box of blox','email application','university of florida','chains','blackberry french','outlook blackberry','love','slideshow','realdice poker','real dice multiplayer championship poker texas holdem for blackberry','xperia games','palm namco','naemse','8520','blackberry pearl','win','world series of poker pro challenge','sims 2 castaway','auction','expense tracker 3','zoom custom','curve today themes','safewallet pro','frutakia','texas hold\'em king','handy calendar','windows mobile pocket pc','stop','canfield','voice sms','mobiscope','video conversion','garfield','magmic','railroad','soul of darkness','food points','astraware casino card games for blackberry','nascar','new york times sudoku','splashid palm','rdp','diamond twister','myunits','word mojo','games palm m515','palm calendar','deer','dollar','relax','tower bloxx','blackberry simcity','mobile reader','board','password plus','5800','blackberry 8310','red alert','frog','reminder','zen frog','8900 themes','game bundle','fugitive','liquid rainbow','madden 10 blackberry','nokia e75','3d volcano island','alabama crimson tide','drug interaction','microsoft outlook','quantum of solace','diamond','support','mobile cam viewer','burgertime','new york rangers','total war','halloween themes for smartphone','thailand','tweet','register software','volcano island','aaa','assassins creed','lonely planet japanese','longhorns','poker legend','bejeweled twist','social networking','i-play jewel quest ii for windows mobile pocket pc','surveillance','share price','radio music','doom rpg','rollercoaster','astraware sudoku for blackberry','lonely planet french phrase book','personal assistant','alabama crimson tide theme','wsj','chords','real iberry','jc designs real iberry today plus theme for blackberry','boulder','sutra','garmin blackberry','luxor quest','master','remove','sleep','collegiate dictionary','crossbar plus','411 search','games for ipaq','balls games','i-play bowling','pearl themes','games for utstarcom ppc 6700','thomson','halloween','lego batman','backup contacts','poker games','pilot my-cast monthly subscription for blackberry','spb brain evolution 2','samsung omnia','pacman blackberry','dead rising','store','blackberry mileage','personal finance','holiday music','mob','casino blackberry','jewish bible','real networks text twist turbo for pocket pc','rpn','midnight fairy theme','michigan state theme','camerafx','clone wars','bzzz','stompbox','flowers theme','military','quickwrite','fiercehealthcare','big kahuna words','elle','palm treo pro','kansas jayhawks','aim express','hide photo','color light','e2','spb brain evolution','infinite time','im for skype','super slam','hard rock casino 2','jc designs real iberry blocks custom l 2.0 theme for blackberry','voice recorder for blackberry','live','ringtones for palm','sachin','garmin mobile monthly subscription for blackberry','merv','solitaire card games','strawberry shortcake','palm m515','monkey','peaceful creek','word puzzle','sms popup','fm','orcs','skype for treo 755p','gera','oxford blackberry','super bounce out','excell','blackberry klondike','mac theme','mail client','hero','fast food calorie counter','dance dance','vintage hearts','wheres waldo','2009 astrology horoscope pro','hand reading pro','10b','games for ipaq 3800','curious george theme','curious george','found me','mountaineers','astraware casino table games','cam','astraware casino video games','treo 650 software','texas holdem poker odds calculator','razorbacks','tungsten e calculator','deer hunter','georgia','connect 4 battleship','hollywood hospital','currency converter deluxe','currency exchange rates','icc world twenty20 england09','cocktail mixer remixed','family guy uncensored','gx5 ringtone shuffler for blackberry','mini golf 99 holes theme park','contacts for palm','lonely planet italian phrase book','real iberry blocks custom l 2.0 theme','safe box','lonely planet german phrase book','pocket 10b se business calculator','webmessenger message alerts','roget\'s thesaurus','webcam software','tennessee','math applications','personal productivity assistant','ladybug','gi joe','britannica mobile for palm','pool for htc touch','9630 tour themes','motorcycle','barback cocktail drinks','seek and find games','carbon fiber theme','680','diner dash game','volcano','curve geocache','property','britannica concise encyclopedia','e-mobile contacts for blackberry','go game','x-men','spb mobile','webgate','golf games for blackberry','surviving','wi fi','cat','true country','best','cholesterol','mobiola player','blackberry tour games','underground','zen table tennis','hollywood hotel','themes for blackberry tour','blackberry desktop software','freecell for blackberry','burning skull','super sid','virtual pet','blackberry 8130 games','solar theme','garmin for blackberry','wildpalm','spb geo game','mahjong solitaire for blackberry','golf theme','splash id desktop','who wants to be a millionaire 2010 for windows mobile pocket pc','maze game','protect','madison square garden','symbian s60','rangers','deep blue 2.0','music ringtones','berry find','headline','motocross blackberry','oxford dictionary for blackberry','burberry theme','im+ all-in-one messenger','french english translator','gothic rose','naughty','2009 astrology','surf','ice theme','carbohydrate counter','twin','car themes','quick books','pac man game','pop up alerts','mystery mania','brain tester 24 pack','black shark','tungsten c','where gps','sally salon','chess 8330','key','tomb raider','lonely planet mandarin','euchre for blackberry','facebook applications','texas holdem king 3','bird flu','bionic commando','stranded','my locker','email preview','keyoe diet and exercise assistant for palm os','georgia theme','daisy','palm zire 71','intercasting','mobiledb with excel','sms text','product serial number','sms spam manager','plane','pac-man blackberry','resco brain games','better homes','waterfall','dream','great dates','theme green','bartop','biomobility','bill calculator','smrtguard peekawho email sms alerts spam blocker for blackberry','8330 games','real iberry blocks icon theme for blackberry','happy lines','blackberry 9530 themes','emt','backgammon for blackberry','poker odds calculator','blackberry 7290','treasure','service','diamond 2','handmark pocket monopoly','bubble bubble','converter deluxe','numerology','twenty20 cricket','mytopia','pdacookbook','curve 8300','auburn theme','mycast for blackberry','burburry','garmin gps','imaginationland','appointment','iberry today plus','60','click deluxe 2','free news','madagascar','flower','odds','jet','gamecock','kittens','video poker blackberry','q9c','local radio','bnet','revolving theme','astraware hidden expedition titanic for windows mobile pocket pc','connection','ko legends','cities of the world','broken','in fusio','big kahuna','budget tracker','esoft','aviation weather','ascendo money desktop','xonix','sync with mac','palm spreadsheet','sqlite','bike','namco pac-man','bike or die','games for blackberry curve','kodak','armored forces','freecell for palm os','new york crossword','nudity','blackberry 8320 games','real iberry today plus theme for blackberry','games for tungsten t3','butterflies and cupcakes','blackberry 7130e','joyful heart','food nutrition','glamour theme','air racing','privus caller id','brain trainer for blackberry','pageonce personal productivity assistant','network usage','fancy florish','tomb','feud','motek mobile','blackberry 8520','black','mexico','dell axim x30','mtv cribs','monopoly mobile','wikimobile blackberry','sally\'s','blackberry slots','windows live','gamevil','pool table game','medical calculator','blackberry printing software','s60','hide','devil hunter','chaos','championship mahjong','university miami themes','ppc','2008 world soccer','3d formula','handmark mobile app','mapping software','smash','uk gps','trade','world time clock','blackberry storm gps','clinical','kill','games zire 72','chillout light 2009','mobilestream meteor for windows mobile pocket pc','curve 8900','blue','sql','facebook blackberry','sheep mania','harry','encyclopedia palm','par 3','3d chopper fight','rainbow six','animated themes for blackberry','pocket pc 2003','legal','indiana jones','darts deluxe ii','blackberry world','the simpsons minutes to meltdown','creed','citi themes','sat test','rotate','scrabble update','tetris classic game','palm iii','seven seas','ulocate','country music','answering machine','profiles windows mobile','crossbar','byu','monkey spin','blackberry 9000','madagascar 2','crash bandicoot','fast food calorie','seminoles','real arcade','checklist pocket pc','bill due date','vehicle maintenance','kansas state wildcats','night','chess smartphone','poker timer','nametones','mobideos mobilecamviewer basic webcam viewer for palm os','law and order','ringo tones','backgammon smartphone','palm tungsten e games free','ken-ken','epocware','ea the sims 3 for windows mobile pocket pc','word worm','talk','astraware bejeweled 2 for windows mobile pocket pc','tetris palm centro','fierce towers','midnight bowling','power','asf','chess for palm treo','21','ea mobile','gems','high school','zombie','pocket day','express for blackberry','today plugin','retro','blackberry html email','theme htc 6800','knight','fishtycoon','accelerator','lists application','eon blue','orchid','user guide','spb suite','maxx wireless','gi calorie','model','total','chuck','todaypro','lightning storm','sonicboom media','univision movil','my cast blackberry','star dust animated theme for blackberry','lightplay studios bubbletris deluxe for blackberry','8320 tetris','tank game','chess palm os','br','tennessee vols','blackberry peggle','media studio','outlook contacts','product registration','polka dots','motek mobile brightberry flashlight for blackberry','resetgame','skype 8900','fish tank','contact mapping','passion','harley themes','skylab mobilesystems contactmapper for blackberry','california','las vegas nights','forbes mobile','touch hd','palm zire 71 games','8 in 1','city','i-berry','audio editor','doggie dash','hourly chime','tetris z22','blood skull','i phone','bmi','south','christmas music','stewie griffin','glu mobile','emergency','palm card games','pocket alarm','joy','up','shape services im+ all-in-one messenger for blackberry','palm web','t x','german dictionary','queen of spade','com port','iberry icon','real dice multiplayer championship chess for blackberry','solace','boom','florida state theme','voice text','trackit timezone','flames theme','ct alarm clock','trimble gps','how to install','irish','spore android','pocket grandmaster','xml','tower mogul','free java games','microsoft voice control','virtual games','bomb logic','real networks text twist turbo for blackberry','palm browser','pizza','deluxeware weather','mileage calculator','olive','pileup','jabber','mobifusion oxford','sms manager','rex','splashshopper for blackberry','palm medical software','pocket weather','zire 71','news blackberry','8310 games','touch pro2','infantry','outdoors','cricket games','sonicboom graffiti writer for blackberry','palm poker','bass','flip words','compose','call barring','stunt','new orleans','trimble navigator','supermodel','splashid password manager for windows mobile','my pilot-cast','mind','duke blue devils','flying money','critical care','palm m505 games','zombie infection','palm earth','gold','8820','pocketmoney for windows mobile pocket pc','mobile my cast','omega one','webshots monthly','electric pocket ringo mobile for blackberry','out road','mind games 2','total wireless solutions','s4bb limited','my customers','sonicboom','motek mobile caribbean pirate theme for blackberry','palm treo 680','high seas','hands on guitar hero world tour for windows mobile pocket pc','htc touch cruise','wakefieldsoft infosafe plus for palm os','high def','ego','new york nights','studio flowers theme for rim blackberry 8300 curve','finder','moulin rouge','studio flowers theme for rim blackberry 9530 storm','real enterprise','ohio state theme','oxford german','pinball game','puppy love','hell rider','bold icon','limelight pinball evolution for windows mobile pocket pc','food journal','view videos','cooking dash','biohazard','mind games 2 for rim blackberry 9530 storm','blackberry agenda','games for palm z22','looney','multiplication','gun game','tetris for storm','ou','slot machine games','meier','the new oxford annotated bible with apocrypha','browse','four in a line pro ii','o2','ocean','boulder dash rocks','sims games','large keyboard','texas longhorns theme','5th','kaplan mobile prep','ringtone editing','media manager','samsung omnia i910','rim blackberry storm','role','real iberry today','fiercebiotech','new york knicks mobile reader','5 star','astraware bubble babble','mayan','digital cyclone my-cast for windows mobile pocket pc','touchbrowser for windows mobile','golden tee golf mobile','htc touch diamond 2','trimble allsport blackberry','slovoed french','handmark theme junkie for blackberry monthly subscription','weight training','storm yahtzee','wimbledon 2008','chillout','palm 755p games','night sky','starpop','tropical theme','pimp my pearl for blackberry','britannica trivia challenge','apps for the palm pre','world almanac mobile','yukon','angel theme','mobile systems quickspell for palm os','spb wallet for windows mobile pocket pc','normsoft pocket tunes deluxe for palm os','lonely planet audio phrasebooks','trimble geocache navigator','no limit poker','platypus for nokia n95','lonely planet windows','palm diet and exercise','air hockey challenge','3d bowling','shape services mobiola xplayer for blackberry','trivia games','astraware chuzzle','leonard','aac','english to chinese translates','q','blackberry keyboard','iberry theme bold','dual time zones','phone calls','pocket oxford italian dictionary','fiercewireless','earth day','the oxford american desk dictionary and thesaurus for pocket pc','glu world series of poker pro challenge for blackberry','battle towers','best message storer','merv griffin','best blacklist','guide to prescription drugs','rick steves london','cliptone fun','namco networks','emergency medicine','splashid for windows','inbox','splash shopping','incoming call','ct','e2 games','sid meiers pirates','risk for blackberry','treo 700wx navigation','pocket money palm','beachfront','omega one battery pack pro','blackberry expense report','how download','tetris blockout for windows mobile smartphone','notify','business software','tetris for blackberry storm','wont download','pizza manager','rainbow six vegas','sbp keyboard','full screen contacts','zen table','pocket goo 2','create ringtones','sol','emobile weather','boulder dash','xpress music','1976','conduits timekeeper','poker for windows mobile','mixx mobile for windows mobile pocket pc','dictionary english spanish palm z22','personal productivity assistant for blackberry','outlook for blackberry','iron cross','xda orbit volume','drink recipes','slvr l7','concrete software aces solitaire pack for blackberry','urban theme','l6','bell','spb menu','treo 650 email','dial it','demon skull','free phone','new oxford american','african safari','spb software house','razr2 v9','aces tournament timer','phil hellmuth texas holdem','razr v3','p3300','krzr','line rider mobile','world almanac book of facts','k750','mandarin phrase book','beagle','custom icon','total wireless solutions echeckregister for blackberry','gps motorola q9','kitty','m700','tg01','nokia e65','resco keyboard','pocket express blackjack','pictionary','magazine reader','proud american','gothic themes','rim app','forbes.com','treo launcher','trivial pursuit handheld edition for palm os','id you','ea monopoly','real time stock quotes','touch shell pro','palm recording','candymania','plexhouse games blackjack for palm os','real dice roulette','blackberry diet','real dice video poker','gothic','toxic love','canada map','blue flames theme','tribal','show times','aristotle','skipping stone iq','top 100s','application memory','cliptone','emobile contacts','collegiate dictionary by merriam-webster','basic calculator','skateboarding','mobideos webcam viewer standard monthly subscription for blackberry','airborne mobile','real iberry glass','snapfish','lonely planet german','links scorecard','javatek trackit timezone for blackberry','medieval kings','memory stick','trimble allsport gps monthly subscription for blackberry','logic games','compare','what is pocket express','mpegtv pockettv enterprise edition for wmppc','storm today plus','express dictionary','multi','mycast blackberry','palm tungsten e2 email','security cameras','spb pocket plus for windows mobile pocket pc','nyt','spiffcode','webster spanish','sim city blackberry','theme windows','versa','rock city empire','mp3 player for blackberry','i907','mobile voice command','m4a','bonfire media ebay wireless for blackberry','packing list','super slam ping pong','hard ball','crazysoft smart educational games for blackberry','super boom boom','exclaim pictavision for blackberry','system mechanic','pink slip','turbo','blackberry storm pdf','word game for pocket pc','pacman puzzle','burger time delight','8830 time','duplicate contacts','ny times','call later','sims windows mobile','today launcher','pyramid solitaire','currency converter for palm','store passwords','airborne food network everyday chef for blackberry','crypto','cadillac bling','e-mobile task pro','airborne food network everyday chef','ascendo desktop','picture protection','bold zen theme','scissors','hand notes','realdice texas hold\'em','scrabble centro','bplay new york times crosswords classic for windows mobile pocket pc','pocket dbexplorer','treo lock','mastercook','bplay new york times crossword classic for blackberry','astraware titanic','degeneration','blackberry pearl games','real dice multiplayer championship poker','exclaim pictavision','handmark trivial pursuit','mobil phones','new oxford bible','author','big 2','extras','collapse chaos for windows mobile smartphone','skype wing','splashid password manager for s60 3rd edition','blackberry palm sync','soccer scores','mental math','bold garmin','mobilecoach','handmark the bible for blackberry','xda orbit 2','poker solitaire','derek','car expense','jeopardy blackberry','pocket pc money','xperia x1','mobifusion britannica trivia challenge','mobifusion rick steves','exchange sync','palm word games','pool game blackberry storm','web 2.0','sbsh calendar touch','jump','astraware solitaire for palm os','pocket trivial pursuit','blackberry japanese','chapura pocketcopy','restore','palm downloads','easter','buy 1 get 1 free','pocket pc calendar','spbwallet','cranium for rim blackberry 8100 pearl','webcam for palm treo 750','e-mobile today pro','gps for 8330','blackberry glu','3d ten pin bowling','astraware sudoku for rim blackberry bold','pocket pc tips and tricks','diet calorie','real dice multiplayer chess','6.1','stingray','custom theme','palm pilot games','handmark pocket scrabble','pocket plus 4','writing software','scrabble for ipaq','lygea pocket 10b se business calculator for blackberry','aws weatherbug for blackberry','pac puzzle','bbsmart view','orneta notepad mobile','palm weather','shape services translator+ for blackberry','games for treo 700wx','splashid password manager','world poker','spartans','blackberry 8220 themes','os games','storm bible','voice dial for palm centro','3d mini','flying games','writing pad','free for the bold','pocketplayer','hebrew bible','pockethack','monster truck','minijetfight','blackberry touch','spb mobile dvd for windows mobile smartphone','blackberry hearts card game','700 wx','1944','3d mini-dogfight','gps email','zingmagic spades','sims 2 connected','battle chess','memoryblocks','palm texas','centro weather','treo 700wx','tetris advanced','palm notes','mobile guide','nasdaq','zingmagic blok blitz','zingmagic hearts','scrabble for palm centro','9502','expense mileage tracker','3d golf','htc touch diamond ringtones','treasurequest','nascar 09 for rim blackberry 8330','dell pocket pc','garmin mobile blackberry','drill','homer','minutes to meltdown','games on sd cards','mobifusion britannica trivia challenge for blackberry','pileup candymania','rabbit','hollerid nametones for windows mobile pocket pc','21 databases','marisa miller','dell software','tetris bold','blackberry holidays','food recipes','j','river','iambic health diet manager','revised standard','gameloft platinum solitaire for blackberry','close program','assassin\'s','warelex mobiola video studio video converter and file manager for pocket pc','gosub 60 solitaire deluxe 12-pack for blackberry','rn critical care','what is a handmark','today l theme','spider card game for 8310','spb finance for pocket pc','spider for palm os','casino pocket pc','reject by sms','change light color','spin','rim storm','htc touch diamond bible','spbbackup','arcade side golf','racer','knowledge','clie games','bonfire','freestyle','real dice multiplayer championship chess','watch watch','emergency physician','e-mobile pocketstreamer','gera sol mania for blackberry','pdc','take phone','announce caller','zagat windows','championship chess','htc touch scrabble','blackberry 8830 ringtone','cut and paste','mobile messenger','tetris for treo','handmark pocket backgammon','inspired 9000 today theme for blackberry','archive crossword 365','handmark.backgammon','bold themes for 8310','blackberry today screen','the weather channel for blackberry','inspired 9000 icon','jc designs real iberry blocks icon theme for blackberry','tricks','call journal','easy crossword puzzles','aces solitaire for htc touch','palm password manager','8310 today theme','centro chess','expense 1.1','pocket deluxe','blackberry products','change font','spb monitor','add astraware bejeweled','iberry for the bold','for windows mobile pocket pc','summer','hx4700','1 home edit','q task','unwanted callers','ringer volume','blackberry grocery list','kungfu panda','dvidearts','cool','load theme','fruit machine','increase volume','blackberry ringtone manager','warelex pro','animals of mass','harry putters crazy golf','smart educational games for windows mobile pocket pc','palm music download','digit dial','palm mp3 player','sportsbike','3d chopper','power off','relationship','palm os spanish','monster jam','word excel pdf','save','electric pocket ringo','awardwinning palm','rim software','all dvd','handmark express maps','pocket pc astraware','awardwinning windows mobile smartphone','backstage','hawk','glass block','game cards palm m515','outroad','exchange server','anthony dias blues','hi launcher','toyspring','3d 9 hole golf','ringcare mobile','mytimetracker','pimp my pearl 8110','games pocket','3d ten pin','3d dogfight','palm m130 games','htc touch chess','scrabble z22');
/* $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);
    }