
(function() {
  var DEBUG = ''.toLowerCase() == 'true';
  var csiStart = (+new Date);
  var studioObjects = window['studioV2'] = window['studioV2'] || {};
  var eventTags = {"img_event_tag":[],"js_event_tag":["https://z.moatads.com/netflixdcm383552358182/moatad.js#moatClientLevel1=4396297\u0026moatClientLevel2=8674144\u0026moatClientLevel3=290852854\u0026moatClientLevel4=62863918\u0026moatClientSlicer1=1938075\u0026moatClientSlicer2=119344047\u0026zMoatPS=%%PATTERN:pos%%\u0026zMoatST=%%PATTERN:site%%\u0026zMoatG=ct=US\u0026st=MA\u0026city=13963\u0026dma=8\u0026zp=02138\u0026bw=4\u0026zMoatAuction=\u0026zMoatDomain=ichnaea.netflix.com%2Flog%2Ffreeform%2Fmoat_viewability","https://secure.insightexpressai.com/adServer/adServerESI.aspx?bannerID=373051\u0026siteID=N38201.127139HUFFINGTONPOST.COM\u0026creativeID=62863918\u0026placementID=119344047"]};
  var publisherSideFilePath = unescape('');
  if(publisherSideFilePath == '') {
    publisherSideFilePath = '/doubleclick/DARTIframe.html';
  } else if (publisherSideFilePath.charAt(publisherSideFilePath.length - 1) == '/') {
    publisherSideFilePath += 'DARTIframe.html';
  }
  var bookingTimeMetaData = {
  };

  var runtimeMetaData = {
  };

  var exitUrlPatternMacroValues = {
  };
  var macroParser = function (macroName, value) {
    return (value.indexOf(macroName) < 0) ? value : '';
  };
  var adServerData = {
    eventReportingUrl: 'http://ad.doubleclick.net/activity;src=4396297;met=1;v=1;pid=119344047;aid=290852854;ko=0;cid=62863918;rid=62743918;rv=3;',
    clickUrl: 'http://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstJagcC_Bui05PBJ79zHq9WKV9ri3r_kilRqtLSpVJlpnxyR9x60JE8K4n406btVXOYjKRK329Uj2vbU-ApEZGZrusmaBmvwJX49Xq9Gljt4RhVE9hGmyTaN3Ygln3cLIcUp0KvPJc5mZ_hqg&sig=Cg0ArKJSzGjNB43DBkJnEAE&adurl=http://at.atwola.com/adlink/5113/2498285/0/529/AdId%3D7039088%3BBnId%3D1%3Bitime%3D609253670%3Bnodecode%3Dyes%3Bimpref%3D1435609254201689269%3Bimprefseq%3D176205586319287055%3Bimprefts%3D1435609254%3Blink%3D',
    clickUrlTimesToEscape: '',
    clickEventTagUrl: eventTags['click_event_tag'],
    impressionUrl: 'http://googleads4.g.doubleclick.net/pcs/view?xai=AKAOjstJagcC_Bui05PBJ79zHq9WKV9ri3r_kilRqtLSpVJlpnxyR9x60JE8K4n406btVXOYjKRK329Uj2vbU-ApEZGZrusmaBmvwJX49Xq9Gljt4RhVE9hGmyTaN3Ygln3cLIcUp0KvPJc5mZ_hqg&sig=Cg0ArKJSzOT_F0h_1jZyEAE&adurl=',
    geoData: 'ct=US&st=MA&city=13963&dma=8&zp=02138&bw=4',
    siteName: 'N38201.127139HUFFINGTONPOST.COM',
    siteId: '1938075',
    adId: '290852854',
    exitSuffix: macroParser('exit_suffix', 'dcnid=38201&dcsid=1938075&dcpid=119344047&dcaid=290852854&dccid=62863918&mqso=90083494'), // XFA GA Beacon.
    buyId: '8674144',
    creativeId: '62863918',
    placementId: '119344047',
    advertiserId: '4396297',
    keyValueOrdinal: '0',
    renderingVersion: '3',
    renderingId: '62743918',
    randomNumber: '2270879554',
    dynamicData: '',
    stringReportingUrl: 'http://ad.doubleclick.net/activity;src=4396297;stragg=1;v=1;pid=119344047;aid=290852854;ko=0;cid=62863918;rid=62743918;rv=3;rn=2270879554;',
    urlToGetKeywordsFor: '%LivePreviewSiteUrl',
    bookingTimeMetaData: bookingTimeMetaData,
    generatedAdSlot: false,
    exitUrlPatternMacroValues: exitUrlPatternMacroValues,
    activeViewClkStr: macroParser('eav', 'BcO84pqiRVYPHKcaU3AHviILwCwAAAAAQATgByAEJ4AQCoAY_'),
    renderingEnvironment: ('' == '1' ||
        window['mraid']) ? 'IN_APP' : 'BROWSER',
    placementDimensions: {
      'w': '300',
      'h': '600'
    },
    tag: {
      adContainerElementId: macroParser('ad_container_id', ''),
      hideObjects: '',
      top: '',
      left: '',
      zIndex: '',
      duration: '',
      wmode: '',
      preferHtml5Artwork: '' == 'true',
      adSenseKeywords: '',
      adSenseLatitude: '',
      adSenseLongitude: '',
      publisherSideFilePath: publisherSideFilePath,
      runtimeMetaData: runtimeMetaData,
      lidarEnabled: false,
      expansionMode: '',
      renderFloatInplace: ''.toLowerCase() == 'true',
      tryToWriteHtmlInline: ''.toLowerCase() == 'true'
    }
  };

  var scheme;
  if ('http' == 'http' || 'http' == 'https') {
    // DCM scheme macro usage.
    scheme = 'http' + ':';
  } else if ('%%SCHEME%%' == 'http' || '%%SCHEME%%' == 'https') {
    // XFP scheme macro usage.
    scheme = '%%SCHEME%%' + ':';
  } else {
    // preview usage.
    scheme = location.protocol;
  }
  var staticResourceMediaServer = scheme == 'https:' ?
       'https://s0.2mdn.net' :
       'http://s0.2mdn.net';

  var creativeMediaServer = scheme == 'https:' ?
       'https://s0.2mdn.net' :
       'http://s0.2mdn.net';

  var backupImageUrl = '/ads/richmedia/studio/pv2/36511325/20150507190626549/backup-image.jpg';
  if (!/^https?:/.test(backupImageUrl)) {
    backupImageUrl = creativeMediaServer + backupImageUrl;
  }
  var backupImage = {
    exitUrl: 'http://ad.doubleclick.net/activity;src=4396297;met=1;v=1;pid=119344047;aid=290852854;ko=0;cid=62863918;rid=62743918;rv=3;cs=i;eid1=2321794;ecn1=1;etm1=0;_dc_redir=url?http://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstJagcC_Bui05PBJ79zHq9WKV9ri3r_kilRqtLSpVJlpnxyR9x60JE8K4n406btVXOYjKRK329Uj2vbU-ApEZGZrusmaBmvwJX49Xq9Gljt4RhVE9hGmyTaN3Ygln3cLIcUp0KvPJc5mZ_hqg&sig=Cg0ArKJSzGjNB43DBkJnEAE&adurl=http://at.atwola.com/adlink/5113/2498285/0/529/AdId%3D7039088%3BBnId%3D1%3Bitime%3D609253670%3Bnodecode%3Dyes%3Bimpref%3D1435609254201689269%3Bimprefseq%3D176205586319287055%3Bimprefts%3D1435609254%3Blink%3Dhttp://www.netflix.com/WiMovie/80017537',
    target: '_blank',
    imageUrl: backupImageUrl,
    width: '300',
    height: '600',
    backupDisplayActivityUrl: [
      adServerData.eventReportingUrl,
      '&timestamp=', (+new Date), ';',
      'eid1=9;ecn1=1;etm1=0;'].join(''),
    thirdPartyBackupImpressionUrl: ''
  };

  var versionPrefix = DEBUG ? 'db_' : '';
  var templateVersion = '200_86';
  var renderingScriptPath = '/879366';
  var rendererDisplayType = '';
  rendererDisplayType += 'flash_';
  var rendererFormat = 'inpage';
  var rendererName = rendererDisplayType + rendererFormat;
  var renderingLibrary = renderingScriptPath + '/' + rendererName + '_rendering_lib_' +
      versionPrefix + templateVersion + '.js';
  // Adserver has a logic to detect media files and prepend host name.
  if (!/^https?:/.test(renderingLibrary)) {
    renderingLibrary = staticResourceMediaServer + renderingLibrary;
  }

  var adCreativeDefinitions = {};
    adCreativeDefinitions['290852854'] = '/ads/richmedia/studio/creative/36511325/36606161_2ab5d84779a04d21cd0efa2728d8c38b_290852854_creative_override.js';
    adCreativeDefinitions['290853207'] = '/ads/richmedia/studio/creative/36511325/36606161_0877102e1e2c618c16c62602ac99ed07_290853207_creative_override.js';
    adCreativeDefinitions['290853404'] = '/ads/richmedia/studio/creative/36511325/36606161_223101507004130fe0e1a002a8003829_290853404_creative_override.js';
    adCreativeDefinitions['290901356'] = '/ads/richmedia/studio/creative/36511325/36606161_2e22aabbab980433c7131c54ed8a05e8_290901356_creative_override.js';
    adCreativeDefinitions['290902123'] = '/ads/richmedia/studio/creative/36511325/36606161_2449b4a0bf3a527375b0a78ca7ee3919_290902123_creative_override.js';
    adCreativeDefinitions['290902126'] = '/ads/richmedia/studio/creative/36511325/36606161_4d7318687339ccda0c2eb56835838c5d_290902126_creative_override.js';
    adCreativeDefinitions['292146564'] = '/ads/richmedia/studio/creative/36511325/36606161_a2d273f47e2ac4cb66cc11e9c88d29fb_292146564_creative_override.js';
    adCreativeDefinitions['292146572'] = '/ads/richmedia/studio/creative/36511325/36606161_34c936589031c62a8fbb473140d65ee1_292146572_creative_override.js';
    adCreativeDefinitions['292146581'] = '/ads/richmedia/studio/creative/36511325/36606161_e502d704e1242e70caef6489e00daa0d_292146581_creative_override.js';
    adCreativeDefinitions['292348771'] = '/ads/richmedia/studio/creative/36511325/36606161_e5a42cf86f833ef7ace600737de88efa_292348771_creative_override.js';

  var creativeId = '62863918';
  var adId = adCreativeDefinitions[adServerData.adId] ? adServerData.adId : 0;
  // The unique creative is identified by combination of creative id and ad id.
  // When the same creative(same creative id and same ad id) is served on the page more
  // than once then they will share the creative definition yet there will be
  // multiple instances of 'adResponses'.s
  var creativeKey = [creativeId, adId].join('_');
  var creativeDef = adCreativeDefinitions[adServerData.adId] ?
      adCreativeDefinitions[adServerData.adId] :
      '/ads/richmedia/studio/creative/36511325/36606161_58b6e6f2c32da8a88ab9bdb7e0b6a9b5_creative_def.js';
  if(!/^https?:/.test(creativeDef) && creativeDef.substring(0, 2) != '//') {
    creativeDef = creativeMediaServer + creativeDef;
  }
  studioObjects['creativeCount'] = studioObjects['creativeCount'] || 0;
  var creativeDto = {
    id: creativeId,
    uniqueId: creativeId + '_' + studioObjects['creativeCount']++,
    templateVersion: templateVersion,
    adServerData: adServerData,
    isPreviewEnvironment: '%PreviewMode' == 'true',
    hasFlashAsset: true,
    hasHtmlAsset: false,
    requiresCss3Animations: false,
    flashVersion: '9',
    httpsMediaServer: 'https://s0.2mdn.net',
    httpMediaServer: 'http://s0.2mdn.net',
    renderingScriptPath: renderingScriptPath,
    renderingLibrary: renderingLibrary,
    rendererName: rendererName,
    creativeDefinitionUrl: creativeDef,
    creativeKey: creativeKey,
    thirdPartyImpressionUrls: eventTags['img_event_tag'],
    thirdPartyArtworkImpressionUrl: '',
    breakoutToTop: false,
    dimensions: {
      width: '300px',
      height: '600px'
    },
    backupImage: backupImage,
    csiStart: csiStart,
    csiAdRespTime: csiStart - (parseFloat('') || 0),
    csiEvents: {},
    hasModernizrFeatureChecks: false,
    html5FeatureChecks: [
    ],
    hasSwiffyHtmlAsset: false
  };

  var inGdnIframe = window['IN_ADSENSE_IFRAME'] || false;
  var inYahooSecureIframe = window.Y && Y.SandBox && Y.SandBox.vendor;
  var inWinLiveIframe = false;
  try {
    inWinLiveIframe = !!window.$WLXRmAd;
  } catch(e) {}
  var inSafeFrame = window.$sf && window.$sf.ext;
  var isMsnAjaxIframe = (typeof(inDapMgrIf) != 'undefined' && inDapMgrIf);
  var breakoutIframe = ''.toLowerCase();
  var shouldBreakout = (((false ||
                          false) &&
                         !inGdnIframe &&
                         !inYahooSecureIframe &&
                         !inSafeFrame &&
                         !inWinLiveIframe) ||
                        (true && breakoutIframe == 'true')) &&
                       self != top &&
                       !creativeDto.isPreviewEnvironment &&
                       breakoutIframe != 'false';

  if (adServerData.tag.adContainerElementId == '' &&
      (true || false ||
         adServerData.tag.renderFloatInplace)) {
    var containerId = ['creative', creativeDto.uniqueId].join('_');
    var divHtml = ['<div id="', containerId, '"></div>'].join('');
    document.write(divHtml);
    adServerData.tag.adContainerElementId = containerId;
    adServerData.generatedAdSlot = true;
  }
  var creatives = studioObjects['creatives'] = studioObjects['creatives'] || {};
  var creative = creatives[creativeKey] = creatives[creativeKey] || {};
  var adResponses = creative['adResponses'] = creative['adResponses'] || [];
  creative['shouldBreakout'] = creative['shouldBreakout'] || shouldBreakout;
  var iframeBusterLibrary = renderingScriptPath + '/iframe_buster_' +
      versionPrefix + templateVersion + '.js';
  if(!/^https?:/.test(iframeBusterLibrary)) {
    iframeBusterLibrary = staticResourceMediaServer + iframeBusterLibrary;
  }
  var loadedLibraries = studioObjects['loadedLibraries'] = studioObjects['loadedLibraries'] || {};
  var versionedLibrary = loadedLibraries[templateVersion] = loadedLibraries[templateVersion] || {};
  var typedLibrary = versionedLibrary[rendererName] = versionedLibrary[rendererName] || {};
  adResponses.push({
    creativeDto: creativeDto
  });
  for (var i = 0; i < eventTags['js_event_tag'].length; i++) {
    document.write('<scr' + 'ipt type="text/javascript" src="' + eventTags['js_event_tag'][i] + '"></scr' + 'ipt>');
  }
  if (shouldBreakout) {
    if (versionedLibrary['breakout']) {
      versionedLibrary['breakout']();
    } else if (!versionedLibrary['breakoutLoading']) {
      versionedLibrary['breakoutLoading'] = true;
      document.write('<scr' + 'ipt type="text/javascript" src="' + iframeBusterLibrary + '" async="async"></scr' + 'ipt>');
    }
  } else if (typedLibrary['bootstrap'] && creative['creativeDefinition']) {
    typedLibrary['bootstrap']();
  } else {
    if (!creative['definitionLoading']) {
      creative['definitionLoading'] = true;
      creativeDto.csiEvents['pb'] = (+new Date);
      document.write('<scr' + 'ipt type="text/javascript" src="' + creativeDto.creativeDefinitionUrl + '"' + (adServerData.tag.tryToWriteHtmlInline ? '' : ' async="async"') + '></scr' + 'ipt>');
    }
    if (!typedLibrary['loading']) {
      typedLibrary['loading'] = true;
      creativeDto.csiEvents['gb'] = (+new Date);
      document.write('<scr' + 'ipt type="text/javascript" src="' + renderingLibrary + '"' + (adServerData.tag.tryToWriteHtmlInline ? '' : ' async="async"') + '></scr' + 'ipt>');
    }
  }
  if (isMsnAjaxIframe) {
    window.setTimeout("document.close();", 1000);
  }
})();
document.write('\n\x3cnoscript\x3e\n  \x3ca target\x3d\x22_blank\x22 href\x3d\x22http://ad.doubleclick.net/activity;src\x3d4396297;met\x3d1;v\x3d1;pid\x3d119344047;aid\x3d290852854;ko\x3d0;cid\x3d62863918;rid\x3d62743918;rv\x3d3;cs\x3di;eid1\x3d2321794;ecn1\x3d1;etm1\x3d0;_dc_redir\x3durl?http://adclick.g.doubleclick.net/pcs/click?xai\x3dAKAOjstJagcC_Bui05PBJ79zHq9WKV9ri3r_kilRqtLSpVJlpnxyR9x60JE8K4n406btVXOYjKRK329Uj2vbU-ApEZGZrusmaBmvwJX49Xq9Gljt4RhVE9hGmyTaN3Ygln3cLIcUp0KvPJc5mZ_hqg\x26sig\x3dCg0ArKJSzGjNB43DBkJnEAE\x26adurl\x3dhttp://at.atwola.com/adlink/5113/2498285/0/529/AdId%3D7039088%3BBnId%3D1%3Bitime%3D609253670%3Bnodecode%3Dyes%3Bimpref%3D1435609254201689269%3Bimprefseq%3D176205586319287055%3Bimprefts%3D1435609254%3Blink%3Dhttp://www.netflix.com/WiMovie/80017537\x22\x3e\n    \x3cimg border\x3d\x220\x22 alt\x3d\x22\x22 src\x3d\x22//s0.2mdn.net/ads/richmedia/studio/pv2/36511325/20150507190626549/backup-image.jpg\x22\n        width\x3d\x22300\x22 height\x3d\x22600\x22 /\x3e\n  \x3c/a\x3e\n  \x3cimg width\x3d\x220px\x22 height\x3d\x220px\x22 style\x3d\x22visibility:hidden\x22 border\x3d\x220\x22 alt\x3d\x22\x22\n       src\x3d\x22http://ad.doubleclick.net/activity;src\x3d4396297;met\x3d1;v\x3d1;pid\x3d119344047;aid\x3d290852854;ko\x3d0;cid\x3d62863918;rid\x3d62743918;rv\x3d3;\x26timestamp\x3d2270879554;eid1\x3d9;ecn1\x3d1;etm1\x3d0;\x22 /\x3e\n  \n\x3c/noscript\x3e\n');(function(){var f=function(a,c,b){return a.call.apply(a.bind,arguments)},g=function(a,c,b){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,d);return a.apply(c,b)}}return function(){return a.apply(c,arguments)}},k=function(a,c,b){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?f:g;return k.apply(null,arguments)};var l=document,m=window;var n=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0},p=function(a){var c;a.mozVisibilityState?c="mozvisibilitychange":a.webkitVisibilityState?c="webkitvisibilitychange":a.visibilityState&&(c="visibilitychange");return c};var r=function(){this.g=l;this.j=m;this.i=!1;this.h=[];this.m={};if(3==n(this.g)){var a=k(this.o,this);this.n=a;var c=this.g,b=p(this.g);c.addEventListener?c.addEventListener(b,a,!1):c.attachEvent&&c.attachEvent("on"+b,a)}else q(this)};r.p=function(){return r.l?r.l:r.l=new r};var s=/^([^:]+:\/\/[^/]+)/m,t=/^\d*,(.+)$/m,q=function(a){if(!a.i){a.i=!0;for(var c=0;c<a.h.length;++c)a.k.apply(a,a.h[c]);a.h=[]}};r.prototype.q=function(a,c){var b=c.target.t();(b=t.exec(b))&&(this.m[a]=b[1])};r.prototype.k=function(a,c){var b;if(b=this.s)i:{try{var d=s.exec(this.j.location.href),e=s.exec(a);if(d&&e&&d[1]==e[1]&&c){var h=k(this.q,this,c);this.s(a,h);b=!0;break i}}catch(y){}b=!1}b||(b=this.j,b.google_image_requests||(b.google_image_requests=[]),d=b.document.createElement("img"),d.src=a,b.google_image_requests.push(d))};r.prototype.o=function(){if(3!=n(this.g)){q(this);var a=this.g,c=p(this.g),b=this.n;a.removeEventListener?a.removeEventListener(c,b,!1):a.detachEvent&&a.detachEvent("on"+c,b)}};var u=function(a,c){var b=/(google|doubleclick).*\/pagead\/adview/.test(a),d=r.p(),e=a;if(b){b="&vis="+n(d.g);c&&(b+="&ve=1");var h=e.indexOf("&adurl"),e=-1==h?e+b:e.substring(0,h)+b+e.substring(h)}d.i?d.k(e,c):d.h.push([e,c])},v=["pdib"],w=this;v[0]in w||!w.execScript||w.execScript("var "+v[0]);for(var x;v.length&&(x=v.shift());)v.length||void 0===u?w=w[x]?w[x]:w[x]={}:w[x]=u;})();pdib("http://googleads4.g.doubleclick.net/pcs/view?xai\x3dAKAOjstJagcC_Bui05PBJ79zHq9WKV9ri3r_kilRqtLSpVJlpnxyR9x60JE8K4n406btVXOYjKRK329Uj2vbU-ApEZGZrusmaBmvwJX49Xq9Gljt4RhVE9hGmyTaN3Ygln3cLIcUp0KvPJc5mZ_hqg\x26sig\x3dCg0ArKJSzOT_F0h_1jZyEAE\x26adurl\x3d");