// 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 or for Tix4Tonight if (dealData.partner_id != "515" && dealData.partner_id != "518") { 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 += 'Find More Deals'; // Analytics call dealListHTML += ''; widget.innerHTML = dealListHTML; }; })(); var dealData = {"default_url" : "http://fodors-finds.hotels-for-everyone.com/landmark_pages/view_destination/Dallas-Fort+Worth/32.786316/-96.798111?pid=515&spec=0", "tagline_1" : "Fodor's Finds", "tagline_2" : "Fodor's Find", "title_1" : "Fodor's Finds Hotel Deals in Dallas-Fort Worth", "title_2" : "Dallas-Fort Worth landmarks", "title_3" : "Dallas-Fort Worth hotels", "title_4" : "in Dallas-Fort Worth", "title_5" : "in
Dallas-Fort Worth", "domain" : "fodors-finds.hotels-for-everyone.com", "widget_domain" : "fodors.hotels-for-everyone.com", "type" : "destination", "img_domain" : "img1.hotels-for-everyone.com", "phone" : "800-916-8592", "partner_id" : "515", "destination" : "dallas", "name_slug" : "dallas-fort-worth", "city_state_country" : "Dallas, Texas, USA", "min_date" : "02/08/2012", "max_date" : "01/03/2013", "click_tracking_code" : "onclick=\"linkCode(this,'event32');\" rel=\"nofollow\"", "category" : "sun", "hotel_id" : "", "hotel_name" : "", "deals" : [ {"promo_text" : "Hotel Lawrence - Save 30% On Your Stay", "url" : "http://fodors-finds.hotels-for-everyone.com/booking/hotel_details?pid=515&hid=110839&checkIn=07/28/2012&checkOut=08/04/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "110839"}, {"promo_text" : "3.5 Star Hotel - Book 3 Nts, Save 30%", "url" : "http://fodors-finds.hotels-for-everyone.com/landmark_pages/view_destination/Dallas-Fort+Worth/32.786316/-96.798111?pid=515&spec=0&hhid=113036&checkIn=11/21/2012&checkOut=11/28/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "113036"}, {"promo_text" : "Adolphus Hotel - Stay 3 Nts, Save 30%", "url" : "http://fodors-finds.hotels-for-everyone.com/booking/hotel_details?pid=515&hid=122878&checkIn=02/16/2012&checkOut=02/20/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "122878"}]}; HFE_TravelFinds_450_150_1(dealData);