// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(i){var e=loadHelper("stripurl.js"),n=i.getNullSpan(),o=[],t=[/AC Hotel/i,/AccorHotels/i,/Adagio Access/i,/Adagio Premium/i,/Adagio/i,/Aloft\s/i,/Aman\s/i,/Americas Best Value Inn/i,/AmericInn/i,/Anantara/i,/Andaz/i,/Angsana/i,/Arizona Grand Resort/i,/Ascend Collection/i,/Ascott/i,/Auberge/i,/Autograph Collection/i,/Avani/i,/Banyan Tree/i,/Baymont Inn/i,/Beefeater/i,/Belmond/i,/Best Western/i,/Boscolo Hotel/i,/Brewers Fayre/i,/Bulgari Hotel/i,/BW Premier Collection/i,/Cambria Suites/i,/Canadas Best Value Inn/i,/Candlewood Suites/i,/Canopy/i,/Carlson Rezidor Hotel/i,/Cassia/i,/Chatrium/i,/Choice Hotel/i,/Citadines Apart'hotel/i,/Clarion/i,/Classic Hotel/i,/Comfort (?:Inn|Suites)/i,/Conrad/i,/Copthorne Hotel/i,/Coral Cay Resort/i,/Coralia/i,/Costa Coffee/i,/Country Inns/i,/Courtyard/i,/Crowne Plaza/i,/Curio Collection/i,/Days Inn/i,/Delta/i,/Design Hotel/i,/Dhawa/i,/Dolce\s/i,/DoubleTree/i,/Drury/i,/Dusit/i,/dusitD2/i,/Econo Lodge/i,/Edition Hotel/i,/Element Hotel/i,/Embassy Suites/i,/Emporium Suites/i,/Enclave Hotel/i,/EVEN Hotel/i,/Executive Residency/i,/Fairfield Inn/i,/Fairmont/i,/Fairyland Hotel/i,/FIH Regent/i,/FireSky/i,/Four Points/i,/Four Seasons/i,/Gateway Hotel/i,/Gaylord Hotel/i,/Ginger Hotel/i,/Glo/i,/Grand Copthrone/i,/Grand Millenium/i,/Hampton/i,/Hawaiian Inn/i,/Hawthorn Suites/i,/Hilton/i,/Holiday Inn/i,/Home Inns/i,/Home2 Suites/i,/Homeinn Plus/i,/Homewood Suites/i,/Hongkong and Shanghai Hotel/i,/Hotel Carmel/i,/Hotel Formule 1/i,/Hotel Ibis/i,/Hotel Indigo/i,/Hotel JAL City/i,/Hotel Jen/i,/Howard Johnson's/i,/Hyatt/i,/ibis/i,/Inn at Laguna Beach/i,/InterContinental/i,/InTown Suites/i,/Jin Jiang International/i,/Jinjiang Inns/i,/Jumeirah/i,/Just Sleep/i,/Kempinski/i,/Kerry Hotel/i,/Kimpton Hotel/i,/Kingsgate Hotel/i,/Knights Inn/i,/La Playa Carmel/i,/La Quinta Inns/i,/Laguna Beach House/i,/Lake Buena Vista Resort/i,/Lexington/i,/Loews Hotel/i,/Lotte Hotel/i,/Luxury Collection/i,/M Hotel/i,/Mainstay Suites/i,/Maitria Hotel Sukhumvit 18/i,/Mama Shelter/i,/Mandarin Oriental/i,/Marriott/i,/Mercure/i,/M\xe9ridien/i,/MGallery/i,/Microtel Inn (?:&|&amp;|and) Suites/i,/Millennium\s.*?Hotel/i,/Minor Hotel/i,/Motel 168/i,/Motel 6/i,/MOXY/i,/New World Hotel/i,/NH Hotel/i,/Novotel/i,/Oberoi/i,/Okura/i,/Omni Hotel/i,/Park Inn/i,/Park Plaza/i,/Pear Tree Inn/i,/Peninsula Hotel/i,/Pentahotels/i,/Per Aquum/i,/Premier Inn/i,/Protea Hotel/i,/Pullman/i,/Quality Inn/i,/Quorvus Collection/i,/Radisson/i,/Rafayel Hotel & Spa/i,/Raffles/i,/Ramada/i,/Regent Hotel/i,/Renaissance\s.*?Hotel/i,/Residence Inn/i,/Ritz-Carlton/i,/Rodeway Inn/i,/Rosewood/i,/Sebel/i,/Shangri-La/i,/Sheraton/i,/Shilo Inns/i,/Silk Place/i,/Sleep Inn/i,/Sofitel/i,/Somerset Serviced Residence/i,/SpringHill Suites/i,/St\.?\sRegis/i,/St\.?\sGiles/i,/Staybridge Suites/i,/staySky/i,/Studio 6/i,/Suburban Extended Stay Hotel/i,/Suite Novotel/i,/Super 8/i,/Swiss\xf4tel/i,/Table Table/i,/Taj Hotel/i,/Taybarns/i,/The .+? Edition/i,/Time Out Hotel/i,/Tivoli/i,/TownePlace/i,/Traders Hotel/i,/Travelodge/i,/Tribute Portfolio/i,/Trident Hotel/i,/Tru\s/i,/Trump\s.*?Hotel/i,/TRYP/i,/Vantage Hospitality/i,/Vib\s/i,/Vivanta/i,/W Hotel/i,/W \u9152\u5e97/i,/Waldorf Astoria/i,/Westin/i,/Whitbread/i,/Wingate/i,/Worthing Court Barbados/i,/Wyndham/i,/Yitel/i,/Alon/i,/Bally's/i,/Bellagio/i,/Caesars Palace/i,/Circus Circus/i,/Cosmopolitan/i,/Delano/i,/Encore/i,/Excalibur/i,/Flamingo/i,/Fontainebleau/i,/Harrah's/i,/Luxor/i,/Mandalay Bay/i,/MGM Grand/i,/Monte Carlo/i,/Planet Hollywood/i,/Resorts World/i,/SKYLOFTS/i,/SLS/,/Stratosphere/i,/Cromwell/i,/Linq/i,/Mirage/i,/Palazzo/i,/Venetian/i,/Treasure Island/i,/Tropicana/i,/Wynn/i,/Minshan Hotel/i,/Grange\s.*?Hotel/i,/Maldron\s.*?Hotel/i,/EnVision Hotel/i],a=[/\d{3,}/,/\.$/,/(?:\xae|\xa9|\u2122|\s?tm\s|trademark)/i,/hotels\s/i,/worldwide/i,/room/i,/double\s/i,/twin/i,/king/i,/queen/i,/dining/i,/customer/i,/member/i,/card/i,/requests/i,/offers/i,/facility/i,/fitness/i,/choosing/i,/thank/i,/join/i,/select/i,/subscriptions/i,/reward/i,/earn/i,/download/i,/mobile/i,/enhance/i,/your\s/i,/merci/i,/concierge/i,/view/i,/info/i,/passport/i,/exclusive/i];return t.forEach(function(n){for(var l=i.getSpan().nextRegExp(n);l.exists();){var r=l.parentAnyTag("td").tagContents().split("\n").map(function(i){return i.tagContents()}).map(function(i){return e(i)}).filter(function(i){return!i.contains(i.innerLink())}).filter(function(i){return t.some(function(e){return e.test(i)})&&!a.some(function(e){return e.test(i)})});o=o.concat(r),l=l.nextRegExp(n)}}),o.length>0&&(n=o.reduce(function(i,e){return(""+i).length<(""+e).length?i:e})),n.replace(/\[\/?t(?:[hrd]|able)\d+]/g,"").replace(/Hotel\s+?:(.+)/i,"").trim()}}).call();