/* Popular phrases - TUPPERWARECA - 16:56:15, Fri Feb 3, 2012 */
var asPhrases=new Array ('tupperware catalog','spice containers','spice','modular mates','catalogue 2012','fridgesmart containers','tumblers','pitcher','flyer','measuring cups','bowls','fridgesmart','peeler','spice container set','catalog','find a consultant','cereal','recipes','replacement lids for tupperware','catalog 2011','catalogue','can opener','measuring spoons','cereal storage containers','salad spinner','steamer','tupperware canada','sandwich keeper','cups','thatsa bowl','bowls with lids','cake','plates','bpa','freezer mates','cereal storer','salad','shipping charges','cake taker','salt and pepper shakers','lids','replacement lids','bpa in tupperware','snack cups','colander','midgets','measuring cup set','hamburger press','mixing bowls','snack set','access mates','glasses','big wonders set','rice cooker','warranty replacement','stack cooker','warranty','spice carousel','spaghetti dispenser','tumblers with lids','chopper','pitcher with lid','popsicle molds','spatula','egg','butter container','midget containers','plastic','consultant','marinade container','pickle container','cupcake','wonderlier','snack cup set','cereal bowls','orange peel','vent n serve','quick shake container','chop n prep','storage containers','sandwich','consultant locator','smooth chopper','consultants in area','flat out','pasta maker','cups with lids','toys','thatsa','baking','mega thatsa bowl','measuring','flour and sugar containers','lunch','quick chef','herb','water bottle','canisters','flour storage','microwave steamer','super cereal storer','modular','fruit keeper set','counterscaping','stuffables','sandwich container','fundraiser flyer','modular mates square','chop','vent n serve containers','brochure','impressions tumblers','bowl sets','large storage containers','crystalwave','shipping','bottle','divided dish','eco water bottle','bread container','fridge stackables set','modular mates oval','labels','canister set','pickle','impressions bowls','lettuce storage container','spice carousel set','keep tabs 3 set','forget me not','carry all container','orange','lunch containers','season serve container','super oval','quick shake','salt pepper','fundraising','rice','elegant serving collection','ice tray','measuring bowl','cheese','serving center','brush','sports bottle','microsteamer','mega mini','onion','popsicle','freezer containers','salsa','hello kitty','modular mates super set','pick a deli mini container','servalier bowls','smidget','coffee','ice cream scoop','thatsa bowl mini','rice maker','cups with lids for straws','flatout','herb grow','host specials','season serve','keeper','drinking cups','spoons','ice tray set','soup mug','pick a deli','cold cut keeper','hamburger patty press','collapsible','vegetable keeper','salad dressing container','modular mates round','jel-ring mold','empanada maker','pasta','serving center set','knives','round','forget me not set','impressions 2 qt pitcher','cake container','stuffables mini set','plates for kids','cream and sugar containers','microwave','garlic keeper','lettuce head container','storage','keep tabs','citrus peel','salt and pepper on the go','mini pitcher','everyday bowl set','mini pitcher and tumbler set','midgets and smidget','dressing container','microwave recipes','replacement','salad dressing','storage chart','carry all','lunch bag','bread storage','garlic','cupcake container','luncheon plates','salt and pepper shaker set','divided','salad on the go set','super oval modular mates','replacement seals','egg server set','divided containers','microwave plate cover','mold','modular mates rectangular set','smartsteamer','ice','rock n serve containers','chip and dip set','crystalwave lunch n dish with cold cup','chic dining','towel','freezer','parts catalog','lettuce','servalier','pie','snack','corkscrew','cheese grater','fruit','squeeze','host gifts','egg tray','mug','chart','large container','kids','flour container','cannisters','sipper seal domed set','wonderlier 3-pc bowl set','seals','shape o toy','scoop','sheer pitcher','fridge','fix and mix bowl','steamer for vegetables','vent','oval','press','syrup pitcher','pak-n-stor','beverage pitcher','crystalwave divided dish','vegetable storage','bread','safety','shape sorter','chop n prep chef','mixing bowl set with lids','microwave plates','prep essentials','surprise pack','measuring cup pitcher','tumbler set','fridge mates','snack-stor','baking sheet','cereal containers','chef pro','lettuce crisp it','refrigerator bowl set','labels for containers','soup','strainer with handle','shake','cheese storage','salad keeper','replacement covers','granola','pick a deli container','pour all seal','collapsable containers','pie taker','label dispenser','lunch set','prep essentials snack-stor container','veggie tray with lid','toys for children','cake storage container','rectangular modular mate','mini gelatin mold set','chip','lit\'l bowl set','host thank you gifts','large bowl','measureing cups and spoons','pak n stor','clearance tupperware','i love pasta 12 pc set','impressions classic bowl set','stackable','find a tupperware consultant','one touch','little wonders','quick chef pro system','hello kitty lunch set','twistable peeler','classic sheer midgets','chip and dip bowl','pie stackable','thatsa bowl set of 4','steamer for microwave','1 gallon pitcher','microwave cereal bowls','bell tumbler set','decorating tools','floresta','i love you','ideal lit\'l bowl set','gallon pitcher','shaker','small modular bowl set','cake carry container','tea','salsa recipe','access mates large container with veg out panel','replacement parts','pie carrying container','crystalwave containers','shake cup','pie press','pasta cooker','baby toys','tupperware impressions','straw','steam','glasses with lids','vent n serve medium','chop and prep','popcorn','returning tupperware','spatula set','custom kitchen planning','insulated tumbler','rock n serve','pie storage container','pasta container','super cereal','cake keeper','seals for modular mates','carousel','large carry all container','onion keeper','garlic press','impressions pitcher','peeler set','commission','reminder canister set','serving','empanada press','tomato keeper','baking tools','freezer mates large','tabs','large carry all','canada','2011 catalogue','tupperwave','bell tumbler set sipper seal','modular mate seals','salad accessories set','tray with lid','veg','pasta lovers gift set','keep tabs 5-pc set','mega mini set','microwave cooker','smart meals recipe book','lunch n dish','deli','executive business kit','spice labels','straw cups','turkey keeper','mini pick a deli','jel-ring mold set','thats a bowl collection','floresta pitcher','lemon','flour keeper','platter','whip and prep','salad on the go','poached eggs','jel','collander','cars lunch set','tupperwave stack cooker','big wonders','classic sheer midget set','freezer mates complete set','dating gift','fix','prep','large spice container set','shipping costs','micro pitcher set','empanada maker set','bell tumblers','burger','appetizer tray','cake recipes','grater with bowl','round storage containers','cold cut','host a party','juice container','small spice containers','rolling sheet','vegetable storage containers','recipe book','fridgesmart 4 pc set','small salt and pepper shakers','counterscaping liquid container set','spaghetti','mini chopper','drinking glasses','tumblers with straw seal lids','baby','flat out containers set','canister set with lids','rectangular cake taker','servalier bowls with lids','fridgesmart large round','meat marinade','gelatin mold','tortilla','vegetable tray','super set','wine corkscrew','whip','tax','sippy cups','cup lid','square containers','mini cake taker','everyday bowls','mold for gelatins','small serving centre','chip and dip','bacon','square pick-a-deli','cups for kids','sugar','tortilla container','ice cream','cook book','mega mini 18-pc set','simple indulgence seasonings','disney','ice cream recipe','ice tups','wine glasses','catalogs and flyers','2012','soda cracker','freezer mates family set','microfiber window and mirror cleaning cloth set','space','wine','lime press','egg taker','thats a bowl','mixing bowl set','measuring spoon set','square rounds','oil container','modular bowl set','eco bottle','cereal storer lid','impressions small serving bowls','payment methods','travel mug','chic dining mini','sipper seal','modular bowls','cutlery set','saucy silicone spatula','jel ring mold','silicone baking','microwave symbol','sheer midget set','egg cups','sandwich storage containers','dip','dora','deviled egg platter','mix','frying pan','fundraiser party','herb planter','surprise','rectangular 1','dishwasher','knife sharpener','twistable peeler set','wonderlier bowl set','4 oz snack cups','elegant','fundraiser items','divided lunch container','cup cake','marinade tupperware','vegetable tray with lid','fashion lunch set','ice tups set','pickle strainer','girl\'s camo lunch set','store','microfiber','fruit storage','vegetable dip','fresh herb planter','business cards','toy sorter','marinating tray','pick','silicone','one touch reminder set','salt','chic','square','forget','thank you gift','black','ice prisms tumblers','citrus','mini containers','kids serving set','round cake taker','catalogue flyers','opener','seasoning','selling tupperware','host','gravy','counter','mugs with lids','divided plates','squeeze it decorator','tumbler lids','southwest chipotle seasoning','cannister set with lids','salt shaker set','pots','hourglass salt and pepper shakers','sipper','tumbler and seal brushes','chef','lemon keeper','vent and serve soup mug','fresh n cool containers','lids for modular mates','snack cup lids','double colander','kitchen tools','dishcloth','store n pour','square-a-way','soup containers','mini set','become a consultant','cinnamon vanilla seasoning','symbols','catalog brochure','nesting','salsa dip','business kit contents','coffee filter storage container','damaged product','square 2','pasta spoon','large vent and serve','1869','rectangular sandwich keeper','smooth chopper recipes','snack store','avocado keeper','thermos','mix and store','cracker keeper','classic sheer pitcher','large spice containers','pepper','spin n save salad spinner','dishwasher safe symbol','servalier bowl set','stack cooker recipes','can','symbols on bottom of tupperware','plates for microwave','baby products','sipper lids','container size','divided dish feeding set','microwave pasta maker','3 in 1 canister','measure pitcher','impressions mugs','marinade','ideal lit\'l bowl set 3','sale items','cup cake container','prep essentials cold cut keeper','label dispenser set','rice recipes','super cereal storer lid','rectangular','cracker','payment','small bowls','crisp','small serving center','cream and sugar set','fry','spin','food trays','modular mates super','eco bags','superpo-cuisson','damaged','dutch oven','chipotle seasoning','spring tumblers','spice shake set','cereal storage','lime','square a way','sponge','stack and store','serving centre','glass storage containers','peacock','plastic type','chip n dip','kitchen','fridge storage','modular mates rectangular #2','party','pinch bowl set','healthy salad on the go set','water','fundraiser catalog','quick shake replacement lid','cream','knife set','salad container','stuffables storage containers','shipping and handling charges','modular mates rectangular 4','2 l pitcher','pizza','mix n stor','32 cup','vegetable steamer','containers','dip set','mini modular mates','olive','my week','recipes for stack cooker','first in first out','pie storage','serving cup','vent\'n serve','gelatin','spice container labels','pickle keeper','french fry','large storage','dispenser','glass canister','colors','milk','pet food container','coffe','dry seasoning container set','egg platter','counterscaping dry seasoning container set','flour scoop','chic bowl','cheese ball recipe','servalier replacement lids','dressing','spring tumbler set','labels for label dispenser','storage set','spiderman lunch set','green living starter set','cold','book','super crisp it','vent n serve soup mug','peel','metric','january flyer','cake decorator','spaghetti container','fix and mix','potato chip','winter spring catalog','clear mates','quick','organizer set','thatsa bowl set','microwave safe','prep cold cut','jel mold','modular mate rectangular 1','mini gelatin mold','flat out containers','recipe library','straw tumblers','small spice','dishes','meals in minutes','flat out set','squeeze container','insulated tumbler with drip-less straw seal','large hourglass','login','tabletop tumbler set','small modular','warranty catalog','insulated tumbler with dripless','produce','online party','kids plates','spatula and spoon set','crystalwave soup mugs','bowls for cereal','chop prep chef','serving set','mini chef','cup cake keeper','ideal','wonderlier bowls','recipes for microwave','ideal little bowl set','sports','wonderlier 5pc bowl set','flat','mega tumblers','stack cooker starter set','microfiber dish cloth','grate','spiderman','pie carry','little wonder bowls','32 cup bowl','cutting','thank you gift option','cups with straw lids','southwest chipotle','grate n measure grater','sharpener','serving spoon','season server container','patty storage','cookie storage','stack cooker starter','square 3','metric magic measuring set','pastry set','eco fashion bags','thatsa bowl 12','small cereal','cake taker replacement parts','fliptop spout','bubble','pie cake taker','toddler bowls','mid-january brochure','tupperware impressions pitcher','deli storage','star','oval lids','wonderlier 3pc bowl set','spice lids','plastic safety','ice prisms','snack stor container','empanada','commuter mug','small modular bowls','cannister set','guarantee','citrus press','plates and bowls','wonder','cariolier','round 1','spice shaker set','disney princess','pie sheet','microfiber sponge set','label maker','commuter','filter granules','pickadeli','childrens cups','tumbler collection','square 4','oval set','flavor saver','prism bowl','mini thats a bowl','milkshake','steamer dish','space makers set','fix-n-mix&reg bowl','cannister lids','flatout container set','sipper seal set','prism pitcher','divided bowl','squeeze bottle','modular mates sale','meal set','midget lids','pick-a-deli container','food chopper','executive business kit contents','flatout containers','customer care','passion color','tumblers with lids for straws','shape','nut','super oval 5','access','rectangular storage containers','smoothie tumbler','cracker container','lime keeper','prism','mix and pour','lids for round containers','stuffables super set','winter tumbler set','mickey mouse','picnic','season n serve','kids cups with lids','gift','whipping cream bowl','liquid measure','freezer mates large 2','lettuce container','replacement tupperware','hourglass salt pepper','mickey mouse ice tups','prep chef','large pick a deli','exclusive','silicone valve','gift sets','apple core','super oval lid','starter set','vent n serve medium set','small serving bowls','thatsa mega','store all','470','sipper cups','potato storage','lunch n dish with cold cup','princess pitcher tumbler set','turbo chef','mega','salt shaker','silicone spatula','invitations','small spice container set','smart steamer','oil','salt and pepper shake set','lettuce head storage','lids for storage containers','spice set','microwave bowls','one touch canisters','nesting bowls','tupperwave colander','square 4 container','bacon storage','my sales','microwave dishes','large bowl with lid','bowl set with lids','bag','large canister','micro steamer','tumbler seals','table','lunch\'n dish','water filtration','one touch reminder canister','pie maker','ice tups popsicle maker set','cookware set','impressions mini bowl','smart meal','salad bowl set','round modular','fast quench','square plates','cookie containers','snack cups with lids','fruit keeper','stack store serve bowls','ideal bowl set','large mixing bowl','classic pitcher','lemon squeezer','candy','food saver','muffin','small sports bottle','kids lunch','fridgesmart fruit','lunch mates','egg storage','cupcake keeper','canister scoops','fridgesmart medium','consultant search','modular mate oval 1','shape-o-maraca','large lidded bowl','sales force','decorator','bowls with seals','smoothie recipes','fridgesmart small','cake taker set','water filter','bell tumblers with lids','serving tray','insulated','lemon lime press','soup bowls','kids pitcher','recipes for smooth chopper','14 oz serving cup with seal','childrens toys','large round container','spoon set','popsicle ice tups','custom kitchen','super cereal saver','salad recipe book','beverage cups','stack cooker cook book','winter','jel ring','one touch reminder canister set','apple peeler','3 pc mixing bowl','sale catalog','crystalwave lunch\'n dish with cold cup','liquid containers','2012 fundraiser','egg server','microwave vegetable steamer','new day spring tumbler','vent and serve medium','gravy separator','gift certificate','pak-n-stor square set','parmesan','pitcher set','lime squeezer','airtight storage','lid organizer','hot dog','tuppertini','super oval seal','milk storage','vent and serve medium shallow','stackable set','metric measures','dish towel','quick shake replacement parts','thatsa bowl collection','measuring cups with 3 4','cup cake taker','drink','bread storer','summer catalog','hot lunch','stainless steel bowls','travel containers','little wonders containers','eco','lunch dish','fridgesmart large','tote','microwave cooking','olive container','mickey','ice prisms bowl','cookware','small serving center set','chef series knives','stacking canister','glass containers','serving bowls','lock','essentials','kids baking','little bowls','warranty policy','bell','marinate','plates with dividers','servalier set','fridgesmart round','cook and serve','lasagne','exclusive round 2','carving knife','glass food storage','ice maker','shipping policy','wonderlier 4 pc bowl set','space saver','vent and serve','deli stackable','spider','dumpling maker','utensils','kids tumblers','lit\'l','pop cake','1 cup','punch','kids bowls','oval 2','gallon','modular mates square lids','vent n serve round','garlic storage','drip-less','super oval 4','griddle','passion','modular mates oval set','processor','9 x 13','baby feeding set','microfiber kitchen towel set','cleaning','dip recipes','small spice set','mix n store pitcher','shipping time','8 cup bowl','modular mate round 1 container','wonderlier 5 pc set','pancake','fresh and cool','host awards','lock and lock','take 5','recycle','sheet','beverage','2 cup measure','mold set','simple indulgence','his lunch set','wrap','mini bowls','free gifts','serving centre set','midget salt and pepper','filter','onion storage','totally tuppertini','freezer mate set','chip maker','chip container','cereal store','vent and serve medium set','kitty','place for seals','stack','modular mates square set','freezer storage containers','steamer bowl','yogurt maker','margarita','heat','ma','guest special','kitchen towel','clear tumbler','small wonderlier','luncheon','water container','sheer','holiday','glass bowls with lids','vent n serve mug','modular super set','southwest chipotle recipes','#7 plastics','tupperware id','freezer mugs','order a catalog','storage bowls','fish steamer','super oval 2','princess','food storage containers','classic','turbo','microwave cereal','season serve marinade','lit\'l bowl','smooth','dip bowl','bread bowl','party gifts','kaleidoscope tumblers','pasta lovers','13 pc','make a difference in your community','travel salt and pepper','winter spring 2012 catalogue','cake server','casserole pan','winter tumbler','10 oz tumblers','thermos cup','sponge set','round pick a deli','4 cup','spring catalog','disney sandwich keeper','picture','vent n serve lids','disney funtastic friends tumblers','pak n stor square set','lid storage','keepers set','blender','spongebob','liquid','mix n','pasta recipes','servalier& 8482 bowl','big bowl with lid','8.8 l','rectangular 4','large deep vent n serve','tupperware impressions bowls','metric magic measuring cups','modular seals','quick shake& 174 container','extra seals','tumblers with lids for kids','season-serve','thats a bowl lid','casserole','parts','peacock modular mates','whip and prep chef','online exclusive','dome','small wonders','snack cup replacement lids','feeding spoon','shaker mixing container','black seal','pie making','baking storage','roast container','milk bag','granola bites recipe','empanada mold','lemon artichoke pesto','modular set','dough','baking dish','herb storage','pick a deli square','oval 1','23.00','label set','eco water','seasoning containers','spice storage containers','herb saver set','rectangular 2','super oval set','fruit tray','travel tumbler','ideal little bowl','baby spoon','16 oz bowls','brilliant blue','chef series casserole pan','rest','shallow','universal series knives set','bell tumbler seals','yogurt','counterscaping complete set','fresh vegetables','9 x 13 storage container','romaine lettuce','polishing cloth','spring cleaning set','cup cake carries','orange press','ring','baby food','serving tray with lid','school','seal colors','kitchen storage','crystalwave lunch n dish','lemon peeler','e invitations','saucy','servalier& 8482 13-pc bowl set','brown sugar container','quick shake lid','eco tupperware','classic sheer&reg midgets&reg set','vent n serve 7-pc large set','salad spinner set','holiday tumblers','large carry all with handle','cold cut storage','burger keeper','vinegar container','microwave soup bowl','saucy silicone','silicon spoon','purchase with purchase','grate and measure grater','rice cooker recipes','fruit cup','salsa set','lunch tote','microwave chicken recipe','fruit saver','fridgesmart square','press and seal','cabinet storage','mickey mouse one touch canisters','corkscrew set','sensational salads recipe book','blender cup','extra large storage container','chips and salsa bowl','classic servalier','tupperware tumblers','recipes for tupperwave','custom','frozen','size','spin and save salad spinner','microfiber window cleaning cloth','food','large red bowl','roast','flavor','microwave cereal bowl set','disney tumbler set','cooking rice','gallon storage','holiday pitcher tumbler set','cup cake storage','kaleidoscope','stuffables square set','camo lunch','jalapeno','citrus set','meal containers','food processer','spongebob on the go tumbler','quick shake&reg container','tote-em pails toy','lunch\'n things','fruit set','large storage container with handle','dessert bowls','cake carry','december','strawberry','impressions serving tray','southwest','play','large hourglass salt and pepper shakers set','crumb','child','preserves','cookie spatula','25 cups','holiday stacking','large serving bowl','replacement filters','mid november flyer','holiday catalogue','cups with dripless straw seal','chocolate peanut butter','spaghetti server','oval pitcher','pie server','vent n serve divided','candy cane','fundraiser catalogue','mini serving center','vinaigrette','drip less','lids for straws','crystalwave micro','serve and seal','cereal server','champagne','baking prep','whip n prep recipes','complete spice shaker','hello','lunch and things','shape-o toy replacement parts','13 cup','dice','mix and store bowl','mens lunch bag','health','microwave steamer recipes','crystalwave&reg soup mug','go mug','large sports water bottle','next generation storage set','ideal bowl','black bowl','simple indulgence& 8482 southwest chipotle seasoning blend','filled eggs','round pie container','jel cup','kids super set','sheer ice','mix\'n stor','window canister','chef series dutch oven','mousse','microfiber sponge','silicone whisk','26','vent n serve 7','2 oz','things','seasonserve','microwave pasta cooker','classic sheer& 174 midgets& 174 set','dora the explorer','holiday set','giant bowl','holiday gift sets','eco fashion','mini mates','oven dish','4 cup measure','nesting measuring cups','mold dish','cut out','18 cup','prep essentials mix-n-stor','flavor savor','dusting mitt','freezer cups','tupperware kit','freezer mates herb','impressions classic bowl','bowl with straw','modular mates bowls','large spice','mens lunch set','simple indulgence seasoning set','pies to go set','8 oz containers','certificate','handled bowl','blossom','kitchen prep set','1-2 cup measuring cups','suprise','drawer storage','thatsa set','square seal','dry storage set','rice storage','spongebob squarepants lunch set','toucan','25 pasta creations recipe book','orange bowl','kids in the kitchen','kitchen towel set','midget salt shaker','chipotle','canister lids','freeze mate','tumblers with straw','donation','chocolate cake','mega bowl set','simple indulgence southwest chipotle','horizontal peeler','fruit and vegetable keeper','twistable','entertain with ease','fruit and vegetable storage','2 oz midgets','vent n serve seal','english muffins','window cleaning cloth','saute pan','savings','stackable bowls','storage labels','salsa collection','grill set','pantry storage','lunch n go','consultant order','modular mate round 2','orange lid','sauce container','fruit container','freezer safe','microwave lid','pixar','disney pixar cars set','apple upside down cake','vent n serve large set','small lids','his lunch','divided bowls with lid','1 gallon','freezer mates ice','shape-o maraca return form','servalier bowls cereal','feeding cup','disney fairies tumblers','twister peeler','reheat','jar opener','metric magic','stack bowls','small salt and pepper','lids for canisters','small carry-all& 174 with handle','bagel storage','classic mixing bowl','bottles with lid','oven liner','vent n serve square','straw lids','disney cars','small salt shaker','flavor savor container','large freezer','expandable storage containers','eco friendly fundraising','find a fundraiser','fridgesmart long','fashion lunch','microfiber chef towel','credit card','cake dish','candy cane one touch canister','powdered sugar','guacamole recipe','smoothie cup','odor eliminate','mini jel-ring mold set','disney cars set','cake taker handle','tupperware microwave pasta maker','40','eco kids','picke container','vent and serve round','8-oz','floresta set','universal series knives','family set','consultants in bc','beef','stack cooker system','fundraiser search','serving center bowl','twistable& 174 peeler','1.9','8 oz','bulk','oysters','$35.00','storage with handles','holiday 2011','fall family','seal lids','microwave stack','ice pack','oeuf','fridge containers','toy pitcher','500 ml pitcher','filled egg tray','large cannister','2009 catalogue','maxi bowl','tumbler and snack cup set','snack up','ice bowls','drinking mugs','rice cooker insert','garden','knives starter set','on the go tumbler','push-button','take it all','medium bowl','access mates seal','round sandwich','love to learn maxi canister','fruit dip','winter snack canister','winter stacking canisters','universal series','fix a quick','lime green','crystalwave& 174','chef knife','candy corn set','toddler tumbler','boys camo','cooking spoons','meals-in-minutes','eco-friendly fundraising','stack steamer','green cups','stack cooker complete set','tote bag','5 cup','small salt&pepper set','salsa spice','small plates','oz','vented containers','medium containers','8 cup','round divided dish','lost lid','freezer mates super','blade','modular mates oval 5','tumbler with lid and spout','fridge pitcher','vent and serve small round set','serving fork','hinged','classic midget set','caribbean','snack cannister','instant','sliced cheese container','chop n prep& 8482 chef','universal knives set','healthy beverage','offer','modular mates mini rectangular set','small glasses','only at a party','selling','square round lids','26 cup','super modular','large divided dish','chocolate mousse','mid september brochure','menu of parties','fruit to go set','veg keeper','eco medium','eight cup measuring cup','modular mates square 4','metric spoons','nl','eco feed','thirst quench','simple storage','season-serve& 174 container','make a big impression','mini salt','accepted credit cards','modular mates pasta storage set','bell tumbler lids','gelatin mold bowl','mini quick shake container','blending insert','centerpiece','classic round','difference','mini quick chef','small cereal storage','whipping chef','kids glasses','pak','modular mates&reg round','salad and sandwich','pak and store','mid-august flyer','pdf','classic tumblers','micro bowls','holiday pitcher','orchard salsa recipe','impressions 4 pc bowl set','mid august brochure','large serving center','meal solutions to go','tab container','large yellow bowl','modular mate 5','freeze n save container','meal solutions to go pack','canister with spout','mini tumblers','individual','fun colors','center server','tupperware microwave plate cover','serving plates','chef series pro','18.50','small season serve','early ages baby set','contact phone','smart containers','classic sandwich keeper','orange juice','large hamburger press','5 gallon','ice pop','june brochure','ice popsicle','reusable bag','orange container','mid-august brochure','pantry set','tupperware flyers','keep heat','fridgesmart fruit set','prep essentials&reg mix-n-stor&reg plus pitcher','fundraising opportunities','internet','tupperware fundraiser','eco by tupperware&reg large eco water bottles','vent serve set','wide mouth','cooking oil','large square','green salt and pepper','mini hamburger press','fridge stackables& 8482 high set with grids','micro dish','hot drink','sorter','straw seal tumblers','thirstquake','square storage','set of 5','single serve','stacking tumblers','strawberry salsa','5 1 2 cup bowl','early ages eco','2 storage containers','june','5 bowls','impressions dining trays','treat','made','classic sheer& 174 midgets& 174 container','floresta plates','ice prisms plates','1 qt. 1 l refrigerator jug','small mold','fruit tumblers','summer fruit tumblers','tupperware&reg impressions classic bowl set','lunch trays','mid-june','fridge fresh','smartsteamer recipes','hello kitty cup','image','mold cups','non stick','impressions straw tumblers','complete','modular mate round lid','9 13','may catalogue','party bowl','free recipes','get it all for summer set','bowls festive','long','freeze pops','impressions microwave cereal bowls','aqua','250','square keeper lid','50','freeze serve','extreme collection','small divided containers','mickey tumbler','march flyer','set of 8 spice containers','cilantro mojo recipes','2011 fundraiser','salad spinner lid','tupperware impressions 11oz tumblers','center','utility knife','hold and rest caddy','boys lunch bag','thumb','mid march flyer','eco cup','clearly chic stemware flutes','tupperware check card','product warranty','tupperware bowls','small water bottle','tupperwave&reg stack cooker colander','vent #8217 n serve& 8482 divided dish','vertical peeler','mid march','boys lunch','disney friends tumblers','orange tupperware','modular mates with measuring cup','fridge and serve','modular mates with cup','bun','cat food','joyful holiday fundraising','keep tabs super set','replacement lids modular round','magic','large tote','ruth waugh','orange and white','20 oz servalier bowl','drinking glasses lids','disney mickey mouse meal set','affiliate','modular mates oval 3','tupperware& 174 smartsteamer','elaine may','saute','fashion lunch box','super cereal storer set','fun','4 qt','large servalier bowl','buffet','english toffe','gift box','small talavera canister','maria','winter stacking canister set','800','mini mold','amaretto','super steamer','shape-o&reg toy','sugar cookies','salad knife');
/* $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);
    }
