window.$=function(A){return document.getElementById(A)};document.documentElement.id="js";if(window.clipboardData&&window.clipboardData.setData){document.documentElement.className+=" copy-to-clipboard-available"}function copyToClipboard(A){if(clipboardData&&clipboardData.setData){clipboardData.setData("Text",A)}}function addEvent(C,A,B){if(C.addEventListener){C.addEventListener(A,B,0)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}}}function delEvent(C,A,B){if(C.removeEventListener){C.removeEventListener(A,B,0)}else{if(C.detachEvent){C.detachEvent("on"+A,B)}}}var g_popup;function popup(E){var A=function(F){F=F||event;if((F.keyCode==27)&&!(F.ctrlKey||F.altKey)){B()}};var C=function(G){var F=G&&G.target?G.target:window.event.srcElement;while(F){if(F.className){if(F.className.indexOf("close")!=-1){break}else{if(F.className.indexOf("b-popup")!=-1){return }}}F=F.parentNode}B()};var D=document;var B=function(){if(g_popup){delEvent(D,"click",C);delEvent(D,"keydown",A);g_popup.style.display="none";g_popup=0}};B();setTimeout(function(){g_popup=(typeof (E)=="string")?$(E):E;g_popup.style.display="block";g_popup.cancel=B;addEvent(D,"keydown",A);addEvent(D,"click",C)},1);return false}var ZeroClipboard={version:"1.0.5",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(A){if(typeof (A)=="string"){A=document.getElementById(A)}if(!A.addClass){A.hide=function(){this.style.display="none"};A.show=function(){this.style.display=""};A.addClass=function(B){this.removeClass(B);this.className+=" "+B};A.removeClass=function(B){this.className=this.className.replace(new RegExp("(^|\\s+)"+B+"(\\s+|$)"),"").replace(/^\s+|\s+$/g,"")};A.hasClass=function(B){return !!this.className.match(new RegExp("\\s*"+B+"\\s*"))}}return A},setMoviePath:function(A){this.moviePath=A},dispatch:function(D,B,C){var A=this.clients[D];if(A){A.receiveEvent(B,C)}},register:function(B,A){this.clients[B]=A},getDOMObjectPosition:function(C,A){var B={left:0,top:0,width:C.width?C.width:C.offsetWidth,height:C.height?C.height:C.offsetHeight};while(C&&(C!=A)){B.left+=C.offsetLeft;B.top+=C.offsetTop;C=C.offsetParent}return B},Client:function(A){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);if(A){this.glue(A)}}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(D,B,E){this.domElement=ZeroClipboard.$(D);var F=99;if(this.domElement.style.zIndex){F=parseInt(this.domElement.style.zIndex,10)+1}if(typeof (B)=="string"){B=ZeroClipboard.$(B)}else{if(typeof (B)=="undefined"){B=document.getElementsByTagName("body")[0]}}var C=ZeroClipboard.getDOMObjectPosition(this.domElement,B);this.div=document.createElement("div");var A=this.div.style;A.position="absolute";A.left=""+C.left+"px";A.top=""+C.top+"px";A.width=""+C.width+"px";A.height=""+C.height+"px";A.zIndex=F;if(typeof (E)=="object"){for(addedStyle in E){A[addedStyle]=E[addedStyle]}}B.appendChild(this.div);this.div.innerHTML=this.getHTML(C.width,C.height)},getHTML:function(D,A){var C="";var B="id="+this.id+"&width="+D+"&height="+A;if(navigator.userAgent.match(/MSIE/)){var E=location.href.match(/^https/i)?"https://":"http://";C+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+E+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+D+'" height="'+A+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+B+'"/><param name="wmode" value="transparent"/></object>'}else{C+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+D+'" height="'+A+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+B+'" wmode="transparent" />'}return C},hide:function(){if(this.div){this.div.style.left="-2000px"}},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var A=document.getElementsByTagName("body")[0];try{A.removeChild(this.div)}catch(B){}this.domElement=null;this.div=null}},reposition:function(C){if(C){this.domElement=ZeroClipboard.$(C);if(!this.domElement){this.hide()}}if(this.domElement&&this.div){var B=ZeroClipboard.getDOMObjectPosition(this.domElement);var A=this.div.style;A.left=""+B.left+"px";A.top=""+B.top+"px"}},setText:function(A){this.clipText=A;if(this.ready){this.movie.setText(A)}},addEventListener:function(A,B){A=A.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[A]){this.handlers[A]=[]}this.handlers[A].push(B)},setHandCursor:function(A){this.handCursorEnabled=A;if(this.ready){this.movie.setHandCursor(A)}},setCSSEffects:function(A){this.cssEffects=!!A},receiveEvent:function(D,E){D=D.toString().toLowerCase().replace(/^on/,"");switch(D){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var C=this;setTimeout(function(){C.receiveEvent("load",null)},1);return }if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var C=this;setTimeout(function(){C.receiveEvent("load",null)},100);this.ready=true;return }this.ready=true;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");if(this.recoverActive){this.domElement.addClass("active")}}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":if(this.domElement&&this.cssEffects){this.domElement.addClass("active")}break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}break}if(this.handlers[D]){for(var B=0,A=this.handlers[D].length;B<A;B++){var F=this.handlers[D][B];if(typeof (F)=="function"){F(this,E)}else{if((typeof (F)=="object")&&(F.length==2)){F[0][F[1]](this,E)}else{if(typeof (F)=="string"){window[F](this,E)}}}}}}};var flashinstalled=0;var flashversion=0;function flash_detect(){MSDetect="false";if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins["Shockwave Flash"];if(x){flashinstalled=2;if(x.description){y=x.description.match(/ (\d+)\./);flashversion=(y.length>1)?y[1]:"-"}}else{flashinstalled=1}if(navigator.plugins["Shockwave Flash 2.0"]){flashinstalled=2;flashversion=2}}else{if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes["application/x-shockwave-flash"];if(x&&x.enabledPlugin){flashinstalled=2}else{flashinstalled=1}}else{MSDetect="true"}}return new Array(flashinstalled,flashversion)}var ascript_ci;var ascript_global_to_count,ascript_local_to_count;var ascript_GLOBAL_TO_LIMIT=10,ascript_LOCAL_TO_LIMIT=3;var ascript_TO=20000;var ascript_sto;var ascript_error_handler;var ascript_error_flag;var ascript_script;function ascript_pre_command(){ascript_sto=setTimeout("ascript_TO_handler();",ascript_TO);eval(ascript_script[ascript_ci])}function ascript_post_command(){clearTimeout(ascript_sto);ascript_ci++;if(ascript_ci<ascript_script.length&&!ascript_error_flag){ascript_local_to_count=0;ascript_pre_command()}}function ascript_TO_handler(){ascript_global_to_count++;ascript_local_to_count++;if((ascript_global_to_count>=ascript_GLOBAL_TO_LIMIT)||(ascript_local_to_count>=ascript_LOCAL_TO_LIMIT)){ascript_error_flag=true;ascript_error_handler("error_text_timeout")}else{ascript_pre_command()}}function ascript_run(B,A){ascript_ci=0;ascript_script=B;ascript_global_to_count=ascript_local_to_count=0;ascript_error_handler=A;ascript_error_flag=false;ascript_pre_command()}var sum,sum_count,min,max;var start_time=0;var product=1;var product_len=0;var data="";function start(){data="yandex!\n";for(i=0;i<17;++i){data+=data}sum=0;sum_count=0;min=max=null;product=1;product_len=0;var A=$("progressbar");var C=document.getElementById("progressbar_done");var B=$("progressbar_text");A.style.display="block";C.style.width="0";B.innerHTML="0%";ascript_post_command()}function finish(){var A=$("progressbar");var C=document.getElementById("progressbar_done");var B=$("progressbar_text");C.style.width="100%";B.innerHTML="100%";A.style.display="none";InformerRequest();measure_widget_control("after");ascript_post_command()}var measure_script=["start()","measure_step('/speed/?data=1&', 'GET', null, 'download', 1, '&reset=1')","measure_step('/speed/?data=1&', 'GET', null, 'download', 2, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 3, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 4, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 5, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 6, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 7, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 8, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 9, '')","measure_step('/speed/?data=1&', 'GET', null, 'download', 10, '')","calculate('download')","measure_step('/speed/', 'POST', data, 'upload', 11, '')","measure_step('/speed/', 'POST', data, 'upload', 12, '')","measure_step('/speed/', 'POST', data, 'upload', 13, '')","measure_step('/speed/', 'POST', data, 'upload', 14, '')","measure_step('/speed/', 'POST', data, 'upload', 15, '')","measure_step('/speed/', 'POST', data, 'upload', 16, '')","measure_step('/speed/', 'POST', data, 'upload', 17, '')","measure_step('/speed/', 'POST', data, 'upload', 18, '')","measure_step('/speed/', 'POST', data, 'upload', 19, '')","measure_step('/speed/', 'POST', data, 'upload', 20, '')","calculate('upload')","finish()"];var StoreUpload,StoreDownload;function getXmlHttp(){var A;try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest()}return A}function measure_step(E,B,H,J,D,K){var I=$("debug_div");var L=document.getElementById("progressbar_done");var G=$("progressbar_text");var A=5*D;L.style.width=A+"%";G.innerHTML='<span id="progressbar_text">'+A+"%</span>";G.innerHTML=A+"%";var F=new Date();var M=getXmlHttp();var C=(B=="GET")?("?rnd="+F.getTime()+Math.round(Math.random()*1000)+K):"";M.open(B,E+C,true);handler=function(){var N=M.readyState;if(N==4){F=new Date();t=F.getTime()-start_time;if(t>0.001){product*=t;product_len+=1}if(min==null){min=t;max=t}else{if(min>t){min=t}if(max<t){max=t}}sum+=t;sum_count++;ascript_post_command()}};M.onreadystatechange=handler;start_time=F.getTime();M.send(H)}function calculate(A){if(product_len>0){t=Math.pow(product,1/product_len);value=(1024*1024/t*1000).toFixed(0);if(A=="upload"){StoreUpload=value}if(A=="download"){StoreDownload=value}}sum=0;sum_count=0;min=max=null;product=1;product_len=0;ascript_post_command()}function measure(A,E,C,D,B){measure_step(A,E,C,D,init_counter,0,null,null,B)}var g_script,g_script;var date=new Date();var clip;var fullinfo_loaded=false;var TERMINAL_STRING_WIDTH=105;var TERMINAL_PREFIX_WIDTH=16;function formatTerminalString(C,A,B,D){if(B==null){B=TERMINAL_PREFIX_WIDTH}if(D==null){D=TERMINAL_STRING_WIDTH}for(;C.length<B;){C+=" "}C+=": ";var E=(C+A).match(RegExp(".{1,"+D+"}","g"));return E.join("\r\n")+"\r\n"}function updateFullInfo(J){var E=flash_detect();var G=document.getElementById("full_info_text");if(J==""){J=G.innerHTML}js_index=J.indexOf("javascript");if(js_index>-1){J=J.slice(0,js_index)}J+=formatTerminalString("javascript","да");if(E[0]==0){J+=formatTerminalString("flash player","нет информации")}else{if(E[0]==1){J+=formatTerminalString("flash player","не установлен")}else{if(E[0]==2){J+=formatTerminalString("flash player",E[1])}}}J+="\r\n\r\nзаписи cookie вашего браузера: \r\n\r\n";if(document.cookie&&document.cookie!=""){var H=document.cookie.split(";");for(var D=0;D<H.length;D++){var C=H[D].split("=");C[0]=C[0].replace(/^ /,"");if(C[1]===undefined){J+=formatTerminalString(decodeURIComponent(C[0]),"[значение не задано]")}else{if(/^Session_id$/i.test(C[0])){var I=C[1].split(".");if(I.length>3&&I[I.length-2]!==undefined){I[I.length-2]="*****";J+=formatTerminalString(decodeURIComponent(C[0]),I.join("."))}else{J+=formatTerminalString(decodeURIComponent(C[0]),decodeURIComponent(C[1]))}}else{J+=formatTerminalString(decodeURIComponent(C[0]),decodeURIComponent(C[1]))}}}}J+="\r\n\r\nинформация о браузере: \r\n\r\n";var K=[];var B,F;for(var A in navigator){if(typeof navigator[A]!="function"&&typeof navigator[A]!="object"){K.push(A)}}K.sort();for(var A in K){J+=formatTerminalString(K[A],navigator[K[A]])}G.innerHTML="<pre>"+J+"</pre>"}var FullInfoRequest_handler=null;function FullInfoRequest(){if(FullInfoRequest_handler==null){clearTimeout(FullInfoRequest_handler)}f_script=document.createElement("script");f_script.type="text/javascript";document.body.appendChild(f_script);request='f_script.src="/get_full_info/?rnd='+date.getTime()+Math.round(Math.random()*1000)+'"';FullInfoRequest_handler=setTimeout(request,1000)}function waitFullInfo(B,A){if(A){FullInfoRequest_handler=null;updateFullInfo(B)}else{FullInfoRequest()}}function ScreenResolutionDisplay(){var A=$("screen_resolution");A.innerHTML=screen.width+"x"+screen.height+"x"+screen.colorDepth}function init(){var A=$("error_text_no_js");A.style.display="none";measure_widget_control("before");ScreenResolutionDisplay();ZeroClipboard.setMoviePath("/i/ZeroClipboard.swf");clip=new ZeroClipboard.Client();clip.addEventListener("onMouseOver",function(B){clip.setText($("full_info_text").innerHTML.slice(5,-6))})}function showTerm(){var D=$("term_text");var A=$("copyinfo_link");var C=flash_detect();var B=document.getElementById("full_info_text");var E=B.innerHTML;if(D.style.display=="none"){D.style.display="block";A.style.display="inline";clip.destroy();clip.glue("copyinfo_link","copyinfo")}else{D.style.display="none";A.style.display="none"}if(!fullinfo_loaded){FullInfoRequest();fullinfo_loaded=true}}function getXmlHttp(){var A;try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest()}return A}function measure_widget_control(C,T){var U=$("ready_h2");var M=$("error_h2");var B=$("error_text_timeout");var N=$("measure_link");var P=$("measure_link_h2");var F=$("informers");var D=$("horiz_informer");var S=$("vert_informer");var A=$("informers_note");var O=$("time_informer");var G=$("localtime");var R=$("timezone");var Q=$("term");var K=$("term_text");var J=$("copyinfo_link");var H=$("progressbar");switch(C){case"before":P.style.display="block";U.style.display="none";M.style.display="none";B.style.display="none";O.style.display="none";D.style.display="none";S.style.display="none";A.style.display="none";F.style.display="none";Q.style.display="block";K.style.display="none";J.style.display="none";break;case"during":P.style.display="none";U.style.display="none";M.style.display="none";B.style.display="none";O.style.display="none";D.style.display="none";S.style.display="none";A.style.display="none";F.style.display="none";Q.className="b-term";H.style.display="block";break;case"after":P.style.display="none";U.style.display="block";M.style.display="none";O.style.display="block";D.style.display="block";S.style.display="block";A.style.display="block";F.style.display="block";var V=new Date();var W=V.toTimeString();var E=W.split(" ");var I=E[0];G.innerHTML=I.substring(0,I.lastIndexOf(":"));R.innerHTML=E[1].replace("UTC","GMT");Q.style.display="block";break;case"error":var L=$(T);P.style.display="none";U.style.display="none";M.style.display="block";L.style.display="block";F.style.display="block";O.style.display="none";D.style.display="none";S.style.display="none";A.style.display="none";H.style.display="none";break}}function err_handler(A){measure_widget_control("error",A)}function loadInformers(){var E=$("speed");var F=$("informers");var A=$("measure_link");var C=$("term");var D=$("term_text");var B=$("copyinfo_link");C.className="b-term";A.onclick=null;E.className="b-speed b-speed-loading";measure_widget_control("during");ascript=ascript_run(measure_script,err_handler);return false}function InformerRequest(){g_script=document.createElement("script");g_script.type="text/javascript";document.body.appendChild(g_script);request='g_script.src="/informers/?upload='+StoreUpload+"&download="+StoreDownload+"&time="+date.toTimeString()+"&rnd="+date.getTime()+Math.round(Math.random()*1000)+'"';setTimeout(request,20)}function tab(B,A){$(B).className="b-popup b-popup-"+A}function selectText(A){if(typeof (A.select)=="function"){A.select()}}var INPUTS=["code-horiz-blog","code-horiz-html","code-horiz-bbcode","code-vert-blog","code-vert-html","code-vert-bbcode"];function setInformersData(G,C,B,I,H){$("img-horiz").src=G;$("img-vert").src=C;var E=$("term");var J=$("measure_link");for(var F=0,D=INPUTS.length;F<D;F++){$(INPUTS[F]).value=B[F]}$("informers").style.display="block";$("speed").className="b-speed";fullinfo_loaded=true;updateFullInfo(I);E.style.display="block";J.onclick="return loadInformers()";var A=$("ready_h2");A.style.display="inline"};