mmcore.SetCookie('mmid','123414662|AwAAAAo4WtZU/gwAAA==',365,1);mmcore.SetCookie('pd','123414662|AwAAAAo4WtZU/gwAAA==',365);mmcore.SetCookie('srv','nycvwcgeu02',365);(function(){if(typeof(mmcore.GenInfo)!='object')mmcore.GenInfo={};mmcore.EH=function(e){var s=e.message+'\r\n';if(!window.mm_error)window.mm_error=s;else window.mm_error+=s;};
mmcore.GenInfo['T37_AnonBarrier']={'t37_anonb_a':'Default'};
var tc={'T37_AnonB_A':{'h':[],'c':[],'l':[]}}
try{
// Maxymiser Core - Attach Style v0.0.0 http://gitlab.maxymiser.net/gts/mmcore-attach-style/tree/master
(function(){'use strict';mmcore.AttachStyle=function(){var c={STYLE_ID:"mm-style",createStyle:function(){var b=document.createElement("style");b.type="text/css";return b},appendCssToStyle:function(){var b,a;"styleSheet"in c.createStyle()?(b=function(a){return a.styleSheet.cssText},a=function(a,b){a.styleSheet.cssText=b}):(b=function(a){return a.innerHTML},a=function(a,b){a.innerHTML=b});return(c.appendCssToStyle=function(c,d){a(d,b(d)+c)}).apply(this,arguments)}};return function(b){var a=document.getElementById(c.STYLE_ID);a||(a=c.createStyle(),a.id=c.STYLE_ID,function(){this.parentNode.insertBefore(a,this)}.call(document.getElementsByTagName("head")[0].lastChild));c.appendCssToStyle(b,a)}}()})();
}catch(err){mmcore.EH(err);}
try{
/**
 * 11.09.2014
 * Track all campaigns automatically
 * A. Tytskiy
 *
 * Dependencies: [Plugin_Essentials.js:mmcore.waitFor,
 * 				  Plugin_Helpers.js:mmcore.helpers]
 */
(function (mmcore) {
	'use strict';

	var TIMEOUT = 4000;
	var track = function () {

		mmcore.ijento = mmcore.ijento || {};

		mmcore.AddDocLoadHandler(function () {
			if (!mmcore.GenInfo || !mmcore.waitFor) {
				return;
			}

			if (mmcore.helpers && window.si && window.si.sendAdditionalTracer) {
				mmcore.helpers.iJentoTag();
			} else {
				mmcore
					.waitFor(function () {
						return mmcore.helpers && window.si && window.si.sendAdditionalTracer;
					}, { isNotStoppedOnDocumentReadiness: true, timeout: TIMEOUT })
					.done(function () {
						mmcore.helpers.iJentoTag();
					});
			}
		});
	};

	track();
	track = null;
}(window.mmcore));

}catch(err){mmcore.EH(err);}
try{
;(function T37_ActBarrierClicks() {
	setTimeout(function () {
		var track_action_BarrierClicks = function (attr) {
			mmcore.$Action('T37_BarrierClicks', 1, attr);
			mmcore.SetCookie('mm_barr_click', attr, 0, 1);
		}
		
		jQuery('.mm-t37-newspaper .mm-t37-tariff-btn a').click(function () {
			track_action_BarrierClicks('NewsPrem');
		});
		jQuery('.mm-t37-premium .mm-t37-tariff-btn a').click(function () {
			track_action_BarrierClicks('PremDig');
		});
		jQuery('.mm-t37-standart .mm-t37-tariff-btn a').click(function () {
			track_action_BarrierClicks('StanDig');
		});
		jQuery('.mm-t37-digital .mm-t37-tariff-btn a').click(function () {
			track_action_BarrierClicks('Trial');
		});
		jQuery('.mm_t37_sign_in a, .barrier-dialogue__control a.barrier-link').click(function (e) {
			e.preventDefault();
			var th = this.href;
			mmcore._async = true;
			mmcore.SetAction('T37_BarrierClicks', '1', 'SignIn');
			mmcore.SetPageID('mmevents');
			mmcore.CGRequest(function(){
				location.href = th;
			});
		});
		jQuery('.mm-t37-tariff-description a').click(function () {
			track_action_BarrierClicks('Learn');
		});
		
		
		var footer_lnks = jQuery('.mm-t37-footer-items a');
		footer_lnks.eq(0).add(jQuery('#corporate-signup-link')).click(function () {
			track_action_BarrierClicks('Corporate');
		});
		footer_lnks.eq(1).add(jQuery('#newspaper-only-signup-link')).click(function () {
			track_action_BarrierClicks('Newspaper');
		});
		footer_lnks.eq(2).click(function () {
			track_action_BarrierClicks('App');
		});
		
		// default only		
		var arr_attrs = ['NewsPrem', 'PremDig', 'StanDig', 'Trial'];
		var bind_action_for_selection = function (selector) {
			selector.each(function (index) {
				jQuery(this).find('a').click(function (e) {
					track_action_BarrierClicks(arr_attrs[index]);
					mmcore.SetCookie('mm_barr_click', arr_attrs[index], 0, 1);
				});
			});
		};
		bind_action_for_selection(jQuery('.barrier-matrix .barrier-matrix__header.barrier-matrix__toggle'));
		bind_action_for_selection(jQuery('.barrier-matrix tr:last .barrier-matrix__cell.barrier-matrix__toggle'));
		
		
		
		
		// for action T37_SubsbyViews
		var count_viwes_barrier = mmcore.GetCookie('mm_t37_count_views', 1) * 1;
		count_viwes_barrier += 1;
		mmcore.SetCookie('mm_t37_count_views', count_viwes_barrier, 0, 1);
		
	}, 0);
})();

}catch(err){mmcore.EH(err);}
mmcore._RenderOnLoad();if(typeof mmcore._callback=='object'&&typeof mmcore._callback[5]=='function'){try{mmcore._callback[5]();}catch(err){mmcore.EH(err);}
finally{mmcore._callback[5]=null;}}
})();