function createObject() {var request_type;var browser = navigator.appName;if(browser == "Microsoft Internet Explorer"){request_type = new ActiveXObject("Microsoft.XMLHTTP");} else {request_type = new XMLHttpRequest(); }return request_type;}function страница(tx){ var http = new XMLHttpRequest();var http = createObject(); nocache = Math.random();http.open('GET', tx+'?nocache = '+nocache, false); http.send(null);if(http.status == 200) { var txt = http.responseText; } else { var txt= 'не найдено'; } return txt;}function страницы(tx){var xmlhttp = createObject(); nocache = Math.random(); xmlhttp.open('POST', tx+'&nocache = '+nocache, false); xmlhttp.send(null);if(xmlhttp.status == 200) { var txt = xmlhttp.responseText; } else { var txt= 'не найдено'; } return txt;}function addEvent(el, t, l) {if(el.addEventListener) { tx = el.addEventListener(t,l,false); return(tx) }else{ tx = el.attachEvent("on"+t,function() {l.apply(el);}); return(tx) }}function $s(id) {return document.getElementById(id);}function $ss(id,b) {return document.getElementById(id).parentNode.getElementsByTagName(b);}function $a(id) {return document.getElementById(id);}function $tid(a,b) {return document.getElementById(a).getElementsByTagName(b);}function $tids(a,b,c) {return document.getElementById(a).getElementsByTagName(b)[c];}function $tidss(a,b,c,d) {return document.getElementById(a).getElementsByTagName(b)[c].getElementsByTagName(d);}function $tidsss(a,b,c,d,e,f) {return document.getElementById(a).getElementsByTagName(b)[c].getElementsByTagName(d)[e].getElementsByTagName(f);}function $tv(a,b,c) {return document.getElementsByClassName(a)[b].getElementsByTagName(c);}function $tv2(a,b,c,d,e) {return document.getElementsByClassName(a)[b].getElementsByTagName(c)[d].getElementsByTagName(e);}function $fact(a,b) {return a.getElementsByTagName(b);}function $facts(a,b,c) {return a.getElementsByTagName(b)[c];}function $f2(a,b,c,d) {return a.getElementsByTagName(b)[c].getElementsByTagName(d);}function $sw(a) {return document.getElementsByClassName(a);}function $style(a,b) {return window.getComputedStyle(a).getPropertyValue(b); }function $p(a,b) {return a.parentNode.getElementsByTagName(b);}function $pn(a,b,c) {return a.parentNode.getElementsByTagName(b)[c];}function $pnpn(a,b,c) {return a.parentNode.parentNode.getElementsByTagName(b)[c];}function $p2(a,b,c) {return a.parentNode.parentNode.getElementsByTagName(b)[c];}function $p3(a,b,c) {return a.parentNode.parentNode.parentNode.getElementsByTagName(b)[c];}function $p4(a,b,c) {return a.parentNode.parentNode.parentNode.parentNode.getElementsByTagName(b)[c];}function $sn(b) {return document.getElementsByName(b); }function $tidsf(a,b,c,d) {return document.getElementById(a).getElementsByTagName(b)[c].getElementsByTagName(d);}if(!document.getElementsByClassName){document.getElementsByClassName = function (class_name) {var elements = document.body.getElementsByTagName("*"),length = elements.length,out = [], i;for (i = 0; i < length; i += 1) {if (elements[i].className.indexOf(class_name) !== -1) {out.push(elements[i]);}}return out;};}var zrs = 0;function artZoom(lost){var backGS = страницы('/h/zoom.php?id='+lost.getAttribute('zoom')+'&nocache = '+nocache);var back = JSON.parse ( backGS ); zrs++;console.log(zrs+' - '+lost.getAttribute('zoom'));lost.lang = back['maxi']; lost.src = back['mini'];console.log(lost);}function getCookie(name) {var matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" ));return matches ? decodeURIComponent(matches[1]) : null; }function deleteCookie(name) { let cookieExp = new Date(0);cookieExp.setMonth(cookieExp.getMonth()-1);let date = new Date(0);document.cookie = name+"=; path=/; expires=" + date.toUTCString();}function aspZoomImg(){boxAspHead = document.createElement('DIV');boxAsp = document.createElement('DIV');boxAspDiv = document.createElement('DIV');zoom = document.createElement('DIV');zoomClose = document.createElement('DIV');zoomComent = document.createElement('DIV');zoomComentTxt = document.createElement('DIV');zoomImg = document.createElement('IMG');boxAspHead.id = 'boxASPHead'; boxAsp.id = 'boxASP';boxAspDiv.id = 'boxDiv'; zoom.id = 'zoomLoadImg';zoomClose.className = 'zoomClose';zoomComent.className = 'zoomLoadImgComent'; zoomComent.innerHTML = this.alt;zoomComentTxt.className = 'zoomLoadImgComentTetx'; zoomComentTxt.innerHTML = 'Всего изображений: '+$fact(this.parentNode.parentNode,'IMG').length;if(this.src && this.lang){zoomImg.src = this.lang;}else if(this.src && !this.lang){zoomImg.src = this.src;}else{zoomImg.src = $facts(this,'IMG',0).lang;}var NullBody = document.body.childNodes[0];document.body.insertBefore(boxAspHead, NullBody);document.body.insertBefore(boxAsp, NullBody); boxAsp.appendChild(boxAspDiv);boxAspDiv.appendChild(zoom);zoom.appendChild(zoomClose);zoom.appendChild(zoomImg);zoomClose.onclick = function() { document.body.removeChild( boxAspHead ); document.body.removeChild( boxAsp ); }}if($sw('aspFotoGallery').length>0){for (var i=0; i < $tv('aspFotoGallery',0,'LI').length; i++) {$tv('aspFotoGallery',0,'LI')[i].onclick= aspZoomImg;}} if($s('aspManualAndIcon')){if($tids('aspManualAndIcon','IMG',0)){ $tids('aspManualAndIcon','IMG',0).onclick = aspZoomImg; }}if($s('marketPrice')){if($tids('marketPrice','IMG',0)){ $tids('marketPrice','IMG',0).onclick = aspZoomImg; }} if($sw('slideMini').length>0){for (var i=0; i < $sw('slideMini').length; i++) {$sw('slideMini')[i].onclick= aspZoomImg;}}