/* Popular phrases - GREENMOUNTAINCOFFEE - 17:2:11, Mon Feb 6, 2012 */
__SLI_ClientDefaults =
[
    ['UseHTTPS', true],
['TargetURL', 'http://search.greenmountaincoffee.com/search?w=']
];
var asPhrases=new Array ('pumpkin spice k-cup','cappuccino','chai latte','french toast k cups','rain forest nut coffee','coconut k cups','golden french toast k cups','french toast','cappuccino coffee','coconut','breakfast blend k cups','pumpkin spice','decaf k cups','hot cocoa k cups','donut shop k cups','half caff k-cup','hazelnut k cup','white chocolate','pumpkin spice coffee k-cup','golden french toast','french vanilla k-cup','caramel vanilla cream k-cup','rain forest nut','cafe mocha','dark magic','swiss miss','nantucket blend k-cup','free trial k cups','blueberry k cup','breakfast blend','apple cider k cup','80 count k-cup','variety k cup packages','donut shop','timothy\'s k-cups','green tea','gingerbread','shipping charges','sumatran reserve k-cup','blueberry','southern pecan k cup','espresso k cup','donut house k cups','chai','k cups','decaf coffee k-cups','chocolate raspberry truffle','hazelnut','german chocolate cake kcup','mocha nut fudge k-cup','revv','swiss miss hot cocoa','lake and lodge k cups','kahlua k cups coffee','swiss miss hot cocoa k-cup','mocha java','southern sweet tea','vermont country blend k cup','80 count k cups','butter toffee k cups','hot cocoa','t6520','blueberry mountain k cups','french roast','dark magic extra bold k-cup coffee','our blend k cup','hot chocolate','earl grey tea','espresso','french roast k cup','newmans special blend k-cups','donut house','decaf variety k-cup sampler','cinnamon pastry k-cup','raspberry truffle','latte','chocolate glazed donut k-cup','french vanilla','revv pulse k-cup','mocha','columbian fair trade select k cup','chai tea latte','jet fuel k cup','cocoa','wild mountain blueberry k-cup','t6739','espresso blend dark roast','kahlua','breakfast blend k cups 80','tea','vermont country blend','golden french toast k-cup','extra bold','breakfast blend decaf k-cup','our blend','nantucket blend','sampler k cup boxes','newmans extra bold','dark magic decaf','tree hugger k-cup','hot apple cider k cups','jobs','hazelnut decaf k cup','italian roast k-cup','decaf tea k cups','caffeine','t6502','mudslide k cup','double black diamond extra bold','apple cider','nantucket','low acid coffee','cafe escapes','caribou k cups','tullys','french roast decaf k-cups','kenyan aa k-cup','t4000','t4061','emeril\'s big easy bold k-cup','cinnamon roll k-cup','decaf tea','keurig','filters','newmans extra bold k cups','decaf','half caff','chocolate raspberry','island coffee','half and half perfect iced tea','gluten free k cups','caribou','iced tea k cups','thermos','sampler','french vanilla decaf','lake and lodge','espresso k-cup','free shipping','barista prima','donut','t6602','cider','calories in k cups','sweet tea k cups','newmans','newmans decaf k cup','t6700','tea variety sampler','vermont country blend decaf','t6534','black tiger','colombian fair trade select k-cup','sleepytime herbal tea k-cup','hazelnut k-cup','t6801','donut shop decaf k-cup','vanilla caramel k-cups','t6732','barista prima italian roast k cup','french vanilla decaf k cup','variety packages','pumpkin spice k cup','italian roast','iced tea','coffee people k cups','t6201','t6805','black tea k cups','flavored variety k-cup sampler','chai tea','jet fuel','butter toffee','southern pecan','whole bean','t6663','80 ct breakfast blend k cup','t6715','travel mug','gift certificate','tully\'s french roast k-cup','timothys decaf k cups','mahogany k cup','dark chocolate hot cocoa','decaf coffee','green mountain k cups','irish cream k-cup','coconut flavored coffee','seasonal k cups','coconut flavor k cups','milk chocolate hot cocoa','sweet tea','mudslide','black magic','english breakfast k cup tea','locations','t6803','brew over ice','caramel drizzle k cups','mugs','pumpkin','free offers','t6792','mocha nut fudge','t6772','calories','italian blend','pecan','mint','hazelnut decaf','decaf sampler','my k-cup','donut house decaf k-cup','organic k cup','french toast k-cups','southern sweet perfect iced tea','express blend','kenyan aa','revv k cups','island','toast','swiss','rain','k-cups','cafe express','caramel vanilla cream','vermont','tumbler','t6783','rain forest','irish cream','french press','french roast decaf','starbucks french roast','cinnamon','t6722','fair trade k cup','kahlua k cups','kcups','tullys house blend','caribou k cups 80 ct','mandarin orange spice herbal tea','columbian','double black diamond k cups','tpb4141','free hot cocoa','chocolate glazed donut','peach','80 count','sugar free','t7522','mocha java k cups','nantucket blend iced coffee','variety','french toast coffee','seasonal','green mountain decaf','cafe escapes mocha','french','lake and lodge coffee','pecan k cup','t6825','sumatran k cup','butter toffee k-cup coffee','t6752','t6802','pastry','raspberry iced tea','original donut shop','gingerbread spice','80 count box','black tiger k-cup','my k-cup adapter','german chocolate cake','excelencia','wild mountain blueberry','t6992','cafe escapes milk chocolate','green mountain coffee','pomegranate green tea','ice tea variety','t4067','emerils jazzed up decaf','t6999','coffee people','green tea with pomegranate','earl grey','b60','t4060','celestial seasonings','t6501','t7602','parisian nights k-cup','t4066','breakfast blend decaf','tpb4137','club','tea sampler','t6507','lemon zinger tea k cup','sumatran','caramel vanilla','southern pecan coffee','decaf green tea k cups','cinnamon cream swirl','blueberry coffee','daybreak morning blend k-cup','cinnamon pastry','southern','caribou decaf k cup','hot chocolate cups','t6523','emeril','k cup teas','revv pulse','dark magic decaf extra bold k-cup','80 count breakfast blend','barista prima house blend','b145 office pro','t6520 breakfast blend','chocolate','cafe escapes chai latte','tree hugger','house blend','celestial tea k cups','sumatran reserve','pumpkin spice coffee k cups','newmans organic','timothy\'s k-cup variety pack','vanilla k cup','t6694','k-cup decaf','iced coffee k cups','seasonal flavors','barista prima colombia k cup','80 ct k-cups','t4063','dark magic espresso blend','espresso blend','t6503','t6614','columbian k cup','rainforest espresso k-cup','t6570','double black diamond','k cup decaf coffee','nantucket blend k-cup coffee','t4000 hot cocoa','half','stainless steel thermos','apple cider k-cup','maple syrup','hot apple cider','mocha coffee','apple','platinum','lemon zinger','donut shop decaf','ethiopian yirgacheffe','calories in coffee','cake','t7732','caramel vanilla decaf','barista prima french roast','descale','big easy bold k-cup','golden french toast k-cups','chai k cup','t6051','dark hot chocolate','t7792','toffee','india spice chai tea k-cup','wild blueberry k cups','french roast k-cup','free cocoa k cups','carousel','80 count k-cup donut shop','cider cups','free keurig','tree','t4062','daybreak','coffee','donut house decaf','barista prima italian roast','costa rican k cups','caffeine intake','bold coffee k cups','mahogany','cinnamon roll','t7534','peach iced tea','emerils big easy bold','columbian fair trade k cups','vanilla','t6060','flavored variety k-cup coffee sampler','english breakfast tea','k cup carousel','low acid','sumatra','black diamond','wake up coffee','b145','tpb4104','raspberry','hot tea k cups','iced coffee','sleepytime tea k cups','tullys collection','extra bold k cups','caramel vanilla nut','espresso roast k cups','morning blend decaf','black tea','t6990','colombian fair trade select','flavored variety','join club','t6058','english breakfast black tea k cup celestial seasonings','t6054','grinder','bodum','french vanilla iced coffee','jet fuel k-cup','coffee club','free brewer','keurig mini','irish','regular variety k-cup coffee sampler','pumpkin spice k-cups','unsweetened black iced tea','hazelnut coffee','dunkin donuts','decaf green tea','t6056','columbian fair trade select','wake up','newmans special decaf','our blend coffee','hazelnut 80 ct kcup','coconut coffee','caribou blend','nissan thermos','k-cup adapter','starbucks breakfast blend','k cup variety','keurig carousel','italian','toffee k cup','tpb4110','kahlua original coffee','mocha nut','pumpkin spice coffee','swiss miss k cups','t6611','chocolate coffee','glazed donut k cup','chocolate almond','k cup adapter','tullys french roast','green mountain','extra bold espresso','timothy\'s tea','chamomile tea','sleepytime','winter k cup','bigelow','mint medley tea','tpb4133','costa rican','rainforest','half caffeine k cups','frother','flavored sampler','italian blend kcup','80','caramel','filter cartridges','mint tea','dark magic decaf extra bold','variety sampler','t6823','colombian','italian roast k cup','infusion','tullys travel mug','midnight magic k cups','organic breakfast crate','t6828','french vanilla supreme k-cup coffee','tpb4114','cups','variety sampler regular','hot apple cider kcup','pulse','perfect iced tea','b40','join coffee club','b70','tea k-cups','limited edition kcups','golden','water process decaffeinated','bodum mugs','coffee calories','nicaraguan fair trade','lake','tullys french roast decaf','breakfast','keurig b60','organic coffee','french vanilla iced coffee k-cup','guatemala coffee','water filter cartridges','mandarin orange spice herbal tea k-cup','nells breakfast blend','southern sweet','k-cup tea','kenyan','keurig descaler','large cup','t4057','blueberry mountain coffee','green tea k','tpb4136','cafe escapes dark chocolate hot cocoa','chai green tea','organic','pumpkin spice seasonal','orange spice tea k cups','backpack thermos','hazelnut k-cup coffee','taste of vermont sap bucket gift','jet','morning blend k-cup','cafe express coffee club','t6832','ethiopian coffee','timothy\'s decaf coffee','black diamond extra bold','sweet ice teas','tully coffee house collection','jazzed up decaf','german chocolate k cups','almond flavor coffee','flavored decaf','signature sampler','cinnamon k cups','mexican select','special reserve','german chocolate','milk frother','raspberry tea','timothys variety pack','lake and lodge bean','fair trade organic','tour','filter for k-cup','tea variety','sugar free apple cider','travel cups','t6505','free gift','light roast','caribou blend k cup','tully\'s coffee house k-cup collection','fair trade organic house blend','water filter','t1252','blueberry flavored coffee','variety box','celestial english breakfast black tea','pancake mix','chai kcup','donut house decaf k-cup coffee','descal cleaner','t5092','cafe almond biscotti','german','coffee house collection','keurig brewer','brewers','winter seasonal','flavored coffee','k cup french vanilla','half-caff k-cup','timothy\'s decaf k-cup','k cup chai tea','herbal tea k-cups','rainforest espresso decaf','revv pulse coffee k-cup','t6501 k-cup','t6055','southern sweet iced tea','medium roast k cups','cider k','decaf hazelnut k','brew over ice tumbler','t6822','cafe latte','carmel apple cider','insulated mugs','newmans special blend','t6014','peach tea','orange','t6613','java','swiss miss hot chocolate','taste of vermont','t6995','shipping time','guatemalan finca dos marias','dark roast','coffee mugs','decafe coffe k cups','cafe express club','k cup hot chocolate','zinger','hot cider k cup','sumatran bold','t6824','t6831','naturally decaffeinated','kenyan highland cooperatives fair trade','house blend decaf','coconut coffee k cup','descale brewer','donut shop coffee k cups','black tea with lemon','b40 brewer','black tea sampler','water processed decaf k cups','t6821','wild mountain blueberry k cups','universal tumbler','tpb4138','bold','emeril\'s big easy bold k-cup coffee','carousel tree','timothys k cups','assortment packs','espresso machine','dark chocolate','chocolate donut','mocha k cups','dark roast k cups','regular sampler','newman decaf','mocha nut fudge k cups','timothy cinnamon pastry','tpb4130','chai latté','keurig b-70','biscotti','decaf k-cups','b155','kenyan k cups','t6994','extra bold dark magic','my k cup adapter','80 pack k cups','colombian decaf','fair trade','breville keurig single-cup brewer','mr coffee brewer','adapter','half-caff','t6612','syrup','signature coffee sampler','revv k-cup coffee','mountain blueberry','bigelow cozy chamomile','timothys decaf','bigelow tea','big easy','k-cup sampler','coffee tour','gluten free','sumatran lake tawar','keurig filter','sleepytime tea','columbian fair trade','donut shop kcups','guatemalan k cup','free hot cocoa k cups','peach flavor','vermont decaf','stainless thermos','house blend k-cup','caribou decaf','limited edition k-cups','toffee coffee','chocolate mocha','magic','vanilla cream','pecan flavored coffee','k-cup filter','milk hot chocolate','cinnamon roll k cup','celestial seasonings english breakfast tea','my k-cup refill pack','nantucket blend coffee','india spice chai tea','seasonal tour','newman\'s special blend extra bold k-cup coffee','colombian fair trade','backpack','tpb4120','midnight magic','decaf process','chocolate covered marshmallows','cupons','adapter piece','cleaning','french vanilla supreme','thermo ceramic mug','iced','english breakfast','glutenfree','caffeine free coffee','black tiger k cup','bigelow green tea','b3000','todd piker','hazelnut cream k cup','mudslide k-cup','organic decaf','columbian decaf k-cup','decaf hazelnut coffee','flavored coffee sampler','french roast decaf k cup','keurig mug','kahlua original','wild blueberry','t6997','coffee press','logo thermos','yirgacheffe','green mountain naturals','breakfast tea','iced tea variety pack','barista','stainless steel','cleaner','tullys espresso','lodge','maple k-cup','caribou blend k-cup coffee 80 ct','tiger','k-cup hot chocolate','hot cocoa k','decaf coffee variety','mexican','half caff k cups','t4051 newman\'s special decaf','cuisinart brewer','southern pecan k-cup coffee','bigelow earl grey','coffee syrups','chocolate glazed donut k-cup coffee','huehuetenango','barista prima french roast k-cup coffee','tpb4103','fair trade our blend','brownie mix','seasonal flavors k cup tour','green','costa rica','butter toffee coffee','italian blend k-cup coffee','variety sampler decaf','double black','vanilla decaf','vanilla nut coffee','zhena\'s tea','our blend fair trade certified','dezcal','tea leaves','orange tea','travel coffee mugs','coco','organic sumatran extra bold','k-cup organic','special reserve coffees','passion tea','unsweetened ice tea','fair trade rain forest nut','caribou blend k-cup','nissan','magic decaf','green mountain cups','cinnamon roll coffee','half and half tea','tpb4109','fair trade colombian k-cup','cozy chamomile tea','country blend kcups','perfect iced tea variety pack','decaf espresso','english breakfast k cup','newman\'s k cups','nicaraguan fair trade organic','golden french toast coffee','shortbread cookie','morning','tpb4100','columbian excelencia','donut decaf','breville','specials','daybreak 80','diamond','bigelow green tea with pomegranate','breakfast blend k-cup coffee','timothy','nut','mint medley','blueberry coffee kcup','b70 brewer','bigelow english breakfast','daybreak morning blend','caffeine free k-cups','tpb4124','organic french roast','breakfast blend k cups 80 count','tpb4134','starbucks house blend','pumpkin k cup','decaf columbian k cup','platinum brewer','coffee people kcups','tpb4101','water filter kit','prima','ethiopian','blueberry k-cup','tpb4112','supreme','woven mugs','bodum travel mug','b31','flavored syrup','brazil coffee','decaf espresso k cup','pumpkin spice tea','special blend','peru','k cup variety sampler flavored','free cocoa','hot','rainforest espresso','assorted k cups','caramel vanilla k-cup','flavored k cups','lake champlain cocoa','kcup variety','keurig travel mug','vanilla nut','kcup tree','cinnamon pastry k cup','k-cup green tea','spiced cider','nantucket coffee','hibiscus tea','decaf variety','raspberry black tea','decaf beans','sweet raspberry iced tea','k-cup french toast','tullys house blend decaf','lemon','tree hugger k cup','hot tea','keurig b31','ingredients in hot apple cider','almond biscotti','french roast decaf k-cup coffee','my k cup','golden french','coffee of the month','half and half k cups','guatemalan mug','nantucket iced','tpb4108','french vanilla iced','german chocolate cake k-cup coffee','marshmallows','donut house cinnamon roll','dark magic coffee','green mountain colombian','tpb4106','celestial','basket filters','tpb4111','low acid decaf','12 k cups','classic brewer','big easy bold','coffee people donut shop','forest nut','k cup sampler','tiger k cup','irish cream k cups','celestial seasonings sleepytime','100','espresso maker','kahlúa original coffee','breakfast tea k cup','red tea','glazed donut','organic house blend','mandarin orange spice tea','celestial seasonings k-cups','sleepytime herbal','seasonal k-cup','mahogany k-cup coffee','keurig adapter piece','vending','cheddar cheese straws','80 cup packs','vermont country k-cup','tully french roast k-cup','morning blend','single-cup brewing','flavored decaf coffee','chocolate kcup','glass mug','emeril k cups','decaf water processed','kahlua k-cups','tullys breakfast blend','ice coffe','coffee bags','refillable k cup','bold decaf k-cups','lemon tea','spiced windmill cookies','extra bold decaf k-cup','coffee singles','my k-cup for keurig brewers','dark magic espresso k cup','english tea','nantucket iced k cups','black ice tea','light blend coffee','french vanilla coffee','sugar free flavored decaf','red river mug','morning edition','coffe people','light roast decaf','ethiopian k cup','dispenser','b60 special edition','capresso grinder','special decaf','fair trade organic sumatran reserve extra bold','half and half coffee','mini brewer','5 pack','tanzanian gombe reserve','mocha java k-cup','berry tea','cinnamon pastry k-cup coffee','b140','special offer','spice chai latte','cafe','celestial teas','chocolate coffee k-cup','half and half perfect iced','espresso coffees','keurig brewer b-40','elite','french roast dark','chamomile','collection','kenya k cup','candy','caramel vanilla cream k cups','k cup variety sampler','gombe reserve','tully\'s house','breakfast blend 80 cup','tea tin','coffee shop decaf','b31 mini brewer','b31 brewer','the original donut shop k-cup coffee','orange tea k cups','midnight magic k-cup coffee','kenyan highland cooperatives','vermont country blend coffee','k cups green tea','sweet lemon black tea','sweet lemon iced tea','office pro','tumblers thermos','logo','starter kit','single origin','blueberry mountain k-cup','hazelnut decaf k-cup','la prosperidad','mudslide coffee','charcoal filter','filter kit','colombian excelencia','fair trade vermont country blend','celestial seasonings tea variety','cinnamon swirl','sumatran reserve k cup','12 month tour','decaf sumatra','monthly k cup','organic house blend decaf','decaf green','barista italian roast','white coffee','sweet peach black tea','egg','organic tea','nut coffee','vermont blend','express club','barista blend','columbian decaf','parisian nights','organic french roast decaf','clean keurig','windmill cookies','truffle','donut house coffee','decaf caramel vanilla cream','cranberry tea','tom homann cerulean blue mug','vanilla supreme','80 cup','apple cider sampler','bigelow chai green tea','tea infuser','c','k-cup light roast','espresso shot','regular variety coffee','tullys extra bold french roast','seasonal flavors k-cup coffee tour','reservoir','extra bold decaf k cups','costa rican coffee','gourmet coffee','private','decaffeinated k cups tea','ginseng','k cup filter','india spice chai','join cafe club','sap buckets','water process','tea cups','elite b-40','colombia','prices','nicaraguan coffee','mug k-cup','iced tea southern','caramel apple cider','mandarin orange tea','mexican organic','coffee people tree hugger','breakfast blend 80 ct','double diamond extra bold','iced tea half and half','organic mexican select','organic sumatran reserve','celestial seasonings decaf green tea','keurig b40','private reserve maple syrup','swiss k cup','colombian fair trade select k-cup coffee','dezcal descaling cleaner','hot cider','variety pack','cup dispenser','my k-cup refill','pomegranate tea','almond coffee','fair trade coffee','black tea k-cup','coffee beans','french toast coffee kcup','k cup tree','keurig elite','sweet raspberry black tea','nell','single coffee pack','vermont country blend decaf k-cup coffee','hazelnut cream','daybreak morning blend k-cup coffee','timothy decaf coffee','cuisinart filter','cookies','k-cup refill','lemon zinger herbal tea k-cup','keurig b31 mini plus brewer','tullys decaf','timothys parisian nights','southern sweet perfect tea','lemon tea k cup','celestial perfect ice tea','decaf vanilla k cup','coffee filters','elite brewer','b140 brewer','fair trade golden french toast','naturally flavored k cups','dark','swiss hot chocolate','mr coffee','fair trade organic sumatran reserve','newmans special blend decaf','gluten free biscotti','adapter cup','mitzi','shortbread','barista french roast','froth','nantucket k-cup','dark extra bold','turkish','caffeine free','coffee sampler','replacement filters','extra bold decaf','timothy\'s mocha java','biscotti coffee','bold k cups','chocolate glazed donut coffee','peach sweet tea','k cup dispenser','decaf colombian k-cup coffee','apple cider gluten free','timothy\'s variety','cuisinart water filter','hot apple cider from green mountain naturals','gifts','swiss miss cocoa','double','house collection','water decaf','glazed','decaf dark magic k cups','heritage shortbread cookies','fudge','milk chocolate','tully house','milk','tully\'s french','caramel vanilla cream coffee','emerils big easy','cozy chamomile','celestial seasonings sleepytime herbal','irish cream coffee','apple cider calories','mitzi\'s maple granola','caramel mocha','breakfast blend caffeine','popcorn','sumatra beans','80 ct','decaf rainforest espresso k-cup','the original donut shop coffee','stoneware','barista mug','breakfast blend decaf k cup','mini travel mug','k-cup dispenser','lake and lodge kcup','french roast k-cup coffee','decaf k','mr coffee single cup brewer','columbian especial medium','cold coffee','timothy\'s cinnamon pastry','mexican coffee','taste of vermont sap bucket','english','fresh toast','tully k-cup','jason silverman mugs','sweet peach iced tea','donut shop chocolate coffee','timothy\'s rainforest espresso k-cup','vanilla k-cup','cerulean blue mug','columbian coffee','80 count k-cup coffee','donut house cinnamon roll k-cup','keurig b3000','celestial seasonings sweet tea','b-70','replacement water filter','café escapes milk chocolate hot cocoa','coffee lovers','plumbed','10 free','pumpkin coffee','university','paper filters','dark magic decaf extra bold k-cup coffee','nantucket k cup','cappuccino glasses','coffe of the month','newmans french roast','decaf tea k','english black tea','b70 platinum','jazzed','tpb4125','chocolate decaf','vanilla decaf coffee','timothys flavored k-cups','don','arabica beans','celestial seasonings india spice chai','breakfast blend k','regular variety','orange spice','home','wild blueberry coffee kcups','chocolate nut fudge','butter toffe','limited','sugar','blueberry k','spice cookies','flavored tea k cups','decaffeinated green tea','island coffe','breakfast blend travel mug','unsweetened tea','highland sugarworks','vanilla hazelnut','golden french toast coffee k-cup','bigelow cozy chamomile herb tea','coffee samplers kcups','vermont blend coffee','wood','late','cinnamon vanilla','jet fuel k','half caff coffee','breakfast crate','filter for k cup','timothys k cup variety','donut coffee','fair trade medium roast','keurig brewer b-70','container','straws','matte','donut shop k','orange spice tea','lake champlain hot chocolate','ribbon candy','vermont country','mocha red river mug','brew over ice tea','bagged seasonal','brazil','brew over ice k-cup','hot coco','flavored decaf kcups','coffee mug tree','k cup cocoa','caribou 80 ct','german chocolate cake k cups','dunkin donots','fair trade wild mountain blueberry','wild mountain blueberry coffee','b200','kenya','forest','donut shop decaf k cups','green t','k cup flavored sampler','brew over ice cup','city','newman\'s special','decaf hazelnut cream k cups','piker','house','light','k cup brewer','find cafe','k cup portion packs','swiss miss k-cup','rain nut','coffee people tumbler','keurig b145 brewer','fair trade organic ethiopian yirgacheffe','mix coffee','caramel decaf','granola','our blend k','tully\'s coffee house collection','dark roast decaf k cup','decaf variety k-cup coffee sampler','celestial seasonings southern sweet tea','timothys french vanilla','mug tree','big','vanilla chocolate','heritage chocolate dipped shortbread','spiced apple cider','water reservoir','green tea with white tea','tully house blend k cup','tully decafe kcup','todd piker faceted mug','french toast k','donut shop decaf extra bold','la','sweet coffee','single-cup coffee machines','maple granola','organic house decaf','mild coffee','espresso roast','crate','coffee shop k cups','sweet raspberry','k-cup our blend','monthly coffee tours','cuisinart','decaf variety k cups','bigelow mint medley','seasonal variety','colombian fair trade k cup','refills','zhena','water processed coffee','organic cocoa','dark chocolate raspberry','kcup orange tea','fair trade vermont country blend k-cup coffee','midnight','acidity','k-cup refill filters','variety pack coffee','donut shop coffee','limited edition k-cup','international','de-scale','zhenas pumpkin spice tea','coffee grinder','24','80 kcup packs','tullys extra bold','stainless steel mug','duet','donut house coffee decaf','packaging','sweet','todd','caffeine tea','french vanilla iced coffe','shipment','coffee house','seasonal coffee tour','add to order','lively columbian','mini plus brewer','guatemala','donut house k-cup coffee','caffe late','k-cup tree','lemon ice','coffee shop','breakfast blend medium','herbal tea','tullys 80 ct','newman k cups','machines','lemon zinger k cup','k-cup carousel','finca dos marias','k cups southern sweet tea','butter','my kcup filter','k cup dark magic','coffee people donut','newmans special blend extra bold','dark magic k-cup','special reserve la prosperidad peru','todd piker mug','press','tully extra bold breakfast blend','jazzed up','pomegranate','most popular','kuerig coffee','german chocolate cake coffee','cinnamon cream','friends and family','half-caff coffee k-cup','k cup filter adapter','emeril decaf','all decaf coffees','escapes mocha','english breakfast black tea k-cup','night tea','sweet t','cafe chai latte','brew over ice hazelnut','bodum bistro','organic flavored decaf','revelation travel','filter starter kit','noire','caramel vanilla cream k-cup coffee','k-cup variety boxes','light decaf','#4 filters','nell\'s','blue mug','celestial chai','double black diamond extra','extra bold double black','kahlúa original k-cup coffee','alerts','flavored coffee tour','indonesia','mandarin orange','caffeine free tea','perfect iced','my k cup for keurig brewers','fair trade our blend k-cup coffee','celestial green tea','vanilla iced coffee','basket','k-cup decaf tea','keurig k cup filter','k-cup variety sampler tea','co','keurig b70 single cup','woven mug set','lemon zinger tea','chamomile herb tea','black tea unsweetened','keurig office pro','tully\'s house blend kcup','tullys coffee house','daybreak morning k-cup','swiss miss chocolate','naturals hot apple cider','lemon ice tea','mountain blend','timothys cinnamon','decaffeinated','tanzanian coffee','k-cup tour','cider mug','celestial india spice chai tea','bodum tall','12 cup','iced coffe k cup','office locations','box','gift50','nicaraguan fair trade organic k-cup coffee','free k-cups','coffe press','keurig vending','daybreak k cup','celestial seasonings kcup','hot cocoa cups','breakfast blend whole bean','indonesian','ceramic coffee mugs','double black diamond extra bold k-cup coffee','timothy tea','fair trade hot chocolate','fto house blend','donut people','unsweetened','drawing','butter coffee k cup','tully\'s house collection','wiener melange','keurig brewer b31','flavored variety k cup','k-cup cocoa','k cup coffee sampler','kahlua coffee','hot apple','k-cup decaf coffee','80 count coffee','keurig office pro coffee brewer','golden french toast k','german chocolate k-cup','prima house','dark magic extra bold k cups','coffe maker','k cups mandarin orange','de scale keurig','french roast coffee','people donut shop','mocha nut fudge coffee','maple french toast','olive','celestial english breakfast tea','coffe house collection','variety 5 pack','keurig b40 coffee brewer','sweet ice','warm french toast','fair trade select','keurig water filter','cocoa gift','human being organic','italian blend k cup','regular variety kcups','bigelow english breakfast tea','burr grinder','decaf rainforest extra bold','decaf flavor k cup','k-cup mahogany','brew over','day break','almond','tree hugger k','emeril bold','80 k-cups','strong coffee','coffe grinder','keurig cleaner','certificate','15','keurig platinum brewer','k-cup breakfast','half caffeine','kenyan highland','dark decaf','tullys mug','cuisinart keurig','keurig elite b-40 brewer','coffee people best','iced coffee nantucket','80 french','pour over','blend k-cups','ground coffee in bags','dunkin donut coffe','extra bold k-cup coffees','cup size','tullys french roast k cups','xl reservoir','kenyan aa k cups','b60 water reservoir','flavored variety kcups','keurig b60 single cup brewer','keurig milk frother','french roast beans','apple cider coupon','blackberry','polar berry tea','mild k cup','mandarin','replacement','k cup timothys french vanilla','fudge nut','full city roast','brew over ice duet','seasonal coffee','hazelnut k-cup coffee 80 ct','caramel sauce','lemon zinger herbal tea','vanilla tea','fair trade sumatran','tree hugger mug','free filters','french roast bold','80 pack k-cups','breakfast blend coffee','chocolate cake','keurig elite brewer','decaf green tea k-cup','guatemalan floral mug','coconut coffe','reserve','keurig platinum single-cup brewer','mr.coffee keurig','k-cup coconut','xl water reservoir','preserves','wild mountain','bitter','guatemalan coffee cup','barista prima coffee house','garden','dark roast coffee','bodum mini travel mug','newman k-cup decaf','country blend','french roast 80','fair trade medium','italian kcup','caribou decaf k-cup','cinnamon donut house','coffee cleaner','tullys house decaf','tullys dark roast','vermont gift','timothy decaf k-cup','best selling coffees','french roast extra bold','caribou blend decaf','newman coffee','k-cup regular sampler','organic chocolate squares','decaf house','80 ct bold','toasted coconut','keurig travel','hazelnut biscotti','fair trade golden french toast k-cup coffee','cafe escapes milk chocolate hot cocoa','jet fuel k-cup coffee','k cup nantucket blend','tully\'s french roast decaf k-cup','cuisinart keurig single cup brewer','newmans special blend k cups','tully cups','green chai','80 pack','wild','our','timothy variety','spice','smooth coffee','iced vanilla k cup','nights','celestial seasonings tea','k-cup mocha nut','flavored decaf k','cinnamon toast','decaf tea cups','fall k cups','thermo mugs','tall cup','tullys espresso roast','maple k-cups','k cup tea sampler','nicaraguan','hazelnut k','barista italian','cinnamon bun','turkish roast','k-cup variety sampler','newmans extra bold kcups','celestial seasonings decaf','organic coffee k cups','apple cider mug','spice chai','cafe escapes dark','milk frothing','pancake','mild','escapes','tpb4131','keurig water filter cartridge refill','coffee gifts','backpack mug','jet fuel mug','seattle','sweet lemon tea','hope','organic flavored','decafe donut shop coffee','sea','perfect sweet tea','close','spice chai tea','sweet raspberry tea','mandarin orange k-cup','new products','full city','barista prima italian roast k-cup coffee','jane goodall coffee','keurig adapter','timothys rainforest decaf','maple cinnamon french toast','finca','cafe escapes hot cocoa','celestial iced tea k cups','dark bold','french k cup','bold definition','organic pancake mix','spice tea','barista prima mug','tully\'s travel mugs','filter bags','bucket','tea latte','jazzed decaf','newmans dark roast','keurig frother','coffee k cup variety pack','bella bark','spresprog','travel brewer','breakfast black tea','chocolate donut shop','half and half perfect','donut house k','mini kcup brewer','cafe express recurring order','combination boxes','steel thermos','celestial seasoning green tea','french coffee press','coffee house decaf','variety coffee','caff','organic hot chocolate','coffee containers','barista prima coffeehouse','newman\'s special decaf k-cup coffee','tully\'s bistro mug','k-cup iced tea','morning blend coffee','bistro','blue dragonfly','t5086','escapes chai latte','chocolate glazed','donut shop beans','timothys espresso','tully house blend k-cup','silverman','tully bistro mug','organic truffles','parisian','seasonal sampler k cups','flavored coffe k cup','caramel pecan','decaf bold k-cup','red keurig brewer','chocolate dipped hazelnut biscotti','k','molten chocolate cake mix','my k cup refill','kflle','my','homann mug','maple syrup leaf','cashew','zhenas black tea sampler','keurig classic brewer','keurig b155 brewer','refillable filter','k-cup hot cocoa','my k cup refill pack','keurig k-cup carousel','chocolate k cup coffee','mr coffee single cup','decaf k-cup sampler','k-cup chai tea','french roast decaf coffee','auto drip','bigelow mint medley herb tea','maple k cup','keurig special edition single-cup brewer','k cup chocolate','sweet peach','timothys rainforest','knuckle','syrup and pancake mixes','k cups vermont blend decaf','french decaf','finca dos','english breakfast black','cinnamon flavor','k cup calories','help','t k cups','k-cup variety sampler regular','tanzania','newman\'s special decaf k-cup','nutty','special edition brewer','bigelow earl grey tea','half caff flavored k cups','french caramel','tully french','vermont country coffee','cranberry','india chai','k-cup flavored sampler','seasonal k-cups','dipping','green mountain kcups','regular coffee','no sugar','santa','mocha red river','barista prima colombia k-cup coffee','sleepytime herbal tea','keurig single-cup brewing system','coffeemaker','extra bold medium roast','brownies','travel tumbler','organic double chocolate brownie mix','coffee bag size','celestial orange','mountain','most popular k cup coffee','coffeeteam','big bold easy k cups','80 ct french roast','drizzle','reserve tour','broken','chocolate shortbread','keurig coffee filter','irish coffee','celestial k cup','tullys house blend extra bold','k-cup tea sampler','small business','a stimulation shot of revv','keurig cups','donut shop travel mug','caffeine french vanilla','sandflower mug','caramel k cup','french vanilla decaf kcup','process','b130','celestial lemon zinger herbal tea','timothy\'s french','fair trade organic sumatran reserve extra bold k-cup coffee','hot c','keurig accessories','extra bold sumatran reserve k-cup','my k cup filter','aa','fair trade blueberry','double dark','ceramic mugs','french vanilla k-cup coffee','grain','double diamond','k cup prices','k-cup coffee tour','dark noire','chambord','southern pecan k','french to','14 oz mug','hot coffee','fair trade organic sumatran','2 filters','celestial seasonings tea k cups','remove','business','lake tawar','keurig mini plus brewer','guatemalan','cozy','celestial seasonings mandarin orange','coffee people jet fuel','iced coffee k-cup','café escapes chai latté','roast profile','india spice','sp0311','k-cup coffee tour 6 months','nells blend','my cup','keurig cafe one-touch milk frother','colombian select','caramel cream','fat toad','krs12','celestial seasonings english breakfast black tea','tanzanian','blueberry-k-cup','black chai tea','gypsy tea','santa tea','double chocolate','french roast decaf dark','energy coffee','keurig water filter starter kit','office','decaf hazelnut flavor','charcoal','display','bigelow english','natural decaf','b31 mini plus keurig','tullys coffee','family recipe','stainless','extra bold sumatran','keurig brewer size 2 cups','vermont blend decaf','keurig tea','darkest roast','mocha fudge','brewer filters','kenyan kcup','tully\'s backpacker thermos','keurig classic','dark extra bold k cups','mitzi maple granola','k-cup coffees','french vanilla k','keurig platinum b70','decaf vanilla k-cup','green mountain cider','brew over ice coffee','barista house','donut house decaf k cups','mindfulness','italian roast k','tully\'s full','popularity','kenyan aa k-cup coffee','standard shipping','hazelnut medium roast','italy','half caff k','organic coffee k-cup','whole','timothy k-cups','80 count cups','chocolate donut k cup','foundation','5 cup','assorted k-cup','bottle','colombian medium roast','our house','costa','tea variety pack','extra bold house blend','darkest','cup cake','premium coffee','classic roast','colts bella bark','coffee people black tiger','newman k-cups','fair trade wild mountain blueberry k-cup coffee','newman special blend bold','black iced tea k cup','dunk','dark roast espresso','k cup decaf sampler','vermont country decaf','sweet lemon','pop','regular','bodum travel','french decaf k cup','keurig b200','tully decaf k cups','coffe sampler','bigelow earl','k cup breakfast','assorted variety','is your hot apple cider gluten free','piker mug','timothy\'s tea k cups','stoneware mug','bold 80','sleepytime k-cup herbal tea','celestial seasonings tea sampler','fair trade organic hot cocoa','single cup adapter','apple cider k','tully\'s french roast extra bold','mug set','mahogany coffee','santa spice tea','fair trade vermont','perfect iced tea sweet tea','caffeine chai tea','vanilla iced coffe','k-cup portion pack','cup carousel','kahlúa original k-cup','celestial seasonings perfect','fruity','hot herbal tea','k cup fair trade select','keurig refills','decaf brew over ice','bigelow chai','flavored teas','nantucket blend iced','bodum tall insulated glasses','sleepytime herbal tea k cup','pumpkin spice k','keurig bag','celestial sleepytime tea','gombe','seasonal k tour','decaffeination process','small revelation','caramel vanilla coffee','celestial seasonings lemon','timothy bold','tully\'s coffe house collection','caramel k-cups','fair trade hot cocoa','hibiscus','mitzi\'s granola','cheese straws','tawar','columbian select k cups','german k cup','dark decaf k cup','polar berry','dark roast k-cup','green mountain columbian','teacher','colombia excelencia','my k-cups','decaf chocolate coffee','keurig elite k-cup brewer','kuerig b70','combo','fair trade organic cocoa','donut shop 80 count','my-cup refill','prima italian','donut shop medium roast','re','decaf and sugar free','sweet black tea','coffee grinds','pumpkin k-cup','rocky','iced french','coffe tour','tea variety box','roll','donut coffee kcups','donut house coffee k-cup','80 count k','newmans bold k cups','sweet escapes','cafe escape chai tea','light brewed coffees','brew over ice gift basket','water process decaffeinated k-cup','cafe club','ceramic travel mug','cafe escapes chai','bodum red mini travel mug','fat free','k cup gift baskets','decaf coffee beans','timothy mocha java','bold decaf k cups','decaf cups','single','em','kcups house blend','cafe hot chocolate','breakfast blend extra bold','barista prima french','petite mug','newman decaf coffee','kenya k','newmans k-cup organic','chocolate glazed donut k cup','colombia decaf','under','breakfast blend medium roast','6 month signature tour','breakfast blend 80','k-cup flavored coffee','fair trade chocolate','tully\'s french roast k cup','earl','limited edition k cup','hot apple cider k','coffee basket','signature decaf','timothy k-cup','madagascar','bodum frother','b130 brewer','milk tea','timothy rainforest espresso','k cup refill pack','cinnamon french toast','emeril big','all decaf teas','hot apple cider bagged','chocolate chip','k-cup decaf ice tea','red french press','organic hot cocoa','lemon herb','tully\'s k-cup','fair trade organic mexican select','newman\'s special k-cup','columbian especial','breakfast blend decaf coffee k-cup','daybreak morning blend k-cup coffee 80 ct','bold k','flavored k cups medium roast','newmans caramel','bigelow chai tea','iced coffee variety','french vanilla cream','logo backpacker','my k-cup brewers','keurig tree','decaf chocolate k cup','8 oz cups','golden french to','keurig platinum b70 brewer','celestial seasonings iced tea','lake champlain chocolates organic truffles','coffee people mug','brazil nut','keurig personal brewer','caramel vanilla k cup','k-cup dark magic extra bold','fair trade country blend','timothy french','celestial sweet tea','my cup adapter','strong k cups','k cup sleepytime','rum','b31 mini','jane goodall','barista prima house blend k-cup','donut shop light roast k cups','ultimate k cup','individual','celestial sleepytime','k cup regular sampler','prima french','newmans organic extra bold','lake champlain chocolates peanut butter cups','dark cocoa','keurig kcup','keurig b31 mini brewer','coffe frother','chocolate hazelnut biscotti','spiced windmill','organic gifts','coffee regular sampler kcup','caramel coffee','country blend decaf','colombia prima','emeril bold coffee','assorted tea','22 cup sampler','decaf timothys espresso','barista prima colombia','colombian light roast','newman bold','green mountain signature','caribou blend natural decaf','keurig platinum','k c','breakfast blend tea','fair trade highland cooperative','celestial decaf tea k cups','decaf iced tea k cups','chambord stovetop espresso maker','kuerig elite','k cup tea variety','k cup coffee tour','organic k','tully\'s backpacker','k cup insert','mr coffee keurig','k cup variety sampler decaf','highland cooperatives','coconut flavor','pourover','20','irish cream cups','southern tea','toad caramel','mod','k-cup celestial green tea decaf','darkest coffee','tully travel','to go cups','creek','black iced','3 month','madagascar vanilla','cafe almond','moroccan spice mug','magnet','logo backpacker thermos','kuerig platinum','gmcr grinder','steel','brew cup','steaming','tully\'s coffee house k-cup','hazelnut flavored decafe coffee','1 2','chocolate marshmallows','fair trade certified','mix','mr.coffee','special blend decaf','3','k samplers','puls','seasonal flavors coffee tour','chocolate donut shop k cups','flavored k','assorted decaf','french vanilla iced k-cup','dark flavored','half-half','keurig special edition b60','brewing system','floral mug','combination','k cup cider','k cup variety sampler tea','burst','timothy tea k cups','kenyan aa k','hazelnut 80','double black diamond extra bold k-cup','colts chocolate covered marshmallows','vanilla coconut','k cup coffee of the month','rs106','offers','columbian k','k cup coffe sampler','donut shop coffee mug','organic french decaf','hazelnut k cup 80','hot cocoa milk','6 month tour','is the hot apple cider gluten free','my k','apple k-cup','seasonal k cup tour','milk cocoa','k cup vermont country blend decaf','fair trade breakfast','hand spun','sweetly satisfying','extra sharp','santa spice','assorted coffee','tom homann','green mountain sample','columbian roast','keurig k-cup variety pack','colombian decaf coffee','personal','golden k cup','chocolate mocha fudge','maria','dark black diamond','flle','sandflower','keurig elite b-40','cheese','caribou decaf coffee','caribou blend 80','keurig b130','decaf dark extra bold','milk chocolate cafe','organic breakfast','muddy','keurig gift','tanzanian gombe','emeril\'s jazzed up decaf k-cup coffee','sumatran lake','medium coffee','celestial peach','goodall','tom mug','seasonal k cup coffees','red raspberry','organic french','apple k cup','colts bella','tully\'s gift basket','world tour','emerils jazzed up','columbian select','assorted regular','decaf variety k-cup','especial','black lemon','champlain','brew over ice french vanilla','k-cups pumpkin','k-cup nut','k-cup collection','quality','tully french roast 80 ct k cup','my-k cup','coffee and tea','one cup','discover your favorite','english k cup tea','donut shop travel','vermont syrup','timothy\'s columbian excelencia','k cup packaging','high sierra','fair trade organic sumatran reserve extra bold k-cup','homann','green mountain apple cider','k-cup kenya','butter toffee k','timothy\'s vanilla','ribbon','breakfast tea k-cup','columbian medium roast','board','mini brewer mug','black bold','b60 xl water reservoir','caramel vanilla swirl','flavored ice tea','muddy creek','dessert','muddy creek sandflower mug','vermont sampler','spin','caramel toffee','dark hot','hazelnut coffe','caffeine-free','french roast green','program','k-cup winter','k cup mixture','keurig my k cup filter','windmill','dark magic decaf extra','celestial tea lemon zinger','most popular coffee','keurig cocoa','vermont country k cup','extra bold special blend','donut cinnamon roll','bigelow chai green','fresh roast','breakfast sampler','jet full','dark cups','mandarin tea','celestial tea sampler','keurig elite k-cup','tully backpacker thermos','k-cup cider','fair trade rain forest','donut mug','ads','bag clip','lively colombian decaf','german cake','barista prima italian','stearns','chocolatey','seasonal decaf','green mountain columbian decaf','donut shop cups','powder','breakfast blend k cups light roast','tully dark','chocolate hot cocoa','smoked','vanilla k','kcup newmans special blend','my keurig','hat','black peach tea','12 months','mueller','mug windows','80 ct hazelnut','80 count caribou','black mug','exclusive','cover','coffee program','celestial southern sweet perfect ice tea','seasonal flavor tour','indulgence','tully\'s medium roasts','full','celestial sampler','k nuckle','mr','k-cup donut shop coffee','barista prima coffeehouse italian roast','enjoy life mug','flavored variety sampler','coffee holding','mitzi granola','green mountain naturals hot apple cider k-cup','smooth','bodum milk','newman\'s french roast dark','southern iced','french coffee','k-cup sumatran','brands','coast','vermont country sampl er','world blend','k cup double black diamond extra bold','bigelow english tea','k mug','tully\'s coffee house blend','cheddar','chambord red french press','quiet','vision','chocolate squares','best decaf','kit','decaf coffee cups','muddy creek windows mug','green mountain naturals hot apple','tullys extra bold french roast decaf','barista french','pumpkin flavored coffee','timothy\'s coffees rainforest espresso coffee','vanilla cream decaf','celestial seasonings english breakfast','donut shop k-cups','pum pkin','chocolate donut coffe','fair trade our blend k cup','tullys medium roast');
/* $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();
                }
result = false;
                
                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);
    }

