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":"aps", "t":"APS"},{"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":"dymatize", "t":"Dymatize"},{"n":"europharmsport", "t":"EuroPharmSport"},{"n":"Fit-Kit", "t":"Fit Kit"},{"n":"FitaFlex", "t":"FitaFlex"},{"n":"FIT-Rx", "t":"FIT-Rx"},{"n":"Gaspari-Nutrition", "t":"Gaspari Nutrition"},{"n":"GENONE", "t":"Genone"},{"n":"hedenkamp", "t":"Hedenkamp"},{"n":"hi-tech-pharmaceuticals", "t":"Hi-Tech Pharmaceuticals"},{"n":"inzer", "t":"Inzer"},{"n":"Jan-Tana", "t":"Jan Tana"},{"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":"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":"power-system", "t":"Power System"},{"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":"san", "t":"SAN"},{"n":"scitec-nutrition", "t":"Scitec Nutrition"},{"n":"scivation", "t":"Scivation"},{"n":"smartshake", "t":"SmartShake"},{"n":"syntrax", "t":"Syntrax"},{"n":"titan", "t":"Titan"},{"n":"ultimate-nutrition", "t":"Ultimate Nutrition"},{"n":"universal-nutrition", "t":"Universal Nutrition"},{"n":"usplabs", "t":"USPlabs"},{"n":"vp-laboratory", "t":"VP Laboratory"},{"n":"WEAPON-NUTRITION", "t":"Weapon Nutrition"},{"n":"weider", "t":"Weider"}];var swfobject=function(){var D="undefined",r="object",T="Shockwave Flash",Z="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",S="SWFObjectExprInst",x="onreadystatechange",Q=window,h=document,t=navigator,V=false,X=[],o=[],P=[],K=[],I,p,E,B,L=false,a=false,m,G,j=true,l=false,O=function(){var ad=typeof h.getElementById!=D&&typeof h.getElementsByTagName!=D&&typeof h.createElement!=D,ak=t.userAgent.toLowerCase(),ab=t.platform.toLowerCase(),ah=ab?/win/.test(ab):/win/.test(ak),af=ab?/mac/.test(ab):/mac/.test(ak),ai=/webkit/.test(ak)?parseFloat(ak.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,aa=t.appName==="Microsoft Internet Explorer",aj=[0,0,0],ae=null;if(typeof t.plugins!=D&&typeof t.plugins[T]==r){ae=t.plugins[T].description;if(ae&&(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&t.mimeTypes[q].enabledPlugin)){V=true;aa=false;ae=ae.replace(/^.*\s+(\S+\s+\S+$)/,"$1");aj[0]=n(ae.replace(/^(.*)\..*$/,"$1"));aj[1]=n(ae.replace(/^.*\.(.*)\s.*$/,"$1"));aj[2]=/[a-zA-Z]/.test(ae)?n(ae.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0}}else{if(typeof Q.ActiveXObject!=D){try{var ag=new ActiveXObject(Z);if(ag){ae=ag.GetVariable("$version");if(ae){aa=true;ae=ae.split(" ")[1].split(",");aj=[n(ae[0]),n(ae[1]),n(ae[2])]}}}catch(ac){}}}return{w3:ad,pv:aj,wk:ai,ie:aa,win:ah,mac:af}}(),i=function(){if(!O.w3){return}if((typeof h.readyState!=D&&(h.readyState==="complete"||h.readyState==="interactive"))||(typeof h.readyState==D&&(h.getElementsByTagName("body")[0]||h.body))){f()}if(!L){if(typeof h.addEventListener!=D){h.addEventListener("DOMContentLoaded",f,false)}if(O.ie){h.attachEvent(x,function aa(){if(h.readyState=="complete"){h.detachEvent(x,aa);f()}});if(Q==top){(function ac(){if(L){return}try{h.documentElement.doScroll("left")}catch(ad){setTimeout(ac,0);return}f()}())}}if(O.wk){(function ab(){if(L){return}if(!/loaded|complete/.test(h.readyState)){setTimeout(ab,0);return}f()}())}}}();function f(){if(L||!document.getElementsByTagName("body")[0]){return}try{var ac,ad=C("span");ad.style.display="none";ac=h.getElementsByTagName("body")[0].appendChild(ad);ac.parentNode.removeChild(ac);ac=null;ad=null}catch(ae){return}L=true;var aa=X.length;for(var ab=0;ab0){for(var ai=0;ai0){var ah=c(ab);if(ah){if(F(o[ai].swfVersion)&&!(O.wk&&O.wk<312)){w(ab,true);if(ae){ad.success=true;ad.ref=z(ab);ad.id=ab;ae(ad)}}else{if(o[ai].expressInstall&&A()){var al={};al.data=o[ai].expressInstall;al.width=ah.getAttribute("width")||"0";al.height=ah.getAttribute("height")||"0";if(ah.getAttribute("class")){al.styleclass=ah.getAttribute("class")}if(ah.getAttribute("align")){al.align=ah.getAttribute("align")}var ak={};var aa=ah.getElementsByTagName("param");var af=aa.length;for(var ag=0;ag"+ab+"";return ac.firstChild}function u(ai,ag,ab){var aa,ad=c(ab);ab=W(ab);if(O.wk&&O.wk<312){return aa}if(ad){var ac=(O.ie)?C("div"):C(r),af,ah,ae;if(typeof ai.id==D){ai.id=ab}for(ae in ag){if(ag.hasOwnProperty(ae)&&ae.toLowerCase()!=="movie"){e(ac,ae,ag[ae])}}if(O.ie){ac=k(ai.data,ac.innerHTML)}for(af in ai){if(ai.hasOwnProperty(af)){ah=af.toLowerCase();if(ah==="styleclass"){ac.setAttribute("class",ai[af])}else{if(ah!=="classid"&&ah!=="data"){ac.setAttribute(af,ai[af])}}}}if(O.ie){P[P.length]=ai.id}else{ac.setAttribute("type",q);ac.setAttribute("data",ai.data)}ad.parentNode.replaceChild(ac,ad);aa=ac}return aa}function e(ac,aa,ab){var ad=C("param");ad.setAttribute("name",aa);ad.setAttribute("value",ab);ac.appendChild(ad)}function y(ac){var ab=c(ac);if(ab&&ab.nodeName.toUpperCase()=="OBJECT"){if(O.ie){ab.style.display="none";(function aa(){if(ab.readyState==4){for(var ad in ab){if(typeof ab[ad]=="function"){ab[ad]=null}}ab.parentNode.removeChild(ab)}else{setTimeout(aa,10)}}())}else{ab.parentNode.removeChild(ab)}}}function U(aa){return(aa&&aa.nodeType&&aa.nodeType===1)}function W(aa){return(U(aa))?aa.id:aa}function c(ac){if(U(ac)){return ac}var aa=null;try{aa=h.getElementById(ac)}catch(ab){}return aa}function C(aa){return h.createElement(aa)}function n(aa){return parseInt(aa,10)}function g(ac,aa,ab){ac.attachEvent(aa,ab);K[K.length]=[ac,aa,ab]}function F(ac){ac+="";var ab=O.pv,aa=ac.split(".");aa[0]=n(aa[0]);aa[1]=n(aa[1])||0;aa[2]=n(aa[2])||0;return(ab[0]>aa[0]||(ab[0]==aa[0]&&ab[1]>aa[1])||(ab[0]==aa[0]&&ab[1]==aa[1]&&ab[2]>=aa[2]))?true:false}function v(af,ab,ag,ae){var ad=h.getElementsByTagName("head")[0];if(!ad){return}var aa=(typeof ag=="string")?ag:"screen";if(ae){m=null;G=null}if(!m||G!=aa){var ac=C("style");ac.setAttribute("type","text/css");ac.setAttribute("media",aa);m=ad.appendChild(ac);if(O.ie&&typeof h.styleSheets!=D&&h.styleSheets.length>0){m=h.styleSheets[h.styleSheets.length-1]}G=aa}if(m){if(typeof m.addRule!=D){m.addRule(af,ab)}else{if(typeof h.createTextNode!=D){m.appendChild(h.createTextNode(af+" {"+ab+"}"))}}}}function w(ad,aa){if(!j){return}var ab=aa?"visible":"hidden",ac=c(ad);if(L&&ac){ac.style.visibility=ab}else{if(typeof ad==="string"){v("#"+ad,"visibility:"+ab)}}}function N(ab){var ac=/[\\\"<>\.;]/;var aa=ac.exec(ab)!=null;return aa&&typeof encodeURIComponent!=D?encodeURIComponent(ab):ab}var d=function(){if(O.ie){window.attachEvent("onunload",function(){var af=K.length;for(var ae=0;ae -1) return r; if (e.attr && !e.attrValue && r.getAttribute(e.attr)) return r; if (e.attr && e.attrValue && r.getAttribute(e.attr) && r.getAttribute(e.attr) == e.attrValue) return r } return null } } function FindChildren(t, e) { var n = []; if (!e.tagname || !t) return null; var r = t.getElementsByTagName(e.tagname); for (ic = 0; ic < r.length; ic++) { var a = r[ic]; e.id && a.getAttribute("id") == e.id && n.push(a), e.cls && a.className.indexOf(e.cls) > -1 && n.push(a), e.attr && !e.attrValue && a.getAttribute(e.attr) && n.push(a), e.attr && e.attrValue && a.getAttribute(e.attr) && a.getAttribute(e.attr) == e.attrValue && n.push(a) } return n } var Menu;if(!Menu) Menu={items:[]};function MenuInit() {var mi=Menu.items;var m=document.getElementById("menu_table");var tds=m.getElementsByTagName("td");for(var i=0;i'+''+''+''+''+'
'+''+'
'+''+'';m.innerHTML=html;document.getElementById("tooltip").appendChild(m);AddListener("mouseover",m,MenuOnDropMouseOver);AddListener("mouseout",m,MenuOnDropMouseOut)}} function MenuHide() {var m=document.getElementById("menudrop");if(m) m.parentNode.removeChild(m);Menu.current=null} function MenuOnLinkMouseOver(e) {if(Menu.timer) window.clearTimeout(Menu.timer);if(!e) e=window.event;var t=e.target;if(!t) t=e.srcElement;var m=Menu;var td=FindParent(t,{"attr":"menuname"},!0);if(!td) return;var cn=td.getAttribute("menuname");if(!m.current||m.current.n!=cn) {var mi=m.items;for(i=0;imaxW) tds[i].style.width=maxW+"px";else tds[i].style.width="180px";tds[i].style.whiteSpace="normal";totalW+=parseInt(tds[i].style.width)} t.style.width=totalW+"px";for(i=0;i5) cols=5;rows=Math.ceil(p.length/cols);var index=0;var colW=Math.floor(900/cols);var html=''+'';for(var j=0;j'+'
';for(var i=0;i'+''+'';index++} html+='
';if(index'+p[index].t+'';html+='
'+'';if(j<(cols-1)){html+='
'}} html+=''+'';return html} function productMenuGetContents() {var m=document.getElementById("menudrop");if(!Producers||!m) return;var p=Products;p.sort(function(a,b) {if(a.posb.pos) return 1;else return 0});var rows=10;var cols=Math.ceil(p.length/rows);if(cols>5) cols=5;rows=Math.ceil(p.length/cols);var html='';for(var i=0;i'+p[j].t+'';html+='';if(i==0&&(j/rows)<(cols-1)) html+=''} html+=''} html+='
';return html} function MenuSetPos() {var m=document.getElementById("menudrop");if(!Menu.current||!m) return;var s=Menu.current.s;var o=GetOffset(s);m.style.left=o.left+"px";m.style.top=(o.top+s.offsetHeight)+"px"} function MenuOnDropMouseOver(e) {if(Menu.timer) window.clearTimeout(Menu.timer)} function MenuOnDropMouseOut(e) {if(!e) e=window.event;var t=e.target;if(!t) t=e.srcElement;var t2=e.relatedTarget;if(!t2) t2=e.toElement;var td=FindParent(t,{"id":"menudrop"},!0);var td2=FindParent(t2,{"id":"menudrop"},!0);if(!td||!td2||td!=td2) Menu.timer=window.setTimeout(MenuHide,200)} 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) { "hidden" != e.style.visibility ? e.style.visibility = "hidden" : e.style.visibility = "visible" } function BlinkInit() { for (BlinkTextNodex = document.getElementsByTagName("span"), i = 0; i < BlinkTextNodex.length; i++) -1 != BlinkTextNodex[i].id.toLowerCase().indexOf("blinktext") && 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 = -1 != n[o].src.indexOf(".out.gif") ? n[o].src.replace(".out.gif", ".over.gif") : n[o].src : n[o].src = -1 != n[o].src.indexOf(".over.gif") ? n[o].src.replace(".over.gif", ".out.gif") : n[o].src) } 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 = -1 != n[i].src.indexOf(".over.gif") ? n[i].src.replace(".over.gif", ".out.gif") : n[i].src) }, 100) } function Vote(e, t) { var n = document.getElementById("description_container"), i = document.getElementById("opinion_container"), o = 0, r = ""; t && t.pid ? (o = t.pid, r = t.pidStr ? t.pidStr : o) : t.pid2 ? o = t.pid2 : n && (o = n.getAttribute("pid")); for (var a = FindParent(e, { attr: "removingtr" }), s = 0; a.getElementsByTagName("td").length > 0 && 10 > s;) td = a.getElementsByTagName("td")[0], td.parentNode.removeChild(td), s++; td = document.createElement("td"), td.style.height = "30px", td.setAttribute("valign", "bottom"), td.setAttribute("align", "left"), td.setAttribute("colspan", "3"), a.appendChild(td), a = td; var d = parseInt(e.getAttribute("voteval")), l = GetRequest(); window.vote_html = a.innerHTML, a.innerHTML = "идет голосование...", l.onreadystatechange = function () { if (4 == l.readyState && 200 == l.status && "" != l.responseText) { var e = JSON.parse(l.responseText); if (e) if (a.style.color = "#000000", 100 == e.code) { var t = parseInt(i.getAttribute("votecount")) + 1, n = parseFloat(i.getAttribute("votevalue")) + d, e = Math.round(n / t * 10) / 10; document.getElementById("product_rating").innerHTML = e.toString(), a.innerHTML = "Ваш голос принят" } else a.innerHTML = "Вы уже оценивали данный продукт" } }, l.open("GET", "webservice.ashx?val=" + d + "&id=" + o + "&u=" + Math.round(1e8 * Math.random())), l.send(null), VKIsConnected() && VKOnMyPage(), FBIsConnected() && FBPostToFeedReview() } function Vote2(e) { document.forms.reviews_form.elements.votevalue.value = e } function OnVoteOver2(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 = -1 != n[o].src.indexOf(".out.gif") ? n[o].src.replace(".out.gif", ".over.gif") : n[o].src : n[o].src = -1 != n[o].src.indexOf(".over.gif") ? n[o].src.replace(".over.gif", ".out.gif") : n[o].src) } function OnVoteOut2(e) { opinion_timer && window.clearTimeout(opinion_timer), opinion_timer = window.setTimeout(function () { for (var t = document.forms.reviews_form.elements.votevalue.value, n = FindParent(e, { tagname: "table" }), i = n.getElementsByTagName("img"), o = 0; o < i.length; o++) i[o].hasAttribute("voteval") && (parseInt(i[o].getAttribute("voteval")) <= t ? i[o].src = -1 != i[o].src.indexOf(".out.gif") ? i[o].src.replace(".out.gif", ".over.gif") : i[o].src : i[o].src = -1 != i[o].src.indexOf(".over.gif") ? i[o].src.replace(".over.gif", ".out.gif") : i[o].src) }, 100) } 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 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 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 ClearPassword() { var e = document.getElementById("pw"); if (e && e.type && "text" == e.type.toLowerCase()) { PasswordNode = document.createElement("input"), PasswordNode.type = "password", PasswordNode.name = "pw", 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 Search = { init: !1, timer: null }, colorNext1 = "#000000", colorNext2 = "#ff0000", NodeNext = document.getElementById("BlinkText1"); null != NodeNext && setInterval("ChangeTextColorNext(NodeNext)", 500); 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() + "catalog.aspx?producer=" + t) } } function RedirectProducts() { var e = document.getElementById("CatalogOfProducts"); if (null != e) { var t = e.options[e.selectedIndex].value; "" == t || (document.location = GetBaseHref() + "catalog.aspx?product=" + t) } } 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 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() && FBLogOut()) } 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 s = "", r = "", o = "", u = document.getElementsByTagName("meta"); for (i = 0; i < u.length; i++) u[i].getAttribute("property") && ("og:title" == u[i].getAttribute("property") ? s = u[i].getAttribute("content") : "og:description" == u[i].getAttribute("property") ? o = u[i].getAttribute("content") : "og:image" == u[i].getAttribute("property") && (r = u[i].getAttribute("content"))); if (s) { var n = { method: "feed", link: window.location.href, picture: r, name: s, caption: s, description: o }; FB.ui(n, 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();