

function hide_id(nodeId)
{
    var node = document.getElementById(nodeId);
    if (node)
    {
        node.className=node.className.replace('showed', '');
        node.className += ' hidden';
    }
}

function show_id(nodeId)
{
    var node = document.getElementById(nodeId);
    if (node)
    {
        node.className=node.className.replace('hidden', '');
        node.className += ' showed';
    }
}

function toggle_id(nodeId)
{
    var node = document.getElementById(nodeId);
    if (node)
    {
        if (node.className.indexOf('hidden') != -1)
            node.className=node.className.replace('hidden', 'showed')
        else if (node.className.indexOf('showed') != -1)
            node.className=node.className.replace('showed', 'hidden')
        else node.className += ' showed';
     }
}

function setPrintCSS(isPrint) {
// By Akella cssing.org.ua

  if (document.getElementsByTagName)
      x = document.getElementsByTagName('link');
  else
  {
      alert('fail');
      return;
  }

  for (var i=0;i<x.length;i++) {
      if(x[i].title == 'printview'){x[i].disabled = !isPrint;}
      if(x[i].title == 'screenview'){x[i].disabled = isPrint;}
  }
}

/*звезды*/
vote_star = function() {
	var forms = document.getElementsByClassName("voteform");

    for (var k=0; k<forms.length; k++)
    {
    	var labels = forms[k].getElementsByTagName('label');
    	var labelsLnt = labels.length;

    	for(var i=0; i<labelsLnt; i++)
    	{
            labels[i].onclick=function()
            {
               this.className+=" voted";
               this.parentNode.className+=" inactive";
            }
        }
    }
}
document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++) {
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
}; 



/* --=========Проверка полей shopiingcart===============--*/
function checkForm(f)
{

 var err = '';
 var lang = document.lastChild.getAttribute('lang');
 
 if (document.getElementById('Name').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'ФИО' : 'Your name') + '</li>';
  
 }
 if (document.getElementById('Phone').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Телефон' : 'Phone') + '</li>';
 }
 
 if (document.getElementById('Email').value != '')
 {
  if (!checkEmail(document.getElementById('Email').value))
   err = err + '<li>' + (lang=='ru' ? 'Корректный Email' : 'Valid Email') + '</li>';
 }
 
 if (err != '')
 {
  err ='<h4>'+(lang=='ru' ? 'Пожалуйста заполните:' : 'Please fill in:') + '</h4><ul>' + err + '</ul>';

  
  document.getElementById('fill_form').innerHTML=err;
  document.getElementById('fill_form').className="visible";
return false;
 }
 
 return true;
}

function checkEmail(e)
{
 ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

 for(i=0; i < e.length ;i++)
  if(ok.indexOf(e.charAt(i))<0)
   return (false);

 if (document.images)
 {
  re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
  re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
  if (!e.match(re) && e.match(re_two))
   return true;
  else
   return false;

 }
 return true;

}

/*Проверка полей "Оставить комментарий"*/
function checkForm3(f)
{
 var err = '';
 var lang = document.lastChild.getAttribute('lang');
  if (document.getElementById('post_username').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'ФИО' : 'Your name') + '</li>';
 }
  if (document.getElementById('Body').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Комментарий' : 'Comment') + '</li>';
 }

 if (err != '')
 {
  err ='<h4>'+(lang=='ru' ? 'Пожалуйста заполните:' : 'Please fill in:') + '</h4><ul>' + err + '</ul>';
  document.getElementById('fill_form').innerHTML=err;
  document.getElementById('fill_form').className="visible";
  return false;
 }
 
 return true;
}

/*Проверка полей "Отправить письмо"*/
function checkForm2(f)
{
 var err = '';
  var lang = document.lastChild.getAttribute('lang');
 if (document.getElementById('Name').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'ФИО' : 'Your name') + '</li>';
 }
 if (document.getElementById('Email').value == '')
 {
  err = err + '<li>Email</li>';
 }
  
  if (document.getElementById('Subject').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Тему письма' : 'Subject') + '</li>';	 
 }
  if (document.getElementById('Body').value == '')
 {
    err = err + '<li>' + (lang=='ru' ? 'Сообщение' : 'Message') + '</li>';	 
 }

if (document.getElementById('Email').value != '')
 {
  if (!checkEmail(document.getElementById('Email').value))
   err = err + '<li>' + (lang=='ru' ? 'Корректный Email' : 'Valid Email') + '</li>';
 }
 
 if (err != '')
 {
  err ='<h4>'+(lang=='ru' ? 'Пожалуйста заполните:' : 'Please fill in:') + '</h4><ul>' + err + '</ul>';
  document.getElementById('fill_form').innerHTML=err;
  document.getElementById('fill_form').className="visible";
  return false;
 }
 
 return true;
}

/*Проверка полей "Оставить комментарий"*/
 function checkFormTestimonials(f)
{
 var err = '';
  var lang = document.lastChild.getAttribute('lang');
 if (document.getElementById('Name').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'ФИО' : 'Your name') + '</li>';
 }
  if (document.getElementById('Age').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Возраст' : 'Age') + '</li>';
 }

  if (document.getElementById('City').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Город' : 'City') + '</li>';
 }
  if (document.getElementById('Testimonials').value == '')
 {
  err = err + '<li>' + (lang=='ru' ? 'Комментарии' : 'Testimonials') + '</li>';
 }


 if (err != '')
 {
  err ='<h4>'+(lang=='ru' ? 'Пожалуйста заполните:' : 'Please fill in:') + '</h4><ul>' + err + '</ul>';
  document.getElementById('fill_form').innerHTML=err;
  document.getElementById('fill_form').className="visible";
  return false;
 }
 
 return true;
}

   




/* * ************** customcheckbox ******************/

function customchkbox()
{
    	var checks = document.getElementById('search-form').getElementsByTagName('label');
    	var checksLnt = checks.length;
    	for(var i=0; i<checksLnt; i++)
    	{
    		var curr = checks[i];
    		var box = checks[i].firstChild;
    		if (box.nodeName == 'INPUT') {
        		box.className = 'lost';
				box.style.left = '-9999em';
        		checks[i].className += box.type;
    	    	checks[i].className += (box.checked) ? '-on' : '-off';
            }
            else break;

    		box.onclick = function()
    		{
    			var label = this.parentNode;
   				label.className = (label.className.indexOf('-on')+1) ? label.className.replace('-on','-off') : label.className.replace('-off','-on');
    		}
    	}
}

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;


/*==========lightgalary==============*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h 2T=(7(){h R={1i:[],1f:v,3a:15,1h:{1R:1,y:20,1K:30,3e:0,38:1,32:1,2m:"2T"},1S:{1J:"3M",1y:"3E",1x:"1p 3y",1C:"1p 4m",2C:"4a 47",3b:"3Y 3X",1F:"3V",37:"2o",2n:"2n"},3Q:7(G){N(6.1S,G)},3N:7(U){h W=6.1h;N(W,U);h Y=1c.2P("a"),T,X;12(h V=0,S=Y.17;V<S;V++){4(T=Y[V].3t){4(X=T.3p(1e 4i("^"+W.2m+"\\\\[([a-4f-Z]+)\\\\]|"+W.2m+"$"))){F(Y[V],"1l",6.3g);4(X[1]){Y[V].2v=X[1];4(!6.1i[X[1]]){6.1i[X[1]]=[]}Y[V].3d=6.1i[X[1]].2u(Y[V])-1}}}}h G=1c.2P("2t")[0];G.2r(6.1G=C("11",{2q:"3U"}));G.2r(6.13=6.36());4(G.35){F(G,"33",O)}i{F(t,"33",O)}6.16=C("2Z",{1b:""});6.16.3P=7(){R.2X();R.16.1B=1;R.1a.2i("1b",R.16.1b);R.1X();R.2W(R.1f)};6.2V=6.13.1P;6.2S=0},2e:7(){h G=D();J(R.1G,{s:(R.2c=G[0]-20)+"z",r:(R.26=G[1])+"z",1g:"1L"});K(R.1G,0,3C,9);R.1a.u.1g="1L";R.1X();J(R.13,{14:"1O",1g:"1L"});R.1A=1},1F:7(){R.1G.u.1g="2f";J(R.13,{14:"1I",1g:"2f"});R.1A=0;h G=R.16;G.1b=R.1a.1b="";G.1B=0},36:7(){h S=R.1S;4(R.1h.38){h T=C("11",{"18":"3v",19:S.1x,1j:{1l:R.1x}});h G=C("11",{"18":"3s",19:S.1C,1j:{1l:R.1C}})}p C("11",{2q:"3o"},C("11",0,T,G,6.39=C("11",{"18":"3m",19:S.2C,1j:{1l:R.2F}}),6.2D=C("11",{"18":"4h"}),C("11",{"18":"4e",19:S.1F,1j:{1l:R.1F}}),C("4d",{4c:"4b"})),6.1a=C("2Z",{2q:"49",s:25,r:25}),6.2z=C("11",{"18":"48"}),6.23=C("11",{"18":"46",19:S.1y,1j:{1l:R.1y,3f:P,3c:Q}}),6.21=C("11",{"18":"42",19:S.1J,1j:{1l:R.1J,3f:P,3c:Q}}))},1x:7(){R.1p(1.1)},1C:7(){R.1p(0.9)},2F:7(){4(6.$2s){p}h S=R.1a,G=R.16;R.1p(S.s==G.s&&S.r==G.r?0:1)},1p:7(G){R.24();R.1X(G)},1X:7(j){h k=R.16,f=R.1a,l=k.s,T=k.r,g,V,c,m,d=R.2S,b=R.2V,e=R.3a,X=R.39;1q=R.1h,1D=R.1S,y=1q.y,2p=D(),1r=2p[2],1t=2p[3],34=1r/1t,1W=l/T;4(k.1B&&!j){4(1r>(l+d+e)&&1t>(T+b+e)){h Z=1;g=l;V=T}i{4(34>1W){g=w.1s((V=1t-b-e)*1W)}i{V=w.1s((g=1r-d-e)*1W)}}c=(f.s=g)+d;m=(f.r=V)+b}i{4(j==1){h W=1;c=(f.s=k.s)+d;m=(f.r=k.r)+b}i{4(j<1||j>1){c=(f.s=w.1s(f.s*j))+d;m=(f.r=w.1s(f.r*j))+b}i{c=m=25;h G=1}}}4(Z){X.1w="3T";X.$2s=1}i{X.1w=W?"3S":"3m";X.2i("19",W?1D.3b:1D.2C);X.$2s=0}c=w.3R(c,25);J(R.1G,{s:(c>R.2c?c+10:R.2c)+"z",r:(m>R.26?m+10:R.26)+"z"});h n=L(),Y=(1t>m?w.1s(w.2Y((1t-m)/2)):0)+n[1],a=(1r>c?w.1s(w.2Y((1r-c)/2)):0)+n[0],o=(c/3)+"z",S=(m-b-10)+"z";J(R.21,{s:o,r:S});J(R.23,{s:o,r:S});4(1q.1R&&!G){h U=1e A(R.13,y,1q.1K);4(1q.3e){U.x("s",v,c,0,y);U.x("2l",v,a,0,y);U.x("r",v,m,0,y);U.x("2k",v,Y,0,y)}i{h q=w.1V(y/2);U.x("s",v,c,0,q);U.x("2l",v,a,0,q);U.x("r",v,m,q,y);U.x("2k",v,Y,q,y)}U.1v(7(){R.2j()},1q.y-1);U.1z()}i{J(R.13,{2k:Y+"z",2l:a+"z",s:c+"z",r:m+"z"});R.2j()}},2W:7(S){4(t.3O){p}h G=R.1i[R.1E];4(!G){p}(1e 2o).1b=(G[S+1]!==1Z)?G[S+1].1Y:"";(1e 2o).1b=(G[S-1]!==1Z)?G[S-1].1Y:""},3g:7(S){h G=6.3d,S=S||t.2h;B(S);4(6.2v&&G>-1){R.1E=6.2v;R.1Q(G)}i{R.2U(6)}},2U:7(G){4(!R.1A){R.2e()}R.24();R.2g();R.16.1B=0;R.16.1b=G.1Y;R.2z.1H=G.19;R.2D.1H="";R.23.u.14="1I";R.21.u.14="1I"},1Q:7(S){4(!S&&R.1E===v){p}4(!R.1A){R.2e()}h G=R.1i[R.1E],T=R.16,W=R.23,V=R.21,U=V.u,X=W.u;4(S<0||S>G.17-1){p}R.24();R.2g();T.1B=0;T.1b=G[S].1Y;R.2z.1H=G[S].19;R.2D.1H=1D.37+" "+(S+1)+" "+1D.2n+" "+G.17;4(S===0){E(W,0);W.$1d=0;V.$1d=1;X.14="1I";U.14="1O"}i{4(S===G.17-1){E(V,0);W.$1d=1;V.$1d=0;X.14="1O";U.14="1I"}i{4(S>0||S<G.17-1){W.$1d=V.$1d=1;X.14=U.14="1O"}}}R.1f=S;t.3L()},2g:7(){R.13.1w="3K"},2X:7(){R.13.1w=""},24:7(){12(h G=R.13.2y.17;--G>-1;){R.13.2y[G].u.1g="2f"}E(R.1a,0)},2j:7(){h G=R.13.2y,T=R.1h,U=7(){12(h V=G.17;--V>-1;){G[V].u.1g="1L"}};4(T.32){h S=1e A(R.1a,8,T.1K);S.x("1n",0,1m);S.1v(U,0);S.1z()}i{U();E(R.1a,1m)}},1J:7(){4(R.1f<R.1i[R.1E].17-1){R.1Q(++R.1f)}},1y:7(){4(R.1f>0){R.1Q(--R.1f)}}};7 O(S){4(!R.1A){p}h S=S||t.2h,G=S.2R?S.2R:(S.2Q?S.2Q:S.3J);3I(G){1o 3H:R.1J();1u;1o 3G:R.1y();1u;1o 3F:R.2F();1u;1o 43:R.1x();1u;1o 45:R.1C();1u;1o 27:R.1F()}B(S)}7 P(){4(6.$1d){K(6,0,1m)}}7 Q(){4(6.$1d){I(6,1m,0)}}7 K(U,T,G,W,V){G=G||1m;4(R.1h.1R){h S=1e A(U,W||5,V||40);S.x("1n",T||0,G);S.1z()}i{E(U,G)}}7 I(U,T,G,W,V){G=G||0;4(R.1h.1R){h S=1e A(U,W||5,V||40);S.x("1n",T||1m,G);S.1z()}i{E(U,G)}}7 B(G){4(G.2O){G.2O()}i{G.3D=2N}}7 F(T,S,G){4(t.2M){T.2M(S,G,2N)}i{T["e"+S+G]=G;T[S+G]=7(){T["e"+S+G](t.2h)};T.35("3B"+S,T[S+G])}}7 N(T,S){12(h G 2b S){T[G]=S[G]}}7 J(S,G){N(S.u,G)}7 D(){h W,S,U,Y,G=1c.2t,X=1c.2L;4(t.1N&&t.2K){W=G.2a;S=t.1N+t.2K}i{4(G.1M>G.1P){W=G.2a;S=G.1M}i{4(X&&X.1M>X.1P){W=X.2a;S=X.1M}i{W=G.3A;S=G.1P}}}4(29.1N){U=29.3z;Y=29.1N}i{4(X&&X.28){U=X.2J;Y=X.28}i{4(G){U=G.2J;Y=G.28}}}h V=S<Y?Y:S;h T=W<U?U:W;p[T,V,U,Y]}7 L(){h T=0,S=0,G=1c.2t,U=1c.2L;4(2d(t.2I)=="3x"){S=t.2I;T=t.3w}i{4(G&&(G.1T||G.1U)){S=G.1U;T=G.1T}i{4(U&&(U.1T||U.1U)){S=U.1U;T=U.1T}}}p[T,S]}7 M(T,G){h U=1c.3u;4(T.u[G]){p T.u[G]}i{4(T.2H){p T.2H[G]}i{4(U&&U.31){G=G.3r(/([A-Z])/g,"-$1");G=G.3W();h S=U.31(T,"");p S&&S.3q(G)}}}p v}7 E(){E=1k[0].3Z?7(G,S){G.u.41="3n(1n="+S+")"}:7(G,S){G.u.1n=S/1m};E(1k[0],1k[1])}7 C(T,S){h X=1c.44(T);4(S){12(h V 2b S){4(V=="1j"){12(h U 2b S[V]){F(X,U,S[V][U])}}i{h Y=S[V];4(2d Y!="1Z"){4(V=="18"||V=="12"){V={"12":"4l","18":"1w"}[V]||V;X[V]=Y}i{X.2i(V,Y)}}}}}12(h W=2,G=1k.17;W<G;W++){4(2d 1k[W]=="4k"){X.1H+=1k[W]}i{X.2r(1k[W])}}p X}7 A(S,G,T){4(!S){p v}6.2w=S;6.2x=G||0;6.22=[];6.1K=T||10}A.3l={x:7(G,T,Z,X,S){4(!G||Z==="1Z"||Z===v){p}4(G!=="1n"){T=4g(M(6.2w,G))}X=X||0;S=S||6.2x;h W=6.2w,a=6.22,Y=(S-X)||1,V=T>Z,U=w.1V((V?T-Z:Z-T)/Y);12(X;X<S;X++){T=V?(T-Z)<=U?Z:w.1V(T-U):(Z-T)<=U?Z:w.1V(T+U);4(!a[X]){a[X]=1e H}a[X].3k([W,G,T])}},1v:7(G,S){6.22[S].1v(G)},2B:7(){h G=6.22.3j();4(G){G.3h()}i{3i(6.2A)}},1z:7(){3i(6.2A);6.2B();h G=6;4(6.2x>1){6.2A=4j(7(){G.2B()},6.1K)}}};7 H(){6.2G=[];6.2E=[]}H.3l={1v:7(G){6.2G.2u(G)},3k:7(G){6.2E.2u(G)},3h:7(){h T=6.2E,G,S;12(S=T.17;--S>-1;){4(T[S][1]=="1n"){E(T[S][0],T[S][2])}i{T[S][0].u[T[S][1]]=T[S][2]+"z"}}4(G=6.2G.3j()){G()}}};p R})();',62,271,'||||if||this|function||||||||||var|else|||||||return||height|width|window|style|null|Math|addThread|framesNumber|px||||||||||||||||||||||||||||div|for|container|visibility||loaderImage|length|class|title|picture|src|document|active|new|current|display|options|images|events|arguments|click|100|opacity|case|Zoom|opt|wScr|floor|hScr|break|addAction|className|zoomIn|prev|run|isOpen|__is_loaded__|zoomOut|lng|gallery|close|overlay|innerHTML|hidden|next|speed|block|scrollHeight|innerHeight|visible|offsetHeight|show|animate|langVars|scrollLeft|scrollTop|ceil|dim_pic|setContPos|href|undefined||nextBtn|frames|prevBtn|hideContent|300|overlayHeight||clientHeight|self|scrollWidth|in|overlayWidth|typeof|open|none|showLoadingIcon|event|setAttribute|showContent|top|left|alias|of|Image|ar|id|appendChild|disabled|body|push|__gallery__|elem|numFrames|childNodes|titleBar|interval|step|fullSize|imgIndex|styles|zoomNormal|actions|currentStyle|pageYOffset|clientWidth|scrollMaxY|documentElement|addEventListener|false|preventDefault|getElementsByTagName|which|keyCode|dx|lightgallery|showSingle|dy|preload|hideLoadingIcon|abs|img||getComputedStyle|fadeImage|keypress|dim_scr|attachEvent|createContainer|image|enableZoom|fullSizeBtn|minPadding|fitScreen|mouseout|__index__|resizeSync|mouseover|showImage|exec|clearInterval|shift|addStyle|prototype|LG_zoomNormal|alpha|LG_container|match|getPropertyValue|replace|LG_zoomOut|rel|defaultView|LG_zoomIn|pageXOffset|number|In|innerWidth|offsetWidth|on|85|returnValue|Previous|102|98|110|switch|charCode|LG_loading|focus|Next|init|opera|onload|setLangVars|max|LG_fitScreen|LG_zoom_disabled|LG_overlay|Close|toLowerCase|screen|Fit|filters||filter|LG_nextLink||createElement||LG_prevLink|Size|LG_titleBar|LG_pic|Full|all|clear|br|LG_closeBtn|zA|parseFloat|LG_imgIndex|RegExp|setInterval|string|htmlFor|Out'.split('|'),0,{}))

try{
	lightgallery.setLangVars({
		next	: 'Вперед',
		prev	: 'Назад',
		zoomIn	: 'Увеличить',
		zoomOut	: 'Уменьшить',
		fullSize: 'Реальный размер',
		fitScreen: 'По размеру экрана',
		close	: 'Закрыть',
		image	: 'Изображение',
		of		: 'из'
	})
}catch(e){}


/* *********************************
        ON LOAD
********************************* */
window.onload = function(){
	customchkbox();
	lightgallery.init();
	vote_star();
}


