if(typeof window['__dsns_'] == 'undefined') window['__dsns_'] = {};
(function() {
var ds_namespace = '__dsns_', ds_plugin_name = 'KOMO_WidgetsV1';
window[ds_plugin_name] = function() {
	var Keywords = '50 Cent,Acme,Adam Putnam,Adam Sandler,Adam Smith,AFC,Akon,Al Franken,Al Green,Alan Jackson,Alanis Morissette,Alec Baldwin,Alfred Hitchcock,Alice Cooper,Alicia Keys,Alison Krauss,Alki Point,Amy Klobuchar,Amy Roe,Amy Winehouse,Anacortes,Anderson Cooper,Anderson Island,Andy Dick,Andy Williams,Angelina Jolie,Anna Eshoo,Anna Nicole Smith,Anthony Williams,Antonio Banderas,Aretha Franklin,Arlen Specter,Arlington,Arnold Schwarzenegger,Ashford,Ashlee Simpson,Ashley Judd,Ashley Tisdale,Ashton Kutcher,Auburn,Audrey Hepburn,Avril Lavigne,Bainbridge Island,Barack Obama,Barbara Boxer,Barbara Lee,Barbara Mikulski,Baring,Barney Frank,Barry Manilow,Bart Gordon,Baseball,Basketball,Bellevue,Bellingham,Ben Harper,Ben Nelson,Ben Stiller,Bennie Thompson,Bernie Mac,Bette Midler,Beverly Perdue,Beyonce Knowles,Bill Cosby,Bill Maher,Bill Nelson,Bill Rice,Bill Richardson,Bill Ritter,Bill Yeend,Bill Young,Billie Holiday,Billy Joel,Billy Ray Cyrus,Birdman,Bjork,Black Diamond,Blaine,Blake Shelton,Blanche Lincoln,Bob Casey,Bob Corker,Bob Dylan,Bob Goodlatte,Bob Marley,Bob Newhart,Bob Riley,Bob Seger,Bobby Bright,Bobby Brown,Bobby Jindal,Bobby Rush,Boeing,Bonney Lake,Bothell,Bow,Bow Wow,Bowling,Boxing,Brad Ellsworth,Brad Henry,Brad Miller,Brad Paisley,Brad Pitt,Bremerton,Bret Michaels,Brian Calvert,Brian Gregory,Brian Schweitzer,Britney Spears,Brooke Burke,Bruce Lee,Bruce Springsteen,Bryan Johnson,Buckley,Bucoda,Buddy Holly,Burien,Burley,Burlington,Burton,Busta Rhymes,Byron Dorgan,Cameron Diaz,Camp Murray,Candice Miller,Carl Levin,Carleen Johnson,Carlos Gutierrez,Carlos Santana,Carmen Electra,Carnation,Carol Burnett,Carrie Underwood,Casey Norton,Cassie,Celine Dion,CFL,Channing Tatum,Charles Manson,Charlie Brown,Charlie Chaplin,Charlie Crist,Charlie Rangel,Charlie Sheen,Charlie Wilson,Charlize Theron,Chet Culver,Chevy Chase,Chris Brown,Chris Cornell,Chris Dodd,Chris Gregoire,Chris Lee,Chris Myers,Chris Rock,Chris Smith,Chris Van Hollen,Christian Bale,Christie Brinkley,Christina Aguilera,Chuck Berry,Chuck Grassley,Chuck Norris,Chuck Schumer,Chuck Wicks,Ciara,Claire McCaskill,Clay Aiken,Clint Eastwood,Concrete,Condoleezza Rice,Connie Mack,Connie Thompson,Contests,Conway,Corwin Haeck,Courtney Love,Craig Ferguson,Cricket,Custer,Cycling,Dakota Fanning,Dan Burton,Dan Lewis,Dana Rohrabacher,Dane Cook,D\'Angelo,Daniel Inouye,Darius Rucker,Darrell Issa,Darrington,Dave Matthews,David Archuleta,David Beckham,David Bowie,David Foster,David Letterman,David Price,David Robinson,David Scott,David Vitter,Dean Martin,Debbie Stabenow,Demi Moore,Deming,Denise Richards,Denise Whitaker,Dennis Kucinich,Dennis Quaid,Dennis Rodman,Denzel Washington,Des Moines,Deval Patrick,Diana Ross,Diane Lane,Dianne Feinstein,Dick Cheney,Dick Durbin,Dick Van Dyke,Diddy,DMX,Dolly Parton,Don Young,Donna Edwards,Dr. Dre,Drew Barrymore,Drew Carey,Duke Ellington,Duncan Hunter,Dupont,Dutch Ruppersberger,Duvall,Dwight Pelz,Earl Pomeroy,Eatonville,Ed Rendell,Eddie Murphy,Edmonds,Edolphus Towns,Elaine Chao,Elijah Cummings,Elisa Jaffe,Elizabeth Dole,Elizabeth Hurley,Elizabeth Taylor,Ella Fitzgerald,Ellen DeGeneres,Ellen Tauscher,Elton John,Elvis Presley,Eminem,Emma Watson,Enumclaw,Eric Cantor,Eric Clapton,Eric Johnson,Etta James,Eva Longoria,Eva Mendes,Evan Bayh,Events,Everett,Everson,Faith Hill,Fall City,Federal Way,Fergie,Ferndale,Football,Fox Island,Frank Chopp,Frank Lautenberg,Frank Lenzi,Frank Lucas,Frank Sinatra,Fred Thompson,Garth Brooks,Gary Miller,Gene Taylor,George Bush,George Clooney,George Harrison,George Jones,George Lopez,George Michael,George Miller,George Strait,Gerard Butler,Gig Harbor,Gloria Estefan,Gold Bar,Golf,Gordon Smith,Grace Kelly,Graham,Granite Falls,Greg Nickels,Greg Walden,Gucci Mane,Gwen Stefani,Gwyneth Paltrow,Gymnastics,Haley Barbour,Halle Berry,Hamilton,Hank Williams,Hansville,Harold Ford,Harrison Ford,Harry Reid,Hayden Panettiere,Health,Heath Ledger,Heath Shuler,Heather Wilson,Heidi Klum,Henry Waxman,Herb Weisbaum,Hilary Duff,Hilda Solis,Hillary Clinton,Hobart,Hockey,Hotlinks,Howard Stern,Hugh Jackman,Hulk Hogan,Ice Cube,Ike Skelton,Index,Indianola,Issaquah,Jack Benny,Jack Black,Jack Johnson,Jack Kevorkian,Jack Kingston,Jack Markell,Jack Nicholson,Jack Reed,Jackson Browne,Jade Goody,James Blunt,James Brown,James Dean,James Franco,James Taylor,Jamie Foxx,Jane Harman,Janet Jackson,Janet Napolitano,Janis Joplin,Jared Polis,Jason Aldean,Jason Mraz,Jay Leno,Jay Nixon,Jay Rockefeller,Jay-Z,Jeanne Shaheen,Jeff Miller,Jeff Sessions,Jennifer Aniston,Jennifer Garner,Jennifer Granholm,Jennifer Hudson,Jennifer Lopez,Jerry Costello,Jerry Lewis,Jerry Moran,Jerry Springer,Jesse Jackson,Jessica Alba,Jessica Biel,Jessica Simpson,Jim Bunning,Jim Carrey,Jim Cooper,Jim Doyle,Jim Gibbons,Jim Himes,Jim Jones,Jim Kelly,Jim Morrison,Jim Webb,Jimi Hendrix,Jimmy Buffett,Jimmy Fallon,Jimmy Kimmel,Joan Collins,Joan Crawford,Joan Jett,Joaquin Phoenix,Jodie Foster,Joe Biden,Joe Manchin,Joe Sestak,Joe Wilson,Joel Moreno,John Baldacci,John Boehner,John Campbell,John Conyers,John Cornyn,John Denver,John Dingell,John Edwards,John Hall,John Kerry,John Larson,John Legend,John Lennon,John Lynch,John Mayer,John McCain,John Sullivan,John Tanner,John Tierney,John Travolta,John Warner,John Wayne,Johnny Carson,Johnny Cash,Johnny Depp,Johnny Isakson,JoJo,Jon Kyl,Jon Repp,Jon Stewart,Jordin Sparks,Josh Groban,Josh Hartnett,Judge Judy,Judy Garland,Julia Roberts,Julien Perry,Justin Timberlake,Kanye West,Kapowsin,Karate,Kate Beckinsale,Kate Hudson,Kate Moss,Kate Winslet,Katherine Heigl,Kathi Goertzen,Kathleen Sebelius,Kathy Griffin,Kathy Ireland,Katie Couric,Katie Holmes,Katt Williams,Kay Hagan,Keira Knightley,Keith Eldridge,Keith Ellison,Keith Urban,Kellie Pickler,Kelly Clarkson,Kelly Ripa,Ken Salazar,Ken Schram,Kenmore,Kenny Chesney,Kenny Rogers,Kent,Kevin Costner,Kevin McCarthy,Keyport,Kid Rock,Kim Kardashian,King County,Kingston,Kirkland,Kirsten Gillibrand,Kit Bond,Kitsap County,Kristen Stewart,Kristin Hanes,Kurt Cobain,Kylie Minogue,La Conner,La Grande,Lacey,Lake Stevens,Lakebay,Lakewood,Lamar Alexander,Lamar Smith,Larry Craig,Larry the Cable,Lauren Conrad,LeAnn Rimes,Leonard Cohen,Leonardo DiCaprio,Lil\' Kim,Lil Wayne,Lily Allen,Lindsay Lohan,Lindsey Graham,Lionel Richie,Lisa Brooks,Lisa Brown,Lisa Murkowski,Little Heroes,Littlerock,Liz Rocca,LL Cool J,Louis Armstrong,Lucille Ball,Ludacris,Luke Duecy,Luke Esser,Lummi Island,Lupe Fiasco,Lyman,Lynden,Lynnwood,Madonna,Manchester,Manda Factor,Mandy Moore,Maple Falls,Maple Valley,Marblemount,Marc Anthony,Margaret Spellings,Maria Cantwell,Mariah Carey,Marie Osmond,Marilyn Monroe,Marina Rockinger,Mariners,Mariska Hargitay,Mark Begich,Mark Miller,Mark Pryor,Mark Sanford,Mark Udall,Mark Warner,Marlee Ginter,Marsha Blackburn,Martin Lawrence,Martin O\'Malley,Martina McBride,Marvin Gaye,Mary J. Blige,Mary Landrieu,Mary Nam,Mary Tyler Moore,Marysville,Matt Damon,Matt Markovich,Max Baucus,Maxine Waters,McChord AFB,McKenna,Medina,Meg Ryan,Megan Fox,Mel Gibson,Mel Martinez,Melody Mendez,Mercer Island,Merle Haggard,Meryl Streep,Michael Chertoff,Michael Douglas,Michael J. Fox,Michael Jackson,Michele Bachmann,Michelle Esteban,Michelle Williams,Mickey Rourke,Microsoft,Mike Beebe,Mike Crapo,Mike Dardis,Mike Doyle,Mike Ferreri,Mike Hewitt,Mike Huckabee,Mike McGinn,Mike Pence,Mike Rogers,Mike Ross,Mike Simpson,Mike Thompson,Mila Kunis,Miley Cyrus,Mill Creek,Milton,Miranda Lambert,Mitch Daniels,Mitch McConnell,Mitt Romney,MLB,MLS,Molly Shen,Monroe,Morgan Freeman,Mount Vernon,Mountlake Terrace,Mukilteo,Nancy Barrick,Nancy Pelosi,Naomi Campbell,NASCAR,Natalie Portman,Natasha Bedingfield,NBA,Neil Diamond,Neil Young,Neko Case,Nelly,Newcastle,Ne-Yo,NFC,NFL,NHL,Nicole Kidman,Nicole Richie,Nooksack,Norm Coleman,Norm Dicks,North Bend,Olalla,Olympia,Olympia Snowe,Opinion,Oprah Winfrey,Orlando Bloom,Orrin Hatch,Orting,Ozzy Osbourne,Pacific,Pamela Anderson,Paris Hilton,Pat Roberts,Patrick Leahy,Patrick Murphy,Patrick Swayze,Patti LaBelle,Patty Duke,Patty Murray,Paul Hodes,Paul McCartney,Paul Newman,Paul Ryan,Paul Simon,Paul Tosch,Paula Abdul,Penelope Cruz,Pete Sessions,Pete Stark,Peter Welch,PGA,Phil Collins,Pierce County,Pike Place Market,Port Gamble,Port Orchard,Poulsbo,Preston,Problem Solvers,Puyallup,Queen Latifah,R. Kelly,Rachelle Murcia,Rahm Emanuel,Rainier,Randy Dorn,Randy Jackson,Randy Travis,Raul Grijalva,Ravensdale,Ray Charles,Ray Lane,Reba McEntire,Rebecca Romijn,Red Skelton,Redmond,Redondo,Reese Witherspoon,Renton,Rich Lyons,Richard Burr,Richard DeBolt,Richard Gere,Richard Shelby,Rick Larsen,Rick Perry,Ricky Martin,Rob McKenna,Robert Byrd,Robert Santos,Robin Thicke,Robin Williams,Rochester,Rockport,Rod Blagojevich,Rod Stewart,Rodeo,Ron Howard,Ron Paul,Ron Wyden,Ronald Reagan,Roy,Roy Orbison,Roy Rogers,Rudy Giuliani,Rugby,Russ Feingold,Ryan Harris,Ryan Reynolds,Ryan Seacrest,Sade,Salma Hayek,Salvador Dali,Sam Johnson,Sam Reed,Sammamish,Samuel L. Jackson,Sandra Bullock,Sara Evans,Sarah Jessica Parker,Sarah McLachlan,Sarah Palin,Sarah Silverman,Saxby Chambliss,Scarlett Johansson,Scott Sistek,Seabeck,Seahawks,Sean Connery,Sean Penn,Seattle,Seattle Center,Sedro Woolley,Selena,Seth Rogen,Shaggy,Shakira,Shania Twain,Shaquille O\'Neal,Sharon Stone,Shelton,Sherrod Brown,Sheryl Crow,Shirley Temple,Shomari Stone,Shoreline,Silvana,Silverdale,Silvestre Reyes,Simon Cowell,Skagit County,Skiing,Skykomish,Snohomish,Snohomish County,Snoop Dogg,Snoqualmie,Snowboarding,Soccer,Softball,Sonny Perdue,Sophia Loren,Sounders,South Prairie,Southworth,Spanaway,Sports,Stanwood,Startup,Steilacoom,Stephen Johnson,Steve Cohen,Steve Harvey,Steve King,Steve Miller,Steve Pool,Steve Young,Stevie Wonder,Sue Romero,Sultan,Sumas,Sumner,Suquamish,Susan Collins,Susan Lucci,Tacoma,TAnacortes,TAnderson Island,TArlington,TAshford,TAuburn,Taylor Hicks,Taylor Swift,TBainbridge Island,TBaring,TBellevue,TBellingham,TBill Rice,TBill Yeend,TBlack Diamond,TBlaine,TBoeing,TBonney Lake,TBothell,TBow,TBremerton,TBrian Calvert,TBrian Gregory,TBryan Johnson,TBuckley,TBucoda,TBurien,TBurlington,TCamp Murray,TCarleen Johnson,TCarnation,TCasey Norton,TChris Gregoire,TConcrete,TConnie Thompson,TContests,TConway,TCorwin Haeck,TCuster,TDan Lewis,TDarrington,TDeming,TDenise Whitaker,TDes Moines,TDupont,TDuvall,TDwight Pelz,TEatonville,Technology,Ted Kennedy,Ted Stevens,Ted Strickland,TEdmonds,TElisa Jaffe,Tenino,Tennis,TEnumclaw,TEric Johnson,TEvents,TEverett,TEverson,TFall City,TFederal Way,TFerndale,TFox Island,TFrank Chopp,TGig Harbor,TGold Bar,TGraham,TGranite Falls,TGreg Nickels,THamilton,THansville,THerb Weisbaum,Theron Zahn,THobart,THotlinks,Thurston County,Tiger Woods,Tim Burton,Tim Johnson,Tim Mahoney,Tim McGraw,Tim Pawlenty,Tim Ryan,Tina Turner,TIndex,TIndianola,TIssaquah,TJoel Moreno,TJon Repp,TJulien Perry,TKapowsin,TKathi Goertzen,TKeith Eldridge,TKen Schram,TKenmore,TKent,TKeyport,TKingston,TKirkland,TKristin Hanes,TLa Conner,TLa Grande,TLacey,TLake Stevens,TLakebay,TLakewood,TLisa Brooks,TLisa Brown,TLittlerock,TLiz Rocca,TLuke Duecy,TLuke Esser,TLummi Island,TLyman,TLynden,TLynnwood,TManchester,TManda Factor,TMaple Valley,TMarblemount,TMaria Cantwell,TMark Miller,TMarlee Ginter,TMary Nam,TMarysville,TMatt Markovich,TMcChord AFB,TMcKenna,TMedina,TMelody Mendez,TMercer Island,TMichelle Esteban,TMicrosoft,TMike Dardis,TMike Ferreri,TMike Hewitt,TMike McGinn,TMill Creek,TMilton,TMolly Shen,TMonroe,TMount Vernon,TMountlake Terrace,TMukilteo,TNewcastle,TNooksack,TNorth Bend,Toby Keith,TOlalla,TOlympia,Tom Coburn,Tom Cruise,Tom Green,Tom Hanks,Tom Harkin,Tom Hutyler,Tom Jones,Tom Petty,Tom Price,Tommy Lee,TOpinion,TOrting,TPacific,T-Pain,TPort Gamble,TPort Orchard,TPoulsbo,TPreston,TProblem Solvers,TPuyallup,Trace Adkins,TRachelle Murcia,Tracy Vedder,TRainier,TRandy Dorn,TRavensdale,Travis Mayfield,TRay Lane,TRedmond,TRedondo,Trent Lott,TRenton,Trey Songz,TRichard DeBolt,TRob McKenna,TRobert Santos,TRochester,TRockport,TRoy,TSam Reed,TSammamish,TScott Sistek,TSeabeck,TSeattle,TSedro Woolley,TShomari Stone,TShoreline,TSilvana,TSilverdale,TSkykomish,TSnohomish,TSnoqualmie,TSouth Prairie,TSouthworth,TSpanaway,TStanwood,TStartup,TSteilacoom,TSteve Pool,TSue Romero,TSultan,TSumas,TSumner,TSuquamish,TTacoma,TTenino,TTheron Zahn,TTom Hutyler,TTracy Vedder,TTravis Mayfield,TTukwila,TTumwater,Tukwila,Tumwater,TUniversity Place,TVashon,TVaughn,TVault,TWilkeson,TWoodinville,Ty Pennington,TYelm,Tyler Perry,Tyra Banks,University Place,Usher,Van Morrison,Vashon,Vaughn,Vault,Vin Diesel,Vince Gill,Volleyball,Walter Jones,Walter Reed,Wendy Williams,Whatcom County,Whitney Houston,Wilkeson,Will Ferrell,Will Smith,WNBA,Woodinville,Woody Allen,Wrestling,WWE,Yelm,YouNews,Zac Efron,'.split(','); var qsHTML = '<div class="dsnsqs">\n\t<div class="title">\n\t\t<div class="text">Advanced Search</div>\n\t\t<div class="close">&times;</div><i></i>\n\t</div>\n\t<form action="http://search.komonews.com">\n\t\t<input type="hidden" name="ct" value="r" />\n\t\t<label for="qscat_\{id\}">Category</label><select id="qscat_\{id\}" rel="20198">\n\t\t\t<option value="">( any category )</option>\n\t\t\t<option value="89000013">Local &amp; Regional</option>\n\t\t\t<option value="20249789">YouNews</option>\n\t\t\t<option value="89000010">National &amp; World</option>\n\t\t\t<option value="20249325">Entertainment</option>\n\t\t\t<option value="89000038">Business</option>\n\t\t\t<option value="20249732">Sports</option>\n\t\t\t<option value="89000015">Offbeat</option>\n\t\t\t<option value="89000026">Technology</option>\n\t\t\t<option value="90000049">Health</option>\n\t\t\t<option value="89000017">Consumer</option>\n\t\t\t<option value="20249757">Weather</option>\n\t\t\t<option value="20249745">Traffic</option>\n\t\t\t<option value="90000010">Economy</option>\n\t\t\t<option value="20249604">Blogs</option>\n\t\t</select><i></i>\n\t\t<label for="qsfeat_\{id\}">When</label><select id="qsdate_\{id\}" rel="r.STRDAT">\n\t\t\t<option value="">( anytime )</option>\n\t\t\t<option value="0">Today</option>\n\t\t\t<option value="7">Past 7 Days</option>\n\t\t\t<option value="30">Past 30 Days</option>\n\t\t\t<option value="365">Past 12 Months</option>\n\t\t</select><i></i>\n\t\t<label for="qscity_\{id\}">City</label><select id="qscity_\{id\}" rel="361">\n\t\t\t<option value="">( any city )</option>\n\t\t\t<option value="106764" rel="639">Seattle</option>\n\t\t\t<option value="99958" rel="653">Olympia</option>\n\t\t\t<option value="110075" rel="202">Tacoma</option>\n\t\t\t<option value="83672" rel="650">Everett</option>\n\t\t\t<option value="107900" rel="650">Snohomish</option>\n\t\t\t<option value="74149" rel="639">Bellevue</option>\n\t\t\t<option value="91173" rel="639">Kirkland</option>\n\t\t\t<option value="103621" rel="639">Redmond</option>\n\t\t</select><i></i>\n\t\t<label for="qscnty_\{id\}">County</label><select id="qscnty_\{id\}" rel="6">\n\t\t\t<option value="">( any county )</option>\n\t\t\t<option value="639">King</option>\n\t\t\t<option value="202">Pierce</option>\n\t\t\t<option value="653">Thurston</option>\n\t\t\t<option value="650">Snohomish</option>\n\t\t\t<option value="640">Kitsap</option>\n\t\t\t<option value="656">Whatcom</option>\n\t\t\t<option value="648">Skagit</option>\n\t\t</select><i></i>\n\t\t<label for="qstext">Keywords</label><input class="qstext" name="q" /><i></i>\n\t\t<input type="submit" class="normalbutton" value="Search" /><i></i>\n\t</form>\n</div>'; var lfHTML = '<div id="dsnslocalnews"><!--\n\t\t<div class="title"><a href="http://community_link/">community_name News</a></div>\n\t\t<a class="pickcommunity" href="http://pickcommunity.komonews.com/#pickcommunity">Change your community</a>\n\t\t<ul>\n\t\t\t\t<li class="first"><a href="http://first_link/"><div class="localimg"><img src="http://the_image/" alt="first_title"/></div>first_title</a></li>\n\t\t\t\t<li class="second"><a href="http://second_link/">second_title</a></li>\n\t\t\t\t<li class="third"><a href="http://third_link/">third_title</a></li>\n\t\t\t\t<li class="fourth"><a href="http://fourth_link/">fourth_title</a></li>\n\t\t\t\t<li class="fifth"><a href="http://fifth_link/">fifth_title</a></li>\n\t\t</ul>-->\n</div>\n<div id="dsnslocalnews2" style="display:none"><!--\n\t\t<div class="head">\n\t\t\t\t<div class="text">WHERE YOU LIVE</div>\n\t\t\t\t<div class="edit"><a href="http://pickcommunity.komonews.com/#pickcommunity">EDIT</a></div>\n\t\t</div>\n\t\t<div class="title">\n\t\t\t\t<a href="http://community_link/">community_name News</a>\n\t\t</div>\n\t\t<ul>\n\t\t\t\t<li class="first"><a href="http://first_link/"><div class="localimg"><img src="http://the_image/" alt="first_title"/></div>first_title</a></li>\n\t\t\t\t<li class="second"><a href="http://second_link/">second_title</a></li>\n\t\t\t\t<li class="third"><a href="http://third_link/">third_title</a></li>\n\t\t</ul>-->\n</div>\n<div id="dsnslocallinks" class="bottom_links">\n\t<a class="morenews" href="http://community_link/">More News</a> |\n\t<!--<a class="morenews rantsandraves" href="http://community_link/forum/69">Forums</a>-->\n\t<a class="morenews rantsandraves" href="http://community_link/local-deals">Local Deals</a> |\n\t<a class="morenews rantsandraves email" href="#">Email</a>\n</div>\n<div id="dsnsOverlay">&nbsp;</div>\n<div id="dsnsLfPopup">\n\t\t<div class="topHead">\n\t\t\t\t<h1>Choose your community</h1>\n\t\t\t\t<div class="subHead">Tell us where you live and get your community headlines along with your local, breaking news.</div>\n\t\t\t\t<div class="closeButton"><a href="http://close.komonews.com/#close">close window</a></div>\n\t\t</div>\n\t\t<div class="mainHoodContent">\n\t\t\t\t<div class="introText">Choose the community closest to you. If you don\'t see your community, <a href="http://www.komonews.com/about/contact">let us know</a>! We\'ll be adding more communities soon!</div>\n\t\t\t\t<div class="box">\n\t\t\t\t\t\t<h3>City of Seattle</h3>\n\t\t\t\t\t\t<div class="column columnwide">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://ballard.komonews.com/#ballard" title="Ballard News">Ballard</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://beaconhill.komonews.com/#beaconhill" title="Beacon Hill News">Beacon Hill</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://capitolhill.komonews.com/#capitolhill" title="Capitol Hill News">Capitol Hill</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://centraldistrict.komonews.com/#centraldistrict" title="Central District News">Central District</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://columbiacity.komonews.com/#columbiacity" title="Columbia City News">Columbia City</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://downtownseattle.komonews.com/#downtownseattle" title="Downtown News">Downtown</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://fremont.komonews.com/#fremont" title="Fremont News">Fremont</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://georgetown.komonews.com/#georgetown" title="Georgetown News">Georgetown</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://greenlake.komonews.com/#greenlake" title="Green Lake News">Green Lake</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://greenwoodphinney.komonews.com/#greenwoodphinney" title="Greenwood-Phinney News">Greenwood-Phinney</a></li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="column">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://lakecity.komonews.com/#lakecity" title="Lake City News">Lake City</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://madisonpark.komonews.com/#madisonpark" title="Madison Park News">Madison Park</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://magnolia.komonews.com/#magnolia" title="Magnolia News">Magnolia</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://northseattle.komonews.com/#northseattle" title="North Seattle News">North Seattle</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://rainiervalley.komonews.com/#rainiervalley" title="Rainier Valley News">Rainier Valley</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://southlakeunion.komonews.com/#southlakeunion" title="South Lake Union News">South Lake Union</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://udistrict.komonews.com/#udistrict" title="U-District News">U-District</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://queenanne.komonews.com/#queenanne" title="Queen Anne News">Queen Anne</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://viewridge.komonews.com/#viewridge" title="View Ridge News">View Ridge</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://wallingford.komonews.com/#wallingford" title="Wallingford News">Wallingford</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://westseattle.komonews.com/#westseattle" title="West Seattle News">West Seattle</a></li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="box">\n\t\t\t\t\t\t<h3>East</h3>\n\t\t\t\t\t\t<div class="column">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://bellevue.komonews.com/#bellevue" title="Bellevue News">Bellevue</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://bothell.komonews.com/#bothell" title="Bothell News">Bothell</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://issaquah.komonews.com/#issaquah" title="Issaquah News">Issaquah</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://kirkland.komonews.com/#kirkland" title="Kirkland News">Kirkland</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://medina.komonews.com/#medina" title="Medina News">Medina</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://mercerisland.komonews.com/#mercerisland" title="Mercer Island News">Mercer Island</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://newcastle.komonews.com/#newcastle" title="Newcastle News">Newcastle</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://redmond.komonews.com/#redmond" title="Redmond News">Redmond</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://sammamish.komonews.com/#sammamish" title="Sammamish News">Sammamish</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://woodinville.komonews.com/#woodinville" title="Woodinville News">Woodinville</a></li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="box">\n\t\t\t\t\t\t<h3>South</h3>\n\t\t\t\t\t\t<div class="column">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://auburn.komonews.com/#auburn" title="Auburn News">Auburn</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://burien.komonews.com/#burien" title="Burien News">Burien</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://desmoines.komonews.com/#desmoines" title="Des Moines News">Des Moines</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://federalway.komonews.com/#federalway" title="Federal Way News">Federal Way</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://gigharbor.komonews.com/#gigharbor" title="Gig Harbor News">Gig Harbor</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://kent.komonews.com/#kent" title="Kent News">Kent</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://lacey.komonews.com/#lacey" title="Lacey News">Lacey</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://lakewood.komonews.com/#lakewood" title="Lakewood News">Lakewood</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://olympia.komonews.com/#olympia" title="Olympia News">Olympia</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://puyallup.komonews.com/#puyallup" title="Puyallup News">Puyallup</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://renton.komonews.com/#renton" title="Renton News">Renton</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://tacoma.komonews.com/#tacoma" title="Tacoma News">Tacoma</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://tukwila.komonews.com/#tukwila" title="Tukwila News">Tukwila</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://tumwater.komonews.com/#tumwater" title="Tumwater News">Tumwater</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://shelton.komonews.com/#shelton" title="Shelton News">Shelton</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://yelm.komonews.com/#yelm"\ttitle="Yelm News">Yelm</a></li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="box">\n\t\t\t\t\t\t<h3>North</h3>\n\t\t\t\t\t\t<div class="column">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://edmonds.komonews.com/#edmonds" title="Edmonds News">Edmonds</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://everett.komonews.com/#everett" title="Everett News">Everett</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://lynnwood.komonews.com/#lynnwood" title="Lynnwood News">Lynnwood</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://marysville.komonews.com/#marysville" title="Marysville News">Marysville</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://mukilteo.komonews.com/#mukilteo" title="Mukilteo News">Mukilteo</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://shoreline.komonews.com/#shoreline" title="Shoreline News">Shoreline</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="http://snohomish.komonews.com/#snohomish" title="Snohomish News">Snohomish</a></li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<div class="popupBottom">\n\t\t\t\t<div class="logo">KOMOnews.com</div>\n\t\t</div>\n</div>\n<div id="dsnsbizdir"><!--\n\t<div class="head">\n\t\t <div class="alldeals"><a href="http://biz.komonews.com/default.aspx?ct=r&type=ITYPE,offers">All Deals</a></div>\n\t</div>\n\t<div class="title">Business Directory</div><div class="change"> | <a href="http://pickcommunity.komonews.com/#pickcommunity">Change Community</a></div>\n\t<div class="biglist">\n\t\t<div class="business business1">\n\t\t\t<div class="thumb"></div>\n\t\t\t<div class="right">\n\t\t\t\t<div class="name"></div>\n\t\t\t\t<div class="video"><span class="icon"></span><a href="#">Watch Video</a></div>\n\t\t\t\t<div class="coupon"><span class="text"></span></div>\n\t\t\t</div><i></i>\n\t\t</div>\n\t\t<div class="business business2">\n\t\t\t<div class="thumb"></div>\n\t\t\t<div class="right">\n\t\t\t\t<div class="name"></div>\n\t\t\t\t<div class="video"><span class="icon"></span><a href="#">Watch Video</a></div>\n\t\t\t\t<div class="coupon"><span class="text"></span></div>\n\t\t\t</div><i></i>\n\t\t</div>\n\t\t<div class="business business3">\n\t\t\t<div class="thumb"></div>\n\t\t\t<div class="right">\n\t\t\t\t<div class="name"></div>\n\t\t\t\t<div class="video"><span class="icon"></span><a href="#">Watch Video</a></div>\n\t\t\t\t<div class="coupon"><span class="text"></span></div>\n\t\t\t</div><i></i>\n\t\t</div>\n\t</div>\n\t<div class="smalllist">\n\t\t<div class="business business4">\n\t\t\t<div class="name"></div>\n\t\t\t<div class="coupon"></div>\n\t\t</div>\n\t\t<div class="business business5">\n\t\t\t<div class="name"></div>\n\t\t\t<div class="coupon"></div>\n\t\t</div>\n\t\t<div class="business business6">\n\t\t\t<div class="name"></div>\n\t\t\t<div class="coupon"></div>\n\t\t</div>\n\t</div>\n\t<div class="links">\n\t\t<a href="http://biz.komonews.com">Business Directory</a> |\n\t\t<a href="http://biz.komonews.com/default.aspx?ct=r&type=ITYPE,offers">All Deals</a> |\n\t\t<a href="http://biz.komonews.com/add-your-business">See your ad here</a>\n\t</div>\n\t-->\n</div>'; var lbHTML = '<div class="sponsor">\n\t<a href="the_link"><img src="the_img" /></a>\n\t<div class="text">\n\t\t<span class="title">Community Sponsor</span><br/>\n\t\t<a class="name" href="the_link">the_title</a>\n\t</div>\n\t<div style="clear:both;"></div>\n</div>'; var dlHTML = '<div class="title"><em>MORE STORIES IN:</em> <span class="categories"></span></div>\n<div class="stories">\n\t<div class="story story1">\n\t\t<div class="thumb"></div>\n\t\t<div class="link"></div>\n\t</div>\n\t<div class="story story2">\n\t\t<div class="thumb"></div>\n\t\t<div class="link"></div>\n\t</div>\n\t<div class="story story3">\n\t\t<div class="thumb"></div>\n\t\t<div class="link"></div>\n\t</div>\n\t<div class="story story4">\n\t\t<div class="thumb"></div>\n\t\t<div class="link"></div>\n\t</div>\n</div>\n<div style="clear:left;display:block"></div>';
	var plugin_name = ds_plugin_name;
	var Load = function() {
		if(typeof window[ds_namespace] != "object")
			window[ds_namespace] = {};
		if(typeof window[ds_namespace].OnInit != "undefined") {
			if(window[ds_namespace].Initialized) {
				window[ds_plugin_name].Init(window[ds_namespace]);
				if(window[ds_namespace].IsReady)
					window[ds_plugin_name].Ready(window[ds_namespace]);
				else
					window[ds_namespace].OnReady.push(window[ds_plugin_name].Ready);
			}
			else {
				window[ds_namespace].OnInit.push(window[ds_plugin_name].Init);
			}
			return;
		}
		
		if(typeof window[ds_namespace].$ == "function") {
			window[ds_plugin_name].$ = window[ds_namespace].$;
			window[ds_plugin_name].Init();
			return;
		}
		if(typeof window[ds_plugin_name].$ == "function") {
			window[ds_plugin_name].Init();
			return;
		}
 
		if(typeof jQuery == "function" && (jQuery.fn.jquery >= '1.3.2')) {
			window[ds_plugin_name].$ = jQuery;
			window[ds_plugin_name].Init();
			return;
		}
		
		var el = document.createElement('SCRIPT');
		el.setAttribute('language', 'JavaScript');
		el.setAttribute('src', 'http://cdn.secondspace.com/news/jquery.1.4.2.js');
		document.getElementsByTagName('head')[0].appendChild(el);
		WaitForInit(1000);
	}
		
	var WaitForInit = function(max) {
		if(!max) max = 200;
		if(typeof window[ds_namespace].$ != "function") {
			if (max > 0)
				setTimeout(function() { window[ds_plugin_name].WaitForInit(max - 1); }, 200);
			return;
		}
		window[ds_plugin_name].Init();
	}
	var WaitForReady = function(max) {
		if(!max) max = 200;
		if(typeof window[ds_plugin_name].FullyInitialized != 'bool') {
			if (max > 0)
				setTimeout(function() { window[ds_plugin_name].WaitForReady(max - 1); }, 200);
			return;
		}
		window[ds_plugin_name].Ready();
	}
	var WaitForBody = function(max) {
		if(!max) max = 200;
		try {
			document.body.className += ' dsnsjs';
		} catch (e) {
			if (max > 0)
				setTimeout(function() { window[ds_plugin_name].WaitForBody(max - 1); }, 200);
		}
	}
	
	var SetCookie = function(name, value, expires, domain, path) {
		if(!expires) expires = 'Wed, 1 Jan 2020 00:00:00 UTC';
		if(!path) path = '/';
		if(!domain && location.host.indexOf('.') != -1) { // default to topmost domain
			var a = location.host.split('.');
			domain = '.' + a[a.length-2] + '.'+ a[a.length-1];
		}
		document.cookie = name+'='+value+'; expires='+expires+'; domain='+domain+'; path='+path;
	}
	window['__dsns_'].SetCookie = SetCookie;
	
	var GetCookie = function(name) { 
		var nameEQ = name + '=';
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	window['__dsns_'].GetCookie = GetCookie;
	
	var GetCommunityCookie = function() {
		var cc = __dsns_.GetCookie('dsnscomm'), h = window.location.hash;
		if (h.indexOf('overridecommunity')==1) {
			var c = h.split('=')[1];
			if (c != '') cc = c;
		}
		return cc;
	}

	var Init = function(init_host) {
		if(window[ds_plugin_name].Initialized) return;
		window[ds_plugin_name].Initialized = true;
		var $ = window[ds_plugin_name].$;
		if(typeof $ == 'undefined')
		{
			if(init_host && typeof init_host.$ == 'function') // we're a plugin
				$ = window[ds_plugin_name].$ = init_host.$;
			else 
				$ = window[ds_namespace].$;
		}
		if(typeof $ == 'undefined')
			return;
		
		$.ajaxSetup({ cache: true });
		var IE = $.browser.msie;
		var IE6 = IE && /MSIE 6/.test(navigator.userAgent);
		var IE8 = IE && /MSIE 8/.test(navigator.userAgent);
		
		function Bind(sel, ev, func) {$(sel).live(ev, func);}
		function FullQuery(q) {var r = {};if(!q) q = CurrentSearch();if(!q) return new Array(); q = q.replace(/^\?/,'').replace(/\&$/,'');$.each(q.split('&'), function(){r[this.split('=')[0]] = this.split('=')[1];});return r;};
		function CurrentSearch() {var s = GetMetaData($('.searchquery'), location.search);if(!s || s == undefined)return false;return s;}
		function GetMetaData(el, fallback) {el = $(el); if (typeof fallback == 'undefined') fallback = false; if (el.length == 0) return fallback; var h = $.trim(el.html());if (h.length > 6) {if (h.slice(0, 5).toLowerCase() == '<pre>') h = h.slice(5); if (h.slice(0, 4) == '<!--') h = h.slice(4);if (h.slice(-6).toLowerCase() == '</pre>') h = h.slice(0, -6); if (h.slice(-3) == '-->') h = h.slice(0, -3);}return $.trim(h);}
		
		var Autocomplete = function(input) {
var host = $(input);
var cache = new Array();
var pending,popup,seeAllLink,list;
var options = {extraleft:0, extrawidth:0, maxheight:175, extratop:0, altpos:false, host:'BODY', match:'startword'}; // match:all, start, startword

function Render(data, q, c) {
	if(typeof data == 'undefined' || typeof data.suggest == 'undefined')
		return;
	
	list.empty();
	seeAllLink.css({ display: 'none' }).unbind();
	var html1 = new Array();
	var html2 = new Array();
	var html3 = new Array();
	var all = new RegExp(query, 'i');
	var start = new RegExp('^'+query, 'i');
	var startword = new RegExp(' '+query, 'i');
	var count = 0;
	var truncated = false;
	for(var i=0;i<data.suggest.length;i++) {
		var matched = false;
		var s = data.suggest[i].replace( all, function(q) { matched = true; return '<span class="match">' + q + '</span>' });
		if (matched) {
			// test if the cached data is valid
			var l = data.suggest[i].toLowerCase();
			if (typeof q != 'undefined' && typeof c != 'undefined' && l.indexOf(c) != l.indexOf(q))
				return false;
			if(start.test(l))
					html1.push('<li>' + s + '</li>');
			else if(startword.test(l) && options.match == 'startword')
					html2.push('<li>' + s + '</li>');
			else if(options.match == 'all')
					html3.push('<li>' + s + '</li>');
			else
				continue;
			count++;
			if (count > 100 && !seeAll) {
				truncated = true;
				break;
			}
		}			
	}
	if (html1.length + html2.length + html3.length == 0) {
		popup.css({ display: 'none' });
		return true;
	}
	list.append(html1.join('') + html2.join('') + html3.join(''));
	if (truncated) seeAllLink.css({ display: 'inline' }).click(function() { Complete(true); host.focus(); return false; });
	
	var o = host.offset();
	if(options.altpos == '1' || options.altpos == 'true')
		o = host.position();
	else if('' == 'position' && window.location.host.indexOf('search') == 0)
		o = host.position();
	else if('' == 'position' && window.location.host.indexOf('www') == 0)
		o = host.position();
		 
	var d = {height:host.height(), width:host.outerWidth()};
	var top = o.top + d.height + options.extratop + 5;
	var left = o.left + options.extraleft;
	var width = d.width + options.extrawidth - 1;
	popup.css({height:'auto', overflowY:'auto', display:'block', top:top, left:left, width:width});
	if(list.height() > options.maxheight)
		popup.css({height:options.maxheight, overflowY:'scroll'});
	list.find('LI').hover(MouseOver, MouseOut).click(Click);
	popup.scrollTop(0);
	host.focus();
	$(document).click(BodyClick);
	return true;
}
function BodyClick(event) {							
	$(document).unbind('click', BodyClick);
	var target = $(event.target);
	if(target.parents('#AutoComplete_'+id).length == 0)
	{
		popup.css({display:'none'});
		return;
	}

	list = $('#AutoComplete_'+id);				
	if (list == null)
		return;

	var selected = list.find('.mouseover');
	if (selected.length == 0) return;
	host.val(selected.text()).focus();		 
}

function ScrollToView() {
	var selected = list.find('.selected');
	if(selected.length == 0) return;
	var pos = selected.position().top;
	var max = popup.height() - selected.outerHeight();
	if(pos > max)
		popup.scrollTop(popup.scrollTop() + pos - max);
	if(pos < 0)
		popup.scrollTop(popup.scrollTop() + pos);
}
function HandleKey(event) {
	var selected = list.find('.selected');
	var keycode = event.which;
	if(keycode == 9) {
		// if there's only one choice, select it
		if(selected.length > 0 && list.find('LI').length == 1) {
			popup.css({display:'none'});
			host.val(selected.text()+' ').focus();
			return false;
		}
		if(event.shiftKey)
			keycode = 38; // shift+tab = up
		else
			keycode = 40; // tab = down
	}
	switch(keycode) {
		case 13:	// return when item selected, get text
			if(selected.length == 0)
			{				
				return true;
			}
			popup.css({display:'none'});
			host.val(selected.text()).focus();
			return true;
		case 40: // down selects the one below
			if(selected.length == 0) {
				list.find('LI:first').addClass('selected');
				ScrollToView();
				return false;
			}
			var next = selected.removeClass('selected').next();
			if(next.length == 0)
				list.find('LI:first').addClass('selected');
			else
				next.addClass('selected');
			ScrollToView();
			return false;
		case 38: // up selects the one on top
			if(selected.length == 0) {
				list.find('LI:last').addClass('selected');
				ScrollToView();
				return false;
			}
			var prev = selected.removeClass('selected').prev();
			if(prev.length == 0)
				list.find('LI:last').addClass('selected');
			else
				prev.addClass('selected');
			ScrollToView();
			return false;
		case 16: // shift by itself
			return true;
		case 33: //page up
			popup.scrollTop(popup.scrollTop() - popup.height());
			return false;
		case 34: // page down
			popup.scrollTop(popup.scrollTop() + popup.height());
			return false;
		case 27: // esc: disable autocomplete
			popup.css({display:'none'});
			host.attr('autocomplete', 'on');
			host.attr('AutoCompleted', 'false');
			host.unbind('keydown', HandleKey);
			return false;
		default:
			setTimeout(function() {Complete();}, 10);
			return true;
	}
}

function Complete(forceSeeAll) {
	if(!host || !popup || !list) return;
	seeAll = false;
	if (forceSeeAll) seeAll = true;
	var v = host.val();
	if(v.length < 3) {
		popup.css({display:'none'});
		return;
	}
	
	query = v.toLowerCase();
	var p = host.val().substring(0,i);
	prefix = ''
	if(p.length > 0)
		prefix = '<span class="before">'+p+' </span>';

	// check if we have a cache for the the full length down to the first 3 letters
	// if we do, call render and see if it's a valid one
	var cacheKey = query +'';
	var data = false;
	for(var i=query.length;i>2;i--) {
		cacheKey = query.substring(0, i);
		data = cache[cacheKey];
		if (typeof data != 'undefined')
			if(Render(data, query, cacheKey))
				return;
	}
	cacheKey = query + ''; // revert to the full key
	var data = {suggest:new Array()};
	var r = new RegExp(query, 'i');
	data.suggest = $.grep(Keywords, function(n,i) {return r.test(n);} );
	cache[cacheKey] = data;
	Render(data);
	// call the web service
	/*
	var url = "/ws.aspx?key=SUGGEST&q=" + query;
	if (pending) return;
	pending = true;
	setTimeout(function() {pending = false;}, 2000);
	$.getJSON(url,
		function(data){
			cache[cacheKey] = data;
			pending = false;
			Render(data);
		}
	);
	*/
}
function MouseOver() {
	$(this).addClass('mouseover');
}
function MouseOut(event) {
	$(this).removeClass('mouseover');
}
function Click(event) {
	if(!host) return;
	popup.css({display:'none'});
	host.val($(this).text()+' ').focus();
}
function Resized(event) {
	if($(window).width() != savedWidth)
		setTimeout(function() {Complete();}, 10);
	savedWidth = $(window).width();
}
var savedWidth = $(window).width();
$(window).bind('resize', Resized);
			
// look for options
var temp = host.parent().html();
var start = -1;
if(temp) 
	start = temp.indexOf('<!-- autocompleted.options');
if(start > -1) {
	temp = temp.substring(start + 26, temp.indexOf('-->', start))+' ';
	var extraleft = temp.indexOf('extraleft:');
	if(extraleft > -1)
		try {options.extraleft = parseInt(temp.substring(extraleft + 10, temp.indexOf(' ', extraleft + 10)));} catch(err) {}
	var extrawidth = temp.indexOf('extrawidth:');
	if(extrawidth > -1)
		try {options.extrawidth = parseInt(temp.substring(extrawidth + 11, temp.indexOf(' ', extrawidth + 11)));} catch(err) {}
	var extratop = temp.indexOf('extratop:');
	if(extratop > -1)
		try {options.extratop = parseInt(temp.substring(extratop + 9, temp.indexOf(' ', extratop + 9)));} catch(err) {}
	var maxheight = temp.indexOf('maxheight:');
	if(maxheight > -1)
		try {options.maxheight = parseInt(temp.substring(maxheight + 10, temp.indexOf(' ', maxheight + 10)));} catch(err) {}
	var altpos = temp.indexOf('altpos:');
	if(altpos > -1)
		try {options.altpos = temp.substring(maxheight + 10, temp.indexOf(' ', maxheight + 10));} catch(err) {}
	var achost = temp.indexOf('host:');
	if(achost > -1)
		try {options.host = temp.substring(achost + 5, temp.indexOf(' ', achost + 5));} catch(err) {}
	var match = temp.indexOf('match:');
	if(match > -1)
		try {options.match = temp.substring(match + 6, temp.indexOf(' ', match + 6));} catch(err) {}
}
var id = (''+Math.random()).substr(2);
var popupid = '__dsns_autocomplete_'+id;
if(host.data('dsnsAutoCompleted') == 'false')
	return;

if(host.data('dsnsAutoCompleted') == 'true') {
	popup = $('#'+popupid);
	seeAllLink = popup.find('A[href$=#all]');
	list = popup.find('UL');
	return;
}

host.attr('autocomplete', 'off');
host.data('dsnsAutoCompleted', 'true');
host.keydown(HandleKey);
var tmp = $(options.host);
if(tmp.length == 0)
	tmp = $('#loaderhost');
if(tmp.length == 0)
	tmp = $('BODY');
if($('#'+popupid).length == 0)
	tmp.append('<div id="'+popupid+'" class="dsnsAutoComplete"><ul></ul><a href="#all" class="dsnsAutoCompleteSeeAll">See all...</a></div>');

popup = $('#'+popupid);
seeAllLink = popup.find('A[href$=#all]');
list = popup.find('UL');
};;/*
$('#advancedsearch, .dsnsadvsearch A, #header .advanced A, #search .advanced A').live('click', function() {
	var me = $(this);
	var id = me.data('dsns_quicksearch');
	if(!me.data('dsns_quicksearch')) {
		id = (''+Math.random()).substr(2);
		me.data('dsns_quicksearch', id);
	}
	
	var popupid = '__dsns_quicksearch_'+id;
	var popup = $('#'+popupid);

	var tmp = $('#loaderhost');
	if(tmp.length == 0)
		tmp = $('body');
			
	var created = false;
	if(popup.length == 0) {
		popup = $('<div id="'+popupid+'" class="dsnsQuickSearch"></div>').appendTo(tmp);
		popup.html(qsHTML.replace(/\{id\}/ig, id));
		created = true;
	}
	if(me.hasClass('dsnsoffset')) {
		var oft = me.offset();
		var l = oft.left + me.width() - popup.width();
		popup.css({display:'block', top: oft.top + 20, left: l});
	} else {
		var pos = me.position();
		popup.css({display:'block', top: pos.top + me.height(), left: -1000});
		popup.css({left:$('#header').width() - 50});
		if(me.attr('id') == 'advancedsearch') popup.css({top:220, left:380, marginTop:0});
	}
	if(!created) return false;
	
	function BodyClick(event) {							
		var target = $(event.target);
		if (!(target.parents().index(popup) >= 0 || target[0] == popup[0] || target[0].tagName == 'HTML')) {
			popup.css({display:'none'});
			return;
		}
	}
	$(document).mousedown(BodyClick);
	
	function Resized(event) {
		if($(window).width() != savedWidth)
			popup.css({display:'none'});
		savedWidth = $(window).width();
	}
	var savedWidth = $(window).width();
	$(window).bind('resize', Resized);
	
	popup.find('.close').click(function() {
		popup.css({display:'none'});
	});
	
	$('#qscity_' + id).bind('change', function() {
		var me = $(this);
		var city = me.find('OPTION:selected');
		var v = city.val();
		if(v && v.length > 0)
			$('#qscnty_' + id).attr('disabled', true).find('option[value="'+city.attr('rel')+'"]').attr('selected', 'selected');
		else
			$('#qscnty_' + id).attr('disabled', false);
	});
	
	popup.find('FORM').bind('submit', function() {
		var type = '', q = '', date = '';
		var me = $(this);
		q = me.find('.qstext').val();
		
		var cat = $('#qscat_' + id +' OPTION:selected').val();
		if(cat && cat.length > 0)
			type += $('#qscat_'+id).attr('rel') + ',' + cat + ';';
			
		var feat = $('#qsfeat_' + id +' OPTION:selected').val();
		if(feat && feat.length > 0)
			type += $('#qsfeat_'+id).attr('rel') + ',' + feat + ';';
		
		var city = $('#qscity_' + id +' OPTION:selected').val();
		if(city && city.length > 0)
			type += $('#qscity_'+id).attr('rel') + ',' + city + ';';
			
		var cnty = $('#qscnty_' + id +' OPTION:selected').val();
		if(cnty && cnty.length > 0)
			type += $('#qscnty_'+id).attr('rel') + ',' + cnty + ';';
		
		var date = $('#qsdate_' + id +' OPTION:selected').val();
		if(date && date.length > 0) {
			var d = new Date();
			d.setDate(d.getDate() - parseInt(date));
			var day = d.getDate();
			if(day < 10) day = '0'+day;
			var month = d.getMonth() + 1;
			if(month < 10) month = '0'+month;
			date = $('#qsdate_'+id).attr('rel') + '=' + month + '%2f' + day + '%2f' + d.getFullYear() + '%2c';
		}
		
		if(type.length > 0)
			type = type.substr(0, type.length - 1);
		
		var url = 'http://'+window.location.host.replace('www', 'search')+'/default.aspx?ct=r';
		if(q && q.length > 0)
			url += '&q="'+q+'"';
		if(type && type.length > 0)
			url += '&type='+type;
		if(date && date.length > 0)
			url += '&'+date;
		window.location = url;
		return false;
	});
	
	return false;
});
*/;function AddDefaultText(box) {
	if(!box || box.length == 0 || box.data('defaulttext'))
		return;
	box.data('defaulttext', true);
	var t = 'Find stories and video';
	box.blur(function() {
		var me = $(this).removeClass('hasfocus').addClass('isblurred');
		var v = me.val();
		if(v == '' || v == t)
			me.val(t);
	}).focus(function() {
		var me = $(this).removeClass('isblurred').addClass('hasfocus');
		var v = me.val();
		if(v == t)
			me.val('');
	}).keydown(function() {
		var me = $(this).removeClass('isblurred').addClass('hasfocus');
		var v = me.val();
		if(v == t)
			me.val('');
	});

	var v = box.val();
	if(v == '' || v == t)
		box.addClass('isblurred').val(t); 

	var forms = box.parents('form');
	if(forms && forms.length > 0) {
		forms.each(function(n, f) { 
			var p = $(f), u = p.attr('action') + '?ct=r&q=';
			p.submit(function() {
				var v = p.find('.autocompleted').val();
				if(v == t) v = '';
				window.location = u + encodeURIComponent(v.replace(/^\s*|\s*$/g,'').replace(/[\s]+/g,' '));
				return false;
			});
		});
	}
}

(function() {
setTimeout(function() {$('.autocompleted').each(function() {AddDefaultText($(this));});}, 10);
setTimeout(function() {$('.autocompleted').each(function() {AddDefaultText($(this));});}, 200);
setTimeout(function() {$('.autocompleted').each(function() {AddDefaultText($(this));});}, 500);
$(function() {$('.autocompleted').each(function() {AddDefaultText($(this));});});
})();


window['KOMO_WidgetsV1'].tcb = function (data) {
	var t = window['KOMO_WidgetsV1'].topics = data;
	var h = $('#dsnstopics');
	if(t && h.length > 0) window['KOMO_WidgetsV1'].RenderTopics(t,h);
}

var pid = /([0-9]+)\.html/ig.exec(window.location.href);
if(/debug/ig.test(window.location.href))
	dsnsTopicsWS = pid;
if(pid && pid[1] && false) {
		$.ajax({
				url: 'http://search.komonews.com/ws/topics.aspx',
				dataType: 'script',
				data: {key:'TOPIC', dsc:'FISHR', ppid:pid[1], mc:4, mt:4, mr:4, cb:'tcb', ns:'KOMO_WidgetsV1'}
		});
}


$('.hoods_list_container A').live('click', function() {
	var l = $(this).attr('rel');
	if(!l || l == '') {
		l = $(this).attr('href');
		l = l.substr(7, l.indexOf('.') - 7);
	}
	if(l)
		window['__dsns_'].SetCookie('dsnscomm', l);
});

$('#dsnsLfPopup2onClick').live('click', function() {
	$('#dsnsLfPopup2').css({zIndex:20000});
	$('<div id="dsnsOverlay">&nbsp;</div>').prependTo($('body')).css({display:'none'});
	window['__dsns_'].AddOverlay();
	window['__dsns_'].ShowPicker(false, $(this), true);
});;var localFeeds = new Array({"t":"Auburn", "u":"http://auburn.komonews.com", "k":"auburn", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Daddy Daughter Night(s) this weekend", "n":"719200"},{"t":"Man shot by deputies, taken to Harborview", "n":"719012"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Auburn sees job growth in 2011", "n":"718559"},{"t":"Look for a new traffic light at W. Main next week", "n":"718522"} ]},{"t":"Ballard", "u":"http://ballard.komonews.com", "k":"ballard", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Comment on Ballard Metro changes, including loss of 3 routes, tonight", "n":"719029"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Have drinks, spell words, raise cash for Salmon Bay Elementary Saturday", "n":"718502"},{"t":"Ballardite’s nonprofit gives comfort to families facing rare birth defect", "n":"718472"} ]},{"t":"Bellevue", "u":"http://bellevue.komonews.com", "k":"bellevue", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Parent Workshop discusses kids\\\\' safety tips", "n":"719219", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/4131d12419c9fc33.png"},{"t":"Bellevue husband plans big Valentine\\\\'s Day surprise", "n":"719197"},{"t":"Meeting to focus on proposed regional arena", "n":"719186"},{"t":"Bellevue students build satellites with help of astronaut", "n":"719166"},{"t":"Public discussions to continue about school superintendent characteristics", "n":"719018"} ]},{"t":"Beacon Hill", "u":"http://beaconhill.komonews.com", "k":"beaconhill", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Local group looking for stray cats to spay/neuter for free", "n":"719035"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Jefferson Park Golf renovation proposal presented to Design Commission", "n":"718521"},{"t":"South Seattleites organizing on Facebook", "n":"718198"} ]},{"t":"Bothell", "u":"http://bothell.komonews.com", "k":"bothell", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Clouds, rain to continue through work week", "n":"719011", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/clouds.jpg"},{"t":"Video: Bothell officer takes the \\\\'plunge\\\\'", "n":"718597"},{"t":"Dentists offer free dental care to those in need", "n":"718194"},{"t":"Mill Creek man wins big in the Washington Lottery", "n":"718176"},{"t":"Everett restaurant, Alderwood Starbucks among food safety award winners", "n":"718174"} ]},{"t":"Burien", "u":"http://burien.komonews.com", "k":"burien", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Burien Little Theatre presents \\\\'The Who\\\\'s Tommy\\\\'", "n":"719217", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/422947_10150596870659287_96443294286_8631979_1844302207_n.jpg"},{"t":"Superintendent tours Mount Rainier HS", "n":"719216"},{"t":"Meet your superintendent candidates", "n":"719215"},{"t":"Top three candidates selected in superintendent search", "n":"719052"},{"t":"Clouds, rain to continue through work week", "n":"719011"} ]},{"t":"Capitol Hill", "u":"http://capitolhill.komonews.com", "k":"capitolhill", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719195"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Controversial Seattle principal no longer a candidate at Tacoma elementary school", "n":"718471"},{"t":"Take an art walk tonight", "n":"718135"} ]},{"t":"Central District", "u":"http://centraldistrict.komonews.com", "k":"centraldistrict", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719195"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Book reading at Town Hall: Panther Baby", "n":"718507"},{"t":"Hard Rock Café featuring items benefiting Jimi Hendrix foundation", "n":"718201"} ]},{"t":"Columbia City", "u":"http://columbiacity.komonews.com", "k":"columbiacity", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Local group looking for stray cats to spay/neuter for free", "n":"719035"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Two teen burglars caught in Rainier Valley", "n":"718940"},{"t":"Columbia City community is focus behind mural project", "n":"718839"} ]},{"t":"Downtown Seattle", "u":"http://downtownseattle.komonews.com", "k":"downtownseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"2 severely injured by gunfire outside SoDo nightclub", "n":"719140"},{"t":"Celebration planned as governor prepares to sign Marriage Equality Bill", "n":"719033"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Pink umbrella mob takes over the Market", "n":"718855"} ]},{"t":"Edmonds", "u":"http://edmonds.komonews.com", "k":"edmonds", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"This week\\\\'s City Council meeting - committees will meet separately", "n":"719201"},{"t":"Expect delays around the fountain on Main Street for Tuesday due to repairs on a water main leak", "n":"719194"},{"t":"Swedish/Edmonds & Edmonds School District team up for second in series of Healthier Choices events", "n":"719188"},{"t":"Finance Committee meets today, on the agenda: HR temporary staffing proposal & General Fund", "n":"719168"},{"t":"Updated: Edmonds apartment fire causes $120,000 in damages and displaces three of the residents", "n":"719014"} ]},{"t":"Everett", "u":"http://everett.komonews.com", "k":"everett", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"District basketball: Jackson moves on; Cascade, Everett done; split for AMHS", "n":"719220"},{"t":"Senators, congressmen urge feds to help ex-Kimberly-Clark workers", "n":"719191"},{"t":"2 men shot outside Everett restaurant", "n":"719164"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Dance Studio celebrates 100th anniversay in time for V-Day", "n":"718832"} ]},{"t":"Federal Way", "u":"http://federalway.komonews.com", "k":"federalway", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"City:  Park Pals in the Volunteer Spotlight", "n":"719198"},{"t":"WSDOT: First I-5 closure a success, lanes reopened", "n":"719013"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Dance Studio celebrates 100th anniversay in time for V-Day", "n":"718832"},{"t":"Sound Transit to hear proposed amendment on Federal Way light rail study", "n":"718118"} ]},{"t":"Fremont", "u":"http://fremont.komonews.com", "k":"fremont", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Chance to comment on new 5-unit Fremont development", "n":"719221"},{"t":"More photos from Cupid\\\\'s Undie Run in Fremont", "n":"719189"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Photos: This is one race people can really get \\\\'behind\\\\'", "n":"718877"} ]},{"t":"Georgetown", "u":"http://georgetown.komonews.com", "k":"georgetown", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Kids\\\\' printmaking workshop comes to South Park library Mar. 17", "n":"718540"},{"t":"South Seattleites organizing on Facebook", "n":"718198"},{"t":"Celebrate your \\\\'hood\\\\' with Neighbor Appreciation Day", "n":"718197"} ]},{"t":"Gig Harbor", "u":"http://gigharbor.komonews.com", "k":"gigharbor", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Clouds, rain to continue through work week", "n":"719011", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/clouds.jpg"},{"t":"Line up set for free outdoor concert series", "n":"718600"},{"t":"Happy birthday, Top Pot!", "n":"717631"},{"t":"Gig Harbor\\\\'s Stanley earns redemption with win at Phoenix Open", "n":"716932"},{"t":"Get outside now, wet weather to return mid-week", "n":"716615"} ]},{"t":"Green Lake", "u":"http://greenlake.komonews.com", "k":"greenlake", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Valentine\\\\'s Day Dash helps spread the \\\\'love\\\\'", "n":"718835"},{"t":"Watch 60 students, 6 Chinese pros get their table tennis on this weekend", "n":"718527"} ]},{"t":"Greenwood Phinney", "u":"http://greenwoodphinney.komonews.com", "k":"greenwoodphinney", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Firefighters show \\\\'appreciation\\\\' for neighbors with open house", "n":"718837"} ]},{"t":"Issaquah", "u":"http://issaquah.komonews.com", "k":"issaquah", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Issaquah district invites public to view and discuss documentary", "n":"719031"},{"t":"Chop Shop dance festival continues at Meydenbauer Center", "n":"719032"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Artists prepare for tonight’s dance festival at Meydenbauer Center", "n":"718834"},{"t":"Cardiologist discusses heart health benefits of dark chocolate", "n":"718564"} ]},{"t":"Kent", "u":"http://kent.komonews.com", "k":"kent", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Kent Police hosts community meeting", "n":"719204"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"\"Camper kitties\" go up for adoption", "n":"718461"},{"t":"New Shanghai Circus coming to Kent", "n":"718193"},{"t":"City not worried about Moody’s downgrade", "n":"717682"} ]},{"t":"Kirkland", "u":"http://kirkland.komonews.com", "k":"kirkland", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Evergreen Healthcare uses robotic surgery for general procedures", "n":"719019", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/vitality_health_fair_015.jpg"},{"t":"Chop Shop dance festival continues at Meydenbauer Center", "n":"719032"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Artists prepare for tonight’s dance festival at Meydenbauer Center", "n":"718834"},{"t":"2 suspects in custody following Bellevue bank robbery", "n":"718704"} ]},{"t":"Lake City", "u":"http://lakecity.komonews.com", "k":"lakecity", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Get \\\\'hands on\\\\' experience during skills fair today", "n":"718846"} ]},{"t":"Lakewood", "u":"http://lakewood.komonews.com", "k":"lakewood", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Lakewood cop accused of stealing from memorial fund fired", "n":"719213", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/120208_skeeter_manos1_0.jpg"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Two new hotels set to break ground soon", "n":"718836"},{"t":"Anti-gay church cancels protest at Powell boys\\\\' funeral", "n":"718501"},{"t":"Charge: Lakewood cop stole from Fallen Officers’ Fund", "n":"717731"} ]},{"t":"Lynnwood", "u":"http://lynnwood.komonews.com", "k":"lynnwood", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"District hoops: MLT, CPC win; Royals, Mavs lose, in consolation bracket", "n":"719222"},{"t":"Swedish/Edmonds & Edmonds School District team up for second in series of Healthier Choices events", "n":"719188"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Dist. 1 3A girls hoops: Royals win in OT; Mavs win at MV; GP, Shorecrest win", "n":"718468"},{"t":"Lego to open store at Alderwood Mall", "n":"718464"} ]},{"t":"Madison Park", "u":"http://madisonpark.komonews.com", "k":"madisonpark", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Seattle Animal Shelter offers month-long spay special", "n":"718473"},{"t":"SHS wants to help you find love this Valentine\\\\'s Day", "n":"718246"} ]},{"t":"Magnolia", "u":"http://magnolia.komonews.com", "k":"magnolia", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Community Center registering kids for preschool program", "n":"719040"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Seattle Animal Shelter offers month-long spay special", "n":"718473"} ]},{"t":"Medina", "u":"http://medina.komonews.com", "k":"medina", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Two public notices posted this month for development in the city", "n":"719218", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/medina_logo_0_0.jpg"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Plans to improve 84th Ave. NE continue moving forward", "n":"718516"},{"t":"SHS wants to help you find love this Valentine\\\\'s Day", "n":"718246"},{"t":"Police urge residents to lock doors following handful of car break-ins", "n":"718044"} ]},{"t":"Mercer Island", "u":"http://mercerisland.komonews.com", "k":"mercerisland", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Suspect arrested in Mercer Island student\\\\'s death in Spain", "n":"719165"},{"t":"Call for art show entries going on now", "n":"719044"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Meet your legislators, ask questions during Town Hall meetings", "n":"718852"},{"t":"Hall of Fame award goes to MIHS basketball coach", "n":"718259"} ]},{"t":"Mukilteo", "u":"http://mukilteo.komonews.com", "k":"mukilteo", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Kamiak keeps boys BB season alive with win; host Lake Stevens on Wednesday", "n":"719214", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/kamiak_logo_0.jpg"},{"t":"MPD: No charges in unlawful imprisonment case", "n":"719169"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Kamiak hosts 4A district swimming & diving finals on Saturday", "n":"718517"},{"t":"4A district girls hoops: Wins for E-W, Arlington means seasons end for Mariner, Kamiak", "n":"718466"} ]},{"t":"Newcastle", "u":"http://newcastle.komonews.com", "k":"newcastle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Clouds, rain to continue through work week", "n":"719011", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/clouds.jpg"},{"t":"Meet your legislators, ask questions during Town Hall meetings", "n":"718852"},{"t":"Join the \\\\'Weed Warriors\\\\' this weekend in Boren Park", "n":"718520"},{"t":"SHS wants to help you find love this Valentine\\\\'s Day", "n":"718246"},{"t":"City approves new door-to-door permit fee", "n":"718050"} ]},{"t":"North Seattle", "u":"http://northseattle.komonews.com", "k":"northseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Police: Thief’s forgotten retainer could crack wave of N. Seattle burglaries", "n":"719206"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Standoff ends in Northgate area as man surrenders", "n":"718529"} ]},{"t":"Puyallup", "u":"http://puyallup.komonews.com", "k":"puyallup", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Vigil, condolence book helps honor Powell boys", "n":"719020", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/120208_powell_boys_2_0.jpg"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Memorial service today for Powell boys and their mother", "n":"718831"},{"t":"Blood-stained comforter found in Powell storage unit", "n":"718561"},{"t":"Anti-gay church cancels protest at Powell boys\\\\' funeral", "n":"718501"} ]},{"t":"Queen Anne", "u":"http://queenanne.komonews.com", "k":"queenanne", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Bainbridge’s The Deep Wake win Sound Off! Round 1", "n":"719196"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Queen Anne renaissance woman raising money for Japanese orchestra", "n":"718539"},{"t":"Traffic signal out at 5th and Broad; expect delays", "n":"718203"} ]},{"t":"Redmond", "u":"http://redmond.komonews.com", "k":"redmond", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Seattle woman dies after shooting at Redmond home", "n":"719036", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/120212_redmond_shooting_thumb_0.jpg"},{"t":"Chop Shop dance festival continues at Meydenbauer Center", "n":"719032"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Artists prepare for tonight’s dance festival at Meydenbauer Center", "n":"718834"},{"t":"Lake Washington DECA students move on to state", "n":"718537"} ]},{"t":"Renton", "u":"http://renton.komonews.com", "k":"renton", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Boeing says it\\\\'s frustrated with Dreamliner glitch", "n":"719202"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Library petition passed to King Co. Elections Dept.", "n":"718504"},{"t":"Police confirm body of missing man", "n":"718192"},{"t":"Arts Grant Program deadline extended", "n":"718132"} ]},{"t":"Sammamish", "u":"http://sammamish.komonews.com", "k":"sammamish", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Issaquah district invites public to view and discuss documentary", "n":"719031"},{"t":"Chop Shop dance festival continues at Meydenbauer Center", "n":"719032"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Artists prepare for tonight’s dance festival at Meydenbauer Center", "n":"718834"},{"t":"Cardiologist discusses heart health benefits of dark chocolate", "n":"718564"} ]},{"t":"Shoreline", "u":"http://shoreline.komonews.com", "k":"shoreline", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"City hoops: Scots, T-Birds boys play Tuesday; Shorecrest girls, King\\\\'s & SCHS boys advance", "n":"719205"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Busy basketball weekend for Shoreline\\\\'s high schools", "n":"718525"},{"t":"Dist. 1 3A girls hoops: Royals win in OT; Mavs win at MV; GP, Shorecrest win", "n":"718468"},{"t":"District 1 3A girls hoops tourney begins tonight", "n":"718243"} ]},{"t":"Snohomish", "u":"http://snohomish.komonews.com", "k":"snohomish", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Snohomish boys, GP boys & girls all playing for district titles; SHS girls play Tuesday", "n":"719199"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"1 injured as car slams into house near Snohomish", "n":"718512"},{"t":"Changing Lives campaign begins next week", "n":"718541"},{"t":"Dist. 1 3A girls hoops: Royals win in OT; Mavs win at MV; GP, Shorecrest win", "n":"718468"} ]},{"t":"Tacoma", "u":"http://tacoma.komonews.com", "k":"tacoma", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Local salon owners hoping new shop will revitalize downtown block", "n":"718701", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/photo-gallery/latresse16.jpg"},{"t":"Vigil, condolence book helps honor Powell boys", "n":"719020"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Dance Studio celebrates 100th anniversay in time for V-Day", "n":"718832"},{"t":"Memorial service today for Powell boys and their mother", "n":"718831"} ]},{"t":"Tukwila", "u":"http://tukwila.komonews.com", "k":"tukwila", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Fire crews stop car fire from spreading to nearby home", "n":"719167"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Celebrate Southcenter Rotary at Mardi Gras Auction this weekend", "n":"718519"},{"t":"Save the date: Tukwila Historical Society gala is May 19", "n":"718137"},{"t":"Northwest scale modelers to come together for \\\\'Massive Show of the Force\\\\'", "n":"718039"} ]},{"t":"University District", "u":"http://udistrict.komonews.com", "k":"udistrict", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Following students concerns, UW \\\\'holds off\\\\' on moving police department", "n":"719038"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"} ]},{"t":"View Ridge", "u":"http://viewridge.komonews.com", "k":"viewridge", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Frockt Watch: Rental-tenant screening bill moves forward", "n":"719223"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Seattle Animal Shelter offers month-long spay special", "n":"718473"} ]},{"t":"Wallingford", "u":"http://wallingford.komonews.com", "k":"wallingford", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Seattle Animal Shelter offers month-long spay special", "n":"718473"},{"t":"SHS wants to help you find love this Valentine\\\\'s Day", "n":"718246"} ]},{"t":"West Seattle", "u":"http://westseattle.komonews.com", "k":"westseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"How will you treat your Valentine?", "n":"719212"},{"t":"Driver alert: Spokane Street Viaduct closures this week", "n":"719184"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Fauntleroy Expressway, Avalon closures continue next week", "n":"718528"} ]},{"t":"Woodinville", "u":"http://woodinville.komonews.com", "k":"woodinville", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Clouds, rain to continue through work week", "n":"719011", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/clouds.jpg"},{"t":"Public Safety Commission to review city\\\\'s weather response", "n":"718887"},{"t":"9 Northshore Schools get statewide recognition", "n":"718169"},{"t":"City approves moving summer concert series", "n":"718139"},{"t":"Fourteen Lake Washington Schools recognized with Washington Achievement Awards", "n":"717378"} ]},{"t":"Rainier Valley", "u":"http://rainiervalley.komonews.com", "k":"rainiervalley", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Local group looking for stray cats to spay/neuter for free", "n":"719035"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Two teen burglars caught in Rainier Valley", "n":"718940"} ]},{"t":"Des Moines", "u":"http://desmoines.komonews.com", "k":"desmoines", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Superintendent tours Mount Rainier HS", "n":"719216", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/mt._rainier_math_contest.jpg"},{"t":"Meet your superintendent candidates", "n":"719215"},{"t":"Top three candidates selected in superintendent search", "n":"719052"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Superintendent tours Bow Lake Elementary", "n":"718526"} ]},{"t":"South Lake Union", "u":"http://southlakeunion.komonews.com", "k":"southlakeunion", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"SPS: All-day kindergarten tuition going up by 15 percent", "n":"719237"},{"t":"Reminder: Parents can learn how child\\\\'s school budget works", "n":"719030"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Photos: That\\\\'s one cold \\\\'plunger\\\\'", "n":"718867"},{"t":"Video: \\\\'Super Plungers\\\\' brave icy waters in show of support", "n":"718566"} ]},{"t":"Marysville", "u":"http://marysville.komonews.com", "k":"marysville", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Family, Tulalip tribe feuding over land near casino, outlet mall", "n":"719192", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/120212_tulalip_land_dispute_660.jpg"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Norovirus investigated as likely cause of state cheerleading event outbreak", "n":"718565"},{"t":"MPHS to host district swimming & diving championships", "n":"718499"},{"t":"DOH: Nearly 200 reported ill after state cheerleading championships", "n":"718252"} ]},{"t":"Olympia", "u":"http://olympia.komonews.com", "k":"olympia", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Police seek help finding missing Thurston County man", "n":"719190", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/turner_missing.jpg"},{"t":"Organizers plan celebration in Olympia after gay marriage bill signing", "n":"719185"},{"t":"PSE offering energy help for residents of manufactured homes", "n":"719034"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Last weekend for free tree debris drop-off in Olympia", "n":"718505"} ]},{"t":"Lacey", "u":"http://lacey.komonews.com", "k":"lacey", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Fire district invites pubic to comment on 2012 budget", "n":"719224"},{"t":"Police seek help finding missing Thurston County man", "n":"719190"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Save the date: \\\\'Lacey Loves To Read\\\\' author visit", "n":"718560"},{"t":"Investigators seek 2 women in Lindsey Baum disappearance", "n":"718136"} ]},{"t":"Tumwater", "u":"http://tumwater.komonews.com", "k":"tumwater", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Police seek help finding missing Thurston County man", "n":"719190", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/turner_missing.jpg"},{"t":"PSE offering energy help for residents of manufactured homes", "n":"719034"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Save the date: \\\\'A Really Big Shoe\\\\' benefit concert coming up Feb. 26", "n":"718601"},{"t":"Investigators seek 2 women in Lindsey Baum disappearance", "n":"718136"} ]},{"t":"Yelm", "u":"http://yelm.komonews.com", "k":"yelm", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Police seek help finding missing Thurston County man", "n":"719190", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/turner_missing.jpg"},{"t":"PSE offering energy help for residents of manufactured homes", "n":"719034"},{"t":"Clouds, rain to continue through work week", "n":"719011"},{"t":"Tonight: Family comedy night at YHS", "n":"718563"},{"t":"Save the date: \\\\'A Really Big Shoe\\\\' benefit concert coming up Feb. 26", "n":"718249"} ]},{"t":"Shelton", "u":"http://shelton.komonews.com", "k":"shelton", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Clouds, rain to continue through work week", "n":"719011", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/clouds.jpg"},{"t":"Mudslide cleared near Union", "n":"718500"},{"t":"Mason County deputy shoots wood theft suspect", "n":"718465"},{"t":"County seeking people for substance abuse advisory committee", "n":"718254"},{"t":"Chamber meeting tonight at Smokin\\\\' Mo\\\\'s", "n":"717686"} ]},{"t":"Bellingham", "u":"http://bellingham.komonews.com", "k":"bellingham", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Don\\\\'t forget to vote! Ballots for Special Election due tomorrow", "n":"719203", "i":"http://media.dtsph.com/sites/default/files/imagecache/story_image_widget/specialelect.jpg"},{"t":"Ferndale Arts Commission to hold special meeting this week", "n":"719092"},{"t":"Roll with it: The Bellingham Betties open fifth season", "n":"719039"},{"t":"Crews rescue missing pilot near Mount Baker", "n":"719017"},{"t":"Clouds, rain to continue through work week", "n":"719011"} ]});;var host = window.location.host.replace('search.', 'www.').replace('.test.datasphere', '').replace('.regisweb', '').replace('dev.', '');
var GetLocationFromGoogleLoader = function(callback) {
	var AjaxGeoLocation = (function() {
		var loading = false;
		var loadGoogleLoader = function() {
			if (!hasGoogleLoader() && !loading) { loading = true; var s = document.createElement('script'); s.src = 'http://www.google.com/jsapi?callback=_google_loader_apiLoaded'; s.type = "text/javascript"; document.getElementsByTagName('head')[0].appendChild(s); }
		};
		var queue = [];
		var addLocationQueue = function(callback) { queue.push(callback); }
		var runLocationQueue = function() {
			if (hasGoogleLoader()) while (queue.length > 0) { var call = queue.pop(); call(); }
		}

		window['_google_loader_apiLoaded'] = function() { runLocationQueue(); }
		var hasGoogleLoader = function() { return (window['google'] && google['loader']); }
		var checkGoogleLoader = function(callback) { if (hasGoogleLoader()) return true; addLocationQueue(callback); loadGoogleLoader(); return false; };
		loadGoogleLoader();
		return { shim: true, type: "ClientLocation", lastPosition: null,
			getCurrentPosition: function(successCallback) {
				var self = this;
				if (!checkGoogleLoader(function() { self.getCurrentPosition(successCallback); })) return;
				if (google.loader.ClientLocation) {
					var cl = google.loader.ClientLocation;
					var position = { latitude: cl.latitude, longitude: cl.longitude, altitude: null, accuracy: 43000, altitudeAccuracy: null, heading: null, velocity: null, timestamp: new Date(),
						address: { city: cl.address.city, country: cl.address.country, country_code: cl.address.country_code, region: cl.address.region }
					};
					successCallback(position);
					this.lastPosition = position;
				} else {
					successCallback(false);
				}
			}
		};
	})();
	AjaxGeoLocation.getCurrentPosition(function(pos) { if(/debugfeeds/ig.test(window.location.href)) window['dsnsloc'] = {'gpos':pos}; if(pos) callback(pos.address.city.toLowerCase()); else callback(false); });
}

var CommunityFromCity = function(city) {
var cities = {'seattle':'ballard', 'eugene':'downtowneugene', 'portland':'beaverton', 'bakersfield':'central', 'boise':'boisebench'};
	return cities[city] || city;
}
var GetLocationFromAdManager = function(callback) {
	var loc = window['__dsns_'].GetCookie('dsnsloc');
	if (loc) callback(CommunityFromCity(loc));
	else callback(false);
}

var GetLocationFromCookie = function(callback) {
	var loc = window['__dsns_'].GetCookie('dsnscomm');
	if (loc) callback(loc);
	else callback(false);
}
var adHider = false;
var HideFlash = function() {
		$('object, embed').each(function() {
				var me = $(this);
				if (me.hasClass('dsnshidden')) return;
				if (me.css('visibility') != 'hidden') {
						me.addClass('dsnshidden').css('visibility','hidden');
				}
		});
		$('iframe').each(function() {
				var me = $(this);
				if(me.data('hiddenflash')) return;
				if(me.css('visibility') != 'hidden') {
						me.data('hiddenflash', true);
						me.css({visibility:'hidden'});
				}
		});
}
var ShowFlash = function() {
		$('object, embed').each(function() {
				var me = $(this);
				if (me.hasClass('dsnshidden'))
						me.removeClass('dsnshidden').css('visibility','visible');
		});
		$('iframe').each(function() {
				var me = $(this);
				if(me.data('hiddenflash'))
						me.css({visibility:'visible'});
						me.data('hiddenflash', false);
		});
}

var AddOverlay = function(needElement) {
	var mask = $('#dsnsOverlay');
	if(window.top != window.self) {
		window.top['__dsns_'].AddOverlay(true);
		return;
	}
	if(mask.length == 0 && needElement)
		mask = $('<div id="dsnsOverlay">&nbsp;</div>').appendTo($('body')).css({display:'none'});
	if(mask.length == 0 || mask.is(':visible'))
		return;
	var w = $(window).width();
	var h = $(window).height();
	var dw = $(document).width();
	var dh = $(document).height();
	if(dh>h)h=dh;
	if(dw>w)w=dw;
	if(IE6 || IE8) w -= 22;
	if(IE6) $('SELECT').css({visibility:'hidden'});
	mask.css({position:'absolute', opacity:.0, backgroundColor:'#333', top:0, left:0, width:w, height:h,display:'block', zIndex:19999, opacity:.4});
	HideFlash();
	adHider = setInterval(function() {HideFlash();}, 500);
	return this;
}
window['__dsns_'].AddOverlay = AddOverlay;

var RemoveOverlay = function(outto) {
	clearInterval(adHider);
	if(outto) {
		var pos = outto.position();
		if(pos.left || pos.top == 0) pos = outto.offset();
		$('#dsnsOverlay').css({height:$(window).height(), backgroundColor:'#5B8CBE'}).animate({opacity:.0, top:pos.top, left:pos.left, width:outto.width(), height:outto.height()}, 500, function() {$(this).hide();ShowFlash();if(IE6) $('SELECT').css({visibility:'visible'});});
	}
	else
		$('#dsnsOverlay').animate({opacity:.0}, 300, function() {$(this).hide();ShowFlash();if(IE6) $('SELECT').css({visibility:'visible'});});
	return this;
}
var tmplBck = false;
var RenderLocalDeals = function(host, tmpl, comm) {
	LocalDealsRendered = true;
	var LocalDealsFound = false;
	host = host || $('#dsnslocaldeals').hide();
	if(tmpl == 'undefined') tmpl = false;
	tmpl = tmpl || tmplBck || GetMetaData(host.hide().html(lfHTML).find('#dsnsbizdir'));
	comm = comm || (window['__dsns_'].LocalFeed?window['__dsns_'].LocalFeed.k:false) || __dsns_.GetCookie('dsnscomm');
	if(!comm) comm = 'all';
	if(!tmplBck) tmplBck = tmpl;
	host.find('.title').text('fetching deals...');
	$.ajax({
		url:'http://content.secondspace.com/komo/ld/'+comm+'.js',
		dataType:'script',
		success:function() {
			if(typeof __dsns_.BusinessFeed != 'object' || __dsns_.BusinessFeed.length < 1) return;
			LocalDealsFound = true;
			host.html(tmpl).find('.business, .smalllist, .biglist').hide();
			var cfg = __dsns_.BusinessFeedConfig;
			var max = 6;
			if(__dsns_.BusinessFeed.length < max) max = __dsns_.BusinessFeed.length;
			var arr = $(__dsns_.BusinessFeed).sort(function(){
					return Math.round(Math.random())-0.5
				}).slice(0,max)
			for(var i=0;i<max&&i<3;i++) {
				var b = $('.business'+(i+1)), x = arr[i];
				x.link = cfg.root + '/' + x.name.replace(/\W+/ig, '_')+'/'+x.id+'.html';
				b.find('.name').html('<a href="'+x.link+'">'+x.name+'</a>');
		
				var k = x.logo.indexOf('http://hlocal.');
				if(k>-1)
					x.logo = x.logo.substr(k);
				else
					x.logo = cfg.imgroot+x.logo;
				k = x.logo.indexOf('http://hlcdn.');
				if(k==-1)
					k = x.logo.indexOf('http://media.');
				if(k>-1)
					x.logo = x.logo.substr(k);
				
				b.find('.thumb').html('<a href="'+x.link+'"><img src="'+x.logo+'" /></a>');
				if(!x.video) b.find('.video').hide();
				else b.find('.video').show().find('A').attr('href', x.link);
				if(!x.coupon) b.find('.coupon').hide();
				else b.find('.coupon .text').show().html('<a href="'+x.link+'?o='+x.oid+'">'+x.coupon+'</a>');
				host.find('.biglist').show();
				b.show();
			}

			//max = 3;
			//if(__dsns_.CouponFeed.length < max) max = __dsns_.CouponFeed.length;
			//arr = $(__dsns_.CouponFeed).sort(function(){
			//		return Math.round(Math.random())-0.5
			 // }).slice(0,max)
 
			for(var i=3;i<max;i++) {
				var b = $('.business'+(i+1)), x = arr[i];
				x.link = cfg.root + '/' + x.name.replace(/\W+/ig, '_')+'/'+x.id+'.html';
				b.find('.name').html('<a href="'+x.link+'">'+x.name+'</a>');
				b.find('.coupon').show().html('<a href="'+x.link+'?o='+x.oid+'">'+x.coupon+'</a>');
				host.find('.smalllist').show();
				b.show();
			}

			var t = 'Local deals';
			if(comm != 'all') {
				t = comm+' deals';
				if(window['__dsns_'].LocalFeed)
					t = window['__dsns_'].LocalFeed.t+' deals';
			}
			host.find('.title').text(t);
			host.find('.change A').click(function() {
				if($('#dsnsLfPopup').length == 0) {
					host.after($('<div/>').hide().html(lfHTML));
				}
				window['__dsns_'].ShowPicker();
				return false;
			});
			host.show();
		}
	});
	setTimeout(function() {if(!LocalDealsFound) RenderLocalDeals(host, tmpl, 'all'); }, 2000);
}
function RenderFeed(source) {
	var dealsHost = $('#dsnslocaldeals');
	window['__dsns_'].LocalFeed = source;
	if(dealsHost && dealsHost.length > 0)
		RenderLocalDeals(dealsHost, dsnsLFHTMLTemplates.deals + '', source.k);

	$('#dsnslocalnews, #dsnslocallinks').hide().find('*').show();
	var newshtml = dsnsLFHTMLTemplates.news + '';
	var linkshtml = dsnsLFHTMLTemplates.links + '';
	newshtml = newshtml.replace(/community_name/ig, source.t);
	newshtml = newshtml.replace(/http:\/\/community_link/ig, source.u);
	linkshtml = linkshtml.replace(/community_name/ig, source.t);
	linkshtml = linkshtml.replace(/http:\/\/community_link/ig, source.u);
	var img = source.i[0].i;

	if (!img || img.length < 1) {
		img = false;
		newshtml = newshtml.replace(/http:\/\/the_image./ig, 'http://cdn.secondspace.com/fshr/blank.gif');
	} else {
		var k = img.indexOf('http://hlocal.');
		if(k>-1)
			img = img.substr(k);
		else
			img = source.u + source.ip + source.i[0].i;
		k = img.indexOf('http://hlcdn.');
		if(k==-1)
			k = img.indexOf('http://media.');
		if(k>-1)
			img = img.substr(k);
				 
		newshtml = newshtml.replace(/http:\/\/the_image./ig, img);
	}

	newshtml = newshtml.replace(/http:\/\/first_link./ig, source.u + source.lp + source.i[0].n);
	newshtml = newshtml.replace(/first_title/ig, source.i[0].t.replace('\'', IE?'\'':'&apos;').replace(/[^\x20-\x7E]/ig, ' '));

	if (source.i.length > 1) {
		newshtml = newshtml.replace(/http:\/\/second_link./ig, source.u + source.lp + source.i[1].n);
		newshtml = newshtml.replace(/second_title/ig, source.i[1].t.replace('\'', IE?'\'':'&apos;').replace(/[^\x20-\x7E]/ig, ' '));
	}
	if (source.i.length > 2) {
		newshtml = newshtml.replace(/http:\/\/third_link./ig, source.u + source.lp + source.i[2].n);
		newshtml = newshtml.replace(/third_title/ig, source.i[2].t.replace('\'', IE?'\'':'&apos;').replace(/[^\x20-\x7E]/ig, ' '));
	}
	if (source.i.length > 3) {
		newshtml = newshtml.replace(/http:\/\/fourth_link./ig, source.u + source.lp + source.i[3].n);
		newshtml = newshtml.replace(/fourth_title/ig, source.i[3].t.replace('\'', IE?'\'':'&apos;').replace(/[^\x20-\x7E]/ig, ' '));
	}
	if (source.i.length > 4) {
		newshtml = newshtml.replace(/http:\/\/fifth_link./ig, source.u + source.lp + source.i[4].n);
		newshtml = newshtml.replace(/fifth_title/ig, source.i[4].t.replace('\'', IE?'\'':'&apos;').replace(/[^\x20-\x7E]/ig, ' '));
	}

	$('#dsnslocalnews').html(newshtml);
	$('#dsnslocallinks').html(linkshtml);
	if(window.top != window.self)
		$('#dsnslocalnews A, #dsnslocallinks A').attr('target', '_top');
		
	if (source.i.length < 2) $('#dsnslocalnews .second').hide();
	if (source.i.length < 3) $('#dsnslocalnews .third').hide();
	if (source.i.length < 4) $('#dsnslocalnews .fourth').hide();
	if (source.i.length < 5) $('#dsnslocalnews .fifth').hide();
	if(img) $('#dsnslocalnews .localimg').show();
	$('#dsnslocalnews, #dsnslocallinks').show();
}
window['__dsns_'].RenderFeed = RenderFeed;

function GetDefault() {
	if('ballard'.length > 0) return 'ballard';
	var cities = {'www.katu.com':'portland', 'www.kval.com':'eugene', 'www.komonews.com':'seattle', 'www.kionrightnow.com':'monterey', 'www.kcba.com':'monterey', 'www.myfox11.com':'santabarbara', 'www.kcoy.com':'santabarbara', 'www.abc6.com':'warwick', 'www.bakersfieldnow.com':'bakersfield', 'www.kboi2.com':'boise'};
	var pick = cities[host];
	if(pick) return CommunityFromCity(pick);
	return CommunityFromCity('seattle');
}
var dsnsLFHTMLTemplates = {news:'', links:''};
function ShowFeeds(picked) {
	var defcom = GetDefault();
	if (!picked)
		picked = defcom;
	
	var com = false, dcom = false;;
	var communityList = new Array();

	function feedSort(a, b) {
		var A = a.t.charAt(0), B = b.t.charAt(0);
		return A > B ? 1 : A < B ? -1 : 0;
	}
	localFeeds.sort(feedSort);

	$.each(localFeeds, function(i, c) {
		if (c.i.length == 0)
			c.i.push({"t":"No News Yet", "n":"0", "i":false});
	});
	if(/debugfeeds/ig.test(window.location.href))
		window['dsnsTemp'] = {localFeeds:localFeeds, defcom:defcom};

	window['__dsns_'].LocalFeeds = localFeeds;
	$.each(localFeeds, function(i, c) {
		if (c.i.length == 0) return true;
		communityList.push('<li><a href="#pick' + i + '">' + c.t + '</a></li>');
		if (c.k == picked) com = c;
		if (c.k == defcom) dcom = c;
	});
	if (!com) com = dcom;
	if (!com || communityList.length == 0) {
		$('#dsnslocal').show();
		return;
	}
	
	lfHTML = lfHTML.replace('<!--', '<pre><!--').replace('-->', '--></pre>').replace('<pre><pre>', '<pre>').replace('</pre></pre>', '</pre>');
	$('#dsnslocal').hide().html(lfHTML);
	dsnsLFHTMLTemplates.news = GetMetaData($('#dsnslocalnews'));
	dsnsLFHTMLTemplates.links = GetMetaData($('#dsnslocallinks'));
	dsnsLFHTMLTemplates.deals = GetMetaData($('#dsnsbizdir'));
	if($('#fin_maincontainer').length > 0) { // new layout
		if($('#dsnslocalnews2').length > 0) dsnsLFHTMLTemplates.news = GetMetaData($('#dsnslocalnews2'));
		if($('#dsnslocallinks2').length > 0) dsnsLFHTMLTemplates.links = GetMetaData($('#dsnslocallinks2'));
	}
	RenderFeed(com);


	$('#dsnspickcommunity').hide().find('UL').html(communityList.join(''));
	$('#dsnspickcommunity UL LI A').live('click', function() {
		$('#dsnspickcommunity').hide();
		var sel = localFeeds[parseInt(/[0-9]+$/.exec($(this).attr('href')))];
		RenderFeed(sel);
		window['__dsns_'].SetCookie('dsnscomm', sel.k);
		return false;
	});

		$('#dsnslocalnews').find('a[href$="pickcommunity"]').live('click', function() {
				setTimeout(function() {ShowPicker();}, 100);
				return false;
		});
		$('#dsnslocallinks a.email').live('click', function() {
			$('#dsnsLfPopup').addClass('email');
				setTimeout(function() {ShowPicker();}, 100);
				return false;
		});
	$('#dsnslocal').show();

	var autoPopup = false;
	if(host == 'www.komonews.com' || host == 'www.kionrightnow.com'	|| host == 'www.kcba.com'	||
		 host == 'www.kcoy.com'	|| host == 'www.myfo11.com' || 'true' == 'true')
		 autoPopup = true;
	if(autoPopup) {
		var c1 = window['__dsns_'].GetCookie('dsnsloc');
		var c2 = window['__dsns_'].GetCookie('dsnscomm');
		var c3 = window['__dsns_'].GetCookie('dsnslfpop');
		var date = new Date();
		if((c1 && !c2 && !c3) || c3 && c3 != '1')
		{
			try {
				if(date.getTime() > parseInt(c3))
				{
					date.setTime(date.getTime()+(30*24*60*60*1000));
					window['__dsns_'].SetCookie('dsnslfpop', '1', date.toGMTString());
					setTimeout(function() {ShowPicker();}, 100);
				}
			} catch(e) {}
		}
		if(!c2 && !c1 && !c3) {
				date.setTime(date.getTime()+(3*24*60*60*1000));
				window['__dsns_'].SetCookie('dsnslfpop', date.getTime());
		}
	}
}
var HidePicker = function(outto) {
	RemoveOverlay(outto);
	$('#dsnsLfPopup, #dsnsLfPopup2').hide();
	if(IE) $('BODY').css({position:''});
}

var ShowPicker = function(target, outto, linkoff) {
		if(window.top != window.self) {
				window.top['__dsns_'].ShowPicker(window.self);
				return;
		}
		var isemail = function() {return $('#dsnsLfPopup').hasClass('email');}
		if(isemail() && !$.isReady || IE && $('#fin_maincontainer').length > 0 && $('#footer').length == 0) {
				setTimeout(function() {ShowPicker(target, outto, linkoff);}, 500);
				return;
		}

	if(!window['__dsns_'].GetCookie('dsnsloc')) {
		var date = new Date();
		date.setTime(date.getTime()+(30*24*60*60*1000));
		window['__dsns_'].SetCookie('dsnslfpop', '1', date.toGMTString());
	}
	if($('#header #dsnsOverlay').length == 0 && $('BODY > #dsnsOverlay').length == 0)
	{
		$('#dsnsOverlay').prependTo($('BODY')).hide();
		$('#dsnsLfPopup').prependTo($('BODY'));
	}
		
	var p = $('#dsnsLfPopup2');
	if(!p || p.length < 1)
		p = $('#dsnsLfPopup');
		
	var t = $('#dsnslocal');
	if(target) { // we need to copy the popup in here
		if(!p || p.length == 0) {
			p = $('<div id="dsnsLfPopup"> </div>').appendTo($('body'));
			p.html($(target.document).find('#dsnsLfPopup').html());
		}
		t = $(target.frameElement);
	}
		
		var showemail = function(animate) {
			p.removeClass('email');
			var th = p.find('.topHead');
			th.find('iframe').remove();
		if (th.find('iframe').length == 0) {
			//var iframe = '<iframe class="nohide" src="http://kenyond-dt/iframe.htm" style="width:630px;height:230px;margin:auto;display:block" frameborder="0" scrolling="no"></iframe>';
			//var iframe = '<iframe class="nohide" src="http://tukwila.komonews.com/newsletter-signup" style="width:430px;height:230px;margin:auto;display:block" frameborder="0" scrolling="no"></iframe>';
			var iframe = '<iframe class="nohide" src="' + t.find('#dsnslocalnews .title a').attr('href') + 'newsletter-signup" style="width:430px;height:225px;margin:auto;display:block" frameborder="0" scrolling="no"></iframe>';
			if (animate) {
				p.find('.mainHoodContent').slideUp();
				p.find('.subHead').slideUp();
				p.find('.topHead').append(iframe).slideDown();
			}
			else 
				p.find('.topHead').append(iframe);
				p.find('.mainHoodContent, .subHead').hide();
		}
		p.find('h1').text('Stay Informed');
		}

		if (isemail()) {
			if (window['__dsns_'].GetCookie('dsnscomm')) showemail();
		}
		else {
			var h = p.find('h1');
			if (h.text() == 'Stay Informed') {
				h.text('Choose your community');
				p.find('iframe').remove();
				p.find('.mainHoodContent, .subHead').show();
			}			
		}	
		
	setTimeout(function() {AddOverlay(target || outto);p.find('A').css({color:''});}, 10);
	p.css({left:-1000,top:-1000}).show();
	var ww = $(window).width();
	var wh = $(window).height();
	var dl = $(document).scrollLeft();
	var dt = $(document).scrollTop();
	var ew = p.width();
	var eh = p.height();
	var left = (ww - ew) / 2 + dl;
	var top = (wh - eh) / 2 + dt;
	if(top < 10) top = 10;
	if(left < 10) left = 10;
	p.css({left:left,top:top});
	if(!p.data('bound')) {
		p.data('bound', true);
		p.find('A[href$=close], .closeButton').click(function() {
			HidePicker();
			return false;
		});
		p.find('.column A').click(function() {
			var href = $(this).attr('href');
			var i = href.indexOf('#'), k=4;
			while(i == -1 && k-- > 0)
			{
				href = decodeURIComponent(href);
				i = href.indexOf('#');
			}
			if(i==-1) {
				HidePicker();
				return false;
			}
			
			n = href.substr(i+1);
			var com = false;
				
			$.each(localFeeds, function(i, c) {
				if (c.k == n) {
					com = c;
					return false;
				}
			});
			if(com) {
				window['__dsns_'].SetCookie('dsnscomm', com.k);
				if(linkoff) {
					window.location = href.substr(0, href.indexOf('#'));
					return false;
				}
								if(typeof window['__dsns_'].selectBusinesses == 'function')
										window['__dsns_'].selectBusinesses();
								if(target) 
										target['__dsns_'].RenderFeed(com);
								else
										RenderFeed(com);
								if (isemail())
									showemail(true);
								else
									HidePicker(target || outto);
						} else
								HidePicker();
						return false;
				});		 
	}
}
window['__dsns_'].ShowPicker = ShowPicker;

var LocalDealsRendered = false;
var ldrmax = 100;
var dealsReady = function() {
	if(LocalDealsRendered) return;
	if ($('#dsnslocaldeals').length == 0 || typeof window['__dsns_'] != 'object') {
		if(ldrmax-- > 0)
			setTimeout(function() { dealsReady(); }, 100);
		return;
	}
	RenderLocalDeals();
}
var localReady = function() {	
	var max = 100;
	if ($('#dsnslocal').length == 0 || typeof window['__dsns_'] != 'object') {
		if(max-- > 0)
			setTimeout(function() { localReady(); }, 100);
		return;
	}
	GetLocationFromCookie(function(city) {
		if (city) ShowFeeds(city);
		else GetLocationFromAdManager(function(city) {
			if (city) ShowFeeds(city);
			else GetLocationFromGoogleLoader(function(city) {
				if (city) ShowFeeds(CommunityFromCity(city));
				else ShowFeeds(false);
			});
		});
	});
}
localReady();dealsReady();;var localBusiness = new Array({'k':'ballard', 'u':'/komo/lb/ballard.js'},{'k':'auburn', 'u':'/komo/lb/auburn.js'},{'k':'bellevue', 'u':'/komo/lb/bellevue.js'},{'k':'beaconhill', 'u':'/komo/lb/beaconhill.js'},{'k':'bothell', 'u':'/komo/lb/bothell.js'},{'k':'burien', 'u':'/komo/lb/burien.js'},{'k':'capitolhill', 'u':'/komo/lb/capitolhill.js'},{'k':'centraldistrict', 'u':'/komo/lb/centraldistrict.js'},{'k':'columbiacity', 'u':'/komo/lb/columbiacity.js'},{'k':'downtownseattle', 'u':'/komo/lb/downtownseattle.js'},{'k':'edmonds', 'u':'/komo/lb/edmonds.js'},{'k':'everett', 'u':'/komo/lb/everett.js'},{'k':'federalway', 'u':'/komo/lb/federalway.js'},{'k':'fremont', 'u':'/komo/lb/fremont.js'},{'k':'georgetown', 'u':'/komo/lb/georgetown.js'},{'k':'gigharbor', 'u':'/komo/lb/gigharbor.js'},{'k':'greenlake', 'u':'/komo/lb/greenlake.js'},{'k':'greenwoodphinney', 'u':'/komo/lb/greenwoodphinney.js'},{'k':'issaquah', 'u':'/komo/lb/issaquah.js'},{'k':'kent', 'u':'/komo/lb/kent.js'},{'k':'kirkland', 'u':'/komo/lb/kirkland.js'},{'k':'lakecity', 'u':'/komo/lb/lakecity.js'},{'k':'lakewood', 'u':'/komo/lb/lakewood.js'},{'k':'lynnwood', 'u':'/komo/lb/lynnwood.js'},{'k':'madisonpark', 'u':'/komo/lb/madisonpark.js'},{'k':'magnolia', 'u':'/komo/lb/magnolia.js'},{'k':'medina', 'u':'/komo/lb/medina.js'},{'k':'mercerisland', 'u':'/komo/lb/mercerisland.js'},{'k':'mukilteo', 'u':'/komo/lb/mukilteo.js'},{'k':'newcastle', 'u':'/komo/lb/newcastle.js'},{'k':'northseattle', 'u':'/komo/lb/northseattle.js'},{'k':'puyallup', 'u':'/komo/lb/puyallup.js'},{'k':'queenanne', 'u':'/komo/lb/queenanne.js'},{'k':'redmond', 'u':'/komo/lb/redmond.js'},{'k':'renton', 'u':'/komo/lb/renton.js'},{'k':'sammamish', 'u':'/komo/lb/sammamish.js'},{'k':'shoreline', 'u':'/komo/lb/shoreline.js'},{'k':'snohomish', 'u':'/komo/lb/snohomish.js'},{'k':'tacoma', 'u':'/komo/lb/tacoma.js'},{'k':'tukwila', 'u':'/komo/lb/tukwila.js'},{'k':'udistrict', 'u':'/komo/lb/udistrict.js'},{'k':'viewridge', 'u':'/komo/lb/viewridge.js'},{'k':'wallingford', 'u':'/komo/lb/wallingford.js'},{'k':'westseattle', 'u':'/komo/lb/westseattle.js'},{'k':'woodinville', 'u':'/komo/lb/woodinville.js'},{'k':'rainiervalley', 'u':'/komo/lb/rainiervalley.js'},{'k':'desmoines', 'u':'/komo/lb/desmoines.js'},{'k':'southlakeunion', 'u':'/komo/lb/southlakeunion.js'},{'k':'marysville', 'u':'/komo/lb/marysville.js'},{'k':'olympia', 'u':'/komo/lb/olympia.js'},{'k':'lacey', 'u':'/komo/lb/lacey.js'},{'k':'tumwater', 'u':'/komo/lb/tumwater.js'},{'k':'yelm', 'u':'/komo/lb/yelm.js'});;var savedHeight = false;
var HideLocalBiz = function() {
	$('#dsnslocalbiz').css({display:'none'});
	if(!savedHeight) savedHeight = $('#dsnslocallinks').height();
	$('#dsnslocallinks').css({height:'auto'});
}
var bizReady = function() {	
	var max = 100;
	if ($('#dsnslocalbiz').length == 0 || typeof window['__dsns_'] != 'object') {
		if(max == 0) HideLocalBiz();
		if(max-- > 0)
			setTimeout(function() { bizReady (); }, 100);
		return;
	}
	window['__dsns_'].localBusinesses = new Array();
	var FindBiz = function(key) {
		if(typeof window['__dsns_'].localBusinesses != 'object') return false;
		var f = false;
		$.each(window['__dsns_'].localBusinesses, function(i,b)	{
			if(b.k == key) f = b;
			return (f == false);
		});
		return f;
	}
	var FindBizOnCDN = function(key, callback) {
		var found = false;
		if(key) $.each(localBusiness, function(n,v) {
			if(v.k == key) {
if(/debugfeeds/ig.test(window.location.href))	__dsns_.cdnbiz = v;
				$.getScript('http://content.secondspace.com'+v.u, callback);
				found = true;
				return false;
			}
		});
		if(!found) callback();
	}
	var RenderBiz = function(b) {
if(/debugfeeds/ig.test(window.location.href)) __dsns_.biz = b;
		if(!b || b.i.length == 0) {HideLocalBiz();return;}
		var r = Math.floor(Math.random()*b.i.length);
		var x = b.i[r];
		if(savedHeight) $('#dsnslocallinks').css({height:savedHeight});

		var img = x.i;
		var k = img.indexOf('http://hlocal.');
		if(k>-1)
			img = img.substr(k);
		else
			img = b.u+b.ip+img;
		k = img.indexOf('http://hlcdn.');
		if(k==-1)
			k = img.indexOf('http://media.');
		if(k>-1)
			img = img.substr(k);

		$('#dsnslocalbiz').html(lbHTML.replace(/the_title/ig, x.t).replace(/the_link/ig, b.u+b.lp+x.n+'?utm_source=homepage_widget&utm_medium=referral&utm_campaign=na').replace(/the_img/ig, img));

		if($('#fin_maincontainer').length > 0) // new layout
			$('#dsnslocalbiz .oldlayout').hide();
		else
			$('#dsnslocalbiz .newlayout').hide();
		$('#dsnslocalbiz').css({display:'block'});
	}
	window['__dsns_'].selectBusinesses = function() {
		var c = window['__dsns_'].GetCookie('dsnscomm');
		var b = FindBiz(c);
		if(b) {
			RenderBiz(b);
			return;
		}
		FindBizOnCDN(c, function() {
			b = FindBiz(c);
			if(!b) b = FindBiz('ballard');
			if(!b) {
				FindBizOnCDN('ballard', function() {
					b = FindBiz('ballard');
					RenderBiz(b);
				});
				return;
			}
			RenderBiz(b);
		});
	}
	window['__dsns_'].selectBusinesses();
}
bizReady();
		
		var Ready = function(ready_host) {
			if(window[ds_plugin_name].IsReady) return;
			window[ds_plugin_name].IsReady = true;
			if(typeof $ == 'undefined')
			{
				if(ready_host && typeof ready_host.$ == 'function')
					$ = window[ds_plugin_name].$ = ready_host.$;
				else 
					$ = window[ds_namespace].$;
			}
			if(typeof $ == 'undefined')
				return;
			var boxes = $('.autocompleted');
if(IE)
	$(function(){boxes.each(function() {Autocomplete($(this));});});
else
	boxes.each(function() {
		Autocomplete($(this));
	});
if($('#dsnslocalbiz').length == 0) $('#dsnslocallinks').css({height:'auto'});;/* */;window['KOMO_WidgetsV1'].RenderTopics = function(t, h) {
	if(window['KOMO_WidgetsV1'].TopicsRendered) return;
	window['KOMO_WidgetsV1'].TopicsRendered = true;
	h.hide().html(dlHTML);
	var cats = new Array();
	for(var i=0;i<t.categories.length;i++)
		cats.push('<a href="http://search.komonews.com/default.aspx?ct=r&type='+t.categories[i].t+'">'+t.categories[i].v+'</a>');
	for(var i=0;i<t.topics.length;i++)
		cats.push('<a href="http://search.komonews.com/default.aspx?ct=r&type='+t.topics[i].t+'">'+t.topics[i].v.replace('$T','')+'</a>');
	h.find('.title .categories').html(cats.join(', '));
		
	$('#dsnstopics .story').hide();
		
	var thumbLink = function(img) {
		var i = img.indexOf('?');
		if(i <= 0) return img;
		var w = 160, h=0;
		var xy = img.substr(i).split(',');
		var path = img.substr(0,i);
		if(xy.length != 2) return img;
		var x = xy[0].split('='), y = xy[1].split('=');
		if(x.length != 2 || y.length != 2) return img;
		x = parseInt(x[1]);
		var h = y = parseInt(y[1]);
		if(x < 1 || y < 1) return img;
		if(x < w) w = x;
		else h = (y / x) * w;
		return path.replace('/images/', '/images/'+w+'*'+(h|0)+'/');
	}
	var showStory = function(i) {
		var x = t.related[i-1], s = h.find('.story'+i+'').show();
		if(!/^http/i.test(x.u)) x.u = 'http://'+x.u;
		s.find('.link').html('<a href="'+x.u+'">'+x.t+'</a>');
		var img = thumbLink(x.i);
		if(img && img.length > 0) {
			if(/youtube/ig.test(img))
				s.find('.thumb').html('<a href="'+x.u+'"><img class="youtube" src="'+img+'"/></a>');
			else
				s.find('.thumb').html('<a href="'+x.u+'"><img src="'+img+'"/></a>');
		}
	}
	if(t.related.length > 0) showStory(1);
	if(t.related.length > 1) showStory(2);
	if(t.related.length > 2) showStory(3);
	if(t.related.length > 3) showStory(4);
		
	h.show();
}
		
		
var t = window['KOMO_WidgetsV1'].topics;
var h = $('#dsnstopics');
if(t && h.length > 0) window['KOMO_WidgetsV1'].RenderTopics(t,h);
if(/debug/ig.test(window.location.href))
	window['dsnsTopics'] = {t:t, h:h, html:dlHTML};



	var fullurl = document.URL;
	var shorturl = fullurl.slice(24);
	var endpos = shorturl.lastIndexOf("/");
	var searchpar = shorturl.slice(0, endpos);
	var isNews = (searchpar.substr(0,5) == 'news/');
	var news = new Array();
	
	switch (searchpar) {
		case "news/local":
			news.push({t:'More local news', u:'/Local-Regional'});
			break;
		case "news/consumer":
			news.push({t:'More consumer news', u:'/Consumer'});
			break;
		case "news/entertainment":
			news.push({t:'More entertainment news', u:'/Entertainment'});
			break;
		case "news/health":
			news.push({t:'More health news', u:'/Health'});
			break;
		case "news/national":
			news.push({t:'More national news', u:'/National-World'});
			break;
		case "news/offbeat":
			news.push({t:'More offbeat news', u:'/Offbeat'});
			break;
		case "news/business":
			news.push({t:'More business news', u:'/Business'});
			break;
		case "opinion/commentators":
			news.push({t:'More opinion', u:'/Opinion'});
			break;
		case "sports":
			news.push({t:'More sports news', u:'/Sports'});
			break;
		case "news/tech":
			news.push({t:'More technology news', u:'/Technology'});
			break;
		case "home/video":
			news.push({t:'More videos', u:'/Video'});
			break;
		case "younews":
			news.push({t:'More YouNews', u:'/YouNews'});
			break;
		case "news":
			break;
		default:
			break;
	}
	
	var html = new Array();
	if(news.length > 0) {
		for(var i=0;i<news.length;i++)
			html.push('<li><a href="http://search.komonews.com'+news[i].u+'">'+news[i].t+'</a></li>');
	}
	else if (isNews) {
		html.push('<li><a href="http://search.komonews.com/">More news articles</a></li>');
	}
	if(html.length > 0)
		$('#dsrelatedlinks').html('<ul>'+html.join('')+'</ul>');
	else
		$('#dsrelatedlinks').hide();
 /* tracking */
		//remove double tracking
		$('#dsnsLfPopup .widget .trackingmeta').remove();
(function(){for(var p={Type:"",DSC:"",PPID:"",ILocation:"",ISource:"",SFLT:"",name:"",order:"",offer:""},q={Type:"",DSC:"",PPID:"",ILocation:"",ISource:"",SFLT:"",name:"",order:"",offer:""},i={URI:"",UserId:""},l=["a","button"],j="services.datasphere.com",h="",k=0;k<l.length;k++)h.length>0&&(h+=","),h=h+l[k]+".clicktracking ,.clicktracking "+l[k];var r=function(a){var f=[];typeof a==="undefined"&&(a=".meta");$(a).each(function(){f.push(GetMetaData(this))});return f},m=function(){var a="",f;for(f in i)i.hasOwnProperty(f)&& (a.length>0&&(a+=";"),i[f]!==""&&(a=a+f+":"+i[f]));return a},n=function(a){a.slice(0,4)=="<\!--"&&(a=a.slice(4));a.slice(-3)=="--\>"&&(a=a.slice(0,-3));return $.trim(a)},o=function(a,f){for(var b,d=0;d<a.length;){b=a[d].split(";");for(var e=0;e<b.length;){var g=b[e].split(":"),c=g[0],g=window.escape(g.slice(1).join(""));b[e]=c+":"+g;typeof i[c]!="undefined"&&(i[c]=g);c==="TRACKINGDOMAIN"&&(j=window.unescape(g));typeof f[c]=="undefined"?b.splice(e,1):e++}b.length>0?(a[d]=b.join(";"),d++):a.splice(d, 1)} },s=function(){var a=new Image,f="/trackingImage.trk?TYPE=IMPRESSION",b=r(".trackingmeta");o(b,p);var d=2,e;if(i.URI.length===0)i.URI=window.escape(window.location.host+window.location.pathname+window.location.search);var g=m();if(!(j.length<=0))if(f="http://"+j+f,b.join().length>2E3){for(;b.slice(0,d*2).toString().length<2E3;)d*=2;for(var c=d,h=0;h!=b.length;){for(e=b.slice(h,c).toString();e.length<2E3&&c<b.length;){if(e.length+b[c].length<1999)e=e+","+b[c];else break;c++}h=c;c+=d;if(c>b.length)c=b.length;a=new Image; a.src=f+"&sk="+g+"&d="+e} }else e=b.toString(),a.src=f+"&sk="+g+"&d="+e};$(function(){s();j.length>0&&$(h).bind("click",function(){var a="http://"+j+"/trackingImage.trk?TYPE=CLICK",f=new Image,b=$(this).parents(),d="",e=[],g=m(),c="";$(this).is("a")?(c=$(this).text().length>0?window.escape($(this).text()):window.escape($(this).attr("title")),d=d+"ClickElement:Link;LinkText:"+c+";LinkUrl:"+window.escape($(this).attr("href"))):$(this).is("img")&&(d+="ClickElement:image;",$(this).parent().is("a")&&(d= d+"LinkUrl:"+window.escape($(this).parent().attr("href"))));typeof $(this).attr("trackingattrb")!="undefined"&&(d=$(this).attr("trackingattrb"));$(this).siblings(".trackingmeta").length>0&&e.push(n($(this).siblings(".trackingmeta").html()));for(c=0;c<b.length;c++)$(b[c]).attr("trackingattrb")!==null&&typeof $(b[c]).attr("trackingattrb")!=="undefined"&&e.push($(b[c]).attr("trackingattrb")),$(b[c]).siblings(".trackingmeta").length>0&&e.push(n($(b[c]).siblings(".trackingmeta").html()));o(e,q);d=d+";"+ e.join(";");f.src=a+"&sk="+g+"&d="+d})})})(); 
		}
		window[ds_plugin_name].Ready = Ready;
		window[ds_plugin_name].FullyInitialized = true;

		if(init_host)
			init_host.OnReady.push(window[ds_plugin_name].Ready);
		else
			$(function(){window[ds_plugin_name].Ready();});
	}
	Ready = false;
	
	return {
		Load: Load,
		WaitForInit: WaitForInit,
		Init: Init,
		WaitForReady: WaitForReady,
		WaitForBody: WaitForBody,
		Ready: Ready,
		GetCookie: GetCookie,
		SetCookie: SetCookie
	};
}();
//window[ds_plugin_name].WaitForBody();
window[ds_plugin_name].Load();

})();
