if(typeof(_fskadsparameters)=='undefined') { _fskadsparameters=[]; }if(typeof(fskLib)=='undefined') { fskLib=jQuery; }_fskadunits={'splitbox': 'FreeSkreen
','_':''};_fskgeo={ "gdpr": false, "consent": "-1", "gConsent": "-1", "country": "US", "province": "VA", "dma": "511" };_fskadsparameters['_confs']={'37': {'_state': 0,'_adType': 'splitbox','_preload': 'true','_handlers': {},'passbacks': [],'_single': true,'_videoSelection': {"videoTransaction":{"id":"feb940b4-b22f-4d86-a33b-30815d2aea40","creationDate":1566923248115,"dealId":null,"videoId":null,"publisherId":62,"configId":37,"trackerId":"","userId":null,"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) Safari/538.1","referer":"https://www.macleans.ca/economy/what-the-home-capital-crisis-reveals-about-the-housing-market/","country":"US","province":"US-VA","city":"Ashburn","dma":"511","flc":"economy","slc":"","iabCategories":{"1":{"id":"IAB21","score":0.9740575202806772,"nextScore":0.021966355665926193}},"iabSubcategories":{}},"videos":[{"id":7617,"dealId":154837,"campaignId":6992,"videoPath":"https://ima3vpaid.appspot.com/?adTagUrl=https%3A%2F%2Fpubads.g.doubleclick.net%2Fgampad%2Fads%3Fsz%3D320x240%26iu%3D__p_section__%26impl%3Ds%26cust_params%3Denvironment%253Dslimcut%2526__p_cust__%2526__p_scp_encoded__%26ciu_szs%3D728x90%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast%26unviewed_position_start%3D1%26url%3D__current-url-esc__%26description_url%3D__current-url__%26correlator%3D__timestamp__%26scp%3D__p_scp_encoded__&type=js","hasFooterBanner":false,"hasLeaveBehindBanner":false,"thumbUrl":null,"adLogoUrl":null,"partnerName":null,"advertiserSiteUrl":null,"ratio":1.78,"replayPostVideoImage":null,"replayPostVideoImageClick":null,"postVideoImage":"","postVideoImageClick":null,"displaySocial":false,"displaySocialBumper":false,"displayBumper":false,"postVideoContent":null,"postVideoStyle":null,"postVideoLogo":"","facebookUrl":null,"twitterUrl":null,"googleUrl":null,"footerBanner":null,"footerBannerClick":null,"canClosePopup":null,"closePopupDelay":null,"hbTierLevel1":2,"hbTierLevel2":1,"hbTimeout":null,"cpm":null,"vcpm":null,"vcpmFactor":null,"eventRate":1.0,"trackViewability":false,"pauseOutScreen":true,"displayAdChoices":false,"contentType":"application/xml","pixelName":{},"exchangeRate":1.0,"currency":"USD","alwaysOnBoxOption":false,"riseBoxOption":true,"skyBoxOption":true,"parallaxOption":false,"fskServed":false},{"id":9316,"dealId":321565,"campaignId":9458,"videoPath":"http://__p_tlr1__.ads.tremorhub.com/ad/tag?adCode=__p_tlr2__&playerWidth=__player-width__&playerHeight=__player-height__&playerPosition=3&srcPageUrl=__current-url__&gdpr=__gdpr__&gdpr_consent=__gdpr-consent__&custom=__config-id__&c2=__lang__&floor=__t-price-floor__&fmt=json__p_tlr_sc__","hasFooterBanner":false,"hasLeaveBehindBanner":false,"thumbUrl":null,"adLogoUrl":null,"partnerName":null,"advertiserSiteUrl":null,"ratio":1.78,"replayPostVideoImage":null,"replayPostVideoImageClick":null,"postVideoImage":"","postVideoImageClick":"","displaySocial":false,"displaySocialBumper":false,"displayBumper":false,"postVideoContent":"","postVideoStyle":null,"postVideoLogo":"","facebookUrl":null,"twitterUrl":null,"googleUrl":null,"footerBanner":null,"footerBannerClick":null,"canClosePopup":null,"closePopupDelay":null,"hbTierLevel1":7,"hbTierLevel2":6,"hbTimeout":null,"cpm":null,"vcpm":null,"vcpmFactor":null,"eventRate":1.0,"trackViewability":false,"pauseOutScreen":false,"displayAdChoices":false,"contentType":"application/json","pixelName":{},"exchangeRate":1.0,"currency":"USD","alwaysOnBoxOption":true,"riseBoxOption":false,"skyBoxOption":false,"parallaxOption":false,"fskServed":false},{"id":298,"dealId":18014,"campaignId":3023,"videoPath":"http://ads.freeskreen.com/bid?pid=__publisher-id__&tid=__transaction-id__&w=__player-width__&h=__player-height__&u=__current-url__&ip=__ip__&ua=__user-agent__&g_co=__country__&g_p=__province__&g_ci=__city__&g_d=__dma__&s_1=__section__&s_2=__subsection__&cid=__config-id__&sid=__session-id__&vid=__video-id__&did=__deal-id__&d_os=__device-os__&d_osv=__device-osv__&d_ma=__device-make__&d_mo=__device-model__&pf=__price-floor__&ttm=__ttm__&eu_c=__r_gdpr_consent__&eu_g=__gdpr__&eu_ggl=__g-gdpr-consent__","hasFooterBanner":false,"hasLeaveBehindBanner":false,"thumbUrl":null,"adLogoUrl":null,"partnerName":null,"advertiserSiteUrl":null,"ratio":1.78,"replayPostVideoImage":null,"replayPostVideoImageClick":null,"postVideoImage":null,"postVideoImageClick":null,"displaySocial":false,"displaySocialBumper":false,"displayBumper":false,"postVideoContent":null,"postVideoStyle":null,"postVideoLogo":null,"facebookUrl":null,"twitterUrl":null,"googleUrl":null,"footerBanner":null,"footerBannerClick":null,"canClosePopup":null,"closePopupDelay":null,"hbTierLevel1":8,"hbTierLevel2":0,"hbTimeout":null,"cpm":null,"vcpm":null,"vcpmFactor":null,"eventRate":1.0,"trackViewability":true,"pauseOutScreen":false,"displayAdChoices":false,"contentType":"application/xml","pixelName":{},"exchangeRate":1.0,"currency":"USD","alwaysOnBoxOption":true,"riseBoxOption":true,"skyBoxOption":true,"parallaxOption":false,"fskServed":false}],"targeting":{"p_cust_noenc":"sponsId%3Dundefined%26section%3Deconomy","country":"US","city":"Ashburn","p_scp":"section%3Deconomy%26page%3Deconomy%2Cwhat-the-home-capital-crisis-reveals-about-the-housing-market%26ad_unit_path%3Den.macleans.web%2Feconomy%26PostID%3D1014019%26Tags%3DCMHC%2CHome_Capital%2Cmortgage_debt%2CMortgage_fraud%26Category%3DBusiness%2CCanada%2CEconomic_analysis%2CEconomy%2CFacebook_Instant_Articles%2CMoney%2CNews%2CReal_Estate%26ContentType%3Dposts%26Author%3DJoe_Castaldo","p_tlr2":"zatbg-09bib","p_tlr1":"zatbg-ifz3s","p_cust":"sponsId%253Dundefined%2526section%253Deconomy","getRetarget":"NA","province":"VA","canRetarget":"true","p_lactualite_postid":"","dma":"511","p_section":"/7326/en.macleans.web/economy","device":"DESKTOP"}},'_publisherJson': {"id":62,"businessAccountId":15,"canClosePopup":true,"closePopupDelay":0,"allowMobileLiveConversion":true,"soundMode":"mute","displayPostVideoImage":true,"displayFooter":true,"prebidOutstream":false,"wallType":"splitbox","locale":"en_CA","priceFloor":10.0,"configId":37,"texts":{},"data":{"showPlayerClaim":"true","trackViewability":"true","canReplayVideo":"false","showPlayerTimer":"true","fixHeightOpen":"false","claimText":null,"sliderMode":"false","postVideoImage":"","fullscreen":"false","fixHeight":"false","riseBoxSet":"false","postVideoType":"IMAGE","pauseOutOfScreen":"false","skyBoxSet":"false","postVideoImageClick":"","alwaysOnBoxSet":"false","OpenMKTimeOut":null,"vcpm":"true","isMutingClick":"false"}},'_confCapped': false,'_locale': 'en_CA','_projekktorPath': 'https://static.freeskreen.com/scm/player/20190717a/player-hb.js','_css': 'https://static.freeskreen.com/css/20190807132509/default/fsk.css','_path': 'https://static.freeskreen.com/gwt/20190807132509/advertisement','_extraCss': '.fsk_splitbox_37 { max-width: 620px }.fsk_splitbox_37.sb-opened { max-width: 620px }','_eligibility': '|120|1','_spConfId': '37', '_spMaxWidth': '', '_spMaxHeight': '16:9', '_spEligibilityPolicy': 'NONE', '_spAutoInsert': 'true', '_spFixHeight': 'false','_spSliderMode': 'false','_spFixHeightOpen': 'false', '_spCloseOnScreen': 'true', '_spType': 'splitbox','_spPosition': '','_spVerticalPosition': '', '_spHorizontalPosition': '','_spCornerMaxWidth': '','_spCornerMaxHeight': '','_spSkybox': {'header': '','isFixed': 'false','showClaim': 'false'},'_spInsertionConfig': [{'_spAutoInsertPolicy': 'INDEX', '_spAutoInsertParent': 'span[itemprop="articleBody"]', '_spAutoInsertMarkup': 'p', '_spAutoInsertIndex': '3', '_spAutoInsertLast': 'false','_spAllowMultiple': 'false','_spOn': {"data":[]},'_spOff': {"data":[]},'_spDivExtraCss': '.fsk_splitbox_37.sb-opened{margin-top:10px;max-width:620px;margin-bottom:10px;} .fsk_splitbox_37{max-width:620px;}'}], '_spIDs': [],'_spPassback': undefined,'_spDivExtraCss': '.fsk_splitbox_37 { max-width: 620px; margin:auto; } .fsk_splitbox_37.sb-opened {margin-top:15px;margin-bottom:15px; }','_spRatio': 0.5}};_fskadsparameters._listeners={};window._fskAddListener=function(event, callback) {if (typeof _fskadsparameters._listeners[event] == 'undefined') {_fskadsparameters._listeners[event]=[];}_fskadsparameters._listeners[event].push(callback);};_fskadsparameters['_server']=window.location.protocol + 'http://sb.freeskreen.com'.replace('http:', '').replace('https:', '');_fskadsparameters['_pid']='62';_fskadsparameters['_ip']='18.233.163.221';_fskadsparameters['_flc']='economy';_fskadsparameters['_slc']='';_fskadsparameters['_eligibleConfig']='';_fskadsparameters['_confId']='';_fskadsparameters['_wallType']='';_fskadsparameters['_featuredOffer']='';_fskadsparameters['_zindex']=10000; FSK_getExtraParameters=function(){var a={p_section:"",p_cust:"environment=slimcut"};var b=window.location.pathname;var c=b.split('/');if(c!=undefined&&c.length>1){p_cust_section=c[1];var d="&sponsId="+window.adUtility.sponsId+"§ion="+p_cust_section;for(var e in window.adutil_target){if(typeof e=='undefined')continue;d+='&'+e+'='+window.adutil_target[e];}a.p_cust+=d;a.p_cust=encodeURIComponent(a.p_cust);if(window.adUtility.adPath.substring(1)[0]!='/')a.p_section='/'+window.adUtility.adPath.substring(1);else a.p_section=window.adUtility.adPath.substring(1);}return a;};function FskAds(){var g=this;this.pageUrl=null;this.checked={};this.hasToRefresh=!1;this.listeners=[];this.destructors=[];this.messageHandlers={};this.fskEventLogger=function(a,b){if("undefined"!=typeof _FskAds._fskEventUrl&&a){var d=_FskAds._fskEventUrl.replace("__EVENT__",a).replace("__EXTRA__",b?b:""),c=document.createElement("IMG");c.src=d;c.className="fskevtpixel";c.style.display="none";document.body.appendChild(c)}};this.isMobile={Android:function(){return navigator.userAgent.match(/Android/i)}, BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},PlayBook:function(){return navigator.userAgent.match(/PlayBook/i)},iOS:function(){return navigator.userAgent.match(/iPad|iPod|iPhone/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return _FskAds.isMobile.Android()||_FskAds.isMobile.iOS()||_FskAds.isMobile.PlayBook()||_FskAds.isMobile.BlackBerry()||_FskAds.isMobile.Opera()||_FskAds.isMobile.Windows()}, iOSVersion:function(){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3]||0,10)]},UAMobile:function(){var a={};try{_FskAds.isMobile.Android()?(a.os="Android",a.osv=navigator.userAgent.match(/; Android (\d+(?:\.\d+)+)/i)[0].replace("; Android ","")):_FskAds.isMobile.iOS()?(a.os="iOS",a.osv=_FskAds.isMobile.iOSVersion(),a.make="Apple",a.model=navigator.userAgent.match(/iPhone/i)?"iPhone":navigator.userAgent.match(/iPad/i)?"iPad":navigator.userAgent.match(/iPod/i)? "Ipod":""):_FskAds.isMobile.Windows()&&(a.os="Windows")}catch(b){console.log(b)}return a}};this.readyList=[];this.readyEventHandlersInstalled=this.readyFired=!1;this.ready=function(){if(!_FskAds.readyFired){_FskAds.readyFired=!0;for(var a=0;a<_FskAds.readyList.length;a++)_FskAds.readyList[a].fn.call(g,_FskAds.readyList[a].ctx);_FskAds.readyList=[]}};this.readyListener=function(){"undefined"!=typeof fskLib&&fskLib?_FskAds.ready():setTimeout(function(){_FskAds.readyListener()},100)};this.docReady=function(a, b){_FskAds.readyFired?setTimeout(function(){a(b)},1):_FskAds.readyList.push({fn:a,ctx:b})};this.width=function(a){return window.getComputedStyle?parseInt(window.getComputedStyle(a,null).width.replace("px","")):a.offsetWidth};this.height=function(a){return window.getComputedStyle?parseInt(window.getComputedStyle(a,null).height.replace("px","")):a.offsetHeight};this.sliceIdx=-2;window.location.hostname.match(/\.com\.br$/)&&(this.sliceIdx=-3);this.domain="undefined"!=typeof _fskadsparameters._cDomain? _fskadsparameters._cDomain:location.host.split(".").slice(this.sliceIdx).join(".");-1==this.domain.indexOf(".")&&(this.domain=void 0);window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));if("undefined"!=typeof _fskadsparameters._ut){var h=new Date;h.setDate(h.getDate()+30);document.cookie="fsk_ut_"+_fskadsparameters._utid+"="+_fskadsparameters._ut+";expires="+h.toUTCString()+(this.domain?";domain=."+ this.domain:"")+";path=/"}this.getFSLC=function(){return"&flc="+encodeURIComponent(_fskadsparameters._flc)+"&slc="+encodeURIComponent(_fskadsparameters._slc)};this.getLocation=function(a){var b=document.createElement("a");b.href=a;b.origin||(b.origin=b.protocol+"//"+b.hostname);return b};this.ontouchmove=function(a){_FskAds.isOpened&&a.preventDefault()};this._addMessageHandler=function(a,b){"undefined"==typeof _FskAds.messageHandlers[a]&&(_FskAds.messageHandlers[a]=[]);_FskAds.messageHandlers[a].push(b)}; this.registerMessageHandler=function(a,b){if("string"==typeof a)_FskAds._addMessageHandler(a,b);else for(var d=0;dc.readyState||(200!==c.status?d&&d():4===c.readyState&&b(c))};c.open("GET",a,!0);c.withCredentials= !0;c.send("")};this.scrollTop=function(){window.scrollTo(0,0)};this.getCookie=function(a){var b=document.cookie,d=b.indexOf(" "+a+"=");-1==d&&(d=b.indexOf(a+"="));-1==d?b=null:(d=b.indexOf("=",d)+1,a=b.indexOf(";",d),-1==a&&(a=b.length),b=unescape(b.substring(d,a)));return b};this.updateCookies=function(a,b,d){d?document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT"+(this.domain?";domain=."+this.domain:"")+";path=/":(d=new Date,d.setDate(d.getDate()+30),document.cookie=a+"="+b+";expires="+d.toUTCString()+ (this.domain?";domain=."+this.domain:"")+";path=/")};this.parseGetParameters=function(a){var b=void 0,d=[];location.search.substr(1).split("&").forEach(function(c){d=c.split("=");d[0]===a&&(b=decodeURIComponent(d[1]))});return b};this.getStdQueries=function(a,b,d){if("undefined"==typeof b)return a;var c=a,c=c+(("?"==c[c.length-1]?"":"&")+"pid="+_fskadsparameters._pid),c=c+("&adID="+("undefined"!=typeof d?d:""));d=_FskAds.parseGetParameters("fsk_force_campaign");"undefined"!=typeof d&&(c+="&ffc="+ d);(d=_FskAds.getMetaContent("adtypeSB"))&&d.match(/force/i)&&(c+="&fp=1");if("undefined"!=typeof a){var e;"undefined"!=typeof b._spConfId?e=b._spConfId:"undefined"!=typeof b._sdConfId?e=b._sdConfId:"undefined"!=typeof b._ovConfId&&(e=b._ovConfId);c+="&confId="+e;null!=e&&"undefined"!=typeof _FskAds.getActivity&&(c+="&a="+btoa(e+"="+_FskAds.getActivity(e)+";"))}_fskadsparameters._ut&&(c+="&trackerId="+_fskadsparameters._ut);c+=_FskAds.getFSLC();if("undefined"!=typeof FSK_getExtraParameters)for(var f in FSK_getExtraParameters())a= f,b=FSK_getExtraParameters()[f],0!=a.indexOf("p_")&&(a="p_"+a),c+="&"+a+"="+encodeURIComponent(b);-1==c.indexOf("p_kw")&&(f=g.getMetaContent("fsk-kw"),""!=f&&(c+="&p_kw="+encodeURIComponent(f)));"undefined"!=typeof _FskAds.getVS&&_FskAds.getVS()&&(c+="&vs="+btoa(_FskAds.getVS()));return c};this.cleanup=function(){try{_FskAds.removeListeners([["message",_FskAds.fskMessageListener]])}catch(b){}for(var a=0;a<_FskAds.destructors;a++)try{_FskAds.destructors[a]()}catch(b){}};this.infiniteRefresh=function(){for(var a in _fskadsparameters._confs)if("undefined"!= typeof a&&"undefined"!=typeof _fskadsparameters._confs[a]._spIDs){for(var b=0;b<_fskadsparameters._confs[a]._spIDs.length;b++)document.getElementById(_fskadsparameters._confs[a]._spIDs[b])||(_fskadsparameters._confs[a][_fskadsparameters._confs[a]._spIDs[b]]={});_fskadsparameters._confs[a]._spIDs=[]}_FskAds.scanSplitBox()};this.fireEvent=function(a){if("undefined"!=typeof _fskadsparameters._listeners[a])for(var b=0;b<_fskadsparameters._listeners[a].length;b++)_fskadsparameters._listeners[a][b]();if("undefined"!= typeof window._fsklisteners&&"undefined"!=typeof window._fsklisteners[a])for(b=0;bd||fm);if(!isVisible)return e?f=b,full:isNaN(visible_full)&&0==_FskAds.height(a)?!0:visible_full>=b}};this.visible=function(a){return 0b?a.style.height=c+"px":(a.style.height=b,clearInterval(f))},40)};this.compatibilityWrapWidth=function(a,b){var d=a.offsetWidth,c=d,e=(d-b)/20;a.style.overflow="hidden";var f=setInterval(function(){c-= e;c>b?a.style.width=c+"px":(a.style.width=b,clearInterval(f))},40)};this.compatibilitySlideDown=function(a,b){var d=0,c=b/20;a.style.overflow="hidden";var e=setInterval(function(){d+=c;d=parseInt(f[1])?(e[1]=d,e[2]=1):""!=f[1]&&""!=f[2]&&d-parseInt(e[1])b;b++)a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return a};FskAds.prototype.getSplitBoxDivClass=function(a){return"fsk_splitbox_"+a._spConfId};FskAds.prototype.getSplitBoxDivId=function(a){return"false"!=a._spAllowMultiple||"undefined"!=typeof window._FskInfiniteScroll&&window._FskInfiniteScroll?"fsk_splitbox_"+_FskAds.genId():"fsk_splitbox_"+a._spConfId}; FskAds.prototype.getAllSplitBoxDiv=function(a){if("undefined"==typeof a._spIDs)return[];for(var b=[],c=0;c=a.sbHeight?_FskAds.slideUp(b,a.sbHeight):_FskAds.slideDown(b,a.sbHeight)}; FskAds.prototype.buildPassbackIframe=function(a,b,c,d,f){var e=_FskAds.width(a),g="#"+a.id+"_passback{display: block; overflow:hidden; padding: 0; height: "+c+"px; } #"+a.id+"_passback_iframe{ transform-origin: 0 0; }#"+a.id+"_passback div{margin: auto;}";if("boolean"==typeof d&&d||d&&"true"==d)d=parseInt(e)/b,g+="#"+a.id+"_passback_iframe{ transform: scale("+d+"); }";_FskAds.appendStyle(g);g=document.createElement("iframe");g.src="about:blank";g.id=a.id+"_passback_iframe";g.style.marginLeft="auto"; g.style.marginRight="auto";g.style.marginTop="auto";g.style.marginBottom="auto";g.style.display="block";g.style.width=b.toString()+"px";g.style.height=c.toString()+"px";g.scrolling="no";g.style.borderStyle="none";b=document.createElement("DIV");b.id=a.id+"_passback";f?(b.style.position="relative",b.style.top="50%",b.style.marginTop="-"+parseInt(c/2)+"px",a.appendChild(b)):_FskAds.insertAfter(b,a);b.appendChild(g);return g}; FskAds.prototype.handlePassback=function(a,b,c){c=b?a[b.id]:a[c];if("undefined"==typeof c._hasImpression||!c._hasImpression)if("undefined"==typeof c._hasPassback||!c._hasPassback)if(a._state=-1,_FskAds.checkState(),"undefined"!=typeof a._spPassback||0!=a.passbacks.length)return c._hasPassback=!0,0body { margin: 0px; }');g.document.write('