// 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_point/Kealakekua+Bay/19.4795396/-155.9210587?pid=515&spec=0", "tagline_1" : "Fodor's Finds", "tagline_2" : "Fodor's Find", "title_1" : "Fodor's Finds Finds Hotels Near Kealakekua Bay", "title_2" : "Kealakekua Bay", "title_3" : "hotels near Kealakekua Bay", "title_4" : "near Kealakekua Bay", "title_5" : "near Kealakekua Bay", "domain" : "fodors-finds.hotels-for-everyone.com", "widget_domain" : "fodors.hotels-for-everyone.com", "type" : "landmark", "img_domain" : "img1.hotels-for-everyone.com", "phone" : "800-916-8592", "partner_id" : "515", "destination" : "big-island", "name_slug" : "kealakekua-bay", "city_state_country" : "Big Island, Hawaii, USA", "min_date" : "02/08/2012", "max_date" : "01/03/2013", "click_tracking_code" : "onclick=\"linkCode(this,'event32');\" rel=\"nofollow\"", "category" : "", "hotel_id" : "", "hotel_name" : "", "deals" : [ {"promo_text" : "Book Early and Save 30%", "url" : "http://fodors-finds.hotels-for-everyone.com/landmark_pages/view_point/Kealakekua+Bay/19.4795396/-155.9210587?pid=515&spec=0&hhid=141176&checkIn=08/14/2012&checkOut=08/21/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "141176"}, {"promo_text" : "Book Early and Save 60%", "url" : "http://fodors-finds.hotels-for-everyone.com/landmark_pages/view_point/Kealakekua+Bay/19.4795396/-155.9210587?pid=515&spec=0&hhid=206409&checkIn=08/14/2012&checkOut=08/21/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "206409"}, {"promo_text" : "Aston Waikoloa Colony Villas - 3rd Night Free", "url" : "http://fodors-finds.hotels-for-everyone.com/booking/hotel_details?pid=515&hid=227818&checkIn=04/06/2012&checkOut=04/15/2012", "discovered" : "02/07/2012", "source" : "Deal from 000", "hotel_id" : "227818"}]}; HFE_TravelFinds_450_150_1(dealData);