// Wrap code with module pattern. (function() { var global = this; // widget constructor function global.HFE_TravelFinds_450_150_1 = function(dealData) { var widget_style = '450_150_1'; var widget_id=Math.floor(Math.random()*10000); // Don't do style for Fodor's if (dealData.partner_id != "515") { var styleHTML = ''; // Drop in the widget's id styleHTML = styleHTML.replace(/#hfe-widget/g,"#hfe-widget-"+widget_id); document.write(styleHTML); } document.write('
'); var widget = document.getElementById('hfe-widget-'+widget_id); // Create header widget DOM fragment var dealListHTML = '

'+dealData.title_1+'

'; dealListHTML +=''; dealListHTML += ''; if (dealData.deals && dealData.deals.length > 0) { dealListHTML += 'Deals found '+dealData.deals[0].discovered+' - '; } dealListHTML += 'Find yours now! Go »'; // Analytics call dealListHTML += ''; widget.innerHTML = dealListHTML; }; })(); var dealData = {"default_url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Baltimore/39.319984/-76.572273?pid=515&spec=0", "tagline_1" : "Fodor's Finds", "tagline_2" : "Fodor's Find", "title_1" : "Fodor's Finds Hotel Deals in Baltimore", "title_2" : "Baltimore landmarks", "title_3" : "Baltimore hotels", "title_4" : "in Baltimore", "title_5" : "in
Baltimore", "domain" : "fodors.hotels-for-everyone.com", "type" : "destination", "img_domain" : "img1.hotels-for-everyone.com", "phone" : "800-559-7314", "partner_id" : "515", "destination" : "baltimore", "name_slug" : "baltimore", "city_state_country" : "Baltimore, Maryland, USA", "min_date" : "09/02/2010", "max_date" : "07/29/2011", "click_tracking_code" : "onclick=\"linkCode(this,'event32');\" rel=\"nofollow\"", "category" : "", "deals" : [ {"promo_text" : "3 Star Hotel - 48 Hour Sale - Save 25%", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Baltimore/39.319984/-76.572273?pid=515&spec=0&hhid=107689&checkIn=09/14/2010&checkOut=09/16/2010", "discovered" : "09/02/2010", "source" : "Deal from 000", "hotel_id" : "107689"}, {"promo_text" : "Days Inn Inner Harbor - 5th Night Free", "url" : "http://fodors.hotels-for-everyone.com/booking/hotel_details?pid=515&hid=194329&checkIn=09/08/2010&checkOut=09/15/2010", "discovered" : "09/02/2010", "source" : "Deal from 000", "hotel_id" : "194329"}, {"promo_text" : "3.5 Star Hotel - 48 Hour Sale - Save 25%", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Baltimore/39.319984/-76.572273?pid=515&spec=0&hhid=199225&checkIn=09/04/2010&checkOut=09/05/2010", "discovered" : "09/02/2010", "source" : "Deal from 000", "hotel_id" : "199225"}]}; HFE_TravelFinds_450_150_1(dealData);