{
var linkElement = document.createElement('link');
linkElement.setAttribute('rel', 'stylesheet');
linkElement.setAttribute('type', 'text/css');
linkElement.setAttribute('href', "//news.mediametrics.ru/css/w.css");
document.head.appendChild(linkElement);
function VeiwCode(Data, masView, bn) {
var S='<div style="width:100%;display: flex; flex-wrap: wrap; align-items: center; justify-content: center;" onmouseover="blockMouseOver'+bn+'()" onmouseout="blockMouseOver'+bn+'()">';
for(var i=0; i<Data.news.length; i++) {
masView[i]=0;
S+='<div class="article_mm" id="target'+bn+'_'+i+'" style="background-image: url(\''+Data.news[i].image+'\');cursor:pointer;" onclick="winOpen(\''+Data.news[i].linkclick+'\')">';
S+='<div class="mask_mm"></div>';
S+='<div class="title_mm';
if (Data.news[i].title.length>56) S+=' font_sm_mm';
S+='">';
S+=Data.news[i].title;
S+='</div>';
S+='</div>';
}
S+='</div>';
var e = document.getElementById('DivID'); if (e) {e.innerHTML = S; e.id = 'DivIDx'+bn;}
}
var Data26935 = {
"status":1,
"blockview":"//news.mediametrics.ru/cgi-bin/v.fcgi?ac=v&m=gif&t=MTYyNDYwNTU2Ni4yNjkzNTo0MTg%3d",
"news":[
{"description":"",
"image":"//news.mediametrics.ru/uploads/1624475382blob.jpg",
"imageW":"//news.mediametrics.ru/uploads/1624475382blobw.jpg",
"imageW2":"//news.mediametrics.ru/uploads/1624475382blobw2.jpg",
"linkview":"//news.mediametrics.ru/cgi-bin/v.fcgi?ac=v&m=gif&t=MTYyNDYwNTU2Ni4yNjkzNjo0MTk%3d",
"linkclick":"//news.mediametrics.ru/cgi-bin/c.fcgi?ac=c&t=MTYyNDYwNTU2Ni4yNjkzNjo0MTk%3d&u=640aHR0cHM6Ly9tZWRpYW1ldHJpY3MucnUvcmF0aW5nL3J1L2RheS5odG1sP2FydGljbGU9MjIxMjY3NzA2",
"title":"\"Кому нельзя ставить прививку\""},
{"description":"",
"image":"//news.mediametrics.ru/uploads/1624476716blob.jpg",
"imageW":"//news.mediametrics.ru/uploads/1624476716blobw.jpg",
"imageW2":"//news.mediametrics.ru/uploads/1624476716blobw2.jpg",
"linkview":"//news.mediametrics.ru/cgi-bin/v.fcgi?ac=v&m=gif&t=MTYyNDYwNTU2Ni4yNjkzNzo0MjA%3d",
"linkclick":"//news.mediametrics.ru/cgi-bin/c.fcgi?ac=c&t=MTYyNDYwNTU2Ni4yNjkzNzo0MjA%3d&u=638aHR0cHM6Ly9tZWRpYW1ldHJpY3MucnUvcmF0aW5nL3J1L2RheS5odG1sP2FydGljbGU9MjIxMjU3NzUy",
"title":" Японцы предупредили Путина: «Россия, не мешай и не путайся» "},
{"description":"",
"image":"//news.mediametrics.ru/uploads/1624476815blob.jpg",
"imageW":"//news.mediametrics.ru/uploads/1624476815blobw.jpg",
"imageW2":"//news.mediametrics.ru/uploads/1624476815blobw2.jpg",
"linkview":"//news.mediametrics.ru/cgi-bin/v.fcgi?ac=v&m=gif&t=MTYyNDYwNTU2Ni4yNjkzODo0MjE%3d",
"linkclick":"//news.mediametrics.ru/cgi-bin/c.fcgi?ac=c&t=MTYyNDYwNTU2Ni4yNjkzODo0MjE%3d&u=369aHR0cHM6Ly9tZWRpYW1ldHJpY3MucnUvcmF0aW5nL3J1L2RheS5odG1sP2FydGljbGU9MjIwOTM5NDEw",
"title":"К чему ведет отказ от вакцинации против COVID-19"},
{"description":"",
"image":"//news.mediametrics.ru/uploads/1624475793blob.jpg",
"imageW":"//news.mediametrics.ru/uploads/1624475793blobw.jpg",
"imageW2":"//news.mediametrics.ru/uploads/1624475793blobw2.jpg",
"linkview":"//news.mediametrics.ru/cgi-bin/v.fcgi?ac=v&m=gif&t=MTYyNDYwNTU2Ni4yNjkzOTo0MjI%3d",
"linkclick":"//news.mediametrics.ru/cgi-bin/c.fcgi?ac=c&t=MTYyNDYwNTU2Ni4yNjkzOTo0MjI%3d&u=977aHR0cHM6Ly9tZWRpYW1ldHJpY3MucnUvcmF0aW5nL3J1L2RheS5odG1sP2FydGljbGU9MjIwNjUxODY0",
"title":"В Германии заявили об усиленной подготовке к войне с Россией: СМИ "}
]
}
var masView26935=[];
var Delay26935=0;
var countV26935=0;
function getGIF26935(url) {
var img = new Image();
img.onload = function() {
countV26935++;
//	console.log('GIF load OK 26935 '+countV26935+'\n');
}
img.src = url;
}
function winOpen(url) {return window.open(url);}
function checkDiv26935(i) {
if (masView26935[i]==-1) {
return 0;
}
var target = document.getElementById('target26935_'+i);
if (!target) {
masView26935[i]=-1;
return 0;
}
var h = (target.getBoundingClientRect().bottom-target.getBoundingClientRect().top)/5;
var w = (target.getBoundingClientRect().right-target.getBoundingClientRect().left)/5;
var targetPosition = {
top: window.pageYOffset + target.getBoundingClientRect().top + h,
left: window.pageXOffset + target.getBoundingClientRect().left + w,
right: window.pageXOffset + target.getBoundingClientRect().right - w,
bottom: window.pageYOffset + target.getBoundingClientRect().bottom - h
};
var windowPosition = {
top: window.pageYOffset,
left: window.pageXOffset,
right: window.pageXOffset + window.innerWidth,
bottom: window.pageYOffset + window.innerHeight
};
if (targetPosition.bottom <= windowPosition.bottom &&
targetPosition.top >= windowPosition.top &&
targetPosition.right <= windowPosition.right &&
targetPosition.left >= windowPosition.left) {
if (masView26935[i]>=5) {
Delay26935 += 25;
setTimeout('getGIF26935("'+Data26935.news[i].linkview+'")', Delay26935);
masView26935[i]=-1;
return 0;
}
masView26935[i]++;
} else {
masView26935[i]=0;
}
return 1;
}
var MouseOver26935=0;
function blockMouseOver26935() {
if (MouseOver26935) return true;
MouseOver26935=1;
getGIF26935(Data26935.blockview);
}
function Visible26935() {
var n=0;
Delay26935=0;
for(var i=0; i<Data26935.news.length; i++) {
if (checkDiv26935(i)>0) n++;
}
if (n>0) setTimeout(Visible26935, 500);
}
if (Data26935.status==1) {
VeiwCode(Data26935, masView26935, '26935');
setTimeout(Visible26935, 250);
}
}
