// 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/The+Catskills/42.035919/-74.123688?pid=515&spec=0", "tagline_1" : "Fodor's Finds", "tagline_2" : "Fodor's Find", "title_1" : "Fodor's Finds Hotel Deals in The Catskills", "title_2" : "The Catskills landmarks", "title_3" : "The Catskills hotels", "title_4" : "in The Catskills", "title_5" : "in
The Catskills", "domain" : "fodors.hotels-for-everyone.com", "type" : "destination", "img_domain" : "img1.hotels-for-everyone.com", "phone" : "800-559-7314", "partner_id" : "515", "destination" : "woodstock", "name_slug" : "the-catskills", "city_state_country" : "Woodstock, New York, 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 from $119", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/The+Catskills/42.035919/-74.123688?pid=515&spec=0&hhid=107939", "discovered" : "09/02/2010", "source" : "Inventory from 000", "hotel_id" : "107939"}, {"promo_text" : "2 Star Hotel from $59", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/The+Catskills/42.035919/-74.123688?pid=515&spec=0&hhid=204980", "discovered" : "09/02/2010", "source" : "Inventory from 000", "hotel_id" : "204980"}, {"promo_text" : "2.5 Star Hotel from $100", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/The+Catskills/42.035919/-74.123688?pid=515&spec=0&hhid=231519", "discovered" : "09/02/2010", "source" : "Inventory from 000", "hotel_id" : "231519"}]}; HFE_TravelFinds_450_150_1(dealData);