/*
* Note: Compatibility sync and async embed codes;
* Use unload function version 1.3
*/
(function() {
    var bannerFunction = (function() {
        var random1_99656587 = ADFOX.UNLOAD.random1_99656587;
        document.getElementById('AdFox_banner_'+random1_99656587).innerHTML = '<style>div#yandex_ad_hor_311951 {margin-right: 60px;}</style><style></style><style></style><style></style><div id="yandex_ad_hor_311951"></div>';
//additional styles

/*var customStyles=document.createElement('style');
customStyles.innerHTML='';
document.getElementById('AdFox_banner_'+random1_99656587).appendChild(customStyles); */

//additional styles end
        (function(w, d, n, s, t) {
            w[n] = w[n] || [];
            w[n].push(function() {
                Ya.Direct.insertInto(5597, "yandex_ad_hor_311951", {
                    stat_id: 18, ad_format: "direct", type: "posterHorizontal", border_type: "block",limit: 3, title_font_size: 3, border_radius: false, links_underline: false, site_bg_color: "FFFFFF", border_color: "F0F0F0", title_color: "00A3D9", url_color: "666666", text_color: "202C38", hover_color: "0086B3", sitelinks_color: "0000CC", favicon: true, no_sitelinks: true                
                });
            });
            t = d.getElementsByTagName("script")[0];
            s = d.createElement("script");
            s.src = "//an.yandex.ru/system/context.js";
            s.type = "text/javascript";
            s.async = true;
            t.parentNode.insertBefore(s, t);
        })(window, document, "yandex_context_callbacks");
    }).toString();

    (function(){
        var win = null,
            random1 = setRandom1();
        if (311951) {
            win = parent;
            setTimeout(function(){document.close();},100);
            bannerFunction = bannerFunction.replace(/document.write/mg, '//document.write');
        } else {
            win = self;
            document.write('<div id="AdFox_banner_' + random1 + '"></div>');
        }
        win.ADFOX = win.ADFOX || {};
        var ADFOX = win.ADFOX;
        ADFOX.UNLOAD = ADFOX.UNLOAD || {};
        ADFOX.UNLOAD.random1_99656587 = random1;
        bannerFunction = bannerFunction.replace(/\\/g, '');
        win.eval(bannerFunction.replace(/^.*{([\s\S]*)}.*$/mg, '$1'));
if('http://banners.adfox.ru/transparent.gif'){
if (typeof(pr) == 'undefined') { var pr = Math.floor(Math.random() * 1000000); };
if (typeof(document.location) != 'undefined') { AdFoxDL = document.location; } else { AdFoxDL = ''; };
var tracking_url_99656587 = 'http://banners.adfox.ru/transparent.gif' + '&dl=' + AdFoxDL + '&pr=' + pr + '&pdetag=0';
var AdFoxEvent_99656587 = new Image();
if(tracking_url_99656587 != '') {
        AdFoxEvent_99656587.src = tracking_url_99656587;
	    tracking_url_99656587 = '';  
}
}

    })()

    function setRandom1() {
        if (311951) {
            return 311951;
        } else {
            return Math.floor(Math.random() * 1000000);
        }
    }
})();