ftl3=1250;ftl29=1;
function ftI81(ftl194,ftl115='',ftl116='',ftl121=''){ if(ftl115!="") ftl194=ftl194+"('"+ftl115+"'";if(ftl116!="") ftl194=ftl194+",'"+ftl116+"'";if(ftl121!="") ftl194=ftl194+",'"+ftl121+"'";if(ftl115!="") ftl194=ftl194+")";location.href=ftl194;}
function ftI79(ftl81,ftl194,ftl115='',ftl116='',ftl121=''){ if(ftl115!="") ftl194=ftl194+"','"+ftl115;if(ftl116!="") ftl194=ftl194+"','"+ftl116;if(ftl121!="") ftl194=ftl194+"','"+ftl121;var ftl164='
';ftI96("spectro_results",ftl164);}
function ftI31(ftl81,ftl103,ftl52){ var ftl164='';ftI96("spectro_results",ftl164);}
ftl140=0;function ftI17(action){ var stop=0;if(ftl91==action){ var ftl186=ftl50.split("!GOT!");if(ftl186[1] && ftl186[1]!=""){ location.href=ftl186[1];stop=1; } } if(stop==0){ if(ftl140>5){ alert("Ошибка отправки. Попробуйте ещё раз...");} else { setTimeout(ftI46,300,action);ftl140++;} } }
function ftI43(ftl209,ftl169,ftl61,ftl33='',ftl15='',ftl16='',ftl17=''){ var ftl204=1;var ftl117="";var ftl118="";var ftl111="";if(ftl33!=""){ var ftl178=ftl33.split("|");ftl117=ftl178[0];ftl118=ftl178[1];var ftl135=ftl178[2].split("+");var ftl109=ftl135.length;for(var ftl212=0;ftl212ftl157 || ftl157==ftl163+1 || ftl157==ftl187.length-1)){ ftl192=document.getElementById(ftl135[ftl212]+ftl209);ftl47=ftl192.getAttribute("class");ftl47=ftl47+' spectro_wrong';ftl47=ftl47.replace("spectro_wrong spectro_wrong","spectro_wrong");ftl192.setAttribute('class',ftl47);ftl204=0;} else { ftl192=document.getElementById(ftl135[ftl212]+ftl209);ftl47=ftl192.getAttribute("class");ftl192.setAttribute('class',ftl47.replace("spectro_wrong",""));} } } if(ftl204==1){ var ftl170=document.getElementById(ftl169+ftl209);if(document.getElementById(ftl61+ftl209)){ ftI96(ftl61+ftl209,' '); } for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById(ftl169+"refresh"+ftl212)){ console.log('apprefresh/?url=https://spectrobizcom.ru/'+document.getElementById(ftl169+"refresh"+ftl212).value); } } if(ftl33!="" && ftl111!=""){ var ftl25="CRYPTcheck12345";ftl111=ftl111+"cryptcheck="+ftl25;ftl111=ftI42(ftl111);ftl111=ftl111.split("&").join("{AMP}");ftl111=ftl111.split("+").join("{P}");ftl111=ftl111.split(" ").join("{S}");ftI84("spectro_data",ftl117,ftl118,0,ftl111);setTimeout(ftI17,300,ftl118); } else ftl170.submit();} else { ftl192=document.getElementById(ftl61+ftl209);ftl47=ftl192.getAttribute("class");ftl47=ftl47+' spectro_wrong';ftl47=ftl47.replace("spectro_wrong spectro_wrong","spectro_wrong");ftl192.setAttribute('class',ftl47);} }
function ftI93(ftl208,ftl139){ if(document.getElementById(ftl208)) document.getElementById(ftl208).value=ftl139;}
function ftI96(ftl208,ftl139){ if(document.getElementById(ftl208)) document.getElementById(ftl208).innerHTML=ftl139;}
function ftI89(ftl208,ftl141,ftl139){ if(document.getElementById(ftl208)) switch(ftl141){ case "background": document.getElementById(ftl208).style.background=ftl139;break;case "bgposition": document.getElementById(ftl208).style.backgroundPosition=ftl139;break;case "bgurl": document.getElementById(ftl208).style.backgroundImage="url('"+ftl139+"')";break;case "width": document.getElementById(ftl208).style.width=ftl139+"px";break;case "height": document.getElementById(ftl208).style.height=ftl139+"px";break;case "top": document.getElementById(ftl208).style.top=ftl139+"px";break;case "left": document.getElementById(ftl208).style.left=ftl139+"px";break;case "margin-left": document.getElementById(ftl208).style.marginLeft=ftl139+"px";break;case "margin-top": document.getElementById(ftl208).style.marginTop=ftl139+"px";break;case "display": document.getElementById(ftl208).style.display=ftl139;break;case "position": document.getElementById(ftl208).style.position=ftl139;break;case "opacity": document.getElementById(ftl208).style.opacity=ftl139;break;case "border": document.getElementById(ftl208).style.border=ftl139;break;} }
function ftI97(ftl81,ftl194){ if(confirm(ftl81)) location.href=ftl194;}
function ftI18(ftl61,ftl47){ if(document.getElementById(ftl61)){ ftl192=document.getElementById(ftl61);ftl192.setAttribute('class',ftl47); } }
function ftI91(ftl69,ftl194,ftl61){ var ftl120=' ';var ftl166=new XMLHttpRequest();ftl166.open("get",ftl194,true);if(document.getElementById(ftl61)){ div=document.getElementById(ftl61);ftl47=div.getAttribute("class");ftl192.setAttribute('class',ftl47+' spectro_animate'); } else ftl47="";ftl166.onreadystatechange=function(){ if(ftl166.readyState==4){ var ftl71=ftl166.responseText;if(ftl71!=""){ ftI96(ftl69,''+ftl71+'
'+ftl120);if(document.getElementById("spectro_nodata")) ftI59(document.getElementById("spectro_nodata").value,"data");const ftl96=document.querySelectorAll("#"+ftl69+" script");ftl96.forEach(ftl123 => { const ftl32=document.createElement("script");ftl32.text=ftl123.textContent;document.body.appendChild(ftl32);ftl123.remove(); });if(ftl47!="") setTimeout(ftI18,1000,ftl61,ftl47);if(document.getElementById("spectro_dialoglist")){ ftI11();setTimeout(ftI11,2000); } } } };ftl166.send();}
ftl91="";ftl50="";function ftI84(ftl69,ftl117,ftl118,ftl175,ftl111){ if(ftl175==1){ ftI96(ftl69,' ');} var ftl166=new XMLHttpRequest();ftl166.open("post","https://spectrobizcom.ru/index.php",true);ftl166.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ftl166.onreadystatechange=function(){ if(ftl166.readyState==4){ var ftl71=ftl166.responseText;ftl91=ftl118;ftl50=ftl71;if(ftl71!="" && ftl175==1){ var ftl206=ftl71.split("-|null|-");if(ftl206[1] && ftl206[1]!="") ftl206[1]="";else ftI96(ftl69,ftl71); } } };ftl166.send("actionmode=ajax&module="+ftl117+"&action="+ftl118+"&"+ftl111);} ftl9=1;
function ftI57(ftl75){ if(ftl9==1) document.getElementById(ftl75).type='text';else document.getElementById(ftl75).type='password';ftl9=1-ftl9;}
function ftI76(ftl61,ftl47){ if(document.getElementById(ftl61)){ ftl192=document.getElementById(ftl61);ftl192.setAttribute('class',ftl47); } }
function ftI78(ftl193){ ftl143=parseInt(document.getElementById("spectro_jspages").value);for(var ftl212=1;ftl212window.innerWidth && window.innerWidth>0) ftl128=window.innerWidth;window.open("/showpic/id"+ftl208+"/","w"+ftl208,"toolbar=no,menubar=no,height="+ftl104+",width="+ftl128);}
function ftI100(ftl194,ftl169,ftl128,ftl104){ if(ftl128>window.innerWidth && window.innerWidth>0) ftl128=window.innerWidth;window.open(ftl194,ftl169,"toolbar=no,menubar=no,height="+ftl104+",width="+ftl128);}
function ftI85(ftl214){ if(ftl214) ftl169=ftl214;else ftl169="spectro_confirmregion";if(document.getElementById(ftl169)){ var ftl166=new XMLHttpRequest();ftl166.open("get","https://spectrobizcom.ru/selectregion/"+ftl169+"/",true);ftl166.onreadystatechange=function(){ if(ftl166.readyState==4){ var ftl71=ftl166.responseText;if(document.getElementById(ftl169)) document.getElementById(ftl169).innerHTML=ftl71; } };ftl166.send();ftI89(ftl169,"display","block"); } }
function ftI6(){ ftI89("spectro_confirmregion","margin-top","0");}
function ftI75(){ for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_movebg"+ftl212)) ftI89("spectro_movebg"+ftl212,"bgposition","0% 100%"); } setTimeout(ftI74,3000);}function ftI74(){ for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_movebg"+ftl212)) ftI89("spectro_movebg"+ftl212,"bgposition","100% 100%"); } setTimeout(ftI68,3000);}function ftI68(){ for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_movebg"+ftl212)) ftI89("spectro_movebg"+ftl212,"bgposition","100% 0%"); } setTimeout(ftI80,3000);}function ftI80(){ for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_movebg"+ftl212)) ftI89("spectro_movebg"+ftl212,"bgposition","0% 0%"); } setTimeout(ftI75,3000);}
function ftI10(){ document.getElementById('spectro_results').innerHTML='';}
ftl18=0;function ftI48(){ ftl18=1-ftl18;if(ftl18==1){ document.getElementById('spectro_formrules').innerHTML="Ваши контактные данные будут использоваться исключительно для вашего информирования по вашему запросу. "+"Никаких спам-рассылок,никакой навязчивой рекламы туда отправляться не будет. Ваши контактные данные никогда не "+"будут видны на сайте и не будут никому передаваться без вашего согласия. У вас всегда будет возможность удалить "+"свои контактные данные и отказаться от любых уведомлений. Отправляя данную форму,вы соглашаетесь с этими условиями.
";} else document.getElementById('spectro_formrules').innerHTML="";}
ftl19=0;function ftI41(ftl130){ ftl130=ftl130.split("oo").join("1");ftl130=ftl130.split("tt").join("2");ftl130=ftl130.split("hh").join("3");ftl130=ftl130.split("ff").join("4");ftl130=ftl130.split("ii").join("5");ftl130=ftl130.split("ss").join("6");ftl130=ftl130.split("ee").join("7");ftl130=ftl130.split("gg").join("8");ftl130=ftl130.split("nn").join("9");ftl130=ftl130.split("zz").join("0");return(ftl130);}
/* ftl131=0;function ftI63(){ ftl167=0;var ftl168=document.getElementsByTagName('div');for(var ftl212=0;ftl212") setTimeout(Spectro_OnlineFirst,5000);document.getElementById("spectro_dialog").innerHTML=dialog[0]; }*/ if(ftl206[9] && ftl206[9]!="" && document.getElementById("spectro_phone_top")) document.getElementById('spectro_phone_top').innerHTML=ftI41(ftl206[9]);if(ftl206[10] && ftl206[10]!="" && document.getElementById("spectro_phone_bottom")) document.getElementById('spectro_phone_bottom').innerHTML=ftI41(ftl206[10]);if(ftl206[11] && ftl206[11]!=""){ ftl206[11]=ftl206[11].split("[A]").join("@");ftl206[11]=ftl206[11].split("[S]").join("mailto:");ftl206[11]=ftl206[11].split("[D]").join(".");if(document.getElementById("spectro_sitemail_top")) document.getElementById('spectro_sitemail_top').innerHTML=ftl206[11];if(document.getElementById("spectro_sitemail_bottom")) document.getElementById('spectro_sitemail_bottom').innerHTML=ftl206[11];if(document.getElementById("spectro_sitemail_page")) document.getElementById('spectro_sitemail_page').innerHTML=ftl206[11]; } if(ftl206[12] && ftl206[12]!=""){ ftl206[12]=ftI41(ftl206[12]);if(document.getElementById("spectro_phone_region_top")) document.getElementById('spectro_phone_region_top').innerHTML=ftl206[12];if(document.getElementById("spectro_phone_region_bottom")) document.getElementById('spectro_phone_region_bottom').innerHTML=ftl206[12];if(document.getElementById("spectro_phone_region_page")) document.getElementById('spectro_phone_region_page').innerHTML=ftl206[12]; } } };ftl166.send();}
function ftI88(){ ftI7();ftI19();ftl26=0;if(document.getElementById("spectro_noregion")) setTimeout(ftI6,3000);/* if(document.getElementById("spectro_end")) setTimeout(ftI63,100);*/ ftl55=0;for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_slider"+ftl212)){ ftl55=1;setTimeout(ftI39,3000); } } if(ftl55==1) ftI13();ftl56=0;for(var ftl212=1;ftl212<6;ftl212++){ if(document.getElementById("spectro_movebg"+ftl212)) ftl56=1; } if(ftl56==1) ftI75();if(document.getElementById("spectro_scanpage")) setTimeout(ftI65,3000);if(document.getElementById("spectro_dialoglist")){ ftI11();setTimeout(ftI11,2000); } console.log('CleanPush');if(document.getElementById("spectro_crypt")) Spectro_UnCryptData();if(document.getElementById("spectro_calc")) Spectro_initCalc();if(document.getElementById("dataview")){ htmlEditor=new Application.Editor({ ID: 'dataview' });htmlEditor.EditMode=1;htmlEditor.SetHeight();var fontc=new MooRainbow('fontc',{ id: 'chfontcol',wheel: true,'startColor': [58,142,246],onChange:function(color){ htmlEditor.SetColor(color.hex);},onComplete:function(color){ htmlEditor.SetColor(color.hex);} }); } if(document.getElementById("deliverymap")) ymaps.ready(initYMaps);if(document.getElementById("outjsonload")) OutJSonload();if(document.getElementById("spectrosnow1")) ftI77();}
function ftI20(ftl208){ if(document.getElementById(ftl208).checked==false) document.getElementById(ftl208).checked=true;else document.getElementById(ftl208).checked=false;}
function ftI86(ftl137,ftl169,ftl135,ftl142,ftl107,ftl190){ if(document.getElementById(ftl137+"open")) document.getElementById(ftl137).innerHTML="";else { var ftl166=new XMLHttpRequest();ftl166.open('get','https://spectrobizcom.ru/cms-field2/'+ftl137+'/'+ftl169+'/'+ftl135+'/'+ftl142+'/'+ftl107+'/id'+ftl190+'/',true);ftl166.onreadystatechange=function(){ if(ftl166.readyState==4){ var ftl71=ftl166.responseText;document.getElementById(ftl137).innerHTML=ftl71; } };ftl166.send(null); } }
function ftI67(ftl184,ftl108,ftl209){ document.getElementById('goodimg'+ftl108+"_"+ftl209).src=ftl184;}
function ftI82(ftl184,ftl108){ ftI89("spectro_movebg2","bgurl",ftl184);document.getElementById('good'+ftl108).src=ftl184;}
function ftI69(ftl190,ftl156){ ftl156.focus();if(ftl156.setSelectionRange) ftl156.setSelectionRange(ftl190,ftl190);else if(ftl156.createTextRange){ var ftl132=ftl156.createTextRange();ftl132.collapse(true);ftl132.moveEnd("character",ftl190);ftl132.moveStart("character",ftl190);ftl132.select() } }
function ftI49(ftl136,ftl159="phone"){ var ftl124="+7(___) ___-__-__",ftl74=ftl136.target,ftl212=0;switch(ftl159){ case "time": ftl124="__:__";break;case "date": ftl124="__.__.____";break;} var ftl198=ftl124.replace(/\D/g,""),ftl187=ftl74.value.replace(/\D/g,"");if(ftl198.length >= ftl187.length) ftl187=ftl198;ftl74.value=ftl124.replace(/./g,function(ftl213){ return /[_\d]/.test(ftl213) && ftl212= ftl187.length ? "" : ftl213 });if(ftl136.type=="blur"){ if(ftl74.value.length==2) ftl74.value="" } else ftI69(ftl74.value.length,ftl74) }
ftl205="";ftl207="";
function ftI59(ftl139,ftl177){ var ftl173=ftl139.split("dspectrobizcom.rud");if(ftl173[1] && ftl173[1]!="" && ftl173[2] && ftl173[2]!="" && ftl173[3] && ftl173[3]!=""){ ftl149="0fti1fti2fti3fti4fti5fti6fti7fti8fti9ftiAftiBftiCftiDftiEftiFftiGftiHftiIftiJftiKftiLftiMftiNftiOftiPftiQftiRftiSftiTftiUftiVftiWftiXftiYftiZ";ftl150="aftibfticftidftieftifftigftihftiiftijftikftilftimftinftioftipftiqftirftisftitftiuftivftiwftixftiyftizfti fti+fti-fti.fti,fti:fti;fti?fti!fti@";ftl151="АftiБftiВftiГftiДftiЕftiЁftiЖftiЗftiИftiЙftiКftiЛftiМftiНftiОftiПftiРftiСftiТftiУftiФftiХftiЦftiЧftiШftiЩftiЪftiЫftiЬftiЭftiЮftiЯ";ftl152="аftiбftiвftiгftiдftiеftiёftiжftiзftiиftiйftiкftiлftiмftiнftiоftiпftiрftiсftiтftiуftiфftiхftiцftiчftiшftiщftiъftiыftiьftiэftiюftiя";ftl200=ftl149.split("fti");ftl201=ftl150.split("fti");ftl202=ftl151.split("fti");ftl203=ftl152.split("fti");ftl139=ftl173[1];ftl179=ftl173[0].split("");ftl153=ftl179.length;ftl173[0]="";ftl14="";ftl100=1;for(ftl212=0;ftl2120) ftl14=ftl14+ftl179[ftl212];else if(ftl14!=""){ ftl173[0]=ftl173[0]+ftl14+"O";ftl14=""; } } ftl173[0]=ftl173[0]+ftl14;ftl179=ftl173[0].split("O");ftl153=ftl179.length;ftl181=ftl173[2].split("");ftl154=ftl181.length;ftl173[2]="";ftl100=1;ftl14="";for(ftl212=0;ftl2120) ftl14=ftl14+ftl181[ftl212];else if(ftl14!=""){ ftl173[2]=ftl173[2]+ftl14+"O";ftl14=""; } } ftl173[2]=ftl173[2]+ftl14;ftl181=ftl173[2].split("O");ftl153=ftl179.length;ftl154=ftl181.length;if(ftl177=="data"){ for(ftl212=0;ftl2120) ftl14=ftl14+ftl179[ftl212];else if(ftl14!=""){ ftl173[0]=ftl173[0]+ftl14+"O";ftl14=""; } } ftl173[0]=ftl173[0]+ftl14;ftl179=ftl173[0].split("O");ftl153=ftl179.length;ftl181=ftl173[2].split("");ftl154=ftl181.length;ftl173[2]="";ftl100=1;ftl14="";for(ftl212=0;ftl2120) ftl14=ftl14+ftl181[ftl212];else if(ftl14!=""){ ftl173[2]=ftl173[2]+ftl14+"O";ftl14=""; } } ftl173[2]=ftl173[2]+ftl14;ftl181=ftl173[2].split("O");ftl153=ftl179.length;ftl154=ftl181.length;for(ftl212=0;ftl2125){ alert("Ошибка отправки. Попробуйте ещё раз...");ftI91("spectro_dialoglist","https://spectrobizcom.ru/private/dialoglist/id"+ftl65+"/frame/");ftI11();setTimeout(ftI11,2000);} else { setTimeout(ftI46,300,ftl209,ftl65);ftl140++;} } }
function ftI24(ftl209,ftl66){ var ftl88=document.getElementById("spectro_message"+ftl209).value;var ftl67=document.getElementById("spectro_title"+ftl209).value;var ftl68=document.getElementById("spectro_themename"+ftl209).value;var ftl37=document.getElementById("spectro_statusname"+ftl209).value;var ftl38=document.getElementById("spectro_item"+ftl209).value;var ftl25="CRYPTcheck12345";var ftl65=document.getElementById("spectro_dialogid"+ftl209).value;var ftl174=document.getElementById("spectro_from"+ftl209).value;var ftl199=document.getElementById("spectro_to"+ftl209).value;if(ftl88!=""){ ftl88=ftl88.split("&").join("{AMP}");ftI96("spectro_dialbutt"+ftl209,' ');ftl111="message="+ftl88+"&theme="+ftl68+"&title="+ftl67+"&status="+ftl37+"&linkid="+ftl38+"&dialogid="+ftl65+"&from="+ftl174+"&to="+ftl199+"&cryptcheck="+ftl25;if(ftl66!=""){ ftl111=ftI42(ftl111);ftl111=ftl111.split("&").join("{AMP}");ftl111=ftl111.split("+").join("{P}");ftl111=ftl111.split(" ").join("{S}");ftI84("spectro_data","dialog/","addtodialog",0,ftl111);setTimeout(ftI46,300,ftl209,ftl65);} else { ftI84("spectro_data","dialog/","addtodialog",0,ftl111);ftI91("spectro_data","https://spectrobizcom.ru/private/dialog/id"+ftl65+"/frame/");ftI11();setTimeout(ftI11,2000); } } else { ftl192=document.getElementById('spectro_message'+ftl209);ftl47=div.getAttribute("class");ftl192.setAttribute('class',ftl47+' spectro_animate');} }
function ftI11(){ if(document.getElementById("spectro_dialoglist")){ var ftl112=document.getElementById("spectro_dialoglist");ftl112.scrollTop=ftl112.scrollHeight; } }
ftl94=0;function ftI77(){ if(ftl94==0){ ftI95();ftl94=1;} }
var ftl95=[0,222,13,30,28,344,170,299,124,150];var ftl72=[0,100,300,700,900,400,560,800,200,555];function ftI95(){ if(window.innerWidth) ftl3=window.innerWidth;else if(document.documentElement && document.documentElement.clientWidth) ftl3=document.documentElement.clientWidth;else if(document.body && document.body.clientWidth) ftl3=document.body.clientWidth;if(ftl3>1000){ for(var ftl212=1;ftl212<11;ftl212++){ ftl196='spectrosnow'+ftl212;ftI89(ftl196,'top',ftl95[ftl212]);ftl95[ftl212]=ftl95[ftl212]+Math.floor(Math.random()*(4-1)+1);ftI89(ftl196,'margin-left',ftl72[ftl212]);ftl72[ftl212]=ftl72[ftl212]+Math.floor(Math.random()*2);if(ftl95[ftl212]>600){ ftl95[ftl212]=Math.floor(Math.random()*(190-1)+1);ftl72[ftl212]=Math.floor(Math.random()*(990-1)+1);} if(ftl72[ftl212]>1000) ftl72[ftl212]=Math.floor(Math.random()*(990-1)+1); } setTimeout(ftI95,50);} else { for(var ftl212=1;ftl212<11;ftl212++){ ftl196='spectrosnow'+ftl212;ftI89(ftl196,'display','none'); } } }
window.onload=function(){ftI88();};window.onscroll=function(){if (typeof ftI8 === "function") ftI8();};window.onfocus=function(){ftl29=1;};window.onblur=function(){ftl29=0;};