/* Popular phrases - GREENMOUNTAINCOFFEE - 17:24:1, Thu Sep 2, 2010 */
__SLI_ClientDefaults =
[
    ['UseHTTPS', true],
];
var asPhrases=new Array ('search','pumpkin spice k-cup','coconut k cups','donut shop coffee k cups','coconut','coconut flavored coffee','chai latte k cups','caribou k cups','breakfast blend k cups','kona','blueberry k cup','half caff k-cup','decaf k cups','kona k cups','80 count k-cup','pumpkin spice','revv','revv k cups','pumpkin spice coffee','french roast','nantucket blend k-cups','hazelnut k cup','blueberry','island k cup','timothy\'s k-cups','donut house k cups','autumn harvest','breakfast blend','kahlua k cups','cafe mocha','jobs','caramel vanilla cream k-cup','tumbler','espresso k cup','stores','cappuccino','ice tea tumbler','pumpkin spice ground','coconut coffee kcup','sumatran reserve k-cups','decaffeinated coffee','wild mountain blueberry k-cups','hot chocolate k-cups','southern pecan k cup','tully\'s k-cups','iced coffee k cups','rain forest nut k-cup','newmans extra bold','cappuccino coffee','iced tea k cups','mocha nut fudge k-cups','decaf','lake and lodge','revv pulse k-cup','pumpkin','raspberry k cup','colombian','french vanilla k-cups','travel mug','expresso','caffeine in k cups','dark magic','chai','vermont country blend k cup','chocolate raspberry truffle','coconut coffee','our blend','newman\'s k-cups','filters','newmans own','caribou','coffee people','summer safari kcup','tea k-cups','hazelnut','chai latte','nantucket blend','lake and lodge k cups','hot cocoa k cups','hazelnut decaf k cup','chocolate glazed donut','espresso','brew over ice tumbler','limited edition kcups','cafe express club','mugs','green tea k-cups','kona blend','dark magic k-cups','emerils big easy bold','coffee people coffee','breakfast blend decaf k-cup','our blend k cup','caribou blend k cup','brew over ice','kona coffee','decaf tea k cups','half caff','calories in k cups','mocha','pumpkin coffee','vermont country blend','descale','irish cream k-cup','donut house','cafe escapes','kahlua','green mountain coffee','french roast k cup','pumpkin spice k cup','german chocolate k cups','newmans special decaf','variety sampler','latte k-cup','special reserve','hot cocoa','gluten free','sumatra extra bold','latte','colombian fair trade select','tea','hazelnut dark roast extra bold','tpb4141','raspberry truffle','newmans','french vanilla','lake and lodge bean','blueberry k-cups','flavored variety k-cup sampler','half and half perfect iced tea','double black diamond extra bold','travel mug k cups','sampler','french vanilla iced coffee','iced tea','french vanilla decaf k cup','cinnamon roll','gingerbread','decaf variety k-cup sampler','carousel','organic k cup','light roast k-cups','peach coffee','my k cup adapter','calories','peppermint','tea variety sampler','southern sweet perfect iced tea','t6783','seasonal k cups','diner mugs','kenyan highland cooperatives','wild mountain blueberry','earl grey k-cup','t6501','thermos','peach','variety k-cups','brewers','heifer hope k-cup','chai tea latte k cups','flavored coffee','ice coffee blends','vanilla','english breakfast tea k-cups','b30 mini brewer','italian roast k-cup','southern pecan','cocoa','nantucket blend iced coffee','iced tumbler','harvard blend','timothy\'s k-cup variety pack','iced coffee','b60','nantucket','vermont country blend decaf','dark roast','gluten free k cups','sleepytime tea k-cups','cafe mocha k cups','mocha java k cups','autumn','club','t6663','chocolate raspberry','rain forest nut coffee','madison blend k-cups','hot chocolate','newmans own organic coffee','green tea','cafe express','san isidro','sumatran reserve','descal cleaner','cinnamon cream swirl','t6520','t6534','espresso blend extra bold','costa rican coffee','caribou blend','t6502','mahogany k cup','island blend','caribou decaf k cup','gingerbread coffee','tropical breeze','eggnog coffee','kenyan aa','newmans special blend k cups','vanilla bean bam','espresso blend','variety packages','chai tea','donut','sweet tea','special reserve coffees','perfect peach','kenyan aa k-cup','caramel','mocha java','breakfast blend decaf','rainforest blend','sumatra','national wildlife k cup','eggnog','cinnamon roll k-cup','hazelnut decaf','extra bold','mild coffee k cups','autumn harvest blend','perfect peach kcup','dark magic decaf','italian roast','t6832','kenyan','caffeine','daybreak morning blend k-cup','holiday blend','emeril\'s vanilla bean bam','french vanilla decaf','platinum','calories in kcups','maple coffee','k cup sampler','donut shop sampler','swiss water process decaf','extra bold variety k-cup sampler','rain forest nut','french roast decaf','berry lime green tea','t4060','highland cooperatives','calories in coffee','cinnamon','timothys decaf','breville','newmans 80 count','b40','cuisinart keurig','italian','coffee club','t6760','blueberry flavored','cocoa k-cups','k-cup adapter','t4061','distribution','t6523','southern pecan decaf','toast','hazelnut coffee','t6700','medium roast k-cups','sumatran','t7522','mandarin orange k-cup','mexican organic','unsweetened ice tea','french press','mocha nut fudge','tpb4133','raspberry iced tea k-cup','irish cream','emeril','coconut flavor kcups','donut house flavors','nantucket k-cups','cafe escapes chai latte','green mountain decaf','perfect iced tea variety pack','mini b30','pecan k cup','ethiopian yirgacheffe','chocolate','t4000','lemon zinger tea k cup','mahogany','pumpkin k cup','timothy\'s decaf k cups','keurig b60','donut house decaf k-cup','shipping time','revv pulse','mocha k cups','tour','house blend','cinnamon flavored coffee','spicy eggnog coffee','tullys','keurig','k cup adapter','variety','seasonal','sampler box','cafe escapes mocha','b70','almond biscotti','gluten','french roast decaf k cup','80','my k-cup adapter','calories in','our blend light roast','half caffeine','earl grey','summer safari blend','k-cup flavors','tully\'s french roast extra bold','kona coffee 80 cups','revv mug','t6825','t6570','organic decaf coffee','iced','german chocolate cake','kona blend island','lake','green beans','colombian decaf','t6751','t4059','decaf espresso','cinnamon pastry','celestial seasonings k-cups tea sampler','variety pack','k-cup decaf','keurig mini brewer','hazelnut k-cup','t6505','80 count k cups','breakfast tea','t6828','water filter','mini brewer','decaf k-cups','caramel vanilla','bold variety','t6507','harvest','flavored decaf','newmans decaf k cup','coffee mugs','organic','80 ct k cups','my kcup','decaf tea','coconut kcup','coconut blend','t6992','recycle','b30','t6801','timothy\'s tea','holiday flavors','colombian k cup','kona 80','decaf iced tea','double black diamond','sweet tropical breeze','decaf process','flavored variety k cup','sweet berry lime green tea','kahlua k-cups coffee','autumn harvest k cup','t6752','earth friendly filters','peach k-cup','kona blend k cup','donut house travel mug k-cup','dezcal','evergreen blend','free keurig','express blend','parisian nights','peaberry','french roast extra bold','tote bag','t6827','thermal','t6715','kona k-cups','t6772','tea sampler','bagged ground coffee','gifts','t6792','backpack thermos','guatemalan','chai tea k-cups','tpb4140','guatemala finca dos marias','b145','chocolate glazed donut coffee','t6694','t6504','free sampler','dark magic coffee','espresso coffees','tree','mandarin orange spice tea','t6602','fair trade k cup','cuisinart','tower','t4062','basket filters','tully\'s 80 k-cups','t6805','vanilla iced coffee','milk chocolate hot cocoa k-cup','t4057','caffeine in k-cups','vermont','ice tea k','t6512','filter cartridges','cafe escapes dark chocolate','coffee filters','organic decaf','emerils jazzed up decaf','keurig cleaner','t4058','el salvador','t6722','italian blend','sweet raspberry black tea','colombian especial','t4068','t6999','ethiopian','english breakfast black tea','ice tea variety','beans','evergreen k-cup','dark chocolate hot cocoa','breakfast','t6732','my k-cup refill pack','mild','island','midnight magic k-cup','southern sweet tea','t6831','80 ct','black diamond extra bold','extra bold dark magic','newman\'s special extra bold','k cup tree','caramel vanilla cream','hazelnut extra bold','t6758','t6503','coffee machine','blueberry vanilla','extra bold hazelnut k cup','wildlife k-cups','costa rican','k cups','black tea unsweetened','green mountain','keurig carousel','daybreak','double black diamond k cups','vermont country','shade grown','cleaner','harvest blend','travel coffee mugs','sweet lemon','decaf coffee','ceramic mugs','t6824','adapter','carousel tree','iced tea mugs','heifer','donut house decaf','t6823','caribou k-cups','office pro','t6678','t6535','keurig mini','keurig brewer','kona extra bold k-cup','italian coffee kcups','earl grey tea','k cup chai tea','pumpkin spice kcup','organic sumatran reserve','organic breakfast crate gift','india spice chai tea k-cups','timothy k-cups','national wildlife blend','southern pecan k-cups','raspberry','chai tea latte','t6521','decaf tea k-cups','adapter piece','perfect iced tea','tea tumbler','wild blueberry k-cups','t6803','variety sampler regular','tully\'s french roast k cup','hawaiian','water process decaffeinated','original donut shop','dark chocolate k-cups','t7534','timothys rainforest','glazed donut k cup','black tea','t7732','pumpkin k-cup','spicy eggnog','tully coffee house collection','berry lime','variety coffee and tea','ethiopian coffee','vanilla nut kcup','vanilla cream','morning blend','french','fair trade organic house blend decaf','kcup tree','celestial seasonings','gift baskets','organic coffee','tpb4110','house blend decaf','t6997','french vanilla coffee','vermont decaf','rain forest blend','half and half','biscotti','flavored sampler','over ice tumbler','decaf kcups','chai latte k-cups','glass mug','organic house blend','nicaraguan fair trade organic','colombian decaf kcup','decaf green tea','fair trade','extra bold sampler','wild','reserve','colombian fair trade','decaf sampler','earl grey black tea','extra bold decaf','bags of green mountain coffee','kenyan coffee','arabica k-cups','nells breakfast blend','half-caff k-cup','hazelnut bold','t6994','b200','dan lasser','cafe latte','peach iced tea k-cups','storage','mexican select','sugar free','t6998','t7602','german','tpb4114','keurig b70','mexico','summer safari','ground coffee','the original donut shop coffee','mini plus brewer','breville keurig single-cup brewer','espresso shot glass','half caff k-cups','t4067','organic reserve','peach iced tea','t6821','t6995','seattle','special edition','hawaii coffee','mocha coffee k cups','mild coffee','flavored','organic breakfast blend decaf','cinnamon k cups','elite','pecan','dark magic decaf k-cups','milk chocolate cafe','lemon zinger','mexican coffee','k cup filter','lava cake','lemon ice','gift certificate','cinnamon swirl','dezcal descaling cleaner','over ice','t4063','lodge','keurig mug','special edition brewer','tpb4120','dunking donut coffee','cafe express recurring order','regular variety','special blend','english','guatemala','revelation mug','tropical island','lids','sumatran lake tawar','lemon ice tea','celestial seasonings perfect iced tea','herbal tea','k-cup tree','gourmet','mountain blueberry','roast profile','my k-cup','filter kit','magic','travel mug size k cups','tpb4136','french roast dark','finca','fall flavors','rain forest nut decaf','flavored decaf coffee','blueberry k-cup','grinder','full city k-cup','b140','colombian medium roast','granola','unsweetened black tea k-cups','regular sampler kcup','sleepytime herbal tea','speciality coffees','decaf original','frother','organic mexican select','newman coffee','t6826','green mug','caramel vanilla k-cup','cafe escapes milk chocolate','cinnamon pastry coffee k cup timothys coffee','big easy bold','orange tea k-cup','zhena','kenya coffee','b70 platinum','pottery','cake','espresso k-cup','chai latte kcups','almond coffee','orange spice','maple butter','dark magic decaf extra bold','peach coffee k cups','keurig office pro','kcup variety','tanzanian gombe reserve','italian k-cup coffee','decaf espresso k cup','german chocolate','celestial green tea','flavored sampler decaf','backpack','sweet peach iced tea','newman k cups','single coffee pack','dan lasser mug','nissan thermos','coffee to go','refillable k cup','compadre','breakfast basket','special decaf','green mountain tumbler','oolong tea','bodum mugs','iced k cups','madison blend','glazed','plastic cups','english breakfast k cup tea','k-cup tea','heifer hope','organic hot chocolate','cups in a bag','my k-cup filter','coffee tour','swiss water process','flavored variety','black tea k cups','all decaf k-cups','colombian fair trade select k-cup 80','house','sweet summer','half-caff','k cup coffee variety','wild blueberry','maple syrup','hazelnut dark roast','kahlua original','timothy\'s caramel vanilla nut','irish','lasser','espresso blend dark roast','t7792','rancilio','turkish coffee','b3000','bag','bodum','crema','heifer hope blend','vermont breakfast blend','vanilla tea','teastick','b155','seasonal coffee','chocolate glazed donut k-cup','alerts','80 count','tanzanian','shop','free','shaker','fair trade pumpkin spice k-cup','butter','carafe','b70 brewer','coffee house collection','replacement filters','platinum brewer','harvard','bold k-cup','glasses','french roast travel mug k-cup','seattle tully\'s','expresso maker','milk chocolate hot chocolate','full city roast','our','variety sampler decaf','italian roast k cup','timothy','half','chocolate donut','bialetti','mexican decaf','timothy\'s variety pack','k cup coffee','emeril bold','raspberry tea','tullys french roast','costa rican peaberry','free trial k cups','newman\'s special blend extra bold k-cup','mocha nut','light k cups','maple syrup coffee','join coffee club','rainforest decaf','tully\'s french roast decaf','mini','rain forest','energy','k-cup sampler','caribou blend k-cups','wild mountain blueberry k cups','autumn blend','rainforest espresso','10','breakfast blend light','full city','peach tea','tpb4138','salvador','t6991','80 cup k cups','lemon','single-cup coffee machines','chasworth tumbler','black','caramel vanilla nut','hazelnut dark','chocolate mocha','breakfast blend travel mug k-cup','todd','variety box','keurig mini plus','seasonal tour','extra bold sumatran reserve','canister','bold','caribou decaf','newman decaf','kenya k-cups','emeril k cups','nicaraguan','emeril decaf','k-cup carousel','de-caf k cups','donut house mug','tea stick','k-cup coconut','lake tawar','stainless travel mug','revved up','silvia','tpb4113','special reserve tour','timothy\'s','chai latte cups','keurig sized travel mug','southern','decaf flavor k cup','timothy\'s cinnamon pastry','k-cup tea sampler','donut shop coffee','kahlua coffee','hawaii','emerils vanilla bean','vanilla decaf','turkish roast','country blend','vanilla cream k-cup','kenyan highland','dunk','el salvador special reserve','regular k-cups','mug set','nantucket iced','product contents','decaf sumatra','t6802','t6822','caffeine in decaf','travel mug k-cups','tote','caribou 80 cups','breakfast blend travel mug','madison','french roast k-cup','chocolate coffee','keurig descaler','maria','coconut cups','brew over','80 count kcup','enjoy life','timothys kona','organic espresso blend k cup','smoked salmon','decaf chocolate coffee','national','travel size','milk','water bottle','french roast 80','variety k','celestial english breakfast tea','t4066','k cup rain forest nut','vine mug','safari','my k cup','gluten-free','k cup variety','donut house travel mug','regular','t6993','devonshire english breakfast tea','large cup','iced vanilla','southern sweet','turkish','tpb4112','espresso flavor','private blend','sweet ice teas','breville keurig','summer blend','winter','highland','southern tea','jazzed up decaf','caramel vanilla cream decaf coffee','brush','green travel mug','k cup teas','kcup refill','filter cup','chocolate glazed','chocolate kcup','value box','tpb4100','green mountain convenience','rancilio rocky','mug by todd piker','tpb4109','cafe almond biscotti','emerils big easy','half and half k cups','fiddlehead','national wildlife blend decaf','decaf variety','sweet berry','kahlua kcups','pear tea','logo','hazelnut k','timothy variety','iced tea brewer','timothy\'s french vanilla','caramel sauce','decaf french roast kcups','keurig b140','b-70','parisian','k cup tower','white tea','t4061 dark magic extra bold','80 k-cups','assorted','donut house cinnamon roll','breakfast blend mild','breakfast decaf k cups','nantucket blend kcups','caribou kcups decaf','berry fusion','water reservoir','herbal coffee','donut shop coffee caffeinated','harvest blend k-cup','flavored coffee beans','donut decaf','passion fruit ice tea','single origin','almond','summer breeze mug','coconut flavor','b40 brewer','vanilla coffee','organic sumatran','irish cream flavored','stainless steel mug','k-cup hot cocoa','kcup decaf hazelnut','breakfast blend k','tanzanian gombe','keurig classic brewer','mexican','guatemalan finca dos marias','keurig plastic travel mug','t6990','coffee samplers kcups','directions','newmans own organics','cool brew','african','orange spice tea','mandarin orange','keurig b200','vanilla cream decaf','80 ct hazelnut','seasonal sampler','café express','compadre blend','felicity mug','keurig platinum','caramel vanilla nut k-cup','french roast k','extra bold italian roast','5','decaf green tea k-cup','earl','harvest mug','herbal','bitter','regular kcups','dark hot cocoa','regular k cups','kona cups','hammonds','brewer cleaner','french roast decaf coffee k cup tullys','iced coffee k-cups','river','dorado','paper filters','single origins sampler','b60 special edition','iced coffee nantucket','gingerbread coffe','guatemalan k-cup','nell\'s','german chocolate cake k-cup','caramel k-cup','eileen bodum','peppermint puffs','tullys sampler','sweet lemon iced tea','tropical','mocha nut fudge k cups','brew over tumbler','hot cocoa in cups','hazelnut cream','diamond','newman\'s special blend','tully\'s decaf k cups','our blend decaf','tullys decaf','keurig b40','green mountain colombian','light brew','assorted tea k cups','tullys house blend','italian kcup','frond mug','extra bold sumatran','colombian coffee','my k-cup for keurig brewers','spice chai tea','green tea with white tea','80 cup box','clean keurig','non-profit','roll','80 breakfast','prize','thermo mugs','mandarin tea','evergreen','island k','keurig special edition single-cup brewer','midnight magic','national wildlife blend fair trade organic','k-cups','keurig elite brewer','muddy creek','keurig elite','b140 price','newman bold','morning','tea variety pack','tpb4123','nut','newmans extra','dark magic espresso k-cup','kcup tea','spicy','day break','half-caff k-cups','kona kcup','organic rain forest blend','wildlife decaf','replacement','10% kona','keurig b155','seasonal flavor tour','sleepytime','dark italian','vending option','dark chocolate','vanilla k-cup','dark','coffee tree','signature sampler','breakfast blend decaf kcup','travel k-cups','tpb4131','newman k-cups','tully\'s k cups','pumpkin spice ground coffee','coffee brewers','isidro','organic tea','timothy tea k cups','summer','decaf beans','english breakfast','nutty','costa','half-half','k cup decaf sampler','newmans decaf k-cups','black earl','perfect peach k cup','all decaf flavors','tea with lemon','chocolate coconut','tully\'s french roast k-cup','our blend 80 count','classic brewer','travel','tpb4137','k-cups basket','t7694','highland sugarworks','iced tea variety pack','plastic mug','green mountain vermont','newman k','sumatran reserve k-cup','our blend coffee','most popular','celestial seasonings tea','truffle','unsweetened black','k-cup iced tea','rain','caramel vanilla decaf','pumpkin spice k','k-cup tower','santos','yirgacheffe','commercial','b-60','keurig brewer b-40 22 k-cups','half and half iced','ginseng','escapes','hazelnut k cup bold','cafe escapes milk','acidity','english breakfast black','sumatran k cup','b60 brewer','k cup rainforest decaf','nell\'s blend','pump kin spice','cookies','keurig travel mug','cake mix','halfcaff','express club','office','flavored coffee sampler','single cup brewer','t6570 k-cup our blend','hawaiian kona','reusable','coffee escapes','escapes chai latte','german cake','cleancaf coffeemaker cleaner','huatusco','mandarin orange spice herbal tea','decaf coffee beans','tanzania','primula','raw coffee','green pear tea','caribou blend decaf','revv k-cups','cafe escapes cafe mocha','80 ct coffee','fair trade organic breakfast blend decaf','coffee scoop','iced coffe k cup','specials','breakfast blend travel','fair trade organic evergreen blend','india spice','lemon zinger herb tea k cup celestial seasonings','vermont country coffee','extra bold variety sampler','guarantee','k-cup variety sampler','coffee grinds','k-cup mild','tullys house blend decaf','tasting cup','decaf water processed','work','capresso coffee grinder','bistro','kona coffee k-cups','pumpkin kcup','brewer bag','stackable mugs','the perfect peach k-cups','coffee house blend','insulated glasses','blend','french coffee press','wildlife','k cup national wildlife blend','16 oz','daybreak morning blend k-cup 80ct','guatemalan finca','b-155','french roast k-cups','decaf k-cup sampler','mild flavors','chai k cup','sleepytime tea','#4 filters','caribou blend k-cup','keurig k-cup carousel','tullys breakfast blend','fair trade espresso blend','national wildlife decaf','passion fruit','filter cup adapter','dark magic espresso blend','t4000 hot cocoa k-cups','b-40','k cup decaf coffee','madison blend k-cup','join','iced white tea','b-30','k-cup raspberry','logo thermos','variety coffe pack','donut cinnamon','light extra bold','join club','insulated coffee mug','sweet lemon black tea','coffee press','celestial teas','celestial decaf green tea','tully house','kona blend k-cups','pancake','safari blend','india spice chai','decafe donut shop coffee','all flavors','newman\'s special blend decaf','kflle','pictures','flavored variety sampler','regular sampler','organic k','mandarin orange spice herbal tea k-cup','celestial','reusable bag','organic french roast decaf','k-cup filter','newman\'s special blend extra bold','newmans kcup','extra bold coffee','keurig brewer b-40','inserts','emeril coffee','mix','80 k cup boxes','ceramic','t-6501','remove','capresso coffee makers','indonesia','timothy tea','unsweetened tea','oolong','espresso blend kcup','multi','b60 special','tpb4130','keurig water filter','bold sampler','coffee grinder','coffee syrups','green mountain coffee roasters','tully\'s coffee house collection','emeril\'s','loose tea','fair trade organic breakfast blend','fat toad','machines','coffee variety box','felicity','80-count','one touch milk frother','el salvador san isidro','oz','fair trade organic espresso','keurig filter','my kcup adapter','indian','vermont country decaf','quiet brew technology','fair trade summer safari','fair trade perfect peach','fair trade organic sumatran reserve extra bold','sugar','pulse','80 count caribou','tpb4127','kahlúa','tullys dark roast','kcup adapter','guatemalan cup','keurig office pro coffee brewer','grand','costa rican peaberry select','the perfect peach coffee','french vanilla decaf k-cup','medium roast coffee','80 ct extra bold','k-cup organic','fair trade rain forest nut','bags green mountain','national wildlife','k-cup kona blend','bodum milk frother','fair trade organic sumatran','dark magic k','set boho','schedule','kona blend 80 count','espreso','fair trade wild blueberry','cup size','kcup latte','intense dark','k-cups sampler','ice cream','green stainless steel travel tumbler','caffeine free','english breakfast black tea k cup celestial seasonings','sweet berry lime','french vanilla iced coffee k-cup','kcup sampler','cinnamon cream','iced tea k-cups','charcoal filter','rosanna','keurig elite b40','newman k-cup','sleepytime herbal tea k-cup','decaffeinated green tea','eme','customize sampler','gombe','sumatra decaf k-cup','french vanilla iced','cafe escapes chai latte k-cups','sumatra k-cup','water filter cartridges','peach tea k cup','café escapes mocha','k cup nantucket blend','extra bold kona coffee blend','kuerig b60','tpb4111','vanilla cream coffee','ads','southern sweet iced tea','customers','decaf medium roast','home','fair trade organic cocoa','k cup coffee flavors','tullys coffee house','french roast decaf coffee','kcup mocha','k tree','cooperative','sweet tropical breeze white tea','kuerig b40','timothy\'s kona k-cup','caribou kcups','shopping bag','coconut k','tpb4134','regular roasts','highland sugarworks pancake','50 k cups','ceylon tea','keurig breville brewer','timothys private blend','chocolate decaf','k-cup regular variety','iced brew setting','nissan mugs','tully k cup coffees','k-cups french vanilla decaf','t6501 k-cup','coffee press thermos','dan','keurig b70 single cup brewer','spice coffee','boho mug set','hazelnut decaf k-cup','shortbread','fair trade organic vanilla cream','flavors of kcups','tullys extra bold french roast','kcups extra bold decaf','coffee measuring scoop','french roast travel','premium roast','colombia','sweet tropical','coffee canister','rainforest espresso decaf','tea variety','stand','bagged sampler','celestial seasonings k-cups','tea latte','perfect iced tea tumbler','tully decaf k cups','bakery','flavored teas','timothy coffee pods','k-cup southern sweet iced tea','san salvador','papaya','lake and lodge kcup','blueberry tea','tullys french roast 80','house blend decaf coffee k cup tullys','caff','bam','caffe late','k-cup dark magic extra bold','variety coffee','green','products','timothy french vanilla','nissan thermal french press','tully\'s k-cup','keurig milk frother','breakfast black tea','k cup raspberry tea','kurig b40','coffee variety k-cups','free trade','tpb4106','80 ct newmans','logo backpacker thermos','dark coffee','quit','pour over','newmans french roast','tpb4103','chocolate truffle','colombian dorado','green mountain colombian decaf','organic national wildlife blend','decaf variety k cups','caribou blend 80 count','break','donut house bold k cup','tullys thermos','coffe canister','cafe escapes dark','san','body','green mountain coffe mug','flavored dark roast','chocolate lava cake mix','light roast decaf','fair trade organic','tpb4101','tamper','keurig my k cup filter','goodall','spresprog','k-cup regular sampler','cinnamon bun','extra bold decaf k cups','kcups cinnamon','timothy mocha java','my-kcup','dessert','k-cup regular','iced tea lime','ultimate brewer','nissan travel mug','care','gombe reserve','tpb4104','bun','fair trade decaf','t6695','english black tea','vermont blend','k-cup decaf flavored','80 cup hazelnut','strong coffee','wood','organic nicaraguan','cool cups','organic coffee k cups','house blend k-cup','toasted coconut coffee','black diamond','dark magic decaf k-cup','caribou 80 ct','ice brewer','white coffe','packaging','fair trade organic french roast','english breakfast tea kcup','jane goodall coffee','stacking','4','santos vacuum coffee maker','french vanilla k-cup','jazzed up','tullys extra bold','bold kcup','green mountain travel mugs','red mini','coffee and caffeine','tullys evergreen blend','tpb4107','k cup prices','bold hazelnut k-cup','foundation','12 months','perfect iced','rainforest certified','rain forest certified','newmans extra bold k cups','jane goodall','taste of vermont breakfast','french decaf','rubber grip','travel sport mug','café escapes','content','rubber','bold definition','hot herbal tea','travel sports','glazed donut','fair trade colombian dorado k-cup','tpb4125','green mountain coffee mugs','stackable','coffe club','vanilla bam','shot glass','keurig sized','dark bold decaf','tully\'s cup','toasted coconut','red raspberry','k-cup variety sampler regular','sweet tropical breeze white','extra bold 10','tpb4124','cocoa cup','cocoa shaker','holiday mugs','tully\'s house blend k-cups','double diamond','breakfast blend decaf k cup','india spice chai tea','cafe escapes coffee','price of a cup of coffee','grocery','tully\'s bold','orange blossoms','profile','keurig ultimate','sized travel mug','organic vanilla','lead','brew a better world mug','b','original blend','india','bold variety sampler','peach ice tea k cup','find coffee','southern iced','perfect tea','newmans blend','kcup wild blueberry','extra bold collection','german chocolate k-cup','salmon','forest k-cups','fiddlehead mug','tropical tea','french caramel','iced green tea','caribou 80','kerig b40','limited','sweet peach','half caff flavored k cups','wild mountain','80 per box','celestial seasonings english breakfast tea','brands','lime tea','newmans special','donut house decaf kcup','newman decaf bold','extra bold special blend','vermont breakfast crate','k-cup celestial green tea decaf','extra','people\'s','keurig café one-touch milk frother','coffee adapter','lava','maple granola','founded','dezcal descaler','me','14 oz','cupons','dark roast hazelnut k cup','breakfast blend light roast','french roast travel mug size','iced tea half and half','newman k-cup decaf','tanzania gombe','extra bold sumatran reserve k-cup','keurig water filter starter kit','india spice chai tea k-cup','logo travel sports mug','fresh roast','fair trade organic mexican select','dos marias','unsweetened black iced tea','spice chai latte','tawar','medium coffe','vanilla flavor','decaf chocolate k cup','wildlife k cup','apron','light and dark','iced coffee k','diner','french roast extra','extra bold coffee variety','travel size kcups','flle','sumatran k-cups','k cup coffee sampler','decaf green tea k-cups','keurig frother','keurig brewer b-70','steamed milk','tpb 4114','timothys kona blend','hazelnut dark roast extra bold k-cup','k cup sleepytime','keurig classic','tully\'s bistro mug','decaf tea kcups','coffee shot','extra bold kcups','vanilla chocolate','vacuum','nantucket blend iced','decaf k','keurig b140 office coffee brewer','decaf cups','sweet peach black tea','tully cups','k cup chocolate','iced k-cup','fair trade wild mountain blueberry','fair trade organic heifer hope blend','stovetop expresso','aroma','better world mug','extra bold variety','iced tea southern','fair trade organic national wildlife blend k-cup','making iced coffee','irish coffee','k cup variety sampler flavored','newman\'s k cups','donut flavors','hazelnut dark roast k-cups','tully\'s espresso roast','dark and complex','home cafe','english tea','size','insider','certified organic','cafe club','distinctive','organic special blend','black lemon','peach iced','new k-cups','kona regular k cups','mahogany kcups','tea k','10% kona coffee','cafe escapes hot cocoa','tully bistro mug','bistro mug','life','seattle coffee','kcup half and half','baroque mug','town','snack','keurig coffee filter','wine','cinnamon roll k cup','timothy\'s extra bold','fair trade espresso blend extra bold','peach ground','decaf dark magic k cups','k cup vermont country blend decaf','newman\'s sampler','earth-friendly basket','coffee cake','newmans own organic sampler','80 ct kona','newman\'s k-cup','syrupy richness','first time','lava mix','k-cup hazelnut dark extra bold','k cup latte','faceted mug','todd piker faceted mug','don','clear cups','organic heifer','central','rain forest kcup','who','k-cup flavored sampler','coffee assortments','breakfast blend sampler','milk bottle','iced kcups','extra bold rainforest espresso','extreme','kona k','quiet brew','12 cup','hazelnut dark k cup','chai tea k','tully\'s espresso','unsweetened','gmcr mug','t4058 kona 10','80 count kona','temperature','kcup flavored coffee','flavoring process','item','espresso blend k-cup','tall mug','extra bold 80 k-cups','k cup decaf assortment','where','newman\'s organic extra bold','tully\'s k','organic ethiopian coffee','join cafe express','k cup nells','newman\'s decaf','celestial black tea unsweetened','french roast coffee','half caff flavored','keurig adapter piece','vermont bean','jam','kcup decaf variety','celestial lemon zinger','t cups','tully french roast k-cup','guarana','caribou blend decaf k-cup','small business','evergreen k-cups','cafe classics','brewer for tea','perfect tumbler','single cup coffee filter','timothy k cups decaf','keurig iced tea','keurig iced','peach sweet tea','4ct','hazelnut k cup 80','hot cocoa cups','kcup vanilla decaf','80 ct k-cup','k-cup our blend decaf','dark roast espresso','80 newman','making iced tea','80 ct french roast','medium brew','k cup travel size','extract','half and half perfect iced tea k-cup','travel k cups','table','purchase','vermont country blend decaf beans','k-cup sumatran','coffee lovers collection','keurig brewer filter','kcup decaf sampler','dark chocolate cocoa k cup','decaf flavor tea','k-cup kenya','tastes of vermont basket','liz','celestial sampler','medium blend decaf','k-cup prices','popularity','coffee glass','extra bold k cups','10%','donut house travel','european','pacific','extra bold donut shop','cafe escapes k cup','organic water decaf','t-6507','emeril\'s decaf','special order','nights','highland maple syrup','extra bold variety kcups','security','robust','rum','kcups nells','celestial lemon','cafe escapes hot chocolate','t-6570','green mountain logo','plates','stainless steel scoop','all coffee mugs','hazelnut k cup 80 ct','baroque','kcup flavored variety sampler','keurig k cup carousel','cafe escapes chai','organic caramel','cafe escapes milk chocolate hot cocoa','organic light','copper river','french vanilla decaf coffee','unsweetened black iced tea k-cup','logo sports mug','caribou blend kcups','organic house blend k-cups','hibiscus','kcup 80 per box','coffee display','national wildlife kcup','keurig b145 office pro','all decaf teas','newman\'s coffee','no chemical decaf','green mountain coffee tumbler','k-cup coffee sampler','k-cup chai tea','green logo','organic bold','coffe syrups','newman french','cafe escapes dark hot chocolate','all decaf','timothy\'s cinnamon','tall insulated glasses','french vanilla iced coffee k-cups','flavored green tea','gmc','elite b-40','newman\'s dark roast','assorted decaf','chrome','k cup variety sampler regular','t-6992','areas','quick','our own','caribou blend natural decaf','sweet k-cup','shade coffee','t-6990','t-7522','donut house coffee mug','ground peach coffee','fair trade raspberry','celestial variety','k-cup milk','k-cup insert','rustic','organic blend','80 count hazelnut','newman\'s kcups','tully\'s compadre','bam bam vanilla','keurig iced tea brewer','newman\'s organic','seasonal tea','fair trade organic house blend kcup','kcup madison','seasonal spicy eggnog','k-cup cafe escapes mocha','robin\'s fair trade organic chocolate sauce','tall','wrap','extra blend','flavored extra bold','long handled coffee scoop','keurig special edition b-60','chocolate cup','kcup t6535','flavored iced tea k-cups','all extra bold','keurig hot cocoa','b-145 brewer','k cup variety sampler decaf','kcup tully house blend','k-cup heifer hope blend','decaf variety k-cup','kcup tea variety','k-cup variety sampler tea','cafe chai latt','full bodied','breakfast blend k-cup coffee','80-k','kcup tour','organic caramel vanilla','caribou natural decaf','frond','travel-mug','dark bold roast','newman\'s blend extra bold','earth','flavored bold coffee','hazelnut dark kcup','seasonal flavor k cups','black coffee','peach flavor','coffee size','café escapes chai latté k-cup','k-cup caribou blend 80 ct','donut bold','newman\'s special blend extra bold k-cup 80 ct','quiet','k cup coffe','extra bold 80','dark decaf k','organic extra bold','donut coffe','city blend','our house','vermont syrup','impressions','kcup rain forest nut','k brewer','t68-05','seasonal k','fair trade certified coffee','caribou cups','my kcup pack','kcup brewers','t-6502','english black','decaf light blend','t40-00','t67-32','t67-52','t65-04','half cup','t-6783','the keurig one-touch milk frother','celestial sleepytime','hazelnut dark extra','cafe escapes dark cocoa','k cup coffee hazelnut','organic colombian','kcup cocoa','organic evergreen blend','flavored medium roast','kcup bold sampler','cafe cup','keurig my k-cup','k-cups milk chocolate','celestial seasonings mandarin orange spice tea k-cups','keurig brewer b-145','hazelnut dark extra bold','cafe escapes k cups dark chocolate','caf escapes chai latte','favorite coffee','special dark','tullys tumbler','cafe touch milk','t-6739','k-cup breakfast','breakfast gift basket','fair k cup','fair-trade organic','keurig my k cup','k-cup variety tea','extra bold 10% kona blend','screen','keurig samplers');
/* $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);
    }