(function() {
var ds_namespace = '__dsns_', ds_plugin_name = 'KOMO_WidgetsV1';
window[ds_plugin_name] = function() {
		var Keywords = '50 Cent,Aaliyah,Adam Putnam,Adam Sandler,Adam Smith,AFC,Akon,Al Franken,Alan Jackson,Alanis Morissette,Alec Baldwin,Alfred Hitchcock,Alicia Keys,Alison Krauss,Alki Point,Amy Klobuchar,Amy Roe,Amy Winehouse,Anacortes,Anderson Cooper,Anderson Island,Angelina Jolie,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,Barney Frank,Barry Manilow,Bart Gordon,Baseball,Basketball,Bellevue,Bellingham,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,Billy Joel,Billy Ray Cyrus,Bjork,Black Diamond,Blaine,Blanche Lincoln,Bob Casey,Bob Corker,Bob Dylan,Bob Marley,Bob Newhart,Bob Riley,Bobby Bright,Bobby Brown,Bobby Jindal,Bobby Rush,Boeing,Bonney Lake,Bothell,Bow,Bowling,Boxing,Brad Ellsworth,Brad Henry,Brad Miller,Brad Paisley,Brad Pitt,Bremerton,Brian Calvert,Brian Gregory,Brian Schweitzer,Britney Spears,Brooke Burke,Bruce Lee,Bruce Springsteen,Bryan Johnson,Buckley,Bucoda,Buddy Holly,Burien,Burlington,Busta Rhymes,Byron Dorgan,Cameron Diaz,Camp Murray,Candice Miller,Carl Levin,Carleen Johnson,Carlos Gutierrez,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 Rock,Chris Smith,Chris Van Hollen,Christian Bale,Christie Brinkley,Christina Aguilera,Chuck Berry,Chuck Grassley,Chuck Schumer,Chuck Wicks,Ciara,Claire McCaskill,Clay Aiken,Clint Eastwood,Concrete,Condoleezza Rice,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 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,Deval Patrick,Diana Ross,Diane Lane,Dianne Feinstein,Dick Cheney,Dick Durbin,Diddy,DMX,Dolly Parton,Don Young,Dr. Dre,Drew Barrymore,Drew Carey,Duke Ellington,Duncan Hunter,Dupont,Duvall,Dwight Pelz,Eatonville,Ed Rendell,Eddie Murphy,Edmonds,Edolphus Towns,Elaine Chao,Elijah Cummings,Elisa Jaffe,Elizabeth Dole,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,Evan Bayh,Events,Everett,Everson,Faith Hill,Fall City,Federal Way,Fergie,Ferndale,Football,Frank Chopp,Frank Lautenberg,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,Gold Bar,Golf,Gordon Smith,Graham,Granite Falls,Greg Nickels,Greg Walden,Gwen Stefani,Gwyneth Paltrow,Gymnastics,Haley Barbour,Halle Berry,Hamilton,Hank Williams,Harold Ford,Harrison Ford,Harry Reid,Hayden Panettiere,Health,Heath Ledger,Heather Wilson,Heidi Klum,Henry Waxman,Herb Weisbaum,Hilary Duff,Hilda Solis,Hillary Clinton,Hockey,Hotlinks,Howard Stern,Hugh Jackman,Hulk Hogan,Ice Cube,Ike Skelton,Index,Indianola,Issaquah,Jack Benny,Jack Black,Jack Johnson,Jack Kevorkian,Jack Markell,Jack Nicholson,Jack Reed,Jackson Browne,Jade Goody,James Brown,James Dean,James Franco,James Taylor,Jamie Foxx,Jane Harman,Janet Jackson,Janet Napolitano,Janis Joplin,Jay Leno,Jay Nixon,Jay Rockefeller,Jay-Z,Jeff Miller,Jeff Sessions,Jennifer Aniston,Jennifer Garner,Jennifer Granholm,Jennifer Hudson,Jennifer Lopez,Jerry Costello,Jerry Lewis,Jerry Springer,Jesse Jackson,Jessica Alba,Jessica Biel,Jessica Simpson,Jim Bunning,Jim Carrey,Jim Doyle,Jim Gibbons,Jim Jones,Jim Morrison,Jim Webb,Jimi Hendrix,Jimmy Buffett,Jimmy Fallon,Jimmy Kimmel,Joaquin Phoenix,Jodie Foster,Joe Biden,Joe Manchin,Joe Sestak,Joe Wilson,Joel Moreno,John Baldacci,John Boehner,John Conyers,John Cornyn,John Denver,John Dingell,John Edwards,John Hall,John Kerry,John Legend,John Lennon,John Lynch,John Mayer,John McCain,John Sullivan,John Tierney,John Travolta,John Warner,John Wayne,Johnny Carson,Johnny Cash,Johnny Depp,Johnny Isakson,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 Hudson,Kate Moss,Kate Winslet,Katherine Heigl,Kathi Goertzen,Kathleen Sebelius,Kathy Ireland,Katie Couric,Katie Holmes,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,La Conner,La Grande,Lacey,Lake Stevens,Lakebay,Lakewood,Lamar Alexander,Lamar Smith,Larry Craig,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,Liz Rocca,LL Cool J,Longmire,Louis Armstrong,Lucille Ball,Ludacris,Luke Duecy,Luke Esser,Lyman,Lynden,Lynnwood,Madonna,Manchester,Manda Factor,Mandy Moore,Maple Valley,Marblemount,Marc Anthony,Margaret Spellings,Maria Cantwell,Mariah Carey,Marie Osmond,Marilyn Monroe,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,Meryl Streep,Michael Chertoff,Michael Douglas,Michael Jackson,Michelle Esteban,Michelle Williams,Mickey Rourke,Microsoft,Mike Beebe,Mike Crapo,Mike Dardis,Mike Doyle,Mike Ferreri,Mike Hewitt,Mike Huckabee,Mike Pence,Mike Simpson,Mike Thompson,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 Pelosi,Naomi Campbell,NASCAR,Natalie Portman,Natasha Bedingfield,NBA,Neil Diamond,Neil Young,Nelly,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 Swayze,Patty Murray,Paul McCartney,Paul Newman,Paul Simon,Paula Abdul,Penelope Cruz,Pete Stark,PGA,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,Ravensdale,Ray Charles,Ray Lane,Reba McEntire,Redmond,Reese Witherspoon,Renton,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,Rudy Giuliani,Rugby,Russ Feingold,Ryan Reynolds,Ryan Seacrest,Salma Hayek,Salvador Dali,Sam Reed,Sammamish,Samuel L. Jackson,Sandra Bullock,Sara Evans,Sarah Jessica Parker,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,Sherrod Brown,Sheryl Crow,Shomari Stone,Silvana,Silverdale,Silvestre Reyes,Simon Cowell,Skagit County,Skiing,Skykomish,Snohomish,Snohomish County,Snoop Dogg,Snoqualmie,Snowboarding,Soccer,Softball,Sonny Perdue,Sophia Loren,Sounders,Southworth,Spanaway,Sports,Stanwood,Startup,Steilacoom,Stephen Johnson,Steve Pool,Steve Young,Stevie Wonder,Sue Romero,Sultan,Sumas,Sumner,Susan Collins,Susan Lucci,Tacoma,Taylor Hicks,Taylor Swift,Technology,Ted Kennedy,Ted Stevens,Ted Strickland,Tenino,Tennis,Theron Zahn,Thurston County,Tiger Woods,Tim Burton,Tim Johnson,Tim Mahoney,Tim McGraw,Tim Pawlenty,Tina Turner,Toby Keith,Tom Coburn,Tom Cruise,Tom Hanks,Tom Harkin,Tom Hutyler,Tom Jones,Tom Petty,Tom Price,Tommy Lee,T-Pain,Trace Adkins,Tracy Vedder,Travis Mayfield,Trent Lott,Tukwila,Tumwater,Ty Pennington,Tyler Perry,Tyra Banks,University Place,Usher,Vashon,Vaughn,Vault,Vin Diesel,Vince Gill,Volleyball,Walter Jones,Walter Reed,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="dsnspickcommunity">\n\t\t<div class="title">Select your community</div>\n\t\t<ul></ul>\n</div>\n\n<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="#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 class="bottom_links" id="dsnslocallinks"><ul>\n\t\t<li><a href="http://community_link/" class="morenews">More community_name News</a><br /></li>\n\t\t<li><a href="http://community_link/forum/69" class="morenews rantsandraves">community_name Rants &amp; Raves</a></li>\n</ul></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 neighborhood</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="#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 neighborhood closest to you. If you don\'t see your neighborhood, <a href="http://www.komonews.com/about/contact">let us know</a>! We\'ll be adding more neighborhoods 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="#ballard" title="Ballard News">Ballard</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#beaconhill" title="Beacon Hill News">Beacon Hill</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#capitolhill" title="Capitol Hill News">Capitol Hill</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#centraldistrict" title="Central District News">Central District</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#columbiacity" title="Columbia City News">Columbia City</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#downtownseattle" title="Downtown News">Downtown</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#fremont" title="Fremont News">Fremont</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#georgetown" title="Georgetown News">Georgetown</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#greenlake" title="Green Lake News">Green Lake</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#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="#lakecity" title="Lake City News">Lake City</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#madisonpark" title="Madison Park News">Madison Park</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#magnolia" title="Magnolia News">Magnolia</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#northseattle" title="North Seattle News">North Seattle</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#udistrict" title="U-District News">U-District</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#queenanne" title="Queen Anne News">Queen Anne</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#viewridge" title="View Ridge News">View Ridge</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#wallingford" title="Wallingford News">Wallingford</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#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="#bellevue" title="Bellevue News">Bellevue</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#bothell" title="Bothell News">Bothell</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#issaquah" title="Issaquah News">Issaquah</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#kirkland" title="Kirkland News">Kirkland</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#medina" title="Medina News">Medina</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#mercerisland" title="Mercer Island News">Mercer Island</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#newcastle" title="Newcastle News">Newcastle</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#redmond" title="Redmond News">Redmond</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#sammamish" title="Sammamish News">Sammamish</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#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="#auburn" title="Auburn News">Auburn</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#burien" title="Burien News">Burien</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#federalway" title="Federal Way News">Federal Way</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#gigharbor" title="Gig Harbor News">Gig Harbor</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#kent" title="Kent News">Kent</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#puyallup" title="Puyallup News">Puyallup</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#renton" title="Renton News">Renton</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#tacoma" title="Tacoma News">Tacoma</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#tukwila" title="Tukwila News">Tukwila</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="#edmonds" title="Edmonds News">Edmonds</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#everett" title="Everett News">Everett</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#lynnwood" title="Lynnwood News">Lynnwood</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#mukilteo" title="Mukilteo News">Mukilteo</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#shoreline" title="Shoreline News">Shoreline</a></li>\n\t\t\t\t\t\t\t\t\t\t<li><a href="#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</div>\n</div>';
		var plugin_name = ds_plugin_name;
		var Load = function() {
				if(typeof window[ds_namespace] == "object" && 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;
				} else {
						window[ds_namespace] = {};
				}
				if(typeof jQuery == "function")
						window[ds_plugin_name].other = jQuery;
				if(typeof jQuery == "function" && (jQuery.fn.jquery == '1.3.1' || jQuery.fn.jquery == '1.3.2')) {
						window[ds_plugin_name].$ = jQuery;
						window[ds_plugin_name].Init();
				}
				else
				{
						var el = document.createElement('SCRIPT');
						el.setAttribute('language', 'JavaScript');
						el.setAttribute('src', 'http://cdn.secondspace.com/fshr/1.2.0b/jQuery.js');
						document.getElementsByTagName('head')[0].appendChild(el);
						WaitForInit(1000);
				}
		}
				
		var WaitForInit = function(max) {
				if(typeof window[ds_namespace].$ != "function") {
						if (max > 0)
								setTimeout(function() { window[ds_plugin_name].WaitForInit(max - 1); }, 10);
						return;
				}
				window[ds_plugin_name].Init();
		}
		var WaitForReady = function(max) {
				if(!max) max = 100;
				if(typeof window[ds_plugin_name].FullyInitialized != 'bool') {
						if (max > 0)
								setTimeout(function() { window[ds_plugin_name].WaitForReady(max - 1); }, 10);
						return;
				}
				window[ds_plugin_name].Ready();
		}
		var WaitForBody = function(max) {
				if(!max) max = 100;
				try {
						document.body.className += ' dsnsjs';
				} catch (e) {
						if (max > 0)
								setTimeout(function() { window[ds_plugin_name].WaitForBody(max - 1); }, 10);
				}
		}
		
		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;
		}
		
		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;
		}
		
		var Init = function(host) {
				if(window[ds_plugin_name].Initialized) return;
				window[ds_plugin_name].Initialized = true;
				if(typeof $ == 'undefined')
				{
						if(host) // we're a plugin
								$ = window[ds_plugin_name].$ = 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.slice(0, 4) == '<!--')h = h.slice(4);if(h.slice(-3) == '-->')h = h.slice(0, -3);return $.trim(h);}
				
				var Autocomplete = function(input) {
var cache = new Array();
var pending,popup,seeAllLink,list;
var options = {extraleft:0, extrawidth:0, maxheight:175, extratop:0, 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();
	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');
	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);
			
var host = $(input);
// look for options
var temp = host.parent().html();
var 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 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');
};     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":"C Street closed...945am...still closed at 1 pm", "n":"150572", "i":"auburn_truck_flip.jpg"},{"t":"Trojans come from behind, beat M-P 25-22", "n":"148443"},{"t":"Man seriously injured in wrong-way crash", "n":"145529"},{"t":"Vicious wolf-dog on the prowl", "n":"145019"},{"t":"How much rain will cause Green River to flood?", "n":"144695"} ]},{"t":"Ballard", "u":"http://ballard.komonews.com", "k":"ballard", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Down n&#039; dirty at the Ballard Locks", "n":"151783", "i":"091711_ballard_locks3.jpg"},{"t":"Tonight: Get cash for your community project", "n":"151705"},{"t":"Remembering Seattle Firefighter Dave Jacobs", "n":"150665"},{"t":"Nick and Nora&#039;s infinite weekend ", "n":"146961"},{"t":"Crown Hill is not above the law", "n":"146807"} ]},{"t":"Bellevue", "u":"http://bellevue.komonews.com", "k":"bellevue", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Hopelink seeks holiday donations ", "n":"151052"},{"t":"Are you Bellevue&#039;s most eligible bachelor?", "n":"150786"},{"t":"Upcoming meetings will highlight downtown light rail alternatives ", "n":"150783"},{"t":"Express toll lanes on I-405 and SR 167? You can still share your opinion", "n":"150664"},{"t":"Wolverines blow away Mount Si 49-17 to start playoffs", "n":"148616"} ]},{"t":"Burien", "u":"http://burien.komonews.com", "k":"burien", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Man pleads guilty in homicide of Evergreen HS cheerleader", "n":"151764", "i":"Leemah_Carneh.jpg"},{"t":"Lights back on in Burien (for the most part)", "n":"150900"},{"t":"Power knocked out in Burien area", "n":"150730"},{"t":"US Rep. Adam Smith to host energy expo in Des Moines", "n":"149659"},{"t":"Burien pair pleads guilty in bribery and illegal equipment case", "n":"147232"} ]},{"t":"Capitol Hill", "u":"http://capitolhill.komonews.com", "k":"capitolhill", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Roy Street Coffee &amp; Tea to open", "n":"151784"},{"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Man robbed, assaulted on Seneca", "n":"149459"},{"t":"Hot and hasty: Weekly names the best in fast food ", "n":"147018"},{"t":"Can&#039;t wait for &quot;New Moon&quot;?", "n":"146809"} ]},{"t":"Central District", "u":"http://centraldistrict.komonews.com", "k":"centraldistrict", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Would-be Seattle ninja found impaled on metal fence", "n":"151703"},{"t":"Hear stories from the streets", "n":"150726"},{"t":"Man flees after robbery attempt at 15th &amp; Jefferson", "n":"149460"},{"t":"Glitter is good at Goodwill today", "n":"148302"} ]},{"t":"Columbia City", "u":"http://columbiacity.komonews.com", "k":"columbiacity", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Landlords, looking for help?", "n":"150962"},{"t":"McGinn Victory Party in SE Seattle", "n":"150839"},{"t":"Local creates a Christmas tree that is especially &quot;green&quot;", "n":"150614"},{"t":"Health care advocates to hold &quot;tribunal&quot; at Rainier CC", "n":"148377"} ]},{"t":"Downtown Seattle", "u":"http://downtownseattle.komonews.com", "k":"downtownseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Mark your calendar: FREE burritos!", "n":"151823", "i":"chipotle.jpg"},{"t":"Schram: Belltown should star in this &#039;B&#039; flick", "n":"150901"},{"t":"Energy-efficient Edgewater", "n":"150723"},{"t":"Shooting leaves three wounded", "n":"150493"},{"t":"Get ready for more viaduct, tunnel work this week", "n":"149888"} ]},{"t":"Edmonds", "u":"http://edmonds.komonews.com", "k":"edmonds", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Memorial planned for Councilwoman Olson", "n":"150905", "i":"peggy_0.jpg"},{"t":"Hold on tight: Wind advisory, high wind watch across area", "n":"149854"},{"t":"That hail was loud", "n":"148170"},{"t":"That was a hail of a storm....", "n":"147390"},{"t":"Woman on the roof is coming down", "n":"147075"} ]},{"t":"Everett", "u":"http://everett.komonews.com", "k":"everett", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Man attempts suicide during traffic stop", "n":"150837"},{"t":"Hold on tight: Wind advisory, high wind watch across area", "n":"149854"},{"t":"Food bank almost out of food; sports teams to help", "n":"146921"},{"t":"Grumpy&#039;s triumphant return", "n":"145787"},{"t":"Globetrotter tickets on sale NOW", "n":"144881"} ]},{"t":"Federal Way", "u":"http://federalway.komonews.com", "k":"federalway", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Play Misty for me", "n":"147077"},{"t":"Supreme Court tosses FW School funding case", "n":"145677"},{"t":"What&#039;s so funny about shopping at Safeway?", "n":"144733"},{"t":"FW seeks to grow with foreign investment", "n":"143403"},{"t":"LeTempt completes Army training", "n":"138180"} ]},{"t":"Fremont", "u":"http://fremont.komonews.com", "k":"fremont", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Meet new leaders Mike &amp; Dow Nov. 23", "n":"151049", "i":"SeattleMayorWelcome.jpg"},{"t":"Time to swing over to the Swingside?", "n":"146954"},{"t":"Neighborhood plan update meeting tonight", "n":"145992"},{"t":"Marination Mobile Goes Network", "n":"145782"},{"t":"To banish graffiti, just pick up the phone", "n":"144924"} ]},{"t":"Georgetown", "u":"http://georgetown.komonews.com", "k":"georgetown", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Light rail train derails in Seattle", "n":"151704"},{"t":"Last chance for free trees", "n":"150907"},{"t":"Help your local foodbank", "n":"150666"},{"t":"Help your local foodbank", "n":"150667"} ]},{"t":"Green Lake", "u":"http://greenlake.komonews.com", "k":"greenlake", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Video: Symphony of the Sprockets", "n":"150971", "i":"091711_sprockets_symphony.jpg"},{"t":"Crepes, kids &amp; candy: &#039;Cross takes over Woodland Park", "n":"150960"},{"t":"Bishop Blanchet wins state 3A volleyball title", "n":"149461"},{"t":"Serious cowbell coming to Woodland Park Sunday", "n":"146947"},{"t":"Neighborhood plan update meeting tonight", "n":"145992"} ]},{"t":"Greenwood Phinney", "u":"http://greenwoodphinney.komonews.com", "k":"greenwoodphinney", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":" Goodbye, Johari: Zoo euthanizes sick giraffe", "n":"151767", "i":"091711_giraffe_sick.jpg"},{"t":"Video: Tree into house", "n":"150724"},{"t":"Donations given to arson victims; More fundraising planned", "n":"150571"},{"t":"Windy weather already causing trouble", "n":"150492"},{"t":"The Green Bean rises from the ashes", "n":"148719"} ]},{"t":"Issaquah", "u":"http://issaquah.komonews.com", "k":"issaquah", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"&quot;Stuff the Truck&quot; comes to Fred Meyer Wednesday", "n":"150841", "i":"Food-DriveKOMO_0.jpg"},{"t":"Family celebrates Eagle Scouting trifecta", "n":"150613"},{"t":"Eagles come from behind to beat Jackson 48-28; rematch with Bothell next", "n":"149550"},{"t":"Liberty comes from behind to beat O&#039;Dea 38-35; Lindbergh next", "n":"148546"},{"t":"Choose the name for E-15", "n":"145897"} ]},{"t":"Kent", "u":"http://kent.komonews.com", "k":"kent", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Getting Ready for the Holidays", "n":"151831", "i":"IMG_9663.JPG"},{"t":"Protecting the Mill Creek School ", "n":"151827"},{"t":"School Prepares for Green River Flooding", "n":"151825"},{"t":"Job fair for military types coming to Kent", "n":"150788"},{"t":"Kent made Mostly Muffin had something more", "n":"147237"} ]},{"t":"Kirkland", "u":"http://kirkland.komonews.com", "k":"kirkland", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Meet Mia: MEOW cat of the week", "n":"151706", "i":"091117_mia.JPG"},{"t":"Hopelink seeks holiday donations ", "n":"151051"},{"t":"Meet your new city council members", "n":"150965"},{"t":"Interested in green building?", "n":"150963"},{"t":"Express toll lanes on I-405 and SR 167? You can still share your opinion", "n":"150664"} ]},{"t":"Lake City", "u":"http://lakecity.komonews.com", "k":"lakecity", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Libraries to stay open 7 days a week", "n":"145898", "i":"books3.jpg"},{"t":"Free cheeseburgers for vets", "n":"143548"},{"t":"Christmas Ship at Matthews Beach", "n":"142352"},{"t":"McGinn leading mayoral race by a hair ", "n":"137352"},{"t":"Afraid of flooding? Prepare NOW", "n":"136990"} ]},{"t":"Lynnwood", "u":"http://lynnwood.komonews.com", "k":"lynnwood", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Getting up to speed with Lynnwood&#039;s school zone enforcement cams", "n":"151053", "i":"080102_Seattle_red_ligh_cam_1.jpg"},{"t":"Man attempts suicide during traffic stop", "n":"150837"},{"t":"A case for early Santa photos", "n":"150836"},{"t":"Lunch on Jamba", "n":"150782"},{"t":"National Guard wants YOU to help feed the hungry", "n":"150728"} ]},{"t":"Madison Park", "u":"http://madisonpark.komonews.com", "k":"madisonpark", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Video: Lightning strikes", "n":"138823"},{"t":"McGinn leading mayoral race by a hair ", "n":"137352"},{"t":"Race for Seattle mayor razor thin", "n":"135156"},{"t":"Constantine declared winner in King County executive race", "n":"135155"},{"t":"Steve Pool&#039;s sunrise", "n":"134551"} ]},{"t":"Magnolia", "u":"http://magnolia.komonews.com", "k":"magnolia", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Your City Light bill is going up", "n":"145780"},{"t":"&#039;I wanna retire and die on the same day&#039; ", "n":"145017"},{"t":"Seattle Pie now at Metro Market", "n":"144488"},{"t":"Helping grieving kids be happier campers", "n":"142438"},{"t":"District Council meeting tonight at 7", "n":"142096"} ]},{"t":"Medina", "u":"http://medina.komonews.com", "k":"medina", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Wild in the streets", "n":"151671", "i":"coyote.jpg"},{"t":"Weekend break-in nets thief $16 in candy and coin", "n":"150904"},{"t":"Ramirez pleads not guilty to misconduct; trial date set for Dec. 1", "n":"145673"},{"t":"Tool theft sum total of Medina&#039;s October crime spree", "n":"138597"},{"t":"Constantine declared winner in King County executive race", "n":"135155"} ]},{"t":"Mercer Island", "u":"http://mercerisland.komonews.com", "k":"mercerisland", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Paul Allen diagnosed with cancer", "n":"150969", "i":"091116_paul_allen.jpg"},{"t":"New gallery opens this week", "n":"150835"},{"t":"Islanders girls swim team takes first 3A state title since &#039;98", "n":"149548"},{"t":"Wellness Fair this weekend", "n":"143512"},{"t":"Jarrett resigns to work for Dow", "n":"143343"} ]},{"t":"Mukilteo", "u":"http://mukilteo.komonews.com", "k":"mukilteo", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Jazz night comes to Kamiak on Tuesday", "n":"149887"},{"t":"Hold on tight: Wind advisory, high wind watch across area", "n":"149854"},{"t":"NB lanes of Mukilteo Speedway at Highway 99 back open", "n":"148172"},{"t":"Incident involving car, sanding truck closes Mukilteo Speedway", "n":"148168"},{"t":"&quot;Ask Mukilteo:&quot; ever used it?", "n":"146000"} ]},{"t":"Newcastle", "u":"http://newcastle.komonews.com", "k":"newcastle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Final chance to comment on city budget tonight", "n":"151785"},{"t":"Surgeon accused of plotting to murder colleagues  ", "n":"150722"},{"t":"Are you ready for the winter?", "n":"147076"},{"t":"Learn to eat healthy during the holiday season", "n":"144880"},{"t":"City releases transit center update", "n":"143347"} ]},{"t":"North Seattle", "u":"http://northseattle.komonews.com", "k":"northseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Santa Claus is coming...", "n":"150834", "i":"santa.jpg"},{"t":"Officer injured during chase, in stable condition", "n":"148169"},{"t":"Police: arson suspect previously convicted of setting fires in North Seattle", "n":"147021"},{"t":"Accident knocks out power to nearly 3,000", "n":"146251"},{"t":"&#039;All these lives were lost for our freedom&#039;", "n":"144564"} ]},{"t":"Puyallup", "u":"http://puyallup.komonews.com", "k":"puyallup", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"San Fran police seeking attackers of Seahawk fan", "n":"150618", "i":"sf_football_1.jpg"},{"t":"Robber hits 39th Avenue Wells Fargo branch", "n":"145912"},{"t":"Daffodil Festival wilting", "n":"145827"},{"t":"Missing girl found safe", "n":"145167"},{"t":"Developmentally disabled girl reported missing ", "n":"144923"} ]},{"t":"Queen Anne", "u":"http://queenanne.komonews.com", "k":"queenanne", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Tree into house at 4th and Armour", "n":"151768", "i":"091711_tree_house_QA2.jpg"},{"t":"Meet new leaders Mike &amp; Dow Nov. 23", "n":"151049"},{"t":"Karaoke for the klueless", "n":"150729"},{"t":"Does the littlest one get the star?", "n":"147084"},{"t":"Neighborhood plan update meeting tonight", "n":"145992"} ]},{"t":"Redmond", "u":"http://redmond.komonews.com", "k":"redmond", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Hopelink seeks holiday donations ", "n":"151050"},{"t":"Toys for tots drive is back this weekend", "n":"150838"},{"t":"Superintendent Kimball proposes two levies, one bond for February election", "n":"146739"},{"t":"Get holiday crafts this weekend", "n":"145830"},{"t":"New sculpture to be installed at City Hall ", "n":"145829"} ]},{"t":"Renton", "u":"http://renton.komonews.com", "k":"renton", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Air Algerie orders seven 737-800&#039;s", "n":"151680", "i":"air_algerie.jpg"},{"t":"&quot;Stuff the Truck&quot; at Fred Meyer Wednesday", "n":"150840"},{"t":"The magic continues as Lindbergh gets first-ever playoff win", "n":"148441"},{"t":"Reindeer Games kick off holiday season at The Landing", "n":"146959"},{"t":"Wiener dog found weaving in traffic", "n":"146953"} ]},{"t":"Sammamish", "u":"http://sammamish.komonews.com", "k":"sammamish", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Local student could win President&#039;s video challenge", "n":"151765"},{"t":"Spartans blow away South Kitsap 63-14; Curtis up next", "n":"149600"},{"t":"Skyline takes 4A state girls swimming title", "n":"149547"},{"t":"Superintendent Kimball proposes two levies, one bond for February election", "n":"146739"},{"t":"What would you name Elementary 15?", "n":"145896"} ]},{"t":"Shoreline", "u":"http://shoreline.komonews.com", "k":"shoreline", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Mudslide shuts down Amtrak service", "n":"151790"},{"t":"Shorecrest YouTube video gains popularity", "n":"151766"},{"t":"New school levy proposals on the table", "n":"150968"},{"t":"Man thrown from pick-up, taken to hospital", "n":"150669"},{"t":"Seattle Police: Suicidal Man in Shoreline", "n":"150102"} ]},{"t":"Snohomish", "u":"http://snohomish.komonews.com", "k":"snohomish", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Hold on tight: Wind advisory, high wind watch across area", "n":"149854"},{"t":"Glacier Peak beats Timberline 38-24 in 3A playoffs; Bellevue up next", "n":"149601"},{"t":"Holiday Market to open Nov. 19", "n":"147159"},{"t":"Snohomish County&#039;s Newest Dog Park", "n":"144825"},{"t":"Looking to get involved in your community?", "n":"143680"} ]},{"t":"Tacoma", "u":"http://tacoma.komonews.com", "k":"tacoma", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"More automated traffic tickets in Tacoma", "n":"151707"},{"t":"County exec says the Hecht with closing court", "n":"150970"},{"t":"A job with free movies--you supply the popcorn", "n":"150663"},{"t":"Job fair coming to Hotel Murano on Wednesday", "n":"149933"},{"t":"Check it out ladies!!!", "n":"147158"} ]},{"t":"Tukwila", "u":"http://tukwila.komonews.com", "k":"tukwila", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"The &quot;Apolo&quot; has landed at Sea-Tac airport", "n":"151787", "i":"Ohno.jpg"},{"t":"Art at the New Airport Lightrail Station", "n":"147388"},{"t":"Silencing light rail could mean heavy metal concert", "n":"146922"},{"t":"Light Rail comes to Sea-Tac Airport December 19", "n":"146913"},{"t":"The New Moon Stars Lughtup Southcenter", "n":"145999"} ]},{"t":"University District", "u":"http://udistrict.komonews.com", "k":"udistrict", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Free flatbread from Jamba Juice", "n":"150964"},{"t":"What&#039;s that smell? ", "n":"150616"},{"t":"UW student wins Miss Seattle crown", "n":"149602"},{"t":"&#039;She was just such a beautiful person&#039;", "n":"146253"},{"t":"UW Students mourn one of their own", "n":"146198"} ]},{"t":"View Ridge", "u":"http://viewridge.komonews.com", "k":"viewridge", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Lining up for the swine flu vaccine ", "n":"144563", "i":"091111_sandpoint_swine_flue.jpg"},{"t":"No energy for tennis? ", "n":"142421"},{"t":"Where to get the swine flu vaccine", "n":"138640"},{"t":"McGinn leading mayoral race by a hair ", "n":"137352"},{"t":"Race for Seattle mayor razor thin", "n":"135156"} ]},{"t":"Wallingford", "u":"http://wallingford.komonews.com", "k":"wallingford", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Video: Symphony of the Sprockets", "n":"150971", "i":"091711_sprockets_symphony.jpg"},{"t":"Crepes, kids &amp; candy: &#039;Cross takes over Woodland Park", "n":"150960"},{"t":"Serious cowbell coming to Woodland Park Sunday", "n":"146947"},{"t":"Neighborhood plan update meeting tonight", "n":"145992"},{"t":"Help clean up McDonald School ", "n":"145774"} ]},{"t":"West Seattle", "u":"http://westseattle.komonews.com", "k":"westseattle", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Save the date: Community meeting on West Seattle Reservoir lid", "n":"151826"},{"t":"Looking for something to do with your family?", "n":"151824"},{"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Crime prevention council meets tonight", "n":"151708"},{"t":"A local business celebrates 20 years", "n":"150961"} ]},{"t":"Woodinville", "u":"http://woodinville.komonews.com", "k":"woodinville", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Isenhower Cellars opening Woodinville tasting room", "n":"146806", "i":"ICwinery.jpg"},{"t":"Bothell, Kenmore, Woodinville councils, NSD board meet together tonight", "n":"145779"},{"t":"Herbfarm earns 2010 Forbes 4-Star Award", "n":"145776"},{"t":"It&#039;s pretty much over: Lacey, Banks will be new NSD board members", "n":"138920"},{"t":"Wild weather brings power lines crashing down", "n":"138338"} ]},{"t":"Gig Harbor", "u":"http://gigharbor.komonews.com", "k":"gigharbor", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Landslide Wipes Out Garage, Cars", "n":"150784", "i":"landslide.jpg"},{"t":"Tides pitcher Schultz headed to Oregon State", "n":"150620"},{"t":"Early morning slide wipes out garage", "n":"150494"},{"t":"Drink Now, Win Later at Gig Harbor&#039;s Brix 25 Restaurant", "n":"145781"},{"t":"New winter warmth overnight packages now in Gig Harbor", "n":"143514"} ]},{"t":"Beacon Hill", "u":"http://beaconhill.komonews.com", "k":"beaconhill", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"Update:  Inside the Jungle", "n":"151786", "i":"Jose_Rizal_Clean_Up.jpg"},{"t":"McGinn wants to hear from you", "n":"151769"},{"t":"Light rail train derails in Seattle", "n":"151704"},{"t":"Last chance for free trees", "n":"150906"},{"t":"Sen. Murray: US Senate to Take Up Healthcare Debate Soon", "n":"150842"} ]},{"t":"Bothell", "u":"http://bothell.komonews.com", "k":"bothell", "lp":"/node/", "ip":"/sites/default/files/imagecache/story_image_widget/",  "i": [ {"t":"&quot;Stuff the Truck&quot; comes to Fred Meyer Wednesday", "n":"150843", "i":"Food-DriveKOMO_1.jpg"},{"t":"Bothell hammers Rogers 57-14", "n":"148439"},{"t":"Overnight lane closures on I-405 NB all next week", "n":"147086"},{"t":"Eagles lose to Freeman at 1A tourney; season over", "n":"147079"},{"t":"Northshore Senior Center to host the Microsoft Symphony Orchestra", "n":"147019"} ]}); 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 (pos) callback(pos.address.city.toLowerCase()); else callback(false); });
}

var CommunityFromCity = function(city) {
		switch (city) {
				case 'seattle':
						return 'ballard';
				case 'eugene':
						return 'downtowneugene';
				case 'portland':
						return 'beaverton';
				default:
						return city;
		}
		return false;
}
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.data('hiddenflash')) return;
				if(me.css('visibility') == 'visible') {
						me.data('hiddenflash', true);
						me.css({visibility:'hidden'});
				}
		});
}
var ShowFlash = function() {
		$('object, embed').each(function() {
				var me = $(this);
				if(me.data('hiddenflash'))
						me.css({visibility:'visible'});
						me.data('hiddenflash', false);
		});
}

var AddOverlay = function() {
		var mask = $('#dsnsOverlay');
		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'});
		HideFlash();
		mask.css({position:'absolute', opacity:.0, backgroundColor:'#333', top:0, left:0, width:w, height:h,display:'block', zIndex:100}).animate({opacity:.3}, 500);
		adHider = setInterval(function() {HideFlash();}, 500);
		return this;
}
var RemoveOverlay = function(outto) {
		clearInterval(adHider);
		if(outto)
				$('#dsnsOverlay').css({height:$(window).height(), backgroundColor:'#5B8CBE'}).animate({opacity:.0, top:outto.position().top, left:outto.position().left, width:outto.width(), height:outto.height()}, 1000, 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;
}
function RenderFeed(source) {
		$('#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 {
				newshtml = newshtml.replace(/http:\/\/the_image./ig, source.u + source.ip + source.i[0].i);
		}

		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);

		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);
		}
		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);
		}
		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);
		}
		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);
		}

		$('#dsnslocalnews').html(newshtml);
		$('#dsnslocallinks').html(linkshtml);
		if(img) $('#dsnslocalnews .localimg').show();
		$('#dsnslocalnews, #dsnslocallinks').show();
}
function GetDefault() {
		switch(window.location.host){
				case 'www.katu.com':
						return CommunityFromCity('portland');
				break;
				case 'www.kval.com':
						return CommunityFromCity('eugene');
				break;
				break;
		}
		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)
						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;
		}

		$('#dsnslocal').hide().html(lfHTML);
		dsnsLFHTMLTemplates.news = $('#dsnslocalnews').html();
		dsnsLFHTMLTemplates.links = $('#dsnslocallinks').html();
		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;
		});
		$('#dsnslocal').show();

		
		var c1 = window['__dsns_'].GetCookie('dsnsloc');
if(c1) {
	document.cookie = 'dsnsloc=; expires=Wed, 1 Jan 2000 00:00:00 UTC; domain='+location.host+'; path=/';
	document.cookie = 'dsnsloc=; expires=Wed, 1 Jan 2000 00:00:00 UTC; path=/';
	window['__dsns_'].SetCookie('dsnsloc', c1);
}

	var c2 = window['__dsns_'].GetCookie('dsnscomm');
if(c2) {
	document.cookie = 'dsnscomm=; expires=Wed, 1 Jan 2000 00:00:00 UTC; domain='+location.host+'; path=/';
	document.cookie = 'dsnscomm=; expires=Wed, 1 Jan 2000 00:00:00 UTC; path=/';
	window['__dsns_'].SetCookie('dsnscomm', c2);
}
	
	var c3 = window['__dsns_'].GetCookie('dsnslfpop');
if(c3) {
	document.cookie = 'dsnslfpop=; expires=Wed, 1 Jan 2000 00:00:00 UTC; domain='+location.host+'; path=/';
	document.cookie = 'dsnslfpop=; expires=Wed, 1 Jan 2000 00:00:00 UTC; path=/';
	window['__dsns_'].SetCookie('dsnslfpop', c3);
}	
	
		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').hide();
}

var ShowPicker = function() {
		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) {
				$('#dsnsOverlay').appendTo($('#header')).hide();
				$('#dsnsLfPopup').appendTo($('#header'));
		}
		AddOverlay();
		var p = $('#dsnsLfPopup');
		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 n = $(this).attr('href');
						n = n.substr(n.indexOf('#')+1);
						var com = false;
								
						$.each(localFeeds, function(i, c) {
								if (c.k == n) {
										com = c;
										return false;
								}
						});
						if(com) {
								RenderFeed(com);
								window['__dsns_'].SetCookie('dsnscomm', com.k);
								HidePicker($('#dsnslocal'));
						} else
								HidePicker();
						return false;
				});
		}
}

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();
				
				var Ready = function(host) {
						if(window[ds_plugin_name].IsReady) return;
						window[ds_plugin_name].IsReady = true;
						if(typeof $ == 'undefined')
						{
								if(host) // we're a plugin
										$ = window[ds_plugin_name].$ = 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));
	}); $('#advancedsearch, #header .advanced A, #search .advanced A').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;
	}
	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({left:me.position().left, 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 = '/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;
}); 

var fullurl = document.URL;
var shorturl = fullurl.slice(24);
var endpos = shorturl.lastIndexOf("/");
var searchpar = shorturl.slice(0, endpos);
var linktokenstart = "<ul><li>";
var linktokenmiddle = "</li><li>";
var linktokenend = "</li></ul>";

var newslink = "<a href=\"http://search.komonews.com/\">More news articles</a>";
var locallink = "<a href=\"http://search.komonews.com/Local-Regional\">More local news</a>";
var consumerlink = "<a href=\"http://search.komonews.com/Consumer\">More consumer news</a>";
var entertainmentlink = "<a href=\"http://search.komonews.com/Entertainment\">More entertainment news</a>";
var healthlink = "<a href=\"http://search.komonews.com/Health\">More health news</a>";
var nationallink = "<a href=\"http://search.komonews.com/National-World\">More national news</a>";
var offbeatlink = "<a href=\"http://search.komonews.com/Offbeat\">More offbeat news</a>";
var opinionlink = "<a href=\"http://search.komonews.com/Opinion\">More opinion</a>";
var sportslink = "<a href=\"http://search.komonews.com/Sports\">More sports news</a>";
var techlink = "<a href=\"http://search.komonews.com/Technology\">More technology news</a>";
var videolink = "<a href=\"http://search.komonews.com/Video\">More videos</a>";
var younewslink = "<a href=\"http://search.komonews.com/YouNews\">More YouNews</a>";
var businesslink = "<a href=\"http://search.komonews.com/Business\">More business news</a>";

var html = '';
switch (searchpar) {
	case "news/local":
		html = linktokenstart + newslink + linktokenmiddle + locallink + linktokenend;
		break;
	case "news/consumer":
		html = linktokenstart + newslink + linktokenmiddle + consumerlink + linktokenend;
		break;
	case "news/entertainment":
		html = linktokenstart + newslink + linktokenmiddle + entertainmentlink + linktokenend;
		break;
	case "news/health":
		html = linktokenstart + newslink + linktokenmiddle + healthlink + linktokenend;
		break;
	case "news/national":
		html = linktokenstart + newslink + linktokenmiddle + nationallink + linktokenend;
		break;
	case "news/offbeat":
		html = linktokenstart + newslink + linktokenmiddle + offbeatlink + linktokenend;
		break;
	case "opinion/commentators":
		html = linktokenstart + opinionlink + linktokenend;
		break;
	case "sports":
		html = linktokenstart + sportslink + linktokenend;
		break;
	case "news/tech":
		html = linktokenstart + newslink + linktokenmiddle + techlink + linktokenend;
		break;
	case "home/video":
		html = linktokenstart + videolink + linktokenend;
		break;
	case "younews":
		html = linktokenstart + younewslink + linktokenend;
		break;
	case "news":
		html = linktokenstart + newslink + linktokenend;
		break;
	case "news/business":
		html = linktokenstart + newslink + linktokenmiddle + businesslink + linktokenend;
		break;
	default:
		html = linktokenstart + newslink + linktokenend;
		break;
		
}
$('#dsrelatedlinks').html(html);

				}
				window[ds_plugin_name].Ready = Ready;
				window[ds_plugin_name].FullyInitialized = true;
				if(host)
						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();

var pid = /([0-9]+)\.html$/ig.exec(window.location.href);
if(pid) setTimeout(function() {(new Image()).src='http://search.komonews.com/ws.aspx?key=MLT&DSC=FISHR&rand='+(Math.random()*5)+'&pid='+pid[1];}, 10000);

})();
if(typeof window['__dsns_'] == 'undefined') window['__dsns_'] = {};
window['__dsns_'].GetCookie = window['KOMO_WidgetsV1'].GetCookie;
window['__dsns_'].SetCookie = window['KOMO_WidgetsV1'].SetCookie;