// 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);
var styleHTML = '';
// Drop in the widget's id
styleHTML = styleHTML.replace(/#hfe-widget/g,"#hfe-widget-"+widget_id);
document.write(styleHTML);
document.write('
');
// Create header widget DOM fragment
var header = document.createElement('div');
var dealList = document.createElement('div');
var widget = document.getElementById('hfe-widget-'+widget_id);
header.className = "header";
header.innerHTML = ''+dealData.title_1+'';
var dealListHTML = '';
// Analytics call
dealListHTML += '';
dealList.innerHTML = dealListHTML;
widget.appendChild(header);
widget.appendChild(dealList);
};
})();
var dealData = {"default_url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Blue+Hill+Peninsula/44.404823/-68.585411?pid=515&spec=0", "title_1" : "Fodor's Finds Hotel Deals in Blue Hill Peninsula", "title_2" : "Blue Hill Peninsula landmarks", "title_3" : "Blue Hill Peninsula hotels", "title_4" : "in Blue Hill Peninsula", "title_5" : "in
Blue Hill Peninsula", "domain" : "fodors.hotels-for-everyone.com", "type" : "destination", "img_domain" : "img1.hotels-for-everyone.com", "phone" : "800-559-7314", "partner_id" : "515", "destination" : "blue-hill", "name_slug" : "blue-hill-peninsula", "city_state_country" : "Blue Hill, Maine, USA", "min_date" : "03/12/2010", "max_date" : "02/05/2011", "click_tracking_code" : "onclick=\"linkCode(this,'event32');\" rel=\"nofollow\"", "category" : "", "deals" : [ {"promo_text" : "Great hotel from $159", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Blue+Hill+Peninsula/44.404823/-68.585411?pid=515&spec=0&hhid=231953", "discovered" : "03/12/2010", "source" : "Inventory from 10"}, {"promo_text" : "Great hotel from $179", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Blue+Hill+Peninsula/44.404823/-68.585411?pid=515&spec=0&hhid=242604", "discovered" : "03/12/2010", "source" : "Inventory from 10"}, {"promo_text" : "2.5 Star Hotel from $52", "url" : "http://fodors.hotels-for-everyone.com/landmark_pages/view_destination/Blue+Hill+Peninsula/44.404823/-68.585411?pid=515&spec=0&hhid=264835", "discovered" : "03/12/2010", "source" : "Inventory from 25"}]};
HFE_TravelFinds_450_150_1(dealData);