;/*7P1RCD3H9R0M*/var I10C;var I11C;(function(I10C){ I10C.ScriptBegin || (I10C.ScriptBegin = function(){}); I10C.ScriptEnd || (I10C.ScriptEnd = function(){});I10C.PostMessage || (I10C.PostMessage = function(){ return this.postMessage.apply(this, arguments); });I10C.Location || (I10C.Location = function i10cloc(ba$e, isWrite, op){ var locat1onPresent = Object.getOwnPropertyNames(ba$e).indexOf('locat1on') !== -1; return (!isWrite) ? ( locat1onPresent ? ba$e.locat1on : (ba$e.location || ba$e.locat1on)) : (locat1onPresent ? {set href(v) {ba$e.locat1on.href = v;}, get href() {return i10cloc(ba$e,false,op);}} : {set href(v) {ba$e.location = v;}, get href() {return i10cloc(ba$e,false,op);}});}); I11C.PreLocationContextProxy || (I11C.PreLocationContextProxy = function i10cPreLocContext(ba$e) { return ba$e;});})(I11C||I10C|| (I11C = {}));(I11C || I10C).ScriptBegin();function ManageNewsletters (id) { this.params = { defaultCategoryId: id }; } ManageNewsletters.prototype.popup = function () { mg2WidgetAPI.openNewsletter(this.params); } ManageNewsletters.prototype.popup = function (params) { mg2WidgetAPI.openNewsletter(params); } ManageNewsletters.prototype.checkHash = function () { if (locat1on.hash == "#managenewsletters") mg2WidgetAPI.openNewsletter(this.params); } ManageNewsletters.prototype.enableFooterPopup = function () { params = this.params; jQuery(".footer-links .subnav a[href='#managenewsletters']").on('click', function() {ManageNewsletters.prototype.popup(params); return false;}); } ;(I11C || I10C).ScriptEnd();