/*! Translate Button v1.2 - http://www.TranslateCompany.com
Copyright (c)2008-2012 Translate Company. All rights reserved
This script may not be modified or hosted elsewhere */
(function(){function a(a){var b={host:"x.translateth.is",l:{},wSE:[],WmK:[],vxr:[],ID7:[],wHt:0,ol:0,all:0,tr:0,huX:0,topBarElement:!1,tc:{KRL:"",Rfk:{b:"tt"},data:{P2C:[],mtP:[],vai:[],Om2:[]},EGW:{yQx:-1,z8M:0,Yyt:0,f4Q:0,XmV:!1,kbr:!1},tY8:{LNy:0,C2W:[]},obj:{},wi6:0,TJl:0,rdu:[],PrI:[3171,3191],port:0,s3z:"b.translatecompany.com",O7Z:"",x6k:function(a){if(a=="start")b.tc.tY8.LNy=(new Date).getTime();else{if(a=="get"){b.tc.x6k("completed");var c=b.tc.tY8.C2W;return b.tc.tY8.LNy=0,b.tc.tY8.C2W=[],c}var d=((new Date).getTime()-b.tc.tY8.LNy).toString();b.tc.tY8.C2W.push([d,a])}},rk:function(a){var b=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],c=b.length,d="";for(var e=0;e<a;e++)d+=b[Math.floor(Math.random()*c)];return d},uLh:function(a,b){var c={},d={},e,f={},g={},h={},i={};f[0]="HTML_SPECIALCHARS",f[1]="HTML_ENTITIES",g[0]="ENT_NOQUOTES",g[2]="ENT_COMPAT",g[3]="ENT_QUOTES",h=isNaN(a)?a?a.toUpperCase():"HTML_SPECIALCHARS":f[a],i=isNaN(b)?b?b.toUpperCase():"ENT_COMPAT":g[b];if(h!=="HTML_SPECIALCHARS"&&h!=="HTML_ENTITIES")throw new Error("Table: "+h+" not supported");c[38]="&amp;",h==="HTML_ENTITIES"&&(c[160]="&nbsp;",c[161]="&iexcl;",c[162]="&cent;",c[163]="&pound;",c[164]="&curren;",c[165]="&yen;",c[166]="&brvbar;",c[167]="&sect;",c[168]="&uml;",c[169]="&copy;",c[170]="&ordf;",c[171]="&laquo;",c[172]="&not;",c[173]="&shy;",c[174]="&reg;",c[175]="&macr;",c[176]="&deg;",c[177]="&plusmn;",c[178]="&sup2;",c[179]="&sup3;",c[180]="&acute;",c[181]="&micro;",c[182]="&para;",c[183]="&middot;",c[184]="&cedil;",c[185]="&sup1;",c[186]="&ordm;",c[187]="&raquo;",c[188]="&frac14;",c[189]="&frac12;",c[190]="&frac34;",c[191]="&iquest;",c[192]="&Agrave;",c[193]="&Aacute;",c[194]="&Acirc;",c[195]="&Atilde;",c[196]="&Auml;",c[197]="&Aring;",c[198]="&AElig;",c[199]="&Ccedil;",c[200]="&Egrave;",c[201]="&Eacute;",c[202]="&Ecirc;",c[203]="&Euml;",c[204]="&Igrave;",c[205]="&Iacute;",c[206]="&Icirc;",c[207]="&Iuml;",c[208]="&ETH;",c[209]="&Ntilde;",c[210]="&Ograve;",c[211]="&Oacute;",c[212]="&Ocirc;",c[213]="&Otilde;",c[214]="&Ouml;",c[215]="&times;",c[216]="&Oslash;",c[217]="&Ugrave;",c[218]="&Uacute;",c[219]="&Ucirc;",c[220]="&Uuml;",c[221]="&Yacute;",c[222]="&THORN;",c[223]="&szlig;",c[224]="&agrave;",c[225]="&aacute;",c[226]="&acirc;",c[227]="&atilde;",c[228]="&auml;",c[229]="&aring;",c[230]="&aelig;",c[231]="&ccedil;",c[232]="&egrave;",c[233]="&eacute;",c[234]="&ecirc;",c[235]="&euml;",c[236]="&igrave;",c[237]="&iacute;",c[238]="&icirc;",c[239]="&iuml;",c[240]="&eth;",c[241]="&ntilde;",c[242]="&ograve;",c[243]="&oacute;",c[244]="&ocirc;",c[245]="&otilde;",c[246]="&ouml;",c[247]="&divide;",c[248]="&oslash;",c[249]="&ugrave;",c[250]="&uacute;",c[251]="&ucirc;",c[252]="&uuml;",c[253]="&yacute;",c[254]="&thorn;",c[255]="&yuml;"),i!=="ENT_NOQUOTES"&&(c[34]="&quot;"),i==="ENT_QUOTES"&&(c[39]="&#39;"),c[60]="&lt;",c[62]="&gt;";for(e in c){if(typeof c[e]=="function")continue;c.hasOwnProperty(e)&&(d[String.fromCharCode(e)]=c[e])}return d},oLq:function(a,c){var d={},e="",f="",g="";f=a.toString();if(!1===(d=b.tc.uLh("HTML_ENTITIES","ENT_QUOTES")))return!1;delete d["&"],d["&"]="&amp;";for(e in d){if(typeof d[e]=="function")continue;g=d[e],f=f.split(g).join(e)}return f=f.split("&#039;").join("'"),f},cPI:function(){io!=""&&(clearInterval(b.tc.DZzr),b.tc.DZzr=0,b.tc.ioLoaded())},sO1:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},L27:function(a){if(typeof a!="string")return;var b=-1,c=a.length;while(a.charCodeAt(--c)<65);while(a.charCodeAt(++b)<65);var d=a.slice(0,b),e=a.slice(b,c+1),f=a.slice(c+1,a.length);return[d,e,f]},pending:function(a,c){typeof b.tc.obj[b.tc.wi6]=="object"&&b.tc.wi6++,b.tc.obj[b.tc.wi6]={},b.tc.obj[b.tc.wi6].associated=[],b.tc.obj[b.tc.wi6].translate=[];for(var d in a){if(typeof a[d]=="function"||typeof a[d]=="object")continue;var e=b.tc.L27(a[d]);b.tc.obj[b.tc.wi6].to=b.tc.O7Z,b.tc.obj[b.tc.wi6].associated[d]=e,b.tc.obj[b.tc.wi6].translate[d]=e[1],b.tc.obj[b.tc.wi6].callback=c}},completed:function(){var a=b.tc.x6k("get"),c=b.tc.rdu;b.tc.KRL.emit("complete",{b:a,d:c,url:document.location.href.split("://")[1],unique:b.tc.EGW.kbr}),b.tc.obj={},b.tc.wi6=0,b.tc.EGW.yQx=-1,b.tc.EGW.kbr=!1},dke:function(){if(b.tc.EGW.yQx!=1)return;b.tc.EGW.yQx=2;for(var a=0,c=0;!c;a++){var d="";for(var e in b.tc.obj){if(typeof b.tc.obj[e]=="function")continue;for(var f in b.tc.obj[e].translate)if(typeof b.tc.obj[e].translate[f]=="string"){var g=b.tc.L27(b.tc.obj[e].translate[f]),h=g[1].split(" ").length;if(a==1||h>3)d+=g[1],h>3?d+=". ":d+=" "}}if(d.length>300||a==1)c=1}d=d.substr(0,b.o.maxLength),b.tc.KRL.emit("unique",{url:document.location.href.split("://")[1],to:b.tc.O7Z,data:d,id:b.o.id})},ioLoaded:function(){b.tc.x6k("io loaded"),b.tc.KRL=io.connect("http://"+b.tc.s3z+":"+b.tc.port),b.tc.KRL.on("connect",function(){b.tc.x6k("socket connected"),b.tc.dke()}),b.tc.KRL.on("cancel",function(a){b.removeTopBar(),b.trans(0)}),b.tc.KRL.on("gs",function(a){document.location.href="http://translate.google.com/translate?sl=auto&tl="+b.tc.O7Z+"&u="+document.location.href}),b.tc.KRL.on("unique",function(a){b.tc.x6k("received unique"),b.tc.EGW.kbr=a.data;var c=0;for(var d in b.tc.obj){if(typeof b.tc.obj[d]=="function")continue;b.tc.KRL.emit("translate",{unique:a.data,id:c,data:b.tc.obj[d].translate,to:b.tc.obj[d].to,url:document.location.href.split("://")[1]}),c++}}),b.tc.KRL.on("translated",function(a){b.tc.x6k("received translation");var c=[];for(var d=0;d<b.tc.obj[a.id].associated.length;d++){if(typeof b.tc.obj[a.id].associated[d]=="function")continue;b.tc.obj[a.id].associated[d][0]==b.tc.obj[a.id].associated[d][2]&&!b.tc.oLq(a.data[d])?c.push(b.tc.obj[a.id].associated[d][0]):c.push(b.tc.obj[a.id].associated[d][0]+b.tc.oLq(a.data[d])+b.tc.obj[a.id].associated[d][2])}var e={p0d:c};b.tc.obj[a.id].callback(e)})},i:function(a){var a=a||0;typeof b.tc.KRL=="object"?b.tc.pending.length>0&&b.tc.dke():b.tc.EGW.f4Q==0&&(b.tc.EGW.f4Q=1,b.tc.x6k("start"),b.tc.port=Math.floor(Math.random()*(b.tc.PrI[1]-b.tc.PrI[0]+1)+b.tc.PrI[0]),b.tc.DZzr=setInterval(function(){b.tc.cPI()},25))}},tG9:function(a,b,c){a.attachEvent?(a["e"+b+c]=c,a[b+c]=function(){a["e"+b+c](window.event)},a.attachEvent("on"+b,a[b+c])):a.addEventListener(b,c,!1)},jkH:function(a){a&&a.jkHentDefault?a.jkHentDefault():window.event&&window.event.returnValue&&(window.event.returnValue=!1)},trans:function(a){function c(a){function e(a,c,e,f){var g=b.tc.L27(c);if(!g[1])return;m+=e;if(m>=n||l.length>128)d(),i(e);j.push(a),k.push(f),l.push(c)}if(b.hasClass(a,"notranslate"))return;switch(a.nodeType){case 1:switch(a.tagName){case"SCRIPT":case"STYLE":case"OBJECT":return}if(!a.innerHTML)return;var f=a.childNodes;for(var g=0,h=f.length;g<h;g++)c(f[g]);break;case 3:var o=a.nodeValue,p=o.length;if(o.indexOf("<")!=-1&&o.indexOf(">")!=-1)return;if(p<n)e(a,o,p,0);else for(var q=0;o.length;q++)e(a,o.substr(0,n),o.length,q?1:0),o=o.substr(n)}}function d(){var a={nodes:j,appends:k,html:l};b.vxr.push(a),e(a)}function e(a){b.wHt++,b.tc.pending(a.html,function(c){if(b.cancel)return;c.error||f(a,c.p0d),b.wHt--,b.wHt||(g(0),b.tc.x6k("send"))})}function f(a,b){var c=a.nodes;for(var d=0,e=b.length;d<e;d++){var f=c[d],g=b[d];if(typeof f=="undefined")return;f.nodeValue=g}}function g(c){b.wrap=document.getElementById(b.o.wrapper);var d=b.fCTA();b.bCTA(d);if(!c){b.o.cookie&&b.setCookie(a,30),typeof b.o.onComplete=="function"&&b.o.onComplete(a);if(b.o.huXTime>=0){var e=document.createElement("a"),f=b.o.doneText+" - ";try{e.href="#"}catch(g){}e.innerHTML=b.o.huXText,e.onclick=function(a){b.jkH(a),b.removeTopBar(),b.trans(0);return},b.topBar(f,b.o.huXTime),b.topBarElement.appendChild(e)}}b.tc.completed()}function h(){var a=document.createElement("div"),c=document.createElement("a");return a.className="ttb-translating notranslate",a.innerHTML=b.o.wHtText+"<br />",c.innerHTML=b.o.cancelText,c.href="#cancel",c.onclick=function(a){b.jkH(a),b.trans(0)},a.appendChild(c),document.body.appendChild(a),a}function i(a){j=[],k=[],l=[],m=a}b.tc.O7Z=a;var j,k,l,m;i(0);var n=b.o.maxLength;b.wHt=1,b.dd&&(b.rem(b.dd),b.dd=0,b.wSE=[]),b.all&&(b.rem(b.all),b.all=0,b.WmK=[]),a&&b.topBarElement&&b.removeTopBar(),a?(b.o.huXTime>=0&&b.topBar(),b.tc.EGW.XmV=b.l[a]):(b.tc.EGW.XmV=!1,b.tc.EGW.kbr=!1);if(a&&a!=b.o.fromLang){b.cancel=0;if(!b.vxr.length||b.o.reparse)b.vxr=[],c(b.o.scope?document.getElementById(b.o.scope):document.body),d();else{var o=b.vxr;for(var p=0,q=o.length;p<q;p++)e(o[p])}b.wHt--,b.wHt||g(0),b.tc.EGW.yQx=1,b.tc.i(),b.WFG(a),typeof b.o.onClick=="function"&&b.o.onClick()}else if(!b.cancel){b.cancel=1,b.setCookie("",-1);var o=b.vxr;for(var p=0,q=o.length;p<q;p++)f(o[p],o[p].html);b.WFG(0),b.wHt=0,b.removeTopBar(),g(1)}},b:function(){function a(){var a=document.createElement("style"),c="display:block;overflow:hidden;text-indent:-2000px;",d="background:#FFF;border:1px solid #BBB;font-family:Arial;color:#555;",e=".ttb-panel{display:none;position:absolute;z-index:2147483647;font-size:12px;text-align:left;"+d+"} .ttb-panel .ttb-column{width:118px;float:left;margin:0 3px 0 0;} .ttb-panel a{color:#555}";b.o.noBtn||(e+=" #"+b.o.wrapper+" .translate-this-button{background:url('"+b.o.btnImg+"') no-repeat;visibility:visible;position:relative;width:"+b.o.btnWidth+"px;height:"+b.o.btnHeight+"px;float:left;"+c+"}"),e+=" .ttb-more{float:right;padding:4px;} .ttb-close{display:block;position:absolute;top:3px;right:3px;height:16px;width:16px;}",e+=" .ttb-cta{display:block;padding:4px 5px;text-decoration:none;cursor:pointer;} .ttb-cta:hover{background:#EEE;outline:1px solid #DDD;text-decoration:underline;}",e+=" .translate-flag{background:url('"+b.o.bgImg+"') no-repeat;height:"+b.o.imgHeight+"px;width:"+b.o.imgWidth+"px;margin:0 6px 0 0;float:left;"+c+"}",e+=" .ttb-overlay{position:absolute;top:0;left:0;z-index:2147483645;background:#222;filter:alpha(opacity=80);opacity:.8;} .ttb-translating{position:absolute;z-index:3500;height:80px;width:200px;font-size:16px;text-align:center;line-height:40px;"+d+"} .ttb-translating a{font-size:.8em;}",e+=" .ttb-topbar{position:absolute;width:100%;z-index:2147483646;top:0;left:0;padding:5px 0;text-align:center;font-size:13px;font-family:Arial;color:#444;border:0;box-shadow:0px 4px 15px #222222;-moz-box-shadow:0px 4px 15px #222222;-webkit-box-shadow:0px 4px 15px #222222; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAASCAYAAADyiPTBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3Q0VCQzI3QkU1ODZFMDExODBDQUE4RDM5RkY4RTNFQSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5OEIyNDNENTg2RTUxMUUwODdCMUEzOTA2NTBGMzkzQSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5OEIyNDNENDg2RTUxMUUwODdCMUEzOTA2NTBGMzkzQSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3REVCQzI3QkU1ODZFMDExODBDQUE4RDM5RkY4RTNFQSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3Q0VCQzI3QkU1ODZFMDExODBDQUE4RDM5RkY4RTNFQSIvPiA8L3JkZjpEZXNjcmlwdGlv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);background: -moz-linear-gradient(top,  rgba(255,255,255,0.98) 0%, rgba(229,229,229,0.96) 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.98)), color-stop(100%,rgba(229,229,229,0.96)));background: -webkit-linear-gradient(top,  rgba(255,255,255,0.96) 0%,rgba(229,229,229,0.98) 100%);background: -o-linear-gradient(top,  rgba(255,255,255,0.96) 0%,rgba(229,229,229,0.96) 100%);background: -ms-linear-gradient(top,  rgba(255,255,255,0.98) 0%,rgba(229,229,229,0.96) 100%);background: linear-gradient(top,  rgba(255,255,255,0.96) 0%,rgba(229,229,229,0.98) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5ffffff', endColorstr='#f5e5e5e5',GradientType=0 ); }",e+=" .ttb-paneltop {background:#EEE;border-bottom:1px solid #DDD;padding:6px 5px 3px 5px;text-align:center;}",a.type="text/css",a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(a)}b.wrap=document.getElementById(b.o.wrapper);if(!b.wrap)return;var c=b.fCTA();if(!c||c.href.toLowerCase()!=b.lynx.toLowerCase()&&c.href.toLowerCase()!=b.lynx2.toLowerCase())return;b.tc.rdu={h:c.href,a:c.innerHTML};try{c.href="#translate"}catch(d){}if(b.o.cookie&&!b.wHt){var e=b.getCookie();e&&b.trans(e)}a(),b.wrap.style.height=b.o.btnHeight+"px",b.bCTA(c),b.appendClear(b.wrap,1),b.parseId(),typeof b.o.onLoad=="function"&&b.o.onLoad()},bFlag:function(a){var c=document.createElement("a");c.className="translate-"+a+" ttb-cta",c.title="Translate into "+b.l[a],c.href="#translate-"+a;var d=document.createElement("span");d.className="translate-label",d.innerHTML=b.l[a];if(b.o.noImg)return c.appendChild(d),c;var e=document.createElement("span");return e.className="translate-flag",e.style.backgroundPosition="0 "+b.o.imgMap[a]*b.o.imgHeight*-1+"px",c.appendChild(e),c.appendChild(d),c},fCTA:function(){var a=b.wrap.childNodes;for(var c=0;c<a.length;c++)if(a[c].className=="translate-this-button")return a[c];return!1},bCTA:function(a){function c(){b.dd=b.bPanel(1),b.dd.style.width="250px",b.dd.onmouseover=d,b.dd.onmouseout=e}function d(){if(g){clearTimeout(g);return}b.dd||c();var d=b.gPos(a);b.dd.style.top="-1000px",b.dd.style.display="block";var e=b.dd.offsetWidth;b.dd.style.left=d[0]+(document.body.offsetWidth-d[0]>e?0:a.offsetWidth-e)+"px";var f=b.dd.offsetHeight;b.dd.style.top=d[1]+(Math.max(b.wY(),document.body.offsetHeight)-d[1]>f?a.offsetHeight:-1*f)+"px"}function e(){g=setTimeout(f,500)}function f(){g=0,b.dd.style&&(b.dd.style.display="none")}var g=0;a.onclick=b.o.onlyDD?b.jkH:b.showAll,a.onmouseover=d,a.onmouseout=e},bPanel:function(a){function c(a,c,d){var e=document.createElement("a");e.href=b.lynx,e.title=c,e.target="_blank",e.innerHTML=a,d&&(e.style.cssFloat="right",e.style.styleFloat="right"),o.appendChild(e)}function d(a){b.jkH(a);var c=b.gTar(a.target||a.srcElement);return b.hasClass(c,"ttb-cta")?b.flagClick(a,c,e,f):b.hasClass(c,"ttb-more")?b.showAll():b.hasClass(c,"ttb-close")&&b.hideAll(),!1}b.tc.i();if(a)var e=b.wSE,f=b.o.ddLangs,g=2,h=0;else var e=b.WmK,f=b.o.allLangs,g=4,h="5px";var i=document.createElement("div");i.className="ttb-panel";if(b.tc.EGW.XmV)var j='<div class="ttb-paneltop" id="ttb-paneltop">'+b.tc.EGW.XmV+" - </div>";else var j='<div class="ttb-paneltop" id="ttb-paneltop"><b>'+b.o.panelText+"</b></div>";i.innerHTML="<div>"+j+'</div><div style="padding:5px 0 '+h+' 5px;"></div><div style="background:#EEE;border-top:1px solid #DDD;font-size:10px;padding:1px 5px;"></div>',document.body.appendChild(i);if(b.tc.EGW.XmV){var k=document.createElement("a");try{k.href="#"}catch(l){}k.innerHTML=b.o.huXText,k.onclick=function(a){b.jkH(a),b.removeTopBar(),b.trans(0);return},document.getElementById("ttb-paneltop").appendChild(k)}var m=i.childNodes[1],n=[],o=i.childNodes[2];for(var p=0;p<g;p++)n[p]=document.createElement("div"),n[p].className="ttb-column",m.appendChild(n[p]);var q=0;for(var p=0;p<f.length;p++){var r=b.bFlag(f[p]);p>=f.length/g*(q+1)&&q++,n[q].appendChild(r),a?b.wSE.push(r):b.WmK.push(r)}b.tG9(m,"click",d),b.tc.Rfk.b!="none"&&(c("TranslateThis Button","Get your own TranslateThis Button",!a),a||c("What's This?","What is the TranslateThis Button?",0));if(!a||!b.o.onlyDD){var s=document.createElement("a");s.style.cursor="pointer",a?(s.className="ttb-more",s.innerHTML=b.o.moreText):(s.className="ttb-close",b.o.noImg?s.innerHTML="X":(s.style.backgroundImage='url("'+b.o.bgImg+'")',s.style.backgroundPosition="0 -696px"),s.title="Close"),m.appendChild(s)}return b.appendClear(m,0),i},appendClear:function(a,b){var c=document.createElement("div");c.style.margin="0",c.style.padding="0",b?(c.style.width="100%",c.style.height="1px"):c.style.clear="both",a.appendChild(c)},gPos:function(a){var b=curtop=0;if(a.offsetParent){do b+=a.offsetLeft,curtop+=a.offsetTop;while(a=a.offsetParent);return[b,curtop]}},gTar:function(a){return a.tagName!="A"&&(a=a.parentNode),a},flagClick:function(a,c,d,e){function f(a,b){for(var c=0;c<b.length;c++)if(a==b[c])return c}b.hideAll(a);var g=f(c,d);b.trans(e[g])},removeTopBar:function(){if(b.topBarElement==0)return;b.rem(b.topBarElement),b.topBarElement=!1,b.topBarTimer&&(clearTimeout(b.topBarTimer),b.topBarTimer=!1)},topBar:function(a,c){function d(){b.topBarPx--,b.topBarPx>-35?(b.topBarElement.style.top=b.topBarPx+"px",setTimeout(d,12)):b.removeTopBar()}if(a=="hide")d();else if(a)b.topBarElement.innerHTML=a;else{var e=document.createElement("div"),f=document.createElement("a");e.className="ttb-topbar notranslate",e.innerHTML=b.o.wHtText+" ",f.innerHTML=b.o.cancelText;try{f.href="#"}catch(g){}f.onclick=function(a){b.jkH(a),hideTopBar(),b.trans(0)},f.style.display="none",e.appendChild(f),document.body.appendChild(e),b.topBarElement=e}c&&(b.topBarTimer=setTimeout(function(){b.topBarPx=0,d()},c))},showOL:function(){function a(){var a=document.createElement("div");return a.className="ttb-overlay",document.body.appendChild(a),a.onclick=function(a){b.hideAll(a)},window.onresize=function(a){b.resize=setTimeout(c,80)},a}function c(){if(!b.olShow)return;var a=document,c=Math.max(Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),Math.max(a.body.clientWidth,a.documentElement.clientWidth)),d=Math.max(Math.max(a.body.scrollHeight,a.documentElement.scrollHeight),Math.max(a.body.offsetHeight,a.documentElement.offsetHeight),Math.max(a.body.clientHeight,a.documentElement.clientHeight));b.ol.style.width=c+"px",b.ol.style.height=d+"px"}b.olShow=1,b.ol||(b.ol=a()),c(),b.ol.style.display="block",b.dd&&(b.dd.style.display="none")},hideOL:function(){b.ol.style.display="none",b.olShow=0},showAll:function(a){function c(){var a=b.bPanel(0);return a.style.width="492px",a}b.jkH(a),b.showOL(),b.all||(b.all=c()),b.centerXY(b.all,246,190),b.all.style.display="block"},hideAll:function(a){b.jkH(a);if(!b.all)return;b.all.style.display="none",b.hideOL()},centerXY:function(a,c,d){var e=0,f=0;typeof window.pageYOffset=="number"?(f=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(f=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(f=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),e+=b.wX()/2-c,f+=b.wY()/2-d,a.style.top=f+"px",a.style.left=e+"px"},wX:function(){return window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth},wY:function(){return window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight},rem:function(a){a.parentNode.removeChild(a)},setCookie:function(a,c){var d=new Date;d.setTime(d.getTime()+c*864e4),document.cookie=b.o.cookie+"="+a+"; expires="+d.toGMTString()+"; path=/"},getCookie:function(){var a=b.o.cookie+"=",c=document.cookie.split(";");for(var d=0;d<c.length;d++){var e=c[d];while(e.charAt(0)==" ")e=e.substring(1,e.length);if(e.indexOf(a)==0)return e.substring(a.length,e.length)}return null},WFG:function(a){b.o.GA&&a!="init"&&typeof pageTracker!="undefined"&&pageTracker._trackPageview("TranslateThis-"+a);if("https:"==document.location.protocol)return},hasClass:function(a,b){var c=" "+b+" ";return(" "+a.className+" ").replace(/[\n\t]/g," ").indexOf(c)>-1?!0:!1},parseId:function(){if(b.o.id==0)return;var a=b.o.id.split(".")[1];if(!a)return;a.indexOf("b")!==!1&&(b.tc.Rfk.b="none")},demoteFlash:function(){var a=document.getElementsByTagName("embed");for(var b=0;b<a.length;b++)a[b].setAttribute("wmode","opaque");var c=document.getElementsByTagName("object"),d=[];for(var b=0;b<c.length;b++)d[b]=c[b];for(var b=0;b<d.length;b++){var e=document.createElement("param");e.setAttribute("name","wmode"),e.setAttribute("value","opaque"),d[b].appendChild(e);var f=document.createElement("div");d[b].parentNode.appendChild(f);if(d[b].outerHTML){var g=d[b].outerHTML;d[b].parentNode.removeChild(d[b]),f.innerHTML=g}else d[b].parentNode.removeChild(d[b]),f.appendChild(d[b])}}};b.lynx="http://translateTH.IS/",b.lynx2="http://www.translatecompany.com/";var a=a||[];a.wrapper=a.wrapper||"translate-this",a.scope=a.scope||!1,a.bgImg=a.bgImg||"http://"+b.host+"/tt-sprite3.png",a.fromLang=a.fromLang||"",a.flags=a.flags||[];if(a.fromLang==""||a.fromLang=="de")var c=["de","en","fr","nl","es","pt-PT","it","el","ru","hu","pl","cs","no","sv","fi","lv"];else var c=["en","fr","es","ar","zh-CN","ko","it","iw","de","pt-PT","ru","ja","vi","el","hi","tr"];a.ddLangs=a.ddLangs||c,a.imgMap=a.imgMap||{af:10,sq:11,ar:6,be:12,bg:13,ca:50,"zh-CN":7,"zh-TW":14,hr:15,cs:16,da:17,nl:18,en:19,et:21,fi:22,fr:0,gl:51,de:1,el:23,iw:24,hi:25,hu:26,is:27,id:28,ga:29,it:4,ja:8,ko:9,lv:30,lt:31,mk:32,ms:33,mt:34,no:35,fa:36,pl:37,"pt-PT":3,ro:38,ru:5,sr:39,sk:40,sl:41,es:2,sw:42,sv:43,tl:44,th:45,tr:46,uk:47,vi:48,cy:49,yi:24},a.allLangs===undefined&&(a.allLangs=["af","sq","ar","be","bg","ca","zh-CN","zh-TW","hr","cs","da","nl","en","et","fi","fr","gl","de","el","iw","hi","hu","is","id","ga","it","ja","ko","lv","lt","mk","ms","mt","no","fa","pl","pt-PT","ro","ru","sr","sk","sl","es","sw","sv","tl","th","tr","uk","vi","cy","yi"]),a.noBtn=a.noBtn||!1,a.btnWidth=a.btnWidth||180,a.btnHeight=a.btnHeight||18,a.noImg=a.noImg||!1,a.imgHeight=a.imgHeight||12,a.imgWidth=a.imgWidth||18,a.maxLength=4500,a.onlyDD=a.onlyDD||!1,a.huXTime===undefined&&(a.huXTime=-1),a.onLoad=a.onLoad||null,a.onClick=a.onClick||null,a.onComplete=a.onComplete||null,a.GA=a.GA||!1,a.cookie=a.cookie!==undefined?a.cookie:"tt-lang",a.huXText=a.huXText||"Undo &raquo;",a.panelText=a.panelText||"Translate Into",a.moreText=a.moreText||a.allLangs.length-a.ddLangs.length+" More Languages &raquo;",a.wHtText=a.wHtText||"Translating Page...",a.cancelText=a.cancelText||"cancel",a.doneText=a.doneText||"Translation Complete",a.msie=/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||!1,a.btnImg=a.btnImg||"http://www.ansgararyan.com/images/tt-btn1.png",a.id=a.id||!1,b.o=a;var d={AFRIKAANS:"af",ALBANIAN:"sq",AMHARIC:"am",ARABIC:"ar",ARMENIAN:"hy",AZERBAIJANI:"az",BASQUE:"eu",BELARUSIAN:"be",BENGALI:"bn",BIHARI:"bh",BULGARIAN:"bg",BURMESE:"my",BRETON:"br",CATALAN:"ca",CHEROKEE:"chr",CHINESE:"zh",CHINESE_SIMPLIFIED:"zh-CN",CHINESE_TRADITIONAL:"zh-TW",CORSICAN:"co",CROATIAN:"hr",CZECH:"cs",DANISH:"da",DHIVEHI:"dv",DUTCH:"nl",ENGLISH:"en",ESPERANTO:"eo",ESTONIAN:"et",FAROESE:"fo",FILIPINO:"tl",FINNISH:"fi",FRENCH:"fr",FRISIAN:"fy",GALICIAN:"gl",GEORGIAN:"ka",GERMAN:"de",GREEK:"el",GUJARATI:"gu",HAITIAN_CREOLE:"ht",HEBREW:"iw",HINDI:"hi",HUNGARIAN:"hu",ICELANDIC:"is",INDONESIAN:"id",INUKTITUT:"iu",IRISH:"ga",ITALIAN:"it",JAPANESE:"ja",JAVANESE:"jw",KANNADA:"kn",KAZAKH:"kk",KHMER:"km",KOREAN:"ko",KURDISH:"ku",KYRGYZ:"ky",LAO:"lo",LAOTHIAN:"lo",LATIN:"la",LATVIAN:"lv",LITHUANIAN:"lt",LUXEMBOURGISH:"lb",MACEDONIAN:"mk",MALAY:"ms",MALAYALAM:"ml",MALTESE:"mt",MAORI:"mi",MARATHI:"mr",MONGOLIAN:"mn",NEPALI:"ne",NORWEGIAN:"no",OCCITAN:"oc",ORIYA:"or",PASHTO:"ps",PERSIAN:"fa",POLISH:"pl",PORTUGUESE:"pt",PORTUGUESE_PORTUGAL:"pt-PT",PUNJABI:"pa",QUECHUA:"qu",ROMANIAN:"ro",RUSSIAN:"ru",SANSKRIT:"sa",SCOTS_GAELIC:"gd",SERBIAN:"sr",SINDHI:"sd",SINHALESE:"si",SLOVAK:"sk",SLOVENIAN:"sl",SPANISH:"es",SUNDANESE:"su",SWAHILI:"sw",SWEDISH:"sv",SYRIAC:"syr",TAJIK:"tg",TAMIL:"ta",TAGALOG:"tl",TATAR:"tt",TELUGU:"te",THAI:"th",TIBETAN:"bo",TONGA:"to",TURKISH:"tr",UKRAINIAN:"uk",URDU:"ur",UZBEK:"uz",UIGHUR:"ug",VIETNAMESE:"vi",WELSH:"cy",YIDDISH:"yi",YORUBA:"yo",UNKNOWN:""};for(l in d){var e=d[l],f=l.replace("_"," ").toLowerCase();f=f.charAt(0).toUpperCase()+f.substr(1,f.length),b.l[e]=f}b.l["zh-CN"]="Chinese",b.l["zh-TW"]="Chinese (trad.)",b.l["pt-PT"]="Portuguese";var g=window.onload?window.onload:function(){};window.onload=function(){g(),new b.b}}window.TranslateThis=a})();var io="";(function(a,b){var c=a;c.version="0.8.7",c.protocol=1,c.transports=[],c.j=[],c.sockets={},c.connect=function(a,d){var e=c.util.parseUri(a),f,g;b&&b.location&&(e.protocol=e.protocol||b.location.protocol.slice(0,-1),e.host=e.host||(b.document?b.document.domain:b.location.hostname),e.port=e.port||b.location.port),f=c.util.uniqueUri(e);var h={host:e.host,secure:"https"==e.protocol,port:e.port||("https"==e.protocol?443:80),query:e.query||""};c.util.merge(h,d);if(h["force new connection"]||!c.sockets[f])g=new c.Socket(h);return!h["force new connection"]&&g&&(c.sockets[f]=g),g=g||c.sockets[f],g.of(e.path.length>1?e.path:"")}})("object"==typeof module?module.exports:this.io={},this),function(a,b){var c=a.util={},d=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];c.parseUri=function(a){var b=d.exec(a||""),c={},f=14;while(f--)c[e[f]]=b[f]||"";return c},c.uniqueUri=function(a){var c=a.protocol,d=a.host,e=a.port;return"document"in b?(d=d||document.domain,e=e||(c=="https"&&document.location.protocol!=="https:"?443:document.location.port)):(d=d||"localhost",!e&&c=="https"&&(e=443)),(c||"http")+"://"+d+":"+(e||80)},c.query=function(a,b){var d=c.chunkQuery(a||""),e=[];c.merge(d,c.chunkQuery(b||""));for(var f in d)d.hasOwnProperty(f)&&e.push(f+"="+d[f]);return e.length?"?"+e.join("&"):""},c.chunkQuery=function(a){var b={},c=a.split("&"),d=0,e=c.length,f;for(;d<e;++d)f=c[d].split("="),f[0]&&(b[f[0]]=decodeURIComponent(f[1]));return b};var f=!1;c.load=function(a){if("document"in b&&document.readyState==="complete"||f)return a();c.on(b,"load",a,!1)},c.on=function(a,b,c,d){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener&&a.addEventListener(b,c,d)},c.request=function(a){if(a&&"undefined"!=typeof XDomainRequest)return new XDomainRequest;if("undefined"!=typeof XMLHttpRequest&&(!a||c.ua.hasCORS))return new XMLHttpRequest;if(!a)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}return null},"undefined"!=typeof window&&c.load(function(){f=!0}),c.defer=function(a){if(!c.ua.webkit||"undefined"!=typeof importScripts)return a();c.load(function(){setTimeout(a,100)})},c.merge=function(b,d,e,f){var g=f||[],h=typeof e=="undefined"?2:e,i;for(i in d)d.hasOwnProperty(i)&&c.indexOf(g,i)<0&&(typeof b[i]!="object"||!h?(b[i]=d[i],g.push(d[i])):c.merge(b[i],d[i],h-1,g));return b},c.mixin=function(a,b){c.merge(a.prototype,b.prototype)},c.inherit=function(a,b){function c(){}c.prototype=b.prototype,a.prototype=new c},c.isArray=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"},c.intersect=function(a,b){var d=[],e=a.length>b.length?a:b,f=a.length>b.length?b:a;for(var g=0,h=f.length;g<h;g++)~c.indexOf(e,f[g])&&d.push(f[g]);return d},c.indexOf=function(a,b,c){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(a,b,c);for(var d=a.length,c=c<0?c+d<0?0:c+d:c||0;c<d&&a[c]!==b;c++);return d<=c?-1:c},c.toArray=function(a){var b=[];for(var c=0,d=a.length;c<d;c++)b.push(a[c]);return b},c.ua={},c.ua.hasCORS="undefined"!=typeof XMLHttpRequest&&function(){try{var a=new XMLHttpRequest}catch(b){return!1}return a.withCredentials!=undefined}(),c.ua.webkit="undefined"!=typeof navigator&&/webkit/i.test(navigator.userAgent)}("undefined"!=typeof io?io:module.exports,this),function(a,b){function c(){}a.EventEmitter=c,c.prototype.on=function(a,c){return this.$events||(this.$events={}),this.$events[a]?b.util.isArray(this.$events[a])?this.$events[a].push(c):this.$events[a]=[this.$events[a],c]:this.$events[a]=c,this},c.prototype.addListener=c.prototype.on,c.prototype.once=function(a,b){function d(){c.removeListener(a,d),b.apply(this,arguments)}var c=this;return d.listener=b,this.on(a,d),this},c.prototype.removeListener=function(a,c){if(this.$events&&this.$events[a]){var d=this.$events[a];if(b.util.isArray(d)){var e=-1;for(var f=0,g=d.length;f<g;f++)if(d[f]===c||d[f].listener&&d[f].listener===c){e=f;break}if(e<0)return this;d.splice(e,1),d.length||delete this.$events[a]}else(d===c||d.listener&&d.listener===c)&&delete this.$events[a]}return this},c.prototype.removeAllListeners=function(a){return this.$events&&this.$events[a]&&(this.$events[a]=null),this},c.prototype.listeners=function(a){return this.$events||(this.$events={}),this.$events[a]||(this.$events[a]=[]),b.util.isArray(this.$events[a])||(this.$events[a]=[this.$events[a]]),this.$events[a]},c.prototype.emit=function(a){if(!this.$events)return!1;var c=this.$events[a];if(!c)return!1;var d=Array.prototype.slice.call(arguments,1);if("function"==typeof c)c.apply(this,d);else{if(!b.util.isArray(c))return!1;var e=c.slice();for(var f=0,g=e.length;f<g;f++)e[f].apply(this,d)}return!0}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(exports,nativeJSON){function f(a){return a<10?"0"+a:a}function date(a,b){return isFinite(a.valueOf())?a.getUTCFullYear()+"-"+f(a.getUTCMonth()+1)+"-"+f(a.getUTCDate())+"T"+f(a.getUTCHours())+":"+f(a.getUTCMinutes())+":"+f(a.getUTCSeconds())+"Z":null}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i instanceof Date&&(i=date(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict";if(nativeJSON&&nativeJSON.parse)return exports.JSON={parse:nativeJSON.parse,stringify:nativeJSON.stringify};var JSON=exports.JSON={},cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")},JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")}}("undefined"!=typeof io?io:module.exports,typeof JSON!="undefined"?JSON:undefined),function(a,b){var c=a.parser={},d=c.packets=["disconnect","connect","heartbeat","message","json","event","ack","error","noop"],e=c.reasons=["transport not supported","client not handshaken","unauthorized"],f=c.advice=["reconnect"],g=b.JSON,h=b.util.indexOf;c.encodePacket=function(a){var b=h(d,a.type),c=a.id||"",i=a.endpoint||"",j=a.ack,k=null;switch(a.type){case"error":var l=a.reason?h(e,a.reason):"",m=a.advice?h(f,a.advice):"";if(l!==""||m!=="")k=l+(m!==""?"+"+m:"");break;case"message":a.data!==""&&(k=a.data);break;case"event":var n={name:a.name};a.args&&a.args.length&&(n.args=a.args),k=g.stringify(n);break;case"json":k=g.stringify(a.data);break;case"connect":a.qs&&(k=a.qs);break;case"ack":k=a.ackId+(a.args&&a.args.length?"+"+g.stringify(a.args):"")}var o=[b,c+(j=="data"?"+":""),i];return k!==null&&k!==undefined&&o.push(k),o.join(":")},c.encodePayload=function(a){var b="";if(a.length==1)return a[0];for(var c=0,d=a.length;c<d;c++){var e=a[c];b+="�"+e.length+"�"+a[c]}return b};var i=/([^:]+):([0-9]+)?(\+)?:([^:]+)?:?([\s\S]*)?/;c.decodePacket=function(a){var b=a.match(i);if(!b)return{};var c=b[2]||"",a=b[5]||"",h={type:d[b[1]],endpoint:b[4]||""};c&&(h.id=c,b[3]?h.ack="data":h.ack=!0);switch(h.type){case"error":var b=a.split("+");h.reason=e[b[0]]||"",h.advice=f[b[1]]||"";break;case"message":h.data=a||"";break;case"event":try{var j=g.parse(a);h.name=j.name,h.args=j.args}catch(k){}h.args=h.args||[];break;case"json":try{h.data=g.parse(a)}catch(k){}break;case"connect":h.qs=a||"";break;case"ack":var b=a.match(/^([0-9]+)(\+)?(.*)/);if(b){h.ackId=b[1],h.args=[];if(b[3])try{h.args=b[3]?g.parse(b[3]):[]}catch(k){}}break;case"disconnect":case"heartbeat":}return h},c.decodePayload=function(a){if(a.charAt(0)=="�"){var b=[];for(var d=1,e="";d<a.length;d++)a.charAt(d)=="�"?(b.push(c.decodePacket(a.substr(d+1).substr(0,e))),d+=Number(e)+1,e=""):e+=a.charAt(d);return b}return[c.decodePacket(a)]}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(a,b){function c(a,b){this.socket=a,this.sessid=b}a.Transport=c,b.util.mixin(c,b.EventEmitter),c.prototype.onData=function(a){this.clearCloseTimeout(),(this.connected||this.connecting||this.reconnecting)&&this.setCloseTimeout();if(a!==""){var c=b.parser.decodePayload(a);if(c&&c.length)for(var d=0,e=c.length;d<e;d++)this.onPacket(c[d])}return this},c.prototype.onPacket=function(a){return a.type=="heartbeat"?this.onHeartbeat():(a.type=="connect"&&a.endpoint==""&&this.onConnect(),this.socket.onPacket(a),this)},c.prototype.setCloseTimeout=function(){if(!this.closeTimeout){var a=this;this.closeTimeout=setTimeout(function(){a.onDisconnect()},this.socket.closeTimeout)}},c.prototype.onDisconnect=function(){return this.close&&this.open&&this.close(),this.clearTimeouts(),this.socket.onDisconnect(),this},c.prototype.onConnect=function(){return this.socket.onConnect(),this},c.prototype.clearCloseTimeout=function(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)},c.prototype.clearTimeouts=function(){this.clearCloseTimeout(),this.reopenTimeout&&clearTimeout(this.reopenTimeout)},c.prototype.packet=function(a){this.send(b.parser.encodePacket(a))},c.prototype.onHeartbeat=function(a){this.packet({type:"heartbeat"})},c.prototype.onOpen=function(){this.open=!0,this.clearCloseTimeout(),this.socket.onOpen()},c.prototype.onClose=function(){var a=this;this.open=!1,this.socket.onClose(),this.onDisconnect()},c.prototype.prepareUrl=function(){var a=this.socket.options;return this.scheme()+"://"+a.host+":"+a.port+"/"+a.resource+"/"+b.protocol+"/"+this.name+"/"+this.sessid},c.prototype.ready=function(a,b){b.call(this)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(a,b,c){function d(a){this.options={port:80,secure:!1,document:"document"in c?document:!1,resource:"socket.io",transports:b.transports,"connect timeout":1e4,"try multiple transports":!0,reconnect:!0,"reconnection delay":500,"reconnection limit":Infinity,"reopen delay":3e3,"max reconnection attempts":10,"sync disconnect on unload":!0,"auto connect":!0,"flash policy port":10843},b.util.merge(this.options,a),this.connected=!1,this.open=!1,this.connecting=!1,this.reconnecting=!1,this.namespaces={},this.buffer=[],this.doBuffer=!1;if(this.options["sync disconnect on unload"]&&(!this.isXDomain()||b.util.ua.hasCORS)){var d=this;b.util.on(c,"beforeunload",function(){d.disconnectSync()},!1)}this.options["auto connect"]&&this.connect()}function e(){}a.Socket=d,b.util.mixin(d,b.EventEmitter),d.prototype.of=function(a){return this.namespaces[a]||(this.namespaces[a]=new b.SocketNamespace(this,a),a!==""&&this.namespaces[a].packet({type:"connect"})),this.namespaces[a]},d.prototype.publish=function(){this.emit.apply(this,arguments);var a;for(var b in this.namespaces)this.namespaces.hasOwnProperty(b)&&(a=this.of(b),a.$emit.apply(a,arguments))},d.prototype.handshake=function(a){function f(b){b instanceof Error?c.onError(b.message):a.apply(null,b.split(":"))}var c=this,d=this.options,g=["http"+(d.secure?"s":"")+":/",d.host+":"+d.port,d.resource,b.protocol,b.util.query(this.options.query,"t="+ +(new Date))].join("/");if(this.isXDomain()&&!b.util.ua.hasCORS){var h=document.getElementsByTagName("script")[0],i=document.createElement("script");i.src=g+"&jsonp="+b.j.length,h.parentNode.insertBefore(i,h),b.j.push(function(a){f(a),i.parentNode.removeChild(i)})}else{var j=b.util.request();j.open("GET",g,!0),j.onreadystatechange=function(){j.readyState==4&&(j.onreadystatechange=e,j.status==200?f(j.responseText):!c.reconnecting&&c.onError(j.responseText))},j.send(null)}},d.prototype.getTransport=function(a){var c=a||this.transports,d;for(var e=0,f;f=c[e];e++)if(b.Transport[f]&&b.Transport[f].check(this)&&(!this.isXDomain()||b.Transport[f].xdomainCheck()))return new b.Transport[f](this,this.sessionid);return null},d.prototype.connect=function(a){if(this.connecting)return this;var c=this;return this.handshake(function(d,e,f,g){function h(a){c.transport&&c.transport.clearTimeouts(),c.transport=c.getTransport(a);if(!c.transport)return c.publish("connect_failed");c.transport.ready(c,function(){c.connecting=!0,c.publish("connecting",c.transport.name),c.transport.open(),c.options["connect timeout"]&&(c.connectTimeoutTimer=setTimeout(function(){if(!c.connected){c.connecting=!1;if(c.options["try multiple transports"]){c.remainingTransports||(c.remainingTransports=c.transports.slice(0));var a=c.remainingTransports;while(a.length>0&&a.splice(0,1)[0]!=c.transport.name);a.length?h(a):c.publish("connect_failed")}}},c.options["connect timeout"]))})}c.sessionid=d,c.closeTimeout=f*1e3,c.heartbeatTimeout=e*1e3,c.transports=b.util.intersect(g.split(","),c.options.transports),h(),c.once("connect",function(){clearTimeout(c.connectTimeoutTimer),a&&typeof a=="function"&&a()})}),this},d.prototype.packet=function(a){return this.connected&&!this.doBuffer?this.transport.packet(a):this.buffer.push(a),this},d.prototype.setBuffer=function(a){this.doBuffer=a,!a&&this.connected&&this.buffer.length&&(this.transport.payload(this.buffer),this.buffer=[])},d.prototype.disconnect=function(){return this.connected&&(this.open&&this.of("").packet({type:"disconnect"}),this.onDisconnect("booted")),this},d.prototype.disconnectSync=function(){var a=b.util.request(),c=this.resource+"/"+b.protocol+"/"+this.sessionid;a.open("GET",c,!0),this.onDisconnect("booted")},d.prototype.isXDomain=function(){var a=c.location.port||("https:"==c.location.protocol?443:80);return this.options.host!==c.location.hostname||this.options.port!=a},d.prototype.onConnect=function(){this.connected||(this.connected=!0,this.connecting=!1,this.doBuffer||this.setBuffer(!1),this.emit("connect"))},d.prototype.onOpen=function(){this.open=!0},d.prototype.onClose=function(){this.open=!1},d.prototype.onPacket=function(a){this.of(a.endpoint).onPacket(a)},d.prototype.onError=function(a){a&&a.advice&&a.advice==="reconnect"&&this.connected&&(this.disconnect(),this.reconnect()),this.publish("error",a&&a.reason?a.reason:a)},d.prototype.onDisconnect=function(a){var b=this.connected;this.connected=!1,this.connecting=!1,this.open=!1,b&&(this.transport.close(),this.transport.clearTimeouts(),this.publish("disconnect",a),"booted"!=a&&this.options.reconnect&&!this.reconnecting&&this.reconnect())},d.prototype.reconnect=function(){function e(){if(a.connected){for(var b in a.namespaces)a.namespaces.hasOwnProperty(b)&&""!==b&&a.namespaces[b].packet({type:"connect"});a.publish("reconnect",a.transport.name,a.reconnectionAttempts)}a.removeListener("connect_failed",f),a.removeListener("connect",f),a.reconnecting=!1,delete a.reconnectionAttempts,delete a.reconnectionDelay,delete a.reconnectionTimer,delete a.redoTransports,a.options["try multiple transports"]=c}function f(){if(!a.reconnecting)return;if(a.connected)return e();if(a.connecting&&a.reconnecting)return a.reconnectionTimer=setTimeout(f,1e3);a.reconnectionAttempts++>=b?a.redoTransports?(a.publish("reconnect_failed"),e()):(a.on("connect_failed",f),a.options["try multiple transports"]=!0,a.transport=a.getTransport(),a.redoTransports=!0,a.connect()):(a.reconnectionDelay<d&&(a.reconnectionDelay*=2),a.connect(),a.publish("reconnecting",a.reconnectionDelay,a.reconnectionAttempts),a.reconnectionTimer=setTimeout(f,a.reconnectionDelay))}this.reconnecting=!0,this.reconnectionAttempts=0,this.reconnectionDelay=this.options["reconnection delay"];var a=this,b=this.options["max reconnection attempts"],c=this.options["try multiple transports"],d=this.options["reconnection limit"];this.options["try multiple transports"]=!1,this.reconnectionTimer=setTimeout(f,this.reconnectionDelay),this.on("connect",f)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(a,b){function c(a,b){this.socket=a,this.name=b||"",this.flags={},this.json=new d(this,"json"),this.ackPackets=0,this.acks={}}function d(a,b){this.namespace=a,this.name=b}a.SocketNamespace=c,b.util.mixin(c,b.EventEmitter),c.prototype.$emit=b.EventEmitter.prototype.emit,c.prototype.of=function(){return this.socket.of.apply(this.socket,arguments)},c.prototype.packet=function(a){return a.endpoint=this.name,this.socket.packet(a),this.flags={},this},c.prototype.send=function(a,b){var c={type:this.flags.json?"json":"message",data:a};return"function"==typeof b&&(c.id=++this.ackPackets,c.ack=!0,this.acks[c.id]=b),this.packet(c)},c.prototype.emit=function(a){var b=Array.prototype.slice.call(arguments,1),c=b[b.length-1],d={type:"event",name:a};return"function"==typeof c&&(d.id=++this.ackPackets,d.ack="data",this.acks[d.id]=c,b=b.slice(0,b.length-1)),d.args=b,this.packet(d)},c.prototype.disconnect=function(){return this.name===""?this.socket.disconnect():(this.packet({type:"disconnect"}),this.$emit("disconnect")),this},c.prototype.onPacket=function(a){function d(){c.packet({type:"ack",args:b.util.toArray(arguments),ackId:a.id})}var c=this;switch(a.type){case"connect":this.$emit("connect");break;case"disconnect":this.name===""?this.socket.onDisconnect(a.reason||"booted"):this.$emit("disconnect",a.reason);break;case"message":case"json":var e=["message",a.data];a.ack=="data"?e.push(d):a.ack&&this.packet({type:"ack",ackId:a.id}),this.$emit.apply(this,e);break;case"event":var e=[a.name].concat(a.args);a.ack=="data"&&e.push(d),this.$emit.apply(this,e);break;case"ack":this.acks[a.ackId]&&(this.acks[a.ackId].apply(this,a.args),delete this.acks[a.ackId]);break;case"error":a.advice?this.socket.onError(a):a.reason=="unauthorized"?this.$emit("connect_failed",a.reason):this.$emit("error",a.reason)}},d.prototype.send=function(){this.namespace.flags[this.name]=!0,this.namespace.send.apply(this.namespace,arguments)},d.prototype.emit=function(){this.namespace.flags[this.name]=!0,this.namespace.emit.apply(this.namespace,arguments)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(a,b,c){function d(a){b.Transport.apply(this,arguments)}a.websocket=d,b.util.inherit(d,b.Transport),d.prototype.name="websocket",d.prototype.open=function(){var a=b.util.query(this.socket.options.query),d=this,e;return e||(e=c.MozWebSocket||c.WebSocket),this.websocket=new e(this.prepareUrl()+a),this.websocket.onopen=function(){d.onOpen(),d.socket.setBuffer(!1)},this.websocket.onmessage=function(a){d.onData(a.data)},this.websocket.onclose=function(){d.onClose(),d.socket.setBuffer(!0)},this.websocket.onerror=function(a){d.onError(a)},this},d.prototype.send=function(a){return this.websocket.send(a),this},d.prototype.payload=function(a){for(var b=0,c=a.length;b<c;b++)this.packet(a[b]);return this},d.prototype.close=function(){return this.websocket.close(),this},d.prototype.onError=function(a){this.socket.onError(a)},d.prototype.scheme=function(){return this.socket.options.secure?"wss":"ws"},d.check=function(){return"WebSocket"in c&&!("__addTask"in WebSocket)||"MozWebSocket"in c},d.xdomainCheck=function(){return!0},b.transports.push("websocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(a,b){function c(){b.Transport.websocket.apply(this,arguments)}a.flashsocket=c,b.util.inherit(c,b.Transport.websocket),c.prototype.name="flashsocket",c.prototype.open=function(){var a=this,c=arguments;return WebSocket.__addTask(function(){b.Transport.websocket.prototype.open.apply(a,c)}),this},c.prototype.send=function(){var a=this,c=arguments;return WebSocket.__addTask(function(){b.Transport.websocket.prototype.send.apply(a,c)}),this},c.prototype.close=function(){return WebSocket.__tasks.length=0,b.Transport.websocket.prototype.close.call(this),this},c.prototype.ready=function(a,d){function e(){var b=a.options,e=b["flash policy port"],g=["http"+(b.secure?"s":"")+":/",b.host+":"+b.port,b.resource,"static/flashsocket","WebSocketMain"+(a.isXDomain()?"Insecure":"")+".swf"];c.loaded||(typeof WEB_SOCKET_SWF_LOCATION=="undefined"&&(WEB_SOCKET_SWF_LOCATION=g.join("/")),e!==843&&WebSocket.loadFlashPolicyFile("xmlsocket://"+b.host+":"+e),WebSocket.__initialize(),c.loaded=!0),d.call(f)}var f=this;if(document.body)return e();b.util.load(e)},c.check=function(){return typeof WebSocket!="undefined"&&"__initialize"in WebSocket&&!!swfobject?swfobject.getFlashPlayerVersion().major>=10:!1},c.xdomainCheck=function(){return!0},typeof window!="undefined"&&(WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0),b.transports.push("flashsocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports);if("undefined"!=typeof window)var swfobject=function(){function A(){if(t)return;try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=!0;var c=l.length;for(var d=0;d<c;d++)l[d]()}function B(a){t?a():l[l.length]=a}function C(b){if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof i.addEventListener!=a)i.addEventListener("load",b,!1);else if(typeof h.attachEvent!=a)R(h,"onload",b);else if(typeof h.onload=="function"){var c=h.onload;h.onload=function(){c(),b()}}else h.onload=b}function D(){k?E():F()}function E(){var c=i.getElementsByTagName("body")[0],d=Q(b);d.setAttribute("type",e);var f=c.appendChild(d);if(f){var g=0;(function(){if(typeof f.GetVariable!=a){var b=f.GetVariable("$version");b&&(b=b.split(" ")[1].split(","),y.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)])}else if(g<10){g++,setTimeout(arguments.callee,10);return}c.removeChild(d),f=null,F()})()}else F()}function F(){var b=m.length;if(b>0)for(var c=0;c<b;c++){var d=m[c].id,e=m[c].callbackFn,f={success:!1,id:d};if(y.pv[0]>0){var g=P(d);if(g)if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312))U(d,!0),e&&(f.success=!0,f.ref=G(d),e(f));else if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall,h.width=g.getAttribute("width")||"0",h.height=g.getAttribute("height")||"0",g.getAttribute("class")&&(h.styleclass=g.getAttribute("class")),g.getAttribute("align")&&(h.align=g.getAttribute("align"));var i={},j=g.getElementsByTagName("param"),k=j.length;for(var l=0;l<k;l++)j[l].getAttribute("name").toLowerCase()!="movie"&&(i[j[l].getAttribute("name")]=j[l].getAttribute("value"));I(h,i,d,e)}else J(g),e&&e(f)}else{U(d,!0);if(e){var n=G(d);n&&typeof n.SetVariable!=a&&(f.success=!0,f.ref=n),e(f)}}}}function G(c){var d=null,e=P(c);if(e&&e.nodeName=="OBJECT")if(typeof e.SetVariable!=a)d=e;else{var f=e.getElementsByTagName(b)[0];f&&(d=f)}return d}function H(){return!u&&S("6.0.65")&&(y.win||y.mac)&&!(y.wk&&y.wk<312)}function I(b,c,d,e){u=!0,r=e||null,s={success:!1,id:d};var g=P(d);if(g){g.nodeName=="OBJECT"?(p=K(g),q=null):(p=g,q=d),b.id=f;if(typeof b.width==a||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==a||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";i.title=i.title.slice(0,47)+" - Flash Player Installation";var j=y.ie&&y.win?"ActiveX":"PlugIn",k="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+j+"&MMdoctitle="+i.title;typeof c.flashvars!=a?c.flashvars+="&"+k:c.flashvars=k;if(y.ie&&y.win&&g.readyState!=4){var l=Q("div");d+="SWFObjectNew",l.setAttribute("id",d),g.parentNode.insertBefore(l,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}()}L(b,c,d)}}function J(a){if(y.ie&&y.win&&a.readyState!=4){var b=Q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(K(a),b),a.style.display="none",function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(K(a),a)}function K(a){var c=Q("div");if(y.win&&y.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName!="PARAM")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function L(c,d,f){var g,h=P(f);if(y.wk&&y.wk<312)return g;if(h){typeof c.id==a&&(c.id=f);if(y.ie&&y.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j.toLowerCase()=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j.toLowerCase()!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var l in d)d[l]!=Object.prototype[l]&&(k+='<param name="'+l+'" value="'+d[l]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>",n[n.length]=c.id,g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="styleclass"?m.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&m.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"&&M(m,p,d[p]);h.parentNode.replaceChild(m,h),g=m}}return g}function M(a,b,c){var d=Q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function N(a){var b=P(a);b&&b.nodeName=="OBJECT"&&(y.ie&&y.win?(b.style.display="none",function(){b.readyState==4?O(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function O(a){var b=P(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function Q(a){return i.createElement(a)}function R(a,b,c){a.attachEvent(b,c),o[o.length]=[a,b,c]}function S(a){var b=y.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function T(c,d,e,f){if(y.ie&&y.mac)return;var g=i.getElementsByTagName("head")[0];if(!g)return;var h=e&&typeof e=="string"?e:"screen";f&&(v=null,w=null);if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css"),j.setAttribute("media",h),v=g.appendChild(j),y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0&&(v=i.styleSheets[i.styleSheets.length-1]),w=h}y.ie&&y.win?v&&typeof v.addRule==b&&v.addRule(c,d):v&&typeof i.createTextNode!=a&&v.appendChild(i.createTextNode(c+" {"+d+"}"))}function U(a,b){if(!x)return;var c=b?"visible":"hidden";t&&P(a)?P(a).style.visibility=c:T("#"+a,"visibility:"+c)}function V(b){var c=/[\\\"<>\.;]/,d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=!1,l=[D],m=[],n=[],o=[],p,q,r,s,t=!1,u=!1,v,w,x=!0,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,p=!1,q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b)r=j.plugins[c].description,r&&(typeof j.mimeTypes==a||!j.mimeTypes[e]||!!j.mimeTypes[e].enabledPlugin)&&(k=!0,p=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h.ActiveXObject!=a)try{var s=new ActiveXObject(d);s&&(r=s.GetVariable("$version"),r&&(p=!0,r=r.split(" ")[1].split(","),q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3)return;(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body))&&A(),t||(typeof i.addEventListener!=a&&i.addEventListener("DOMContentLoaded",A,!1),y.ie&&y.win&&(i.attachEvent(g,function(){i.readyState=="complete"&&(i.detachEvent(g,arguments.callee),A())}),h==top&&function(){if(t)return;try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()}()),y.wk&&function(){if(t)return;if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()}(),C(A))}(),W=function(){y.ie&&y.win&&window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b<a;b++)o[b][0].detachEvent(o[b][1],o[b][2]);var c=n.length;for(var d=0;d<c;d++)N(n[d]);for(var e in y)y[e]=null;y=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c,d){if(y.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,m[m.length]=e,U(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(y.w3)return G(a)},embedSWF:function(c,d,e,f,g,h,i,j,k,l){var m={success:!1,id:d};y.w3&&!(y.wk&&y.wk<312)&&c&&d&&e&&f&&g?(U(d,!1),B(function(){e+="",f+="";var n={};if(k&&typeof k===b)for(var o in k)n[o]=k[o];n.data=c,n.width=e,n.height=f;var p={};if(j&&typeof j===b)for(var q in j)p[q]=j[q];if(i&&typeof i===b)for(var r in i)typeof p.flashvars!=a?p.flashvars+="&"+r+"="+i[r]:p.flashvars=r+"="+i[r];if(S(g)){var s=L(n,p,d);n.id==d&&U(d,!0),m.success=!0,m.ref=s}else{if(h&&H()){n.data=h,I(n,p,d,l);return}U(d,!0)}l&&l(m)})):l&&l(m)},switchOffAutoHideShow:function(){x=!1},ua:y,getFlashPlayerVersion:function(){return{major:y.pv[0],minor:y.pv[1],release:y.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,b,c){return y.w3?L(a,b,c):undefined},showExpressInstall:function(a,b,c,d){y.w3&&H()&&I(a,b,c,d)},removeSWF:function(a){y.w3&&N(a)},createCSS:function(a,b,c,d){y.w3&&T(a,b,c,d)},addDomLoadEvent:B,addLoadEvent:C,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return V(b);var c=b.split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return V(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(u){var a=P(f);a&&p&&(a.parentNode.replaceChild(p,a),q&&(U(q,!0),y.ie&&y.win&&(p.style.display="block")),r&&r(s)),u=!1}}}}();(function(){if("undefined"==typeof window||window.WebSocket)return;var a=window.console;if(!a||!a.log||!a.error)a={log:function(){},error:function(){}};if(!swfobject.hasFlashPlayerVersion("10.0.0")){a.error("Flash Player >= 10.0.0 is required.");return}location.protocol=="file:"&&a.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),WebSocket=function(a,b,c,d,e){var f=this;f.__id=WebSocket.__nextId++,WebSocket.__instances[f.__id]=f,f.readyState=WebSocket.CONNECTING,f.bufferedAmount=0,f.__events={},b?typeof b=="string"&&(b=[b]):b=[],setTimeout(function(){WebSocket.__addTask(function(){WebSocket.__flash.create(f.__id,a,b,c||null,d||0,e||null)})},0)},WebSocket.prototype.send=function(a){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";var b=WebSocket.__flash.send(this.__id,encodeURIComponent(a));return b<0?!0:(this.bufferedAmount+=b,!1)},WebSocket.prototype.close=function(){if(this.readyState==WebSocket.CLOSED||this.readyState==WebSocket.CLOSING)return;this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id)},WebSocket.prototype.addEventListener=function(a,b,c){a in this.__events||(this.__events[a]=[]),this.__events[a].push(b)},WebSocket.prototype.removeEventListener=function(a,b,c){if(!(a in this.__events))return;var d=this.__events[a];for(var e=d.length-1;e>=0;--e)if(d[e]===b){d.splice(e,1);break}},WebSocket.prototype.dispatchEvent=function(a){var b=this.__events[a.type]||[];for(var c=0;c<b.length;++c)b[c](a);var d=this["on"+a.type];d&&d(a)},WebSocket.prototype.__handleEvent=function(a){"readyState"in a&&(this.readyState=a.readyState),"protocol"in a&&(this.protocol=a.protocol);var b;if(a.type=="open"||a.type=="error")b=this.__createSimpleEvent(a.type);else if(a.type=="close")b=this.__createSimpleEvent("close");else{if(a.type!="message")throw"unknown event type: "+a.type;var c=decodeURIComponent(a.message);b=this.__createMessageEvent("message",c)}this.dispatchEvent(b)},WebSocket.prototype.__createSimpleEvent=function(a){if(document.createEvent&&window.Event){var b=document.createEvent("Event");return b.initEvent(a,!1,!1),b}return{type:a,bubbles:!1,cancelable:!1}},WebSocket.prototype.__createMessageEvent=function(a,b){if(document.createEvent&&window.MessageEvent&&!window.opera){var c=document.createEvent("MessageEvent");return c.initMessageEvent("message",!1,!1,b,null,null,window,null),c}return{type:a,data:b,bubbles:!1,cancelable:!1}},WebSocket.CONNECTING=0,WebSocket.OPEN=1,WebSocket.CLOSING=2,WebSocket.CLOSED=3,WebSocket.__flash=null,WebSocket.__instances={},WebSocket.__tasks=[],WebSocket.__nextId=0,WebSocket.loadFlashPolicyFile=function(a){WebSocket.__addTask(function(){WebSocket.__flash.loadManualPolicyFile(a)})},WebSocket.__initialize=function(){if(WebSocket.__flash)return;WebSocket.__swfLocation&&(window.WEB_SOCKET_SWF_LOCATION=WebSocket.__swfLocation);if(!window.WEB_SOCKET_SWF_LOCATION){a.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf");return}var b=document.createElement("div");b.id="webSocketContainer",b.style.position="absolute",WebSocket.__isFlashLite()?(b.style.left="0px",b.style.top="0px"):(b.style.left="-100px",b.style.top="-100px");var c=document.createElement("div");c.id="webSocketFlash",b.appendChild(c),document.body.appendChild(b),swfobject.embedSWF(WEB_SOCKET_SWF_LOCATION,"webSocketFlash","1","1","10.0.0",null,null,{hasPriority:!0,swliveconnect:!0,allowScriptAccess:"always"},null,function(b){b.success||a.error("[WebSocket] swfobject.embedSWF failed")})},WebSocket.__onFlashInitialized=function(){setTimeout(function(){WebSocket.__flash=document.getElementById("webSocketFlash"),WebSocket.__flash.setCallerUrl(location.href),WebSocket.__flash.setDebug(!!window.WEB_SOCKET_DEBUG);for(var a=0;a<WebSocket.__tasks.length;++a)WebSocket.__tasks[a]();WebSocket.__tasks=[]},0)},WebSocket.__onFlashEvent=function(){return setTimeout(function(){try{var b=WebSocket.__flash.receiveEvents();for(var c=0;c<b.length;++c)WebSocket.__instances[b[c].webSocketId].__handleEvent(b[c])}catch(d){a.error(d)}},0),!0},WebSocket.__log=function(b){a.log(decodeURIComponent(b))},WebSocket.__error=function(b){a.error(decodeURIComponent(b))},WebSocket.__addTask=function(a){WebSocket.__flash?a():WebSocket.__tasks.push(a)},WebSocket.__isFlashLite=function(){if(!window.navigator||!window.navigator.mimeTypes)return!1;var a=window.navigator.mimeTypes["application/x-shockwave-flash"];return!a||!a.enabledPlugin||!a.enabledPlugin.filename?!1:a.enabledPlugin.filename.match(/flashlite/i)?!0:!1},window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION||(window.addEventListener?window.addEventListener("load",function(){WebSocket.__initialize()},!1):window.attachEvent("onload",function(){WebSocket.__initialize()}))})(),function(a,b,c){function d(a){if(!a)return;b.Transport.apply(this,arguments),this.sendBuffer=[]}function e(){}a.XHR=d,b.util.inherit(d,b.Transport),d.prototype.open=function(){return this.socket.setBuffer(!1),this.onOpen(),this.get(),this.setCloseTimeout(),this},d.prototype.payload=function(a){var c=[];for(var d=0,e=a.length;d<e;d++)c.push(b.parser.encodePacket(a[d]));this.send(b.parser.encodePayload(c))},d.prototype.send=function(a){return this.post(a),this},d.prototype.post=function(a){function d(){this.readyState==4&&(this.onreadystatechange=e,b.posting=!1,this.status==200?b.socket.setBuffer(!1):b.onClose())}function f(){this.onload=e,b.socket.setBuffer(!1)}var b=this;this.socket.setBuffer(!0),this.sendXHR=this.request("POST"),c.XDomainRequest&&this.sendXHR instanceof XDomainRequest?this.sendXHR.onload=this.sendXHR.onerror=f:this.sendXHR.onreadystatechange=d,this.sendXHR.send(a)},d.prototype.close=function(){return this.onClose(),this},d.prototype.request=function(a){var c=b.util.request(this.socket.isXDomain()),d=b.util.query(this.socket.options.query,"t="+ +(new Date));c.open(a||"GET",this.prepareUrl()+d,!0);if(a=="POST")try{c.setRequestHeader?c.setRequestHeader("Content-type","text/plain;charset=UTF-8"):c.contentType="text/plain"}catch(e){}return c},d.prototype.scheme=function(){return this.socket.options.secure?"https":"http"},d.check=function(a,c){try{if(b.util.request(c))return!0}catch(d){}return!1},d.xdomainCheck=function(){return d.check(null,!0)}}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(a,b){function c(a){b.Transport.XHR.apply(this,arguments)}a.htmlfile=c,b.util.inherit(c,b.Transport.XHR),c.prototype.name="htmlfile",c.prototype.get=function(){this.doc=new ActiveXObject("htmlfile"),this.doc.open(),this.doc.write("<html></html>"),this.doc.close(),this.doc.parentWindow.s=this;var a=this.doc.createElement("div");a.className="socketio",this.doc.body.appendChild(a),this.iframe=this.doc.createElement("iframe"),a.appendChild(this.iframe);var c=this,d=b.util.query(this.socket.options.query,"t="+ +(new Date));this.iframe.src=this.prepareUrl()+d,b.util.on(window,"unload",function(){c.destroy()})},c.prototype._=function(a,b){this.onData(a);try{var c=b.getElementsByTagName("script")[0];c.parentNode.removeChild(c)}catch(d){}},c.prototype.destroy=function(){if(this.iframe){try{this.iframe.src="about:blank"}catch(a){}this.doc=null,this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,CollectGarbage()}},c.prototype.close=function(){return this.destroy(),b.Transport.XHR.prototype.close.call(this)},c.check=function(){if("ActiveXObject"in window)try{var a=new ActiveXObject("htmlfile");return a&&b.Transport.XHR.check()}catch(c){}return!1},c.xdomainCheck=function(){return!1},b.transports.push("htmlfile")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(a,b,c){function d(){b.Transport.XHR.apply(this,arguments)}function e(){}a["xhr-polling"]=d,b.util.inherit(d,b.Transport.XHR),b.util.merge(d,b.Transport.XHR),d.prototype.name="xhr-polling",d.prototype.open=function(){var a=this;return b.Transport.XHR.prototype.open.call(a),!1},d.prototype.get=function(){function b(){this.readyState==4&&(this.onreadystatechange=e,this.status==200?(a.onData(this.responseText),a.get()):a.onClose())}function d(){this.onload=e,a.onData(this.responseText),a.get()}if(!this.open)return;var a=this;this.xhr=this.request(),c.XDomainRequest&&this.xhr instanceof XDomainRequest?this.xhr.onload=this.xhr.onerror=d:this.xhr.onreadystatechange=b,this.xhr.send(null)},d.prototype.onClose=function(){b.Transport.XHR.prototype.onClose.call(this);if(this.xhr){this.xhr.onreadystatechange=this.xhr.onload=e;try{this.xhr.abort()}catch(a){}this.xhr=null}},d.prototype.ready=function(a,c){var d=this;b.util.defer(function(){c.call(d)})},b.transports.push("xhr-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(a,b,c){function e(a){b.Transport["xhr-polling"].apply(this,arguments),this.index=b.j.length;var c=this;b.j.push(function(a){c._(a)})}var d=c.document&&"MozAppearance"in c.document.documentElement.style;a["jsonp-polling"]=e,b.util.inherit(e,b.Transport["xhr-polling"]),e.prototype.name="jsonp-polling",e.prototype.post=function(a){function i(){j(),c.socket.setBuffer(!1)}function j(){c.iframe&&c.form.removeChild(c.iframe);try{h=document.createElement('<iframe name="'+c.iframeId+'">')}catch(a){h=document.createElement("iframe"),h.name=c.iframeId}h.id=c.iframeId,c.form.appendChild(h),c.iframe=h}var c=this,d=b.util.query(this.socket.options.query,"t="+ +(new Date)+"&i="+this.index);if(!this.form){var e=document.createElement("form"),f=document.createElement("textarea"),g=this.iframeId="socketio_iframe_"+this.index,h;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=g,e.method="POST",e.setAttribute("accept-charset","utf-8"),f.name="d",e.appendChild(f),documesnt.body.appendChild(e),this.form=e,this.area=f}this.form.action=this.prepareUrl()+d,j(),this.area.value=b.JSON.stringify(a);try{this.form.submit()}catch(k){}this.iframe.attachEvent?h.onreadystatechange=function(){c.iframe.readyState=="complete"&&i()}:this.iframe.onload=i,this.socket.setBuffer(!0)},e.prototype.get=function(){var a=this,c=document.createElement("script"),e=b.util.query(this.socket.options.query,"t="+ +(new Date)+"&i="+this.index);this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),c.async=!0,c.src=this.prepareUrl()+e,c.onerror=function(){a.onClose()};var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(c,f),this.script=c,d&&setTimeout(function(){var a=document.createElement("iframe");document.body.appendChild(a),document.body.removeChild(a)},100)},e.prototype._=function(a){return this.onData(a),this.open&&this.get(),this},e.prototype.ready=function(a,c){var e=this;if(!d)return c.call(this);b.util.load(function(){c.call(e)})},e.check=function(){return"document"in c},e.xdomainCheck=function(){return!0},b.transports.push("jsonp-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this)
