<
script>
var banner = [];
var now = Math.round (new Date (). getTime () / 1000);
var bannerok = new Object ();
for (var area in banner)
{
bannerok[zona] = new Array ();
for (i = 0; i < banner[zona].length; i++)
{
var ok = 1;
if (banner[zona][i][‘scadenza’]>0 && banner[zona][i][‘scadenza’]<=now) ok = 0;
if (banner[zona][i][‘partenza’]!=0 && banner[zona][i][‘partenza’]>now) ok = 0;
if (typeof action! == ‘undefined’ && action! == null) {
if (banner[zona][i][‘pagine’] == ‘! index’ && action == ‘index’) ok = 0;
else if (banner[zona][i][‘pagine’] == ‘index’ && action! = ‘index’) ok = 0;
}
if (ok == 1) bannerok[zona].push (banner[zona][i]);
}
bannerok[zona].sort (function () {return 0.5 – Math.random ()});
}
banner = bannerok;
var banner_url = ‘https://net-storage.tccstatic.com’;
var banner_path = ‘/storage/milannews.it/banner/’
function asyncLoad ()
{
if (action == ‘read’ && TCCCookieConsent) {
var scripts = [
“https://connect.facebook.net/it_IT/all.js#xfbml=1”,
];
(function (array) {
for (var i = 0, len = array.length; i <len; i ++) {
var elem = document.createElement (‘script’);
elem.type = ‘text / javascript’;
elem.async = true;
elem.src = array[i];
var s = document.getElementsByTagName (‘script’)[0];
s.parentNode.insertBefore (elem, s);
}
}) (Scripts);
}
setTCCCookieConsent ();
}
if (window.addEventListener) window.addEventListener (“load”, asyncLoad, false);
else if (window.attachEvent) window.attachEvent (“onload”, asyncLoad);
else window.onload = asyncLoad;
function resizeStickyContainers () {
var stickyFill = document.getElementsByClassName (‘sticky-fill’);
for (i = 0; i <stickyFill.length; ++ i) stickyFill[i].style.height = null;
for (i = 0; i <stickyFill.length; ++ i)
{
var height = stickyFill[i].parentElement.offsetHeight-stickyFill[i].offsetTop;
height = Math.max (height, stickyFill[i].offsetHeight);
stickyFill[i].style.height = height + ‘px’;
}
}
document.addEventListener (‘DOMContentLoaded’, resizeStickyContainers, false);
// layout_headjs
function utf8_decode (e) {for (var n = “”, r = 0; r <e.length; r ++) {var t = e.charCodeAt (r); t <128? n + = String.fromCharCode