var _uacct="UA-5231000-1",_userv=1,_ufsc=1,_udn="auto",_uhash="on",_utimeout="1800",_ugifpath="/__utm.gif",_utsp="|",_uflash=1,_utitle=1,_ulink=0,_uanchor=0,_utcp="/",_usample=100,_uctm=1,_ucto="15768000",_uccn="utm_campaign",_ucmd="utm_medium",_ucsr="utm_source",_uctr="utm_term",_ucct="utm_content",_ucid="utm_id",_ucno="utm_nooverride",_uOsr=new Array('google','yahoo','msn','aol','aol','lycos','ask','altavista','netscape','cnn','looksmart','about','mamma','alltheweb','gigablast','voila','virgilio','live','baidu','alice','yandex','najdi','aol','club-internet','mama','seznam','search','wp','onet','netsprint','google.interia','szukacz','yam','pchome','kvasir','sesam','ozu','terra','nostrum','mynet','ekolay','search.ilse'),_uOkw=new Array('q','p','q','query','encquery','query','q','q','query','query','qt','terms','query','q','q','rdata','qs','q','wd','qs','text','q','q','query','query','q','q','szukaj','qt','q','q','q','k','q','searchExpr','q','query','query','q','q','search_for'),_uOno=new Array(),_uRno=new Array(),_uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1.3",_ugifpath2="http://www.google-analytics.com/__utm.gif";if(_udl.hash){_udlh=_udl.href.substring(_udl.href.indexOf("#"))}if(_udl.protocol=="https:"){_ugifpath2="https://ssl.google-analytics.com/__utm.gif"}if(!_utcp||_utcp==""){_utcp="/"}function urchinTracker(I){if(_udl.protocol=="file:"){return}if(_uff&&(!I||I=="")){return}var N,L,J,A,O,K,D,M="",Q="",G=0,H=0,F=" expires="+_uNx()+";",P=_ubd.cookie;_udh=_uDomain();if(!_uVG()){return}_uu=Math.round(Math.random()*2147483647);_udt=new Date();_ust=Math.round(_udt.getTime()/1000);N=P.indexOf("__utma="+_udh+".");L=P.indexOf("__utmb="+_udh);J=P.indexOf("__utmc="+_udh);if(_udn&&_udn!=""){_udo=" domain="+_udn+";"}if(_utimeout&&_utimeout!=""){M=new Date(_udt.getTime()+(_utimeout*1000));M=" expires="+M.toGMTString()+";"}if(_ulink){if(_uanchor&&_udlh&&_udlh!=""){Q=_udlh+"&"}Q+=_udl.search;if(Q&&Q!=""&&Q.indexOf("__utma=")>=0){if(!(_uIN(N=_uGC(Q,"__utma=","&")))){N="-"}if(!(_uIN(L=_uGC(Q,"__utmb=","&")))){L="-"}if(!(_uIN(J=_uGC(Q,"__utmc=","&")))){J="-"}O=_uGC(Q,"__utmv=","&");K=_uGC(Q,"__utmz=","&");D=_uGC(Q,"__utmk=","&");A=_uGC(Q,"__utmx=","&");if((D*1)!=((_uHash(N+L+J+A+K+O)*1)+(_udh*1))){_ubl=1;N="-";L="-";J="-";A="-";K="-";O="-"}if(N!="-"&&L!="-"&&J!="-"){G=1}else{if(N!="-"){G=2}}}}if(G==1){_ubd.cookie="__utma="+N+"; path="+_utcp+";"+F+_udo;_ubd.cookie="__utmb="+L+"; path="+_utcp+";"+M+_udo;_ubd.cookie="__utmc="+J+"; path="+_utcp+";"+_udo}else{if(G==2){N=_uFixA(Q,"&",_ust);_ubd.cookie="__utma="+N+"; path="+_utcp+";"+F+_udo;_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+M+_udo;_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;_ufns=1}else{if(N>=0&&L>=0&&J>=0){L=_uGC(P,"__utmb="+_udh,";");L=("-"==L)?_udh:L;_ubd.cookie="__utmb="+L+"; path="+_utcp+";"+M+_udo}else{if(N>=0){N=_uFixA(_ubd.cookie,";",_ust)}else{N=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1";H=1}_ubd.cookie="__utma="+N+"; path="+_utcp+";"+F+_udo;_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+M+_udo;_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;_ufns=1}}}if(_ulink&&A&&A!=""&&A!="-"){A=_uUES(A);if(A.indexOf(";")==-1){_ubd.cookie="__utmx="+A+"; path="+_utcp+";"+F+_udo}}if(_ulink&&O&&O!=""&&O!="-"){O=_uUES(O);if(O.indexOf(";")==-1){_ubd.cookie="__utmv="+O+"; path="+_utcp+";"+F+_udo}}var C=window,J=_ubd.cookie;if(C&&C.gaGlobal&&C.gaGlobal.dh==_udh){var E=C.gaGlobal,B=J.split("__utma="+_udh+".")[1].split(";")[0].split(".");if(E.sid){B[3]=E.sid}if(H>0){B[2]=B[3];if(E.vid){var O=E.vid.split(".");B[0]=O[0];B[1]=O[1]}}_ubd.cookie="__utma="+_udh+"."+B.join(".")+"; path="+_utcp+";"+F+_udo}_uInfo(I);_ufns=0;_ufno=0;if(!I||I==""){_uff=1}}function _uGH(){var A,B=window;if(B&&B.gaGlobal&&B.gaGlobal.hid){A=B.gaGlobal.hid}else{A=Math.round(Math.random()*2147483647);if(!B.gaGlobal){B.gaGlobal={}}B.gaGlobal.hid=A}return A}function _uInfo(E){var F,D="",A="",G=_udl.pathname+_udl.search;if(E&&E!=""){G=_uES(E,1)}_ur=_ubd.referrer;if(!_ur||_ur==""){_ur="-"}else{A=_ubd.domain;if(_utcp&&_utcp!="/"){A+=_utcp}F=_ur.indexOf(A);if((F>=0)&&(F<=8)){_ur="0"}if(_ur.indexOf("[")==0&&_ur.lastIndexOf("]")==(_ur.length-1)){_ur="-"}}D+="&utmn="+_uu;if(_ufsc){D+=_uBInfo()}if(_uctm){D+=_uCInfo()}if(_utitle&&_ubd.title&&_ubd.title!=""){D+="&utmdt="+_uES(_ubd.title)}if(_udl.hostname&&_udl.hostname!=""){D+="&utmhn="+_uES(_udl.hostname)}if(_usample&&_usample!=100){D+="&utmsp="+_uES(_usample)}D+="&utmhid="+_uGH();D+="&utmr="+_ur;D+="&utmp="+G;if((_userv==0||_userv==2)&&_uSP()){var B=new Image(1,1);B.src=_ugifpath+"?utmwv="+_uwv+D;B.onload=function(){_uVoid()}}if((_userv==1||_userv==2)&&_uSP()){var C=new Image(1,1);C.src=_ugifpath2+"?utmwv="+_uwv+D+"&utmac="+_uacct+"&utmcc="+_uGCS();C.onload=function(){_uVoid()}}return}function _uVoid(){return}function _uCInfo(){if(!_ucto||_ucto==""){_ucto="15768000"}if(!_uVG()){return}var G="",K="-",D="-",B="-",A=0,E=0,I=0,C=0,F="-",L="";if(_uanchor&&_udlh&&_udlh!=""){L=_udlh+"&"}L+=_udl.search;var H=new Date(_udt.getTime()+(_ucto*1000)),J=_ubd.cookie;H=" expires="+H.toGMTString()+";";if(_ulink&&!_ubl){F=_uUES(_uGC(L,"__utmz=","&"));if(F!="-"&&F.indexOf(";")==-1){_ubd.cookie="__utmz="+F+"; path="+_utcp+";"+H+_udo;return""}}F=J.indexOf("__utmz="+_udh+".");if(F>-1){F=_uGC(J,"__utmz="+_udh+".",";")}else{F="-"}K=_uGC(L,_ucid+"=","&");D=_uGC(L,_ucsr+"=","&");B=_uGC(L,"gclid=","&");if((K!="-"&&K!="")||(D!="-"&&D!="")||(B!="-"&&B!="")){if(K!="-"&&K!=""){G+="utmcid="+_uEC(K)}if(D!="-"&&D!=""){if(G!=""){G+="|"}G+="utmcsr="+_uEC(D)}if(B!="-"&&B!=""){if(G!=""){G+="|"}G+="utmgclid="+_uEC(B)}K=_uGC(L,_uccn+"=","&");if(K!="-"&&K!=""){G+="|utmccn="+_uEC(K)}else{G+="|utmccn=(not+set)"}K=_uGC(L,_ucmd+"=","&");if(K!="-"&&K!=""){G+="|utmcmd="+_uEC(K)}else{G+="|utmcmd=(not+set)"}K=_uGC(L,_uctr+"=","&");if(K!="-"&&K!=""){G+="|utmctr="+_uEC(K)}else{K=_uOrg(1);if(K!="-"&&K!=""){G+="|utmctr="+_uEC(K)}}K=_uGC(L,_ucct+"=","&");if(K!="-"&&K!=""){G+="|utmcct="+_uEC(K)}K=_uGC(L,_ucno+"=","&");if(K=="1"){A=1}if(F!="-"&&A==1){return""}}if(G=="-"||G==""){G=_uOrg();if(F!="-"&&_ufno==1){return""}}if(G=="-"||G==""){if(_ufns==1){G=_uRef()}if(F!="-"&&_ufno==1){return""}}if(G=="-"||G==""){if(F=="-"&&_ufns==1){G="utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"}if(G=="-"||G==""){return""}}if(F!="-"){C=F.indexOf(".");if(C>-1){C=F.indexOf(".",C+1)}if(C>-1){C=F.indexOf(".",C+1)}if(C>-1){C=F.indexOf(".",C+1)}K=F.substring(C+1,F.length);if(K.toLowerCase()==G.toLowerCase()){E=1}K=F.substring(0,C);if((C=K.lastIndexOf("."))>-1){K=K.substring(C+1,K.length);I=(K*1)}}if(E==0||_ufns==1){K=_uGC(J,"__utma="+_udh+".",";");if((C=K.lastIndexOf("."))>9){_uns=K.substring(C+1,K.length);_uns=(_uns*1)}I++;if(_uns==0){_uns=1}_ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+I+"."+G+"; path="+_utcp+"; "+H+_udo}if(E==0||_ufns==1){return"&utmcn=1"}else{return"&utmcr=1"}}function _uRef(){if(_ur=="0"||_ur==""||_ur=="-"){return""}var B=0,D,A,E;if((B=_ur.indexOf("://"))<0||_uGCse()){return""}D=_ur.substring(B+3,_ur.length);if(D.indexOf("/")>-1){A=D.substring(D.indexOf("/"),D.length);if(A.indexOf("?")>-1){A=A.substring(0,A.indexOf("?"))}D=D.substring(0,D.indexOf("/"))}D=D.toLowerCase();E=D;if((B=E.indexOf(":"))>-1){E=E.substring(0,B)}for(var C=0;C<_uRno.length;C++){if((B=E.indexOf(_uRno[C].toLowerCase()))>-1&&E.length==(B+_uRno[C].length)){_ufno=1;break}}if(D.indexOf("www.")==0){D=D.substring(4,D.length)}return"utmccn=(referral)|utmcsr="+_uEC(D)+"|utmcct="+_uEC(A)+"|utmcmd=referral"}function _uOrg(C){if(_ur=="0"||_ur==""||_ur=="-"){return""}var B=0,E,A;if((B=_ur.indexOf("://"))<0||_uGCse()){return""}E=_ur.substring(B+3,_ur.length);if(E.indexOf("/")>-1){E=E.substring(0,E.indexOf("/"))}for(var D=0;D<_uOsr.length;D++){if(E.toLowerCase().indexOf(_uOsr[D].toLowerCase())>-1){if((B=_ur.indexOf("?"+_uOkw[D]+"="))>-1||(B=_ur.indexOf("&"+_uOkw[D]+"="))>-1){A=_ur.substring(B+_uOkw[D].length+2,_ur.length);if((B=A.indexOf("&"))>-1){A=A.substring(0,B)}for(var F=0;F<_uOno.length;F++){if(_uOno[F].toLowerCase()==A.toLowerCase()){_ufno=1;break}}if(C){return _uEC(A)}else{return"utmccn=(organic)|utmcsr="+_uEC(_uOsr[D])+"|utmctr="+_uEC(A)+"|utmcmd=organic"}}}}return""}function _uGCse(){var A,B;A=B=_ur.split("://")[1];if(A.indexOf("/")>-1){A=A.split("/")[0];B=B.substring(B.indexOf("/")+1,B.length)}if(B.indexOf("?")>-1){B=B.split("?")[0]}if(A.toLowerCase().indexOf("google")>-1){if(_ur.indexOf("?q=")>-1||_ur.indexOf("&q=")>-1){if(B.toLowerCase().indexOf("cse")>-1){return true}}}}function _uBInfo(){var A="-",B="-",C="-",D="-",E="-",F=1,n=navigator;if(self.screen){A=screen.width+"x"+screen.height;B=screen.colorDepth+"-bit"}else{if(self.java){var j=java.awt.Toolkit.getDefaultToolkit(),s=j.getScreenSize();A=s.width+"x"+s.height}}if(n.language){C=n.language.toLowerCase()}else{if(n.browserLanguage){C=n.browserLanguage.toLowerCase()}}F=n.javaEnabled()?1:0;if(_uflash){D=_uFlash()}if(_ubd.characterSet){E=_uES(_ubd.characterSet)}else{if(_ubd.charset){E=_uES(_ubd.charset)}}return"&utmcs="+E+"&utmsr="+A+"&utmsc="+B+"&utmul="+C+"&utmje="+F+"&utmfl="+D}function __utmSetTrans(){var F;if(_ubd.getElementById){F=_ubd.getElementById("utmtrans")}else{if(_ubd.utmform&&_ubd.utmform.utmtrans){F=_ubd.utmform.utmtrans}}if(!F){return}var C=F.value.split("UTM:"),D,B,G;if(_userv==0||_userv==2){D=new Array()}if(_userv==1||_userv==2){B=new Array();G=_uGCS()}for(var H=0;H<C.length;H++){C[H]=_uTrim(C[H]);if(C[H].charAt(0)!="T"&&C[H].charAt(0)!="I"){continue}var A=Math.round(Math.random()*2147483647);if(!_utsp||_utsp==""){_utsp="|"}var E=C[H].split(_utsp),I="";if(E[0].charAt(0)=="T"){I="&utmt=tran&utmn="+A;E[1]=_uTrim(E[1]);if(E[1]&&E[1]!=""){I+="&utmtid="+_uES(E[1])}E[2]=_uTrim(E[2]);if(E[2]&&E[2]!=""){I+="&utmtst="+_uES(E[2])}E[3]=_uTrim(E[3]);if(E[3]&&E[3]!=""){I+="&utmtto="+_uES(E[3])}E[4]=_uTrim(E[4]);if(E[4]&&E[4]!=""){I+="&utmttx="+_uES(E[4])}E[5]=_uTrim(E[5]);if(E[5]&&E[5]!=""){I+="&utmtsp="+_uES(E[5])}E[6]=_uTrim(E[6]);if(E[6]&&E[6]!=""){I+="&utmtci="+_uES(E[6])}E[7]=_uTrim(E[7]);if(E[7]&&E[7]!=""){I+="&utmtrg="+_uES(E[7])}E[8]=_uTrim(E[8]);if(E[8]&&E[8]!=""){I+="&utmtco="+_uES(E[8])}}else{I="&utmt=item&utmn="+A;E[1]=_uTrim(E[1]);if(E[1]&&E[1]!=""){I+="&utmtid="+_uES(E[1])}E[2]=_uTrim(E[2]);if(E[2]&&E[2]!=""){I+="&utmipc="+_uES(E[2])}E[3]=_uTrim(E[3]);if(E[3]&&E[3]!=""){I+="&utmipn="+_uES(E[3])}E[4]=_uTrim(E[4]);if(E[4]&&E[4]!=""){I+="&utmiva="+_uES(E[4])}E[5]=_uTrim(E[5]);if(E[5]&&E[5]!=""){I+="&utmipr="+_uES(E[5])}E[6]=_uTrim(E[6]);if(E[6]&&E[6]!=""){I+="&utmiqt="+_uES(E[6])}}if(_udl.hostname&&_udl.hostname!=""){I+="&utmhn="+_uES(_udl.hostname)}if(_usample&&_usample!=100){I+="&utmsp="+_uES(_usample)}if((_userv==0||_userv==2)&&_uSP()){D[H]=new Image(1,1);D[H].src=_ugifpath+"?utmwv="+_uwv+I;D[H].onload=function(){_uVoid()}}if((_userv==1||_userv==2)&&_uSP()){B[H]=new Image(1,1);B[H].src=_ugifpath2+"?utmwv="+_uwv+I+"&utmac="+_uacct+"&utmcc="+G;B[H].onload=function(){_uVoid()}}}return}function _uFlash(){var C="-",E=navigator;if(E.plugins&&E.plugins.length){for(var A=0;A<E.plugins.length;A++){if(E.plugins[A].name.indexOf("Shockwave Flash")!=-1){C=E.plugins[A].description.split("Shockwave Flash ")[1];break}}}else{var B;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");C=B.GetVariable("$version")}catch(D){}if(C=="-"){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C="WIN 6,0,21,0";B.AllowScriptAccess="always";C=B.GetVariable("$version")}catch(D){}}if(C=="-"){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");C=B.GetVariable("$version")}catch(D){}}if(C!="-"){C=C.split(" ")[1].split(",");C=C[0]+"."+C[1]+" r"+C[2]}}return C}function __utmLinkerUrl(C,E){var B,D,J="-",I="-",H="-",K="-",G="-",L="-",M=_ubd.cookie,F=C.indexOf("?"),N=C.indexOf("#"),A=C;if(M){J=_uES(_uGC(M,"__utma="+_udh+".",";"));I=_uES(_uGC(M,"__utmb="+_udh,";"));H=_uES(_uGC(M,"__utmc="+_udh,";"));K=_uES(_uGC(M,"__utmx="+_udh,";"));G=_uES(_uGC(M,"__utmz="+_udh+".",";"));L=_uES(_uGC(M,"__utmv="+_udh+".",";"));D=(_uHash(J+I+H+K+G+L)*1)+(_udh*1);B="__utma="+J+"&__utmb="+I+"&__utmc="+H+"&__utmx="+K+"&__utmz="+G+"&__utmv="+L+"&__utmk="+D}if(B){if(E&&N>-1){return}if(E){A=C+"#"+B}else{if(F==-1&&N==-1){A=C+"?"+B}else{if(N==-1){A=C+"&"+B}else{if(F==-1){A=C.substring(0,N-1)+"?"+B+C.substring(N)}else{A=C.substring(0,N-1)+"&"+B+C.substring(N)}}}}}return A}function __utmLinker(A,B){if(!_ulink||!A||A==""){return}_udl.href=__utmLinkerUrl(A,B)}function __utmLinkPost(B,A){if(!_ulink||!B||!B.action){return}B.action=__utmLinkerUrl(B.action,A);return}function __utmSetVar(A){if(!A||A==""){return}if(!_udo||_udo==""){_udh=_uDomain();if(_udn&&_udn!=""){_udo=" domain="+_udn+";"}}if(!_uVG()){return}var E=Math.round(Math.random()*2147483647);_ubd.cookie="__utmv="+_udh+"."+_uES(A)+"; path="+_utcp+"; expires="+_uNx()+";"+_udo;var D="&utmt=var&utmn="+E;if(_usample&&_usample!=100){D+="&utmsp="+_uES(_usample)}if((_userv==0||_userv==2)&&_uSP()){var B=new Image(1,1);B.src=_ugifpath+"?utmwv="+_uwv+D;B.onload=function(){_uVoid()}}if((_userv==1||_userv==2)&&_uSP()){var C=new Image(1,1);C.src=_ugifpath2+"?utmwv="+_uwv+D+"&utmac="+_uacct+"&utmcc="+_uGCS();C.onload=function(){_uVoid()}}}function _uGCS(){var B,C="",A=_ubd.cookie;if((B=_uGC(A,"__utma="+_udh+".",";"))!="-"){C+=_uES("__utma="+B+";+")}if((B=_uGC(A,"__utmx="+_udh,";"))!="-"){C+=_uES("__utmx="+B+";+")}if((B=_uGC(A,"__utmz="+_udh+".",";"))!="-"){C+=_uES("__utmz="+B+";+")}if((B=_uGC(A,"__utmv="+_udh+".",";"))!="-"){C+=_uES("__utmv="+B+";")}if(C.charAt(C.length-1)=="+"){C=C.substring(0,C.length-1)}return C}function _uGC(A,G,E){if(!A||A==""||!G||G==""||!E||E==""){return"-"}var C,D,B,F="-";C=A.indexOf(G);B=G.indexOf("=")+1;if(C>-1){D=A.indexOf(E,C);if(D<0){D=A.length}F=A.substring((C+B),D)}return F}function _uDomain(){if(!_udn||_udn==""||_udn=="none"){_udn="";return 1}if(_udn=="auto"){var A=_ubd.domain;if(A.substring(0,4)=="www."){A=A.substring(4,A.length)}_udn=A}_udn=_udn.toLowerCase();if(_uhash=="off"){return 1}return _uHash(_udn)}function _uHash(D){if(!D||D==""){return 1}var B=0,C=0;for(var A=D.length-1;A>=0;A--){var E=parseInt(D.charCodeAt(A));B=((B<<6)&268435455)+E+(E<<14);if((C=B&266338304)!=0){B=(B^(C>>21))}}return B}function _uFixA(F,E,D){if(!F||F==""||!E||E==""||!D||D==""){return"-"}var B=_uGC(F,"__utma="+_udh+".",E),A=0,C=0;if((C=B.lastIndexOf("."))>9){_uns=B.substring(C+1,B.length);_uns=(_uns*1)+1;B=B.substring(0,C);if((C=B.lastIndexOf("."))>7){A=B.substring(C+1,B.length);B=B.substring(0,C)}if((C=B.lastIndexOf("."))>5){B=B.substring(0,C)}B+="."+A+"."+D+"."+_uns}return B}function _uTrim(A){if(!A||A==""){return""}while((A.charAt(0)==" ")||(A.charAt(0)=="\n")||(A.charAt(0,1)=="\r")){A=A.substring(1,A.length)}while((A.charAt(A.length-1)==" ")||(A.charAt(A.length-1)=="\n")||(A.charAt(A.length-1)=="\r")){A=A.substring(0,A.length-1)}return A}function _uEC(B){var C="";if(!B||B==""){return""}for(var A=0;A<B.length;A++){if(B.charAt(A)==" "){C+="+"}else{C+=B.charAt(A)}}return C}function __utmVisitorCode(G){var F=0,D=0,C=0,E=0,A=31,B=_uGC(_ubd.cookie,"__utma="+_udh+".",";");if((C=B.indexOf(".",0))<0){return}if((E=B.indexOf(".",C+1))>0){F=B.substring(C+1,E)}else{return""}if((C=B.indexOf(".",E+1))>0){D=B.substring(E+1,C)}else{return""}if(G){return F}else{var H=new Array("A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9");return H[F>>28&A]+H[F>>23&A]+H[F>>18&A]+H[F>>13&A]+"-"+H[F>>8&A]+H[F>>3&A]+H[((F&7)<<2)+(D>>30&3)]+H[D>>25&A]+H[D>>20&A]+"-"+H[D>>15&A]+H[D>>10&A]+H[D>>5&A]+H[D&A]}}function _uIN(C){if(!C){return false}for(var A=0;A<C.length;A++){var B=C.charAt(A);if((B<"0"||B>"9")&&(B!=".")){return false}}return true}function _uES(B,A){if(typeof(encodeURIComponent)=="function"){if(A){return encodeURI(B)}else{return encodeURIComponent(B)}}else{return escape(B)}}function _uUES(A){if(typeof(decodeURIComponent)=="function"){return decodeURIComponent(A)}else{return unescape(A)}}function _uVG(){if((_udn.indexOf("www.google.")==0||_udn.indexOf(".google.")==0||_udn.indexOf("google.")==0)&&_utcp=="/"&&_udn.indexOf("google.org")==-1){return false}return true}function _uSP(){var A=100;if(_usample){A=_usample}if(A>=100||A<=0){return true}return((__utmVisitorCode(1)%10000)<(A*100))}function urchinPathCopy(A){var H=document,F,D,J,C,I,G,K,E,B;G=new Array("a","b","c","v","x","z");E=_uDomain();if(_udn&&_udn!=""){B=" domain="+_udn+";"}F=_uNx()+";";D=new Date();D.setTime(D.getTime()+(_utimeout*1000));D=D.toGMTString()+";";J=new Date();J.setTime(J.getTime()+(_ucto*1000));J=J.toGMTString()+";";for(C=0;C<6;C++){K=" expires=";if(C==1){K+=D}else{if(C==2){K=""}else{if(C==5){K+=J}else{K+=F}}}I=_uGC(H.cookie,"__utm"+G[C]+"="+E,";");if(I!="-"){H.cookie="__utm"+G[C]+"="+I+"; path="+A+";"+K+B}}}function _uCO(){if(!_utk||_utk==""||_utk.length<10){return}var B="www.google.com";if(_utk.charAt(0)=="!"){B="analytics.corp.google.com"}_ubd.cookie="GASO="+_utk+"; path="+_utcp+";"+_udo;var A=document.createElement("script");A.type="text/javascript";A.id="_gasojs";A.src="https://"+B+"/analytics/reporting/overlay_js?gaso="+_utk+"&"+Math.random();document.getElementsByTagName("head")[0].appendChild(A)}function _uGT(){var B=location.hash,A;if(B&&B!=""&&B.indexOf("#gaso=")==0){A=_uGC(B,"gaso=","&")}else{A=_uGC(_ubd.cookie,"GASO=",";")}return A}var _utk=_uGT();if(_utk&&_utk!=""&&_utk.length>10&&_utk.indexOf("=")==-1){if(window.addEventListener){window.addEventListener("load",_uCO,false)}else{if(window.attachEvent){window.attachEvent("onload",_uCO)}}}function _uNx(){return(new Date((new Date()).getTime()+63072000000)).toGMTString()}urchinTracker()
function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2);};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){};};this.reset=function(){this.resetFunctions();this.resetData();};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){this.xmlhttp=null;}}
if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest();}else{this.failed=true;}}};this.setVar=function(name,value){this.vars[name]=Array(value,false);};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value));}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true);}}
this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1]);}else{this.setVar(urlVars[0],urlVars[1]);}}}
this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true);}
if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring;}else{this.URLString=urlstring;}}
this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0];}
urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0];}
if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator);}else{this.URLString+=urlstringtemp.join(this.argumentSeparator);}}
this.runResponse=function(){eval(this.response);}
this.runAJAX=function(urlstring){if(this.failed){this.onFail();}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element);}
if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true);}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}
this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse();}
if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response;}else{self.elementObj.innerHTML=self.response;}}
if(self.responseStatus[0]=="200"){self.onCompletion();}else{self.onError();}
self.URLString="";break;}};this.xmlhttp.send(this.URLString);}}};this.reset();this.createAJAX();}
function getModels(mark,id_loading,id_models_select,id_selected,is_full,default_name)
{if(!document.getElementById(id_models_select))return false;var sel=document.getElementById(id_models_select);sel.disabled=true;if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='inline-block';if(mark==0)
{clearSelectBox(id_models_select,id_selected,default_name);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';return false;}
var opt=new sack();opt.setVar('id',mark);if(is_full)opt.setVar('f',is_full);if(default_name)opt.setVar('dn',default_name);opt.requestFile='http://'+location.host+'/ajax/getmodels.php';opt.onCompletion=function()
{var r=eval(opt.response);makeSelectBox(r,sel,id_selected);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';sel.disabled=false;};opt.runAJAX();return false;}
function getCities(country,id_loading,id_cities_select,id_selected,is_full,default_name)
{if(!document.getElementById(id_cities_select))return false;var sel=document.getElementById(id_cities_select);sel.disabled=true;if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='inline-block';if(country==0)
{clearSelectBox(id_cities_select,id_selected,default_name);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';return false;}
var opt=new sack();opt.setVar('id',country);if(is_full)opt.setVar('f',is_full);if(default_name)opt.setVar('dn',default_name);opt.requestFile='http://'+location.host+'/ajax/getcities.php';opt.onCompletion=function()
{var r=eval(opt.response);makeSelectBox(r,sel,id_selected);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';sel.disabled=false;};opt.runAJAX();return false;}
function getAreas(city,id_loading,id_areas_select,id_selected,is_full,default_name)
{if(!document.getElementById(id_areas_select))return false;var sel=document.getElementById(id_areas_select);sel.disabled=true;if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='inline-block';if(city==0)
{clearSelectBox(id_areas_select);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';return false;}
var opt=new sack();opt.setVar('id',city);if(is_full)opt.setVar('f',is_full);if(default_name)opt.setVar('dn',default_name);opt.requestFile='http://'+location.host+'/ajax/getareas.php';opt.onCompletion=function()
{var r=eval(opt.response);makeSelectBox(r,sel,id_selected);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';sel.disabled=false;};opt.runAJAX();return false;}
function getStreets(area,id_loading,id_streets_select,id_selected,is_full,default_name)
{if(!document.getElementById(id_streets_select))return false;var sel=document.getElementById(id_streets_select);sel.disabled=true;if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='inline-block';if(area==0)
{clearSelectBox(id_streets_select);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';return false;}
var opt=new sack();opt.setVar('id',area);if(is_full)opt.setVar('f',is_full);if(default_name)opt.setVar('dn',default_name);opt.requestFile='http://'+location.host+'/ajax/getstreets.php';opt.onCompletion=function()
{var r=eval(opt.response);makeSelectBox(r,sel,id_selected);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';sel.disabled=false;};opt.runAJAX();return false;}
function clearSelectBox(id,id_selected,default_name)
{var sel=document.getElementById(id);sel.disabled=true;r=new Array;r[0]=new Array;r[0].id=0;r[0].name=default_name||'---';makeSelectBox(r,sel,id_selected);}
function makeSelectBox(r,sel,id_selected)
{sel.length=0;for(i=0;i<r.length;i++)
{if(document.createElement)
{var newOpt=document.createElement("option");newOpt.value=r[i].id;newOpt.text=r[i].name;if(id_selected!='')
{if(id_selected==r[i].id)
{newOpt.defaultSelected=true;newOpt.selected=true;}}
if(sel.options.add)
sel.options.add(newOpt,i);else
sel.add(newOpt,null);}
else
{sel.options[i]=new Option(r[i].id,r[i].id,false,false);}}}
function getSearch(action,value,default_name)
{var id_loading='se-loading';var id_loading_2='se-loading-2';var id_total='found-amount';var id_total_2='found-amount-2';var id_word0='found-word-0';var id_word='found-word';var id_word0_2='found-word-0-2';var id_word_2='found-word-2';var id_selected=0;var id_models_select='se-models-select';var sel=document.getElementById(id_models_select);if(sel)sel.disabled=true;if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='inline-block';if(document.getElementById(id_loading_2))
document.getElementById(id_loading_2).style.display='inline-block';if(action=='yearfrom')document.getElementById('yearto').disabled=true;if(action=='yearto')document.getElementById('yearfrom').disabled=true;var opt=new sack();if(action.indexOf('complectation',0)!=-1)
{opt.setVar(action,value);opt.setVar('id',value);}
else
{opt.setVar('action',action);opt.setVar('id',value);}
if(default_name)opt.setVar('dn',default_name);opt.requestFile='http://'+location.host+'/ajax/search.php';opt.onCompletion=function()
{var r=eval(opt.response);if(r.models)makeSelectBox(r.models,sel,id_selected);document.getElementById(id_total).innerHTML=r.total;if(document.getElementById(id_total_2))
document.getElementById(id_total_2).innerHTML=r.total;if(r.word0)
{document.getElementById(id_word0).innerHTML=r.word0;if(document.getElementById(id_word0_2))
document.getElementById(id_word0_2).innerHTML=r.word0;}
if(r.word)
{document.getElementById(id_word).innerHTML=r.word;if(document.getElementById(id_word_2))
document.getElementById(id_word_2).innerHTML=r.word;}
if(r.yearsfrom)makeSelectBox(r.yearsfrom,document.getElementById('yearfrom'),id_selected);if(r.yearsto)makeSelectBox(r.yearsto,document.getElementById('yearto'),id_selected);if(document.getElementById(id_loading))
document.getElementById(id_loading).style.display='none';if(document.getElementById(id_loading_2))
document.getElementById(id_loading_2).style.display='none';if(r.models&&r.models.length==1)
sel.disabled=true;else
sel.disabled=false;document.getElementById('yearfrom').disabled=false;document.getElementById('yearto').disabled=false;};opt.runAJAX();return false;}
function Searcher(file,params)
{this.resetData=function()
{this.file=file;this.vars=new Object();this.params=new Object();};this.resetFunctions=function(){};this.reset=function()
{this.resetData();this.resetFunctions();};this.initialize=function()
{if(params)this.params=params;this.vars['id_loading']='se-loading';this.vars['id_loading_2']='se-loading-2';this.vars['id_total']='found-amount';this.vars['id_total_2']='found-amount-2';this.vars['id_word0']='found-word-0';this.vars['id_word']='found-word';this.vars['id_word0_2']='found-word-0-2';this.vars['id_word_2']='found-word-2';};this.interfaceOff=function(){};this.interfaceOn=function(){};this.display=function(id,value)
{if(document.getElementById(id))
document.getElementById(id).style.display=value;}
this.displayHTML=function(id,value)
{if(document.getElementById(id))
document.getElementById(id).innerHTML=value;}
this.loadingOn=function()
{this.display(this.vars['id_loading'],'inline-block');this.display(this.vars['id_loading_2'],'inline-block');};this.loadingOff=function()
{this.display(this.vars['id_loading'],'none');this.display(this.vars['id_loading_2'],'none');};this.displayTotal=function(r)
{this.displayHTML(this.vars['id_total'],r.total);this.displayHTML(this.vars['id_total_2'],r.total);};this.displayTotalWord=function(r)
{if(r.word0)
{this.displayHTML(this.vars['id_word0'],r.word0);this.displayHTML(this.vars['id_word0_2'],r.word0);}
if(r.word)
{this.displayHTML(this.vars['id_word'],r.word);this.displayHTML(this.vars['id_word_2'],r.word);}};this.run=function()
{this.interfaceOff();this.loadingOn();var self=this;var opt=new sack();opt.requestFile=this.file||'http://'+location.host+'/ajax/search.php';if(this.params)
{for(key in this.params)
{opt.setVar(key,this.params[key]);}}
opt.onCompletion=function()
{var r;if(opt.response)
{r=eval(opt.response);self.displayTotal(r);self.displayTotalWord(r);}
self.loadingOff();self.interfaceOn();};opt.runAJAX();return false;};this.reset();this.initialize();return false;}
function checkLogin(login)
{document.getElementById('check-login-result').innerHTML='';var opt=new sack();opt.setVar('login',login);opt.requestFile='http://'+location.host+'/ajax/check-login.php';opt.onCompletion=function()
{var r=eval(opt.response);if(r.free&&r.free==1)
document.getElementById('check-login-result').innerHTML='<span style="color:green;font-weight:bold;">Свободен</span>';else if(r.free==0)
document.getElementById('check-login-result').innerHTML='<span style="color:red;font-weight:bold;">Занят</span>';else if(r.free&&r.free==3)
document.getElementById('check-login-result').innerHTML='<span style="color:red;font-weight:bold;">Логин слишком короткий</span>';else
document.getElementById('check-login-result').innerHTML='<span style="color:red;font-weight:bold;">Ошибка! Попробуйте проверить логин еще раз.</span>';};opt.runAJAX();return false;}
