var Products = [{"n":"5-htp", "t":"5-HTP", "pos":1},{"n":"ala", "t":"Альфа-липоевая кислота", "pos":2},{"n":"accessories", "t":"Аксессуары", "pos":3},{"n":"amino-acids", "t":"Аминокислоты комплексные", "pos":4},{"n":"arginine", "t":"Аргинин", "pos":5},{"n":"bars-and-snacks", "t":"Батончики и снеки", "pos":6},{"n":"beta-alanine", "t":"Бета-аланин", "pos":7},{"n":"bcaa", "t":"BCAA", "pos":8},{"n":"vitamins-minerals-herbs", "t":"Витамины, минералы, травы", "pos":9},{"n":"gaba", "t":"GABA", "pos":10},{"n":"gainers", "t":"Гейнеры", "pos":11},{"n":"ginkgo-biloba", "t":"Гинкго билоба", "pos":12},{"n":"glucosamine", "t":"Глюкозамин", "pos":13},{"n":"glutamine", "t":"Глютамин", "pos":14},{"n":"tan", "t":"Грим", "pos":15},{"n":"guarana", "t":"Гуарана", "pos":16},{"n":"DMAE", "t":"DMAE", "pos":17},{"n":"fatburners", "t":"Жиросжигатели", "pos":18},{"n":"magazines", "t":"Журналы", "pos":19},{"n":"green-tea-extract", "t":"Зеленый чай экстракт", "pos":20},{"n":"inosine", "t":"Инозин", "pos":21},{"n":"yohimbe", "t":"Йохимбе", "pos":22},{"n":"calcium", "t":"Кальций", "pos":23},{"n":"carnitine", "t":"Карнитин", "pos":24},{"n":"collagen", "t":"Коллаген", "pos":25},{"n":"caffeine", "t":"Кофеин", "pos":26},{"n":"containers", "t":"Контейнеры", "pos":27},{"n":"q10", "t":"Коэнзим Q10", "pos":28},{"n":"creatine", "t":"Креатин", "pos":29},{"n":"creams-gels-sprays", "t":"Крема, гели, спреи", "pos":30},{"n":"maka", "t":"Мака", "pos":31},{"n":"magnesia", "t":"Магнезия", "pos":32},{"n":"melatonin", "t":"Мелатонин", "pos":33},{"n":"msm", "t":"MSM", "pos":34},{"n":"napitki", "t":"Напитки", "pos":35},{"n":"intra-workout-products", "t":"Натренировочные комплексы", "pos":36},{"n":"omega-3", "t":"Омега 3", "pos":37},{"n":"nitric-oxide", "t":"Оксид азота", "pos":38},{"n":"omega-3-6-9", "t":"Омега 3-6-9", "pos":39},{"n":"belts", "t":"Пояса", "pos":40},{"n":"gloves", "t":"Перчатки", "pos":41},{"n":"post-workout-products", "t":"Посттренировочные комплексы", "pos":42},{"n":"pre-workout-products", "t":"Предтренировочные комплексы", "pos":43},{"n":"protein", "t":"Протеин", "pos":44},{"n":"bags", "t":"Сумки", "pos":45},{"n":"cla", "t":"CLA", "pos":46},{"n":"saw-palmetto", "t":"Со пальметто", "pos":47},{"n":"products-for-joints-and-ligaments", "t":"Суставы и связки", "pos":48},{"n":"pillbox", "t":"Таблетницы", "pos":49},{"n":"taurine", "t":"Таурин", "pos":50},{"n":"testosterone-boosters", "t":"Тестостероновые бустеры", "pos":51},{"n":"tribulus", "t":"Трибулус", "pos":52},{"n":"carbohydrates", "t":"Углеводы", "pos":53},{"n":"chitosan", "t":"Хитозан", "pos":54},{"n":"chondroitin", "t":"Хондроитин", "pos":55},{"n":"zma", "t":"ZMA", "pos":56},{"n":"citrulline", "t":"Цитруллин", "pos":57},{"n":"shakers-and-bottles", "t":"Шейкеры и бутылки", "pos":58},{"n":"equipment", "t":"Экипировка", "pos":59},{"n":"energy", "t":"Энергетики", "pos":60}];var Producers = [{"n":"abb", "t":"ABB Performance"},{"n":"academy-t", "t":"Academy-T"},{"n":"ans-performance", "t":"ANS Performance"},{"n":"aps", "t":"APS"},{"n":"axis-labs", "t":"Axis Labs"},{"n":"bbr", "t":"BBR"},{"n":"Be-First", "t":"Be First"},{"n":"BioTechUSA", "t":"BioTechUSA"},{"n":"blackstone-labs", "t":"Blackstone Labs"},{"n":"blenderbottle", "t":"BlenderBottle"},{"n":"BombBar", "t":"BombBar"},{"n":"bpi-sports", "t":"BPI Sports"},{"n":"bsn", "t":"BSN"},{"n":"Carnipure", "t":"Carnipure"},{"n":"cellucor", "t":"Cellucor"},{"n":"Cloma-Pharma", "t":"Cloma Pharma"},{"n":"cobra-labs", "t":"Cobra Labs (JNX Sports)"},{"n":"cytosport", "t":"CytoSport"},{"n":"Dedicated", "t":"Dedicated"},{"n":"dymatize", "t":"Dymatize"},{"n":"dynamic", "t":"Dynamic"},{"n":"endevr", "t":"Endevr"},{"n":"europharmsport", "t":"EuroPharmSport"},{"n":"Fit-Kit", "t":"Fit Kit"},{"n":"FitaFlex", "t":"FitaFlex"},{"n":"FIT-Rx", "t":"FIT-Rx"},{"n":"forward-foods", "t":"Forward Foods"},{"n":"g-e-o-n-", "t":"G.E.O.N."},{"n":"Gaspari-Nutrition", "t":"Gaspari Nutrition"},{"n":"GENONE", "t":"Genone"},{"n":"grenade", "t":"Grenade"},{"n":"hardlabz", "t":"Hardlabz"},{"n":"hedenkamp", "t":"Hedenkamp"},{"n":"hi-tech-pharmaceuticals", "t":"Hi-Tech Pharmaceuticals"},{"n":"inter-s", "t":"Inter-S"},{"n":"inzer", "t":"Inzer"},{"n":"Jan-Tana", "t":"Jan Tana"},{"n":"jym", "t":"JYM"},{"n":"labrada-nutrition", "t":"Labrada Nutrition"},{"n":"Liquid-Liquid", "t":"Liquid & Liquid"},{"n":"Master", "t":"Master"},{"n":"Maxler", "t":"Maxler"},{"n":"mhp", "t":"MHP"},{"n":"Modern-Sports-Nutrition", "t":"Modern Sports Nutrition"},{"n":"multipower", "t":"Multipower"},{"n":"musclemeds", "t":"MuscleMeds"},{"n":"musclepharm", "t":"MusclePharm"},{"n":"muscletech", "t":"MuscleTech"},{"n":"mutant", "t":"Mutant"},{"n":"Myprotein", "t":"Myprotein"},{"n":"Natrol", "t":"Natrol"},{"n":"now", "t":"NOW"},{"n":"nutrex", "t":"Nutrex"},{"n":"olimp", "t":"Olimp"},{"n":"OptiMeal", "t":"OptiMeal"},{"n":"optimum-nutrition", "t":"Optimum Nutrition"},{"n":"Others", "t":"Others"},{"n":"Oxy-Balance", "t":"Oxy Balance"},{"n":"platinum-labs", "t":"Platinum Labs"},{"n":"power-system", "t":"Power System"},{"n":"prolab", "t":"Prolab"},{"n":"promera-sports", "t":"ProMera Sports"},{"n":"prosupps", "t":"ProSupps"},{"n":"ProteinRex", "t":"ProteinRex"},{"n":"qnt", "t":"QNT"},{"n":"quest-nutrition", "t":"Quest Nutrition"},{"n":"rich-piana-5-nutrition", "t":"Rich Piana 5% Nutrition"},{"n":"ronnie-coleman", "t":"Ronnie Coleman"},{"n":"san", "t":"SAN"},{"n":"sci-fit", "t":"Sci-Fit"},{"n":"scitec-nutrition", "t":"Scitec Nutrition"},{"n":"scivation", "t":"Scivation"},{"n":"smartshake", "t":"SmartShake"},{"n":"spiderbottle", "t":"SpiderBottle"},{"n":"syntrax", "t":"Syntrax"},{"n":"titan", "t":"Titan"},{"n":"twinlab", "t":"Twinlab"},{"n":"ultimate-nutrition", "t":"Ultimate Nutrition"},{"n":"universal-nutrition", "t":"Universal Nutrition"},{"n":"usplabs", "t":"USPlabs"},{"n":"Vasco", "t":"Vasco"},{"n":"vp-laboratory", "t":"VP Laboratory"},{"n":"vpx", "t":"VPX"},{"n":"WEAPON-NUTRITION", "t":"Weapon Nutrition"},{"n":"weider", "t":"Weider"}];function StartSending() { m_strURL = "notify.ashx?id=" + m_nProductId + "&report=1"; var e = parseInt(1e3 * Math.random() + 2); m_nInterval = setInterval("InitSending()", e), SendingButton = document.getElementById("SendingButton"), SendingButton && (SendingButton.disabled = !0, SendingButton.value = "Идет отправка...") } function InitSending() { try { m_Request = GetRequest(), m_Request.open("GET", m_strURL, !0), m_Request.onreadystatechange = OnSendingComplete, m_Request.setRequestHeader("Content-Type", "text/html; charset=windows-1251"), m_Request.send(null) } catch (e) { } finally { clearInterval(m_nInterval) } } function OnSendingComplete() { if (4 == m_Request.readyState && 200 == m_Request.status) { var e = m_Request.responseText, t = parseInt(e); if (m_bReport) { var n = document.getElementById("TextToSend"); n && (n.innerHTML = t) } t > 0 ? StartSending() : SendingButton && (SendingButton.disabled = !1, SendingButton.value = "Начать отправку") } } function BlinkSetColor(e) { e.style.visibility && "hidden" == e.style.visibility ? e.style.visibility = "visible" : e.style.visibility = "hidden" } function BlinkInit() { for (BlinkTextNodex = document.getElementsByTagName("span"), i = 0; i < BlinkTextNodex.length; i++) -1 != BlinkTextNodex[i].id.toLowerCase().indexOf("blinktext") && window.setInterval("BlinkSetColor(BlinkTextNodex[" + i + "])", 400) } function OnVoteOver(e) { opinion_timer && window.clearTimeout(opinion_timer); for (var t = FindParent(e, { tagname: "table" }), n = t.getElementsByTagName("img"), i = parseInt(e.getAttribute("voteval")), o = 0; o < n.length; o++) n[o].hasAttribute("voteval") && (parseInt(n[o].getAttribute("voteval")) <= i ? n[o].src = n[o].src.replace("opinion2.out.gif", "opinion2.over.gif") : n[o].src = n[o].src.replace("opinion2.over.gif", "opinion2.out.gif")) } function OnVoteOut(e) { opinion_timer && window.clearTimeout(opinion_timer), opinion_timer = window.setTimeout(function () { for (var t = FindParent(e, { tagname: "table" }), n = t.getElementsByTagName("img"), i = 0; i < n.length; i++) n[i].hasAttribute("voteval") && (n[i].src = n[i].src.replace("opinion2.over.gif", "opinion2.out.gif")) }, 100) } function Vote(e) { var t = document.getElementById("opinion_container"), n = FindParent(e, { tagname: "div" }), i = parseInt(e.getAttribute("voteval")); window.vote_html = n.innerHTML, n.innerHTML = "идет голосование...", APPPostResponse2("vote2", { id: t.getAttribute("pid"), val: i }, function (e) { if (100 == e.code) { var o = parseInt(t.getAttribute("votecount")) + 1, r = parseFloat(t.getAttribute("votevalue")) + i, e = Math.round(r / o * 10) / 10; document.getElementById("product_rating").innerHTML = e.toString(), n.innerHTML = "Ваш голос принят" } else n.innerHTML = "Вы уже оценивали эту статью" }) } function AddListener(e, t, n) { t && (t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent ? t.attachEvent("on" + e, n) : t["on" + e] = n) } function RemoveListener(e, t, n) { t && (t.removeEventListener ? t.removeEventListener(e, n, !1) : t.detachEvent ? t.detachEvent("on" + e, n) : t["on" + e] = null) } function SendingSubscribe() { var e = document.getElementById("sending_mail"); if (!/\w+@\w+\.\w+/.test(e.value)) return void alert("E-mail неверного формата"); if (!Config.subscribeInitialText || e.value == Config.subscribeInitialText) return void alert("Введите Ваш e-mail"); var t = "sending_add"; document.getElementById("unsubscribe").checked && (t = "sending_delete"), APPPostResponse(t, { mail: e.value }, function (t) { t && t.result && ("deleted" == t.result ? document.getElementById("sending_message").innerHTML = "Вы отказались от рассылки новостей BodyBuildingRussia.com" : document.getElementById("sending_message").innerHTML = "Вы успешно подписаны на новости BodyBuildingRussia.com", e.value = "") }) } function SendingMailFocus(e) { Config.subscribeFirstFocus || (Config.subscribeFirstFocus = !0, Config.subscribeInitialText = e.value, Config.subscribeInitialColor = e.style.color), e.value == Config.subscribeInitialText && (e.value = "", e.style.color = "") } function SendingMailBlur(e) { Config.subscribeInitialText && "" == e.value && (e.value = Config.subscribeInitialText, e.style.color = Config.subscribeInitialColor) } function SendingStart() { var e = theForm; if (e) { var t = e.getElementsByTagName("input"), n = []; for (i = 0; i < t.length; i++) if (t[i].getAttribute("type") && "checkbox" == t[i].getAttribute("type").toLowerCase() && t[i].checked) { var o = t[i].getAttribute("name").match(/news(\d+)/i); o && n.push(o[1]) } if (0 == n.length) return void alert("Необходимо выбрать новости для рассылки"); var r = {}; Config.sendingStart || (r.start = document.getElementById("frombegin").checked ? "frombegin" : "continue", Config.totalCount = -1, Config.sendingStart = 1, Config.sendingSent = 0), r.nid = n.join("&"), APPPostResponse("sending_start", r, function (e) { -1 == Config.totalCount && (Config.totalCount = e.total), Config.sendingSent += e.sent; var t = Config.totalCount - Config.sendingSent; document.getElementById("sending_message").innerHTML = "Всего адресов: " + Config.totalCount + "
Отправлено: " + Config.sendingSent + "
Осталось: " + t, t > 0 && window.setTimeout(SendingStart, 600) }) } } function OnUnsubscribeChecked(e) { e.checked ? (document.getElementById("sending_btn").value = "Отказаться", Config.sendingInititalMessage || (Config.sendingInititalMessage = document.getElementById("sending_message").innerHTML), document.getElementById("sending_message").innerHTML = "Отказаться от рассылки новостей BodyBuildingRussia.com") : (document.getElementById("sending_btn").value = "Подписаться", document.getElementById("sending_message").innerHTML = Config.sendingInititalMessage) } function OnNewsScroll(e) { var t = document.getElementById("news_table"), n = FindParent(t, { tagname: "div" }); n.scrollTop = e.scrollTop } function OnNewsContainerScroll(e) { var t = !0, n = document.getElementById("news_container"); if (n) { var i = n.offsetWidth, o = GetOffset(n); if (e.clientX || (t = !1), e.clientX < o.left + i - 25 && (t = !1), !t) { e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault(); try { e.cancelBubble = !0, e.returnValue = !1 } catch (r) { } } } } function GroupShow(e) { !Group.s && e && (Group.s = e, AddListener("mouseout", e, GroupOnBtnMouseOut)), Group.timer && window.clearTimeout(Group.timer); var t = document.getElementById("group_wnd"); if (!t) { t = document.createElement("div"), t.setAttribute("id", "group_wnd"), t.style.position = "absolute"; var n = '
Вступайте в нашу группу ВКонтакте - BodyBuildingRussia.com. Новые видео бодибилдинга, полезная информация, фотографии атлетов, новости в мире спортивного питания и акции нашего интернет-магазина.
'; t.innerHTML = n; var i = GetOffset(Group.s); t.style.left = i.left - 337 + "px", t.style.top = i.top + 30 + "px", document.getElementById("tooltip").appendChild(t), AddListener("mouseover", t, GroupOnMouseOver), AddListener("mouseout", t, GroupOnMouseOut), VK.Widgets.Group("group_widget", { mode: 0, width: "345", height: "290" }, 11241450) } } function GroupOnBtnMouseOut(e) { Group.timer = window.setTimeout(GroupClose, 400) } function GroupOnMouseOver(e) { Group.timer && window.clearTimeout(Group.timer) } function GroupOnMouseOut(e) { e || (e = window.event); var t = e.target; t || (t = e.srcElement); var n = e.relatedTarget; n || (n = e.toElement); var i = FindParent(t, { id: "group_wnd" }, !0), o = FindParent(n, { id: "group_wnd" }, !0); i && o && i == o || (Group.timer = window.setTimeout(GroupClose, 400)) } function GroupClose() { var e = document.getElementById("group_wnd"); e && e.parentNode.removeChild(e) } function InitZag() { var e = document.getElementsByTagName("div"); for (i = 0; i < e.length; i++) if (e[i].className && -1 != e[i].className.indexOf("zag1_holder")) { var t = e[i], n = t.getElementsByTagName("div")[0], o = t.getElementsByTagName("div")[1]; o.style.width = n.offsetWidth + "px", o.style.height = n.offsetHeight + "px", t.style.height = n.offsetHeight + 10 + "px" } } function BeforeAnnulOfferClick(e) { return window.confirm("Заказ будет аннулирован. Вы точно хотите аннулирвоать заказ?") && AnnulOffer(e), !1 } function AnnulOffer(e) { var t = e.getAttribute("offerid"), n = document.getElementById("upload" + t); n && (n.style.display = "block"), APPPostResponse("annul_order", { id: t }, function (e) { if (e && e.result) { var n = document.getElementById("offerlinks" + t); n && (n.innerHTML = "
Заказ аннулирован
") } }) } function ShowDeliveryWnd() { var e = document.getElementById("delivery_wnd"); document.getElementById("tooltip").appendChild(e), e.style.display = "block", ResizeDeliveryWnd(), AddListener("resize", window, ResizeDeliveryWnd) } function DeliveryWndContinue() { CloseDeliveryWnd(), document.getElementById("transport_company_holder").style.display = "block", CountDeliveryCost() } function ResizeDeliveryWnd() { var e = document.getElementById("delivery_shadow"), t = document.getElementById("delivery_grey"); e && t && (e.style.width = GetWindowWidth() + "px", e.style.height = GetWindowHeight() + "px", t.style.top = GetVScroll() + Math.round((GetClientHeight() - t.offsetHeight) / 2) + "px", t.style.left = GetHScroll() + Math.round((GetClientWidth() - t.offsetWidth) / 2) + "px") } function CloseDeliveryWnd() { var e = document.getElementById("delivery_wnd"); e.style.display = "none", RemoveListener("resize", window, ResizeDeliveryWnd) } function DocInit() { DocResize(null) } function DocResize(e) { RemoveListener("resize", window, DocResize); var t = document.getElementById("mt1"); t.setAttribute("width", "100%"); var n = document.getElementById("mtd1"), i = GetDocumentHeight(); t && n && t.offsetHeight < i && (n.style.height = n.offsetHeight + (i - t.offsetHeight) + "px"), AddListener("resize", window, DocResize) } function ShowHelp(e, t) { CloseHelp(); var n = ""; t && "quote" == t && (n = 'Выделите цитируемый текст курсором мыши
и нажмите ссылку "цитата"'); var i = '
' + n + "
", o = GetOffset(e), r = document.createElement("div"); r.style.position = "absolute", r.style.top = o.top + 16 + "px", r.style.left = o.left + 5 + "px", r.innerHTML = i, document.getElementById("tooltip").appendChild(r), Help.wnd = r, Help.t = window.setTimeout(CloseHelp, 3500) } function CloseHelp() { Help.wnd && (Help.wnd.parentNode.removeChild(Help.wnd), Help.wnd = null, Help.t && window.clearTimeout(Help.t)) } function SearchInit() { var e = document.getElementById("search"), t = document.getElementById("search_target"); e && t && !Search.init && (Search.init = !0, AddListener("mouseover", e, SearchOnMouseOver), AddListener("mouseout", e, SearchOnMouseOut), AddListener("mouseover", t, SearchTargetOnMouseOver), AddListener("mouseout", t, SearchTargetOnMouseOut)) } function SearchOnMouseOver(e) { Search.timer && window.clearTimeout(Search.timer); var t = document.getElementById("search_target"); "block" != t.style.display && (t.style.display = "block") } function SearchOnMouseOut(e) { e || (e = window.event); var t = e.relatedTarget; t || (t = e.toElement); var n = FindParent(t, { id: "search" }, !0); n || (Search.timer && window.clearTimeout(Search.timer), Search.timer = window.setTimeout(SearchClose, 400)) } function SearchTargetOnMouseOver(e) { Search.timer && window.clearTimeout(Search.timer) } function SearchTargetOnMouseOut(e) { e || (e = window.event); var t = e.relatedTarget; t || (t = e.toElement); var n = FindParent(t, { id: "search_target" }, !0); n || (Search.timer && window.clearTimeout(Search.timer), Search.timer = window.setTimeout(SearchClose, 400)) } function SearchTarget(e) { var t = GetInnerText(e), n = e.getAttribute("sval"); document.getElementById("search_value").innerHTML = t, document.forms.form_search.elements.where.value = n, SearchClose() } function SearchClose() { var e = document.getElementById("search_target"); e && (e.style.display = "none") } function ChangeTextColorNext(e) { e.style.color == colorNext1 ? e.style.color = colorNext2 : e.style.color = colorNext1 } function OnWindowScroll(e) { var t = document.getElementById("menu_like"), n = document.getElementById("menu_table"); if (t && n) { var i = GetOffset(n), o = GetVScroll(); o > i.top + n.offsetHeight ? (t.style.position = "fixed", t.style.left = i.left + 3 + "px") : (t.style.position = "absolute", t.style.left = "3px") } } function Like() { APPPostResponse2("vote", { id: PID }, function (e) { var t = document.getElementById("votetext"); t.innerHTML = "Ваш голос принят" }) } function ClearPassword() { var e = document.getElementById("pw"); if (e && e.type && "text" == e.type.toLowerCase()) { PasswordNode = document.createElement("input"), PasswordNode.type = "password", PasswordNode.name = "pw", e.ismobile ? PasswordNode.className = "input_login" : (PasswordNode.style.width = e.style.width, PasswordNode.style.fontSize = e.style.fontSize); var t = e.parentNode; t.removeChild(e), t.appendChild(PasswordNode), PwTimer = setInterval("SetPwFocus()", 120) } } function SetPwFocus() { PasswordNode && (PasswordNode.focus(), clearInterval(PwTimer)) } var img = new Image; img.src = "img/opinion.over.gif"; var undefined, m_Request = null, m_strURL = "", m_bReport = !0, m_nInterval = null, SendingButton = null, m_nProductId = 0, Config; Config || (Config = {}); var BlinkTextNodex = null, opinion_timer, Group = {}, gi = new Image; gi.src = "img/vk.group.back.gif"; var Help = { wnd: null, t: null }, Search = { init: !1, timer: null }, colorNext1 = "#000000", colorNext2 = "#ff0000", NodeNext = document.getElementById("BlinkText1"); null != NodeNext && setInterval("ChangeTextColorNext(NodeNext)", 500); function APPResponse(e, t, n, o) { var r = GetRequest(); if (r) { var i = []; for (var a in t) i.push(a + "=" + t[a]); var c = i.length > 0 ? "&" : ""; c += i.join("&"), r.onreadystatechange = function () { if (4 == r.readyState && 200 == r.status) try { var e; e = o ? r.responseText : JSON.parse(r.responseText), n && n(e) } catch (e) { } }, r.open("GET", "webservice2.ashx?m=" + e + c + "&rnd=" + Math.ceil(1e7 * Math.random())), r.send(null) } } function APPPostResponse(e, t, n, o) { var r = GetRequest(); if (r) { var i = []; for (var a in t) i.push(encodeURIComponent(a).replace(/%20/g, "+") + "=" + encodeURIComponent(t[a]).replace(/%20/g, "+")); r.onreadystatechange = function () { if (4 == r.readyState && 200 == r.status) try { var e; e = o ? r.responseText : JSON.parse(r.responseText), n && n(e) } catch (e) { } }, r.open("POST", "webservice2.ashx?m=" + e + "&rnd=" + Math.ceil(1e7 * Math.random())), r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"), r.send(i.join("&")) } } function APPPostResponse2(e, t, n, o) { var r = GetRequest(); if (r) { var i = []; for (var a in t) i.push(encodeURIComponent(a).replace(/%20/g, "+") + "=" + encodeURIComponent(t[a]).replace(/%20/g, "+")); r.onreadystatechange = function () { if (4 == r.readyState && 200 == r.status) try { var e; e = o ? r.responseText : JSON.parse(r.responseText), n && n(e) } catch (e) { } }, r.open("POST", "https://" + window.location.host + "/site/webservice.ashx?m=" + e + "&rnd=" + Math.ceil(1e7 * Math.random())), r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"), r.send(i.join("&")) } } function APPPostResponse3(e, t, n, o) { var r = GetRequest(); if (r) { var i = []; for (var a in t) i.push(encodeURIComponent(a).replace(/%20/g, "+") + "=" + encodeURIComponent(t[a]).replace(/%20/g, "+")); r.onreadystatechange = function () { if (4 == r.readyState && 200 == r.status) try { var e; e = o ? r.responseText : JSON.parse(r.responseText), n && n(e) } catch (e) { } }, r.open("POST", "https://" + window.location.host + "/site/webservice.aspx?m=" + e + "&rnd=" + Math.ceil(1e7 * Math.random())), r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"), r.send(i.join("&")) } } function AddListener(e, t, n) { t && (t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent ? t.attachEvent("on" + e, n) : t["on" + e] = n) } function RemoveListener(e, t, n) { t && (t.removeEventListener ? t.removeEventListener(e, n, !1) : t.detachEvent ? t.detachEvent("on" + e, n) : t["on" + e] = null) } function GetInnerText(e) { return e.innerText ? e.innerText : e.textContent ? e.textContent : e.text ? e.text : "" } function SetInnerText(e, t) { null != e.innerText ? e.innerText = t : null != e.textContent ? e.textContent = t : null != e.text && (e.text = t) } function FindParent(e, t, n) { if (e) { null != n && void 0 != n || (n = !1); for (var o = null, r = e; r.parentNode;) if (n || (r = r.parentNode), n = !1, 1 == r.nodeType) { if (t.id && r.id == t.id) { o = r; break } if (t.class && r.className) { var i = r.className.split(/[ ]{1,}/g); if (i) for (var a = 0; a < i.length; a++) if (i[a] == t.class) { o = r; break } } if (t.tagname && r.tagName.toLowerCase() == t.tagname.toLowerCase()) { o = r; break } if (t.attr && r.getAttribute(t.attr)) { o = r; break } } return o } } function FindChild(e, t) { if (t.tagname && e) { var n = e.getElementsByTagName(t.tagname); for (ci = 0; ci < n.length; ci++) { var o = n[ci]; if (t.id && o.getAttribute("id") == t.id) return o; if (t.cls && o.className.indexOf(t.cls) > -1) return o; if (t.attr && !t.attrValue && o.getAttribute(t.attr)) return o; if (t.attr && t.attrValue && o.getAttribute(t.attr) && o.getAttribute(t.attr) == t.attrValue) return o } return null } } function GetOffset(e) { if (e) { for (var t = { left: 0, top: 0 }; e.offsetParent;) t.left += e.offsetLeft, t.top += e.offsetTop, e = e.offsetParent; return t } } function EditQueryString(e, t, n) { "?" == e.charAt(0) && (e = e.substring(1)); for (var o = !1, r = new Array, i = e.split("&"), a = 0; a < i.length; a++) { var c = /([^=]{1,})=([^=]{0,})/i; result = i[a].match(c), (result = i[a].match(c)) && (result[1] != t ? r.push(result[1] + "=" + result[2]) : null == n || o || (r.push(result[1] + "=" + n), o = !0)) } return o || null == n || r.push(t + "=" + n), r.join("&") } function GetQueryRaw(e) { var t = document.createElement("a"); return t.setAttribute("href", e), t.search } function GetVScroll() { return null != window.pageYOffset ? window.pageYOffset : document.documentElement && null != document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop } function GetHScroll() { return null != window.pageXOffset ? window.pageXOffset : document.documentElement && null != document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft } function GetClientWidth() { return window.innerWidth ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body && document.body.clientWidth ? document.body.clientWidth : 0 } function GetClientHeight() { return window.innerHeight ? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body && document.body.clientHeight ? document.body.clientHeight : 0 } function GetWindowWidth() { return document.documentElement && document.documentElement.scrollWidth ? document.documentElement.scrollWidth : document.body.scrollWidth ? document.body.scrollWidth : void 0 } function GetWindowHeight() { return document.documentElement && document.documentElement.scrollHeight ? document.documentElement.scrollHeight : document.body.scrollHeight ? document.body.scrollHeight : void 0 } function GetDocumentHeight() { return window.innerHeight ? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body ? document.body.clientHeight : 0 } function FindChildren(e, t) { var n = []; if (!t.tagname || !e) return null; var o = e.getElementsByTagName(t.tagname); for (ic = 0; ic < o.length; ic++) { var r = o[ic]; t.id && r.getAttribute("id") == t.id && n.push(r), t.cls && r.className.indexOf(t.cls) > -1 && n.push(r), t.attr && !t.attrValue && r.getAttribute(t.attr) && n.push(r), t.attr && t.attrValue && r.getAttribute(t.attr) && r.getAttribute(t.attr) == t.attrValue && n.push(r) } return n } function OpenImageViewer(e, l) { if (null == l) { window.open("ImageOpener.aspx?id=" + e, "", "width=480, height=350, resizable=1, scrollbars=1") } else { window.open("ImageOpener.aspx?filename=" + escape(l), "", "width=480, height=350, resizable=1, scrollbars=1") } } function SetNullValue(e) { null != e && "0" == e.value && (e.value = "") } function CheckFormForDelete() { if (bFlag) { if (bFlag && CheckDeleteTags() && !window.confirm("Выбранные вами позиции будут удалены из корзины.\nВы уверенны, что хотите удалить выбранные позиции?")) return document.getElementById("recalculate").value = "0", bFlag = !1, !1 } else if (document.form1.delete_all_shop.checked) return window.confirm("Все позиции в корзине будут удалены.\nВы действительно хотите очистить корзину?"); return !0 } function EnableDelete() { var e = document.form1.shop_submit_delete; CheckDeleteTags() && (e.disabled = !1) } function CheckDeleteTags() { var e = document.form1.elements, t = document.form1.elements.length; for (i = 0; i < t; i++) if ("checkbox" == e[i].type && e[i].checked) return !0; return !1 } function RedirectProducer() { var e = document.getElementById("CatalogOfProducers"); if (null != e) { var t = e.options[e.selectedIndex].value; "" == t || (document.location = GetBaseHref() + t.toLowerCase() + ".aspx") } } function RedirectProducts() { var e = document.getElementById("CatalogOfProducts"); if (null != e) { var t = e.options[e.selectedIndex].value; "" == t || (document.location = GetBaseHref() + t.toLowerCase() + ".aspx") } } function RedirectAim() { var e = document.getElementById("aim_list"); if (e) { var t = e.options[e.selectedIndex].value; "" != t && (window.location = GetBaseHref() + "catalog.aspx?aim=" + t) } } function GetBaseHref() { var e = document.getElementsByTagName("base"); return e && e.length > 0 && e[0].href ? e[0].href : "http://www.bodybuildingrussia.com/" } function InitNotify(e) { window.open("notify.aspx?id=" + e, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=200") } function GetRequest() { var M = null; try { M = new XMLHttpRequest } catch (t) { for (var X = new Array("MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"), e = 0; e < X.length && !M; e++) try { M = new ActiveXObject(X[e]) } catch (t) { } } return M } var swfobject = function () { function e() { if (!G) { try { var e = M.getElementsByTagName("body")[0].appendChild(h("span")); e.parentNode.removeChild(e) } catch (t) { return } G = !0; for (var n = R.length, a = 0; n > a; a++) R[a]() } } function t(e) { G ? e() : R[R.length] = e } function n(e) { if (typeof x.addEventListener != L) x.addEventListener("load", e, !1); else if (typeof M.addEventListener != L) M.addEventListener("load", e, !1); else if (typeof x.attachEvent != L) m(x, "onload", e); else if ("function" == typeof x.onload) { var t = x.onload; x.onload = function () { t(), e() } } else x.onload = e } function a() { P ? i() : r() } function i() { var e = M.getElementsByTagName("body")[0], t = h(k); t.setAttribute("type", O); var n = e.appendChild(t); if (n) { var a = 0; !function () { if (typeof n.GetVariable != L) { var i = n.GetVariable("$version"); i && (i = i.split(" ")[1].split(","), X.pv = [parseInt(i[0], 10), parseInt(i[1], 10), parseInt(i[2], 10)]) } else if (10 > a) return a++, void setTimeout(arguments.callee, 10); e.removeChild(t), n = null, r() }() } else r() } function r() { var e = D.length; if (e > 0) for (var t = 0; e > t; t++) { var n = D[t].id, a = D[t].callbackFn, i = { success: !1, id: n }; if (X.pv[0] > 0) { var r = y(n); if (r) if (!g(D[t].swfVersion) || X.wk && X.wk < 312) if (D[t].expressInstall && s()) { var f = {}; f.data = D[t].expressInstall, f.width = r.getAttribute("width") || "0", f.height = r.getAttribute("height") || "0", r.getAttribute("class") && (f.styleclass = r.getAttribute("class")), r.getAttribute("align") && (f.align = r.getAttribute("align")); for (var d = {}, u = r.getElementsByTagName("param"), p = u.length, v = 0; p > v; v++) "movie" != u[v].getAttribute("name").toLowerCase() && (d[u[v].getAttribute("name")] = u[v].getAttribute("value")); l(f, d, n, a) } else c(r), a && a(i); else b(n, !0), a && (i.success = !0, i.ref = o(n), a(i)) } else if (b(n, !0), a) { var h = o(n); h && typeof h.SetVariable != L && (i.success = !0, i.ref = h), a(i) } } } function o(e) { var t = null, n = y(e); if (n && "OBJECT" == n.nodeName) if (typeof n.SetVariable != L) t = n; else { var a = n.getElementsByTagName(k)[0]; a && (t = a) } return t } function s() { return !J && g("6.0.65") && (X.win || X.mac) && !(X.wk && X.wk < 312) } function l(e, t, n, a) { J = !0, A = a || null, N = { success: !1, id: n }; var i = y(n); if (i) { "OBJECT" == i.nodeName ? (E = f(i), S = null) : (E = i, S = n), e.id = F, (typeof e.width == L || !/%$/.test(e.width) && parseInt(e.width, 10) < 310) && (e.width = "310"), (typeof e.height == L || !/%$/.test(e.height) && parseInt(e.height, 10) < 137) && (e.height = "137"), M.title = M.title.slice(0, 47) + " - Flash Player Installation"; var r = X.ie && X.win ? "ActiveX" : "PlugIn", o = "MMredirectURL=" + x.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + r + "&MMdoctitle=" + M.title; if (typeof t.flashvars != L ? t.flashvars += "&" + o : t.flashvars = o, X.ie && X.win && 4 != i.readyState) { var s = h("div"); n += "SWFObjectNew", s.setAttribute("id", n), i.parentNode.insertBefore(s, i), i.style.display = "none", function () { 4 == i.readyState ? i.parentNode.removeChild(i) : setTimeout(arguments.callee, 10) }() } d(e, t, n) } } function c(e) { if (X.ie && X.win && 4 != e.readyState) { var t = h("div"); e.parentNode.insertBefore(t, e), t.parentNode.replaceChild(f(e), t), e.style.display = "none", function () { 4 == e.readyState ? e.parentNode.removeChild(e) : setTimeout(arguments.callee, 10) }() } else e.parentNode.replaceChild(f(e), e) } function f(e) { var t = h("div"); if (X.win && X.ie) t.innerHTML = e.innerHTML; else { var n = e.getElementsByTagName(k)[0]; if (n) { var a = n.childNodes; if (a) for (var i = a.length, r = 0; i > r; r++) 1 == a[r].nodeType && "PARAM" == a[r].nodeName || 8 == a[r].nodeType || t.appendChild(a[r].cloneNode(!0)) } } return t } function d(e, t, n) { var a, i = y(n); if (X.wk && X.wk < 312) return a; if (i) if (typeof e.id == L && (e.id = n), X.ie && X.win) { var r = ""; for (var o in e) e[o] != Object.prototype[o] && ("data" == o.toLowerCase() ? t.movie = e[o] : "styleclass" == o.toLowerCase() ? r += ' class="' + e[o] + '"' : "classid" != o.toLowerCase() && (r += " " + o + '="' + e[o] + '"')); var s = ""; for (var l in t) t[l] != Object.prototype[l] && (s += ''); i.outerHTML = '" + s + "", W[W.length] = e.id, a = y(e.id) } else { var c = h(k); c.setAttribute("type", O); for (var f in e) e[f] != Object.prototype[f] && ("styleclass" == f.toLowerCase() ? c.setAttribute("class", e[f]) : "classid" != f.toLowerCase() && c.setAttribute(f, e[f])); for (var d in t) t[d] != Object.prototype[d] && "movie" != d.toLowerCase() && u(c, d, t[d]); i.parentNode.replaceChild(c, i), a = c } return a } function u(e, t, n) { var a = h("param"); a.setAttribute("name", t), a.setAttribute("value", n), e.appendChild(a) } function p(e) { var t = y(e); t && "OBJECT" == t.nodeName && (X.ie && X.win ? (t.style.display = "none", function () { 4 == t.readyState ? v(e) : setTimeout(arguments.callee, 10) }()) : t.parentNode.removeChild(t)) } function v(e) { var t = y(e); if (t) { for (var n in t) "function" == typeof t[n] && (t[n] = null); t.parentNode.removeChild(t) } } function y(e) { var t = null; try { t = M.getElementById(e) } catch (n) { } return t } function h(e) { return M.createElement(e) } function m(e, t, n) { e.attachEvent(t, n), H[H.length] = [e, t, n] } function g(e) { var t = X.pv, n = e.split("."); return n[0] = parseInt(n[0], 10), n[1] = parseInt(n[1], 10) || 0, n[2] = parseInt(n[2], 10) || 0, t[0] > n[0] || t[0] == n[0] && t[1] > n[1] || t[0] == n[0] && t[1] == n[1] && t[2] >= n[2] ? !0 : !1 } function w(e, t, n, a) { if (!X.ie || !X.mac) { var i = M.getElementsByTagName("head")[0]; if (i) { var r = n && "string" == typeof n ? n : "screen"; if (a && (T = null, I = null), !T || I != r) { var o = h("style"); o.setAttribute("type", "text/css"), o.setAttribute("media", r), T = i.appendChild(o), X.ie && X.win && typeof M.styleSheets != L && M.styleSheets.length > 0 && (T = M.styleSheets[M.styleSheets.length - 1]), I = r } X.ie && X.win ? T && typeof T.addRule == k && T.addRule(e, t) : T && typeof M.createTextNode != L && T.appendChild(M.createTextNode(e + " {" + t + "}")) } } } function b(e, t) { if (U) { var n = t ? "visible" : "hidden"; G && y(e) ? y(e).style.visibility = n : w("#" + e, "visibility:" + n) } } function C(e) { var t = /[\\\"<>\.;]/, n = null != t.exec(e); return n && typeof encodeURIComponent != L ? encodeURIComponent(e) : e } var E, S, A, N, T, I, L = "undefined", k = "object", j = "Shockwave Flash", B = "ShockwaveFlash.ShockwaveFlash", O = "application/x-shockwave-flash", F = "SWFObjectExprInst", $ = "onreadystatechange", x = window, M = document, V = navigator, P = !1, R = [a], D = [], W = [], H = [], G = !1, J = !1, U = !0, X = function () { var e = typeof M.getElementById != L && typeof M.getElementsByTagName != L && typeof M.createElement != L, t = V.userAgent.toLowerCase(), n = V.platform.toLowerCase(), a = n ? /win/.test(n) : /win/.test(t), i = n ? /mac/.test(n) : /mac/.test(t), r = /webkit/.test(t) ? parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : !1, o = !1, s = [0, 0, 0], l = null; if (typeof V.plugins != L && typeof V.plugins[j] == k) l = V.plugins[j].description, !l || typeof V.mimeTypes != L && V.mimeTypes[O] && !V.mimeTypes[O].enabledPlugin || (P = !0, o = !1, l = l.replace(/^.*\s+(\S+\s+\S+$)/, "$1"), s[0] = parseInt(l.replace(/^(.*)\..*$/, "$1"), 10), s[1] = parseInt(l.replace(/^.*\.(.*)\s.*$/, "$1"), 10), s[2] = /[a-zA-Z]/.test(l) ? parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0); else if (typeof x.ActiveXObject != L) try { var c = new ActiveXObject(B); c && (l = c.GetVariable("$version"), l && (o = !0, l = l.split(" ")[1].split(","), s = [parseInt(l[0], 10), parseInt(l[1], 10), parseInt(l[2], 10)])) } catch (f) { } return { w3: e, pv: s, wk: r, ie: o, win: a, mac: i } }(); (function () { X.w3 && ((typeof M.readyState != L && "complete" == M.readyState || typeof M.readyState == L && (M.getElementsByTagName("body")[0] || M.body)) && e(), G || (typeof M.addEventListener != L && M.addEventListener("DOMContentLoaded", e, !1), X.ie && X.win && (M.attachEvent($, function () { "complete" == M.readyState && (M.detachEvent($, arguments.callee), e()) }), x == top && !function () { if (!G) { try { M.documentElement.doScroll("left") } catch (t) { return void setTimeout(arguments.callee, 0) } e() } }()), X.wk && !function () { return G ? void 0 : /loaded|complete/.test(M.readyState) ? void e() : void setTimeout(arguments.callee, 0) }(), n(e))) })(), function () { X.ie && X.win && window.attachEvent("onunload", function () { for (var e = H.length, t = 0; e > t; t++) H[t][0].detachEvent(H[t][1], H[t][2]); for (var n = W.length, a = 0; n > a; a++) p(W[a]); for (var i in X) X[i] = null; X = null; for (var r in swfobject) swfobject[r] = null; swfobject = null }) }(); return { registerObject: function (e, t, n, a) { if (X.w3 && e && t) { var i = {}; i.id = e, i.swfVersion = t, i.expressInstall = n, i.callbackFn = a, D[D.length] = i, b(e, !1) } else a && a({ success: !1, id: e }) }, getObjectById: function (e) { return X.w3 ? o(e) : void 0 }, embedSWF: function (e, n, a, i, r, o, c, f, u, p) { var v = { success: !1, id: n }; X.w3 && !(X.wk && X.wk < 312) && e && n && a && i && r ? (b(n, !1), t(function () { a += "", i += ""; var t = {}; if (u && typeof u === k) for (var y in u) t[y] = u[y]; t.data = e, t.width = a, t.height = i; var h = {}; if (f && typeof f === k) for (var m in f) h[m] = f[m]; if (c && typeof c === k) for (var w in c) typeof h.flashvars != L ? h.flashvars += "&" + w + "=" + c[w] : h.flashvars = w + "=" + c[w]; if (g(r)) { var C = d(t, h, n); t.id == n && b(n, !0), v.success = !0, v.ref = C } else { if (o && s()) return t.data = o, void l(t, h, n, p); b(n, !0) } p && p(v) })) : p && p(v) }, switchOffAutoHideShow: function () { U = !1 }, ua: X, getFlashPlayerVersion: function () { return { major: X.pv[0], minor: X.pv[1], release: X.pv[2] } }, hasFlashPlayerVersion: g, createSWF: function (e, t, n) { return X.w3 ? d(e, t, n) : void 0 }, showExpressInstall: function (e, t, n, a) { X.w3 && s() && l(e, t, n, a) }, removeSWF: function (e) { X.w3 && p(e) }, createCSS: function (e, t, n, a) { X.w3 && w(e, t, n, a) }, addDomLoadEvent: t, addLoadEvent: n, getQueryParamValue: function (e) { var t = M.location.search || M.location.hash; if (t) { if (/\?/.test(t) && (t = t.split("?")[1]), null == e) return C(t); for (var n = t.split("&"), a = 0; a < n.length; a++) if (n[a].substring(0, n[a].indexOf("=")) == e) return C(n[a].substring(n[a].indexOf("=") + 1)) } return "" }, expressInstallCallback: function () { if (J) { var e = y(F); e && E && (e.parentNode.replaceChild(E, e), S && (b(S, !0), X.ie && X.win && (E.style.display = "block")), A && A(N)), J = !1 } } } }(); var JSON; JSON || (JSON = {}), function () { "use strict"; function f(t) { return 10 > t ? "0" + t : t } function quote(t) { return escapable.lastIndex = 0, escapable.test(t) ? '"' + t.replace(escapable, function (t) { var e = meta[t]; return "string" == typeof e ? e : "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + t + '"' } function str(t, e) { var n, r, f, o, u, i = gap, a = e[t]; switch (a && "object" == typeof a && "function" == typeof a.toJSON && (a = a.toJSON(t)), "function" == typeof rep && (a = rep.call(e, t, a)), typeof a) { case "string": return quote(a); case "number": return isFinite(a) ? String(a) : "null"; case "boolean": case "null": return String(a); case "object": if (!a) return "null"; if (gap += indent, u = [], "[object Array]" === Object.prototype.toString.apply(a)) { for (o = a.length, n = 0; o > n; n += 1) u[n] = str(n, a) || "null"; return f = 0 === u.length ? "[]" : gap ? "[\n" + gap + u.join(",\n" + gap) + "\n" + i + "]" : "[" + u.join(",") + "]", gap = i, f } if (rep && "object" == typeof rep) for (o = rep.length, n = 0; o > n; n += 1) r = rep[n], "string" == typeof r && (f = str(r, a), f && u.push(quote(r) + (gap ? ": " : ":") + f)); else for (r in a) Object.hasOwnProperty.call(a, r) && (f = str(r, a), f && u.push(quote(r) + (gap ? ": " : ":") + f)); return f = 0 === u.length ? "{}" : gap ? "{\n" + gap + u.join(",\n" + gap) + "\n" + i + "}" : "{" + u.join(",") + "}", gap = i, f } } "function" != typeof Date.prototype.toJSON && (Date.prototype.toJSON = function (t) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (t) { return this.valueOf() }); var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, rep; "function" != typeof JSON.stringify && (JSON.stringify = function (t, e, n) { var r; if (gap = "", indent = "", "number" == typeof n) for (r = 0; n > r; r += 1) indent += " "; else "string" == typeof n && (indent = n); if (rep = e, e && "function" != typeof e && ("object" != typeof e || "number" != typeof e.length)) throw new Error("JSON.stringify"); return str("", { "": t }) }), "function" != typeof JSON.parse && (JSON.parse = function (text, reviver) { function walk(t, e) { var n, r, f = t[e]; if (f && "object" == typeof f) for (n in f) Object.hasOwnProperty.call(f, n) && (r = walk(f, n), void 0 !== r ? f[n] = r : delete f[n]); return reviver.call(t, e, f) } var j; if (text = String(text), cx.lastIndex = 0, cx.test(text) && (text = text.replace(cx, function (t) { return "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4) })), /^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) return j = eval("(" + text + ")"), "function" == typeof reviver ? walk({ "": j }, "") : j; throw new SyntaxError("JSON.parse") }) }(); function VKGetStatus() { VK.Auth.getLoginStatus(OnVKStatus, !0) } function OnVKStatus(t) { if (t) if (User.VK.status = t.status.toLowerCase(), User.StatusChanged(), t.session || "connected" == t.status.toLowerCase()) { if (t && t.session && User.VK.authorized) return } else if (User.VK.authorized) return void VKLogOut() } function VKLogOut() { VK && VK.Auth && VK.Auth.logout && VK.Auth.logout(function () { User.SetLogout(User.VK) }) } function VKIsConnected() { return User.VK.status && "unknown" != User.VK.status } function VKOnMyPage() { var t = document.getElementById("vk_like_btn"); t && (VK.Share.click ? VK.Share.click(0, t.getElementsByTagName("a")[0]) : t.getElementsByTagName("a")[0].click()) } var vk_settings = 10263; function FBOnGetLoginStatus(t) { t && (User.FB.status = t.status.toLowerCase(), User.StatusChanged(), User.FB.authorized && t.status && "unknown" == t.status.toLowerCase()) } function FBIsConnected() { return User.FB.status && "unknown" != User.FB.status } function FBLogOut() { return FB && FB.logout && FB.logout(function () { User.SetLogout(User.FB) }), !1 } function FBPostToFeedReview(t, e) { var o = "", r = "", s = "", n = document.getElementsByTagName("meta"); for (i = 0; i < n.length; i++) n[i].getAttribute("property") && ("og:title" == n[i].getAttribute("property") ? o = n[i].getAttribute("content") : "og:description" == n[i].getAttribute("property") ? s = n[i].getAttribute("content") : "og:image" == n[i].getAttribute("property") && (r = n[i].getAttribute("content"))); if (o) { var u = { method: "feed", link: window.location.href, picture: r, name: o, caption: o, description: s }; FB.ui(u, function (t) { }) } } function FBPostToFeed(t) { var e = t.title, i = t.img, o = { method: "feed", link: window.location.href, picture: i, name: e }; FB.ui(o, function (t) { }) } var perms = "user_about_me,user_activities,user_interests,user_likes,user_notes,user_photos,user_relationships,user_status,user_checkins,user_events,read_stream,publish_stream"; function DUser() { this.ID = 0, this.soc = ["VK", "FB", "Mail", "Odkl"], this.SocialStatusChanged = [], this.AC = [], this.Init() } DUser.prototype.Init = function () { for (var t = this.soc, i = 0; i < t.length; i++) this[t[i]] = { authorized: !1, ID: 0, perms: [], status: "" } }, DUser.prototype.StatusChanged = function () { var t = this.SocialStatusChanged; for (i = 0; i < t.length; i++) t[i]() }, DUser.prototype.SetLogout = function (t) { t.authorized = !1; for (var i = 0; i < this.AC.length; i++) { var s = this.AC[i]; s() } }; unitedScriptReady = true; var OnUnitedScriptComplete; if (OnUnitedScriptComplete) OnUnitedScriptComplete();