var y5_isTransform = true; function y5_transformValue(sValue, aValues) { for (var i = 0; i < aValues.length; i++) { if (sValue == aValues[i][0]) sValue = aValues[i][1]; } return sValue; } function y5_transformParams() { yandex_partner_id = 2771; yandex_stat_id = ''; yandex_site_charset = ''; yandex_font_size = (window.yandex_ad_fontSize) ? parseFloat(yandex_ad_fontSize) : 0; yandex_font_family = (window.yandex_ad_fontFamily) ? yandex_ad_fontFamily.toString() : ''; yandex_ad_format = 'compatibility'; var aBorderTypes = [['0', 'block'], ['1', 'ad']]; var aDirectTypes = [['0', 'vertical'], ['1', 'flat'], ['2', 'horizontal']]; var aMarketTypes = [['0', 'vertical'], ['2', 'horizontal']]; yandex_direct_type = y5_transformValue('', aDirectTypes); yandex_direct_border_type = (window.yandex_direct_showType) ? y5_transformValue(yandex_direct_showType.toString(), aBorderTypes) : ''; yandex_direct_limit = ''; yandex_direct_bg_color = (window.yandex_direct_BgColor) ? yandex_direct_BgColor.toString() : ''; yandex_direct_border_color = (window.yandex_direct_BorderColor) ? yandex_direct_BorderColor.toString() : ''; yandex_direct_header_bg_color = (window.yandex_direct_headerBgColor) ? yandex_direct_headerBgColor.toString() : ''; yandex_direct_title_color = (window.yandex_direct_titleColor) ? yandex_direct_titleColor.toString() : ''; yandex_direct_text_color = (window.yandex_direct_fontColor) ? yandex_direct_fontColor.toString() : ''; yandex_direct_url_color = (window.yandex_direct_siteurlColor) ? yandex_direct_siteurlColor.toString() : ''; yandex_direct_all_color = (window.yandex_direct_linkColor) ? yandex_direct_linkColor.toString() : ''; yandex_direct_hover_color = (window.yandex_direct_hoverColor) ? yandex_direct_hoverColor.toString() : ''; yandex_market_type = y5_transformValue('', aMarketTypes); yandex_market_border_type = (window.yandex_market_showType) ? y5_transformValue(yandex_market_showType.toString(), aBorderTypes) : ''; yandex_market_limit = ''; yandex_market_bg_color = (window.yandex_market_BgColor) ? yandex_market_BgColor.toString() : ''; yandex_market_border_color = (window.yandex_market_BorderColor) ? yandex_market_BorderColor.toString() : ''; yandex_market_header_bg_color = (window.yandex_market_headerBgColor) ? yandex_market_headerBgColor.toString() : ''; yandex_market_title_color = (window.yandex_market_offerlinkColor) ? yandex_market_offerlinkColor.toString() : ''; yandex_market_text_color = (window.yandex_market_fontColor) ? yandex_market_fontColor.toString() : ''; yandex_market_category_color = (window.yandex_market_catColor) ? yandex_market_catColor.toString() : ''; yandex_market_all_color = (window.yandex_market_linkColor) ? yandex_market_linkColor.toString() : ''; yandex_market_hover_color = (window.yandex_market_hoverColor) ? yandex_market_hoverColor.toString() : ''; } y5_transformParams(); document.write('');