');
StatBanner('btw', bl);
} else {
show_ntv_ads(wrapperElement, bl);
}
}
}
function mailru_ads(data, el) {
if(data && data.length > 0) {
var ban_location = $(el).attr("ntv-loc");
var bl = parseInt(ban_location);
if(bl == 3 && typeof b240_callback !== 'undefined') {
try { window[b240_callback](); } catch(e) {}
}
StatBanner('all', bl);
}
}
(MRGtag = window.MRGtag || []).push({
onNoAds:function(resp) { mailru_noAds(resp); },
onAdsLoaded: function(data, el){ mailru_ads(data, el); }, iframeMode: false
});
function StatBanner(type, place) {
if (type == 'all') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banners_showed" });
}
if (type == 'noAds') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banners_mailru_error" });
}
if (type == 'noAds' && place == '1') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_error_top" });
try {
yaCounter7414054.reachGoal('banner_error_top');
} catch (e) {}
}
if (type == 'noAds' && place == '2') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_error_btm" });
try {
yaCounter7414054.reachGoal('banner_error_btm');
} catch (e) {}
}
if (type == 'noAds' && place == '3') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_error_type3" });
try {
yaCounter7414054.reachGoal('banner_error_type3');
} catch (e) {}
}
if (type == 'noAds' && place == '4') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_error_type4" });
try {
yaCounter7414054.reachGoal('banner_error_type4');
} catch (e) {}
}
if (type == 'ntv') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banners_ntv_showed" });
}
if (type == 'btw') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banners_btw_showed" });
try {
yaCounter7414054.reachGoal('banners_btw_showed');
} catch (e) {}
}
if (type == 'nobtw') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banners_btw_error" });
try {
yaCounter7414054.reachGoal('banners_btw_error');
} catch (e) {}
}
if (type == 'all' && place == '1') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_top" });
try {
yaCounter7414054.reachGoal('banner_show_top');
} catch (e) {}
}
if (type == 'all' && place == '2') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_btm" });
try {
yaCounter7414054.reachGoal('banner_show_btm');
} catch (e) {}
}
if (type == 'all' && place == '3') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_type3" });
try {
yaCounter7414054.reachGoal('banner_show_type3');
} catch (e) {}
}
if (type == 'all' && place == '4') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_type4" });
try {
yaCounter7414054.reachGoal('banner_show_type4');
} catch (e) {}
}
if (type == 'ntv' && place == '1') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_top_ntv" });
}
if (type == 'ntv' && place == '2') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_btm_ntv" });
}
if (type == 'ntv' && place == '3') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_type3_ntv" });
}
if (type == 'ntv' && place == '4') {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "banner_show_type4_ntv" });
}
}
$(function() {
var o = document.createElement('vid' + 'eo');
if(isFInst && (!o || !o.canPlayType || !o.canPlayType('video/mp4; codecs="avc1.640029, mp4a.40.2"'))) {
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({ id: "916045", type: "reachGoal", goal: "html5_media_support" });
try {
yaCounter7414054.reachGoal('html5_media_support');
} catch (e) {}
}
});
// -->
Комментарии