var S0 = null; var HA="Microsoft.XMLHTTP";var ZP="";var Fr="1. Click to place arrow where you want to comment\n2. Type your comment and place the note anywhere.";var GL="2. Type your comment and click to place the note anywhere\n|";var Vf="erik";var NY="CommentReply";var Mr="[\"CommentReply\",";var FA=",";var jR="]";var mB="undefined";var wK="/Images/uglyUserAvatarPlaceholder.png";var mZ=": ";var KS="#000000";var Te="#ffff00";var fg="#ffffff";var cC="Reply...";var QK="Send";var Ar="block";var xy="none";var FV="#dddddd";var Jz="|";var mV="#ffff55";var to=" ";var gb="Note";var yK="[\"Note\",";var rz="div";var nL="input";var tx="type";var kB="text";var Fc="#fff";var Hc="1px solid #ccc";var kM="absolute";var Sl="20px";var Ln="200px";var Ja="#14D0FF";var ii=", ";var kd="CHATMESSAGE";var nS="SENDBUTTON";var vk="HIDECHAT";var qO="INNERCONSOLE";var yY="CONSOLECONTAINER";var mz="dockchatbutton";var qn="Chat... (enter to focus, esc to restore hotkeys)";var DZ='#ccc';var uK="5px";var BS="250px";var Sk="disabled";var FP="#bbb";var LC='';var LB='#000';var iU="44px";var dO="px";var mk='/';var WN="/ping";var wE="Delay to server and back: ";var bS=" milliseconds";var sh="[\"Ping\"]";var Cg="/state";var ZD="EXPANDSTATE";var sD="/name";var Nh="Reconnect failed, trying again in ";var wa="sec.";var sQ="BOLDCONSOLE";var su="a";var Rv="reconnect now";var XD="underline";var EU="blue";var sA="pointer";var TR="BLACKCONSOLE";var vt="BLUECONSOLE";var yO=":";var Ho="REDCONSOLE";var jJ="0";var OW="pro";var Go="[";var qa="] ";var vy="=== ";var pE="-";var fQ=" ===";var me="br";var ry="TIMECONSOLE";var yu="RowBreakingConsoleDiv";var nR="b";var hX="World pen";var xe="Pen";var ff="[\"Stroke\",";var Ug=",\"";var FH="\",";var hn=",[";var EB="],";var Ch="Text";var SZ="[\"Text\",";var oZ="Connection";var et="[\"Connection\",";var rn="Eraser ";var wC="[\"Remove\",";var iH="Note: You are using Internet Explorer, our tests show that this browser doesn't have the same performance as other browsers, especially not when displaying many scaled images. ";var Yu="Therefore you might experience lag when using many, or large, stamps. If you have problems with this, try using less stamps or change to a better browser like Firefox, Safari, Chrome or Opera";var MH="Stamp";var nX="[\"Image\",";var ew="Move stamp";var hT="[\"MoveStamp\",";var Fp="ClearInk";var ue="Clear Ink";var pG="ClearStamps";var qN="Clear Stamps";var BX="ClearText";var JC="Clear Text";var pc="Clear All";var BG="[\"";var BF="\"]";var Fq='none';var wV="None";var eP='url("';var Jx='")';var QS="Clear BG";var io="Background";var cX="[\"ClearBackground\"]";var BR="[\"Background\",";var TK="[\"Group\",\"";var IO="\",[";var vY="]]";var gV="[\"Undo\",";var Ou="TextBox";var vT="[\"TextBox\",";var bU="gmapframe";var eJ="gmaploading";var Uy="gmapinnercontrols";var XO="GMAPSCONTROLS";var XI="Google Maps";var Io="[\"GMapOn\"]";var Pc=" changed maptype";var OI="Check out this place on the map!";var yR=" uploaded an image";var Dq="RECENTLYUPLOADED";var xC="/BrowseImages.aspx";var UR="&pc=";var eG=" renamed to: ";var Sh='|';var KU="RoomBackground";var zM="/UploadedImages/";var Hh="/";var hN="/BackgroundImages/";var JH="tshirt";var NQ="/Stamps/4/";var jr="?channel=";var ZK="&U=";var ms="&LC=";var qH="&t=";var mX="&RI=";var Zc="&apikey=";var RS="&user=";var YP="&sessionKey=";var Jv='Microsoft Internet Explorer';var CM="MSIE ([0-9]{1,}[\.0-9]{0,})";var rx="NOSCRIPTWARNING";var XU="n";var CC="LEFTCONTROLBAR";var Bi="SMALLBOX";var FE="h1";var yy="http://Cosketch.com";var MP="Cosketch.com";var FY="Framing cosketch is not allowed, for these purposes use the ";var Bm="http://cosketch.com/API";var aR="_top";var sk="JSHREF";var Ra="Cosketch API";var Ta="If you see this message please contact the website administrator.";var lE="CONSOLE";var GK="CANVASCONTAINER";var DM="RECENTBACKGROUNDS";var vV="WRITETEXTCONTAINER";var eY="WRITETEXTHIDDENINPUT";var RU="BLACKOVERLAY";var QD="MESSAGEBOX";var tK="api";var Qc="room";var tD="apikey";var be="user";var Mt="sessionKey";var ft="bookmarklet";var Hj="embeddable";var cv="chrome://firebug/content/spy.js";var WA="MESSAGE: ";var xR="\r\nURL: ";var jG="\r\nLINE: ";var fT="ADSENSESCRIPT";var Yl="data";var tF="/AdFrame.htm";var Vr="POST";var vN="/ErrorReport.aspx?v=";var xE="Content-type";var Nm="application/x-www-form-urlencoded";var mS="d=";var Kk="[\"Login\"]";var AN="Roomoccupied error!\r\n";var Hq="Expected Id: ";var KM="\r\n";var ze="Received id: ";var Vd="Last download: ";var ek="Last upload  : ";var MF="Now          : ";var aY="DL: Timed out";var Tl="DL: OK";var VY="DL:null";var XC="UL: Timed out";var UE="UL: OK";var kX="UL:null";var bp="/ErrorReport.aspx";var kT="GET";var FC="/Download.aspx";var ka="dl";var jC="#7fffff";var tl="FadeAwayBox";var WP="painting";var Zt="#7f";var jP="\\\\";var XE="\"";var Tq="\\\"";var Xp="\\|";var GE="?";var er="&";var wt="=";var RD="undoredostack";var hF="donebutton";var jt="left";var ts="class";var qJ="toolseparator";var MN="P - Pen";var RC="L - Line";var Mm="A - Arrow";var Cv="C - Circle";var mW="R - Rectangle";var yt=" ABC ";var wT="T - Text";var aB="Eraser";var jw="E - Eraser (Only for lines and text, not images)";var qV="BRUSHBORDER";var CP="BRUSHBORDERSELECTED";var uO="INKTHICKNESS";var Ng="left ";var Dv="000000";var VA="696969";var sH="ffffff";var VG="ffff00";var rV="ff0000";var uI="00ff00";var Fy="0000ff";var Em="00ffff";var NH="BRUSHES";var NG="#";var pu="\n[";var bj="](";var tf=")\n";var SA='\n<a href="';var RY='><img src="';var AW='"></a>\n';var TJ="\n[url=";var tY="][img]";var VZ="[/img][/url]\n";var dP="...";var fA="button";var GH="Autoinsert";var fu="paintjox";var Ur="[\"SaveOverlay\"]";var yE="displayjox";var Yn="testmode";var lU="i";var MK="Normally you would get a link to the image you just created here but due to all the junk people create the first time they test, saving is disabled from the testpage.";var xI="EXAMPLEURL";var eO="Copy the desired link then click in the faded out area to return to where you were surfing";var xS="Link to the image";var HN="Markdown";var yQ="HTML";var rI="BB-code";var EY="box";var UM="h2";var Qs="code";var iy="TOOLTIPLINK button";var Tn="TOOLTIPLINK button1";var PL="TOOLTIPLINK button5";var oQ="TOOLTIPLINK button7";var lT="TOOLTIPLINK button1 active1";var Rn="TOOLTIPLINK button5 active5";var Sv="TOOLTIPLINK button7 active7";var av="EXPANDBOX";var KT="ERROR";var KO="CONTROLCONNECTING";var Tz="CONTROLRECONNECT";var cR="This is taking unusally long time, check your connection or try to reload this page.";var ld="Cosketch";var rf="Disconnected / Cosketch";var Nt="reconnectwindowbutton";var jY="userbox";var RF="BIGBUTTON button";var ny=" active";var JS="51px";var ps='DOMMouseScroll';var rh="span";var ST="img";var Kq="/Images/gradient.png";var Ml="210px";var Ge="scroll";var lf="USERCONTAINER";var nP="CONTROLROOMRESETERROR";var pO="CONTROLIMAGE";var oi="CONTROLINK";var Kh="CONTROLBACKGROUND";var jB="CONTROLUSERS";var Ct="GMAPTERRAINBUTTON";var vH="GMAPMAPBUTTON";var Qd="2px";var Lb="GMAPZOOM";var wc="GMAPALLEYES";var LG="World";var oD="When you pan the map everything you painted with this option will follow the map.";var Lz="Screen";var QA="Draws everything on the screen as normal, when you pan around in the map the ink will not follow the map.";var Jy="GMAPRELATIVE";var TG="SAVEIMAGE";var yB="SAVEIMAGEDISABLED";var zi="iframe";var pN="id";var Zr="/Gmap";var vO="Note: To not interfere with other peoples drawings and navigation the view/camera of the map will NOT automatically syncronize. To gather around a location you can use the send location in chat feature. A black rectangle on the map will also indicate where the other people are looking.";var hj="EXPANDGMAPS";var Ye="EXPANDHISTORY";var nT="statelist";var Hb="EXPANDRECENT";var Ju="EXPANDBACKGROUNDS";var iX="CLEARINK";var aA="CLEARSTAMPS";var HX="CLEARTEXT";var Mg="CLEARBACK";var Jt="CLEARALL";var DO="TOOLS";var iV="ABC";var Ih="E - Eraser (Only for lines and text, not images) (mousescroll to change size)";var Wc="M - Move, scale, rotate and delete (can't move strokes) (press del to delete after selected)";var ht="gmaptools";var Cm="Pan map";var CQ="BRUSHWIDTHS";var cH="BRUSHCOLORS";var tZ="COLORPICKERBORDER";var wO="COLORPICKERIMG";var ZH="#ff0000";var Re="CHANGENAME";var RM="changeNameInput";var qq="changeNameOk";var OS="feedbacklink";var qw="expandfeedback";var Ah="feedbackbox";var bW="feedbacktext";var fL="feedbackbutton";var BZ="/Contact.aspx?v=";var Sj="feedbackthanks";var Pd="expandhotkeys";var YF="hotkeybox";var Wr="dontCareAboutNameButton";var uq='SERVERBACKGROUNDS';var kg="BROWSECOMMON";var rq="Click and drag while placing stamps to resize and rotate.";var tX="uploadFile";var SJ="/UploadFile.aspx";var WD="ff_button";var Tj="ff_button_inner";var vJ="0px 2px 0 0px";var Bn="url(\"/Images/newtools_trans.png\")";var JO="ff_button_active";var QF="smallButton";var UU="bigpen";var zJ="bighighlighter";var gx="bigeraser";var Bk="textbutton";var XY="commentButton";var QG="toolpanel";var zS="10px";var rD="Size:";var gA="toolRow";var GU="Highlight mine";var VL="Move mouse to place image.";var uk="Click hold and drag to resize and rotate while placing.";var Cx="src";var fJ="/Images/zoom.png";var Zd="1px";var mP="3px";var SV="450px";var rd="tabUpload";var vw="tabComments";var Nr="tabReview";var UG="tabContentUpload";var Ck="tabContentComments";var fz="tabContentReview";var uB="tabUnSelected";var hC="tabSelected";var yZ="Comments";var AD="commonFilters";var LA="Images";var kc="My Items";var dH="New Items";var Xe="name: ";var Sx="type: ";var dm="time:";var KK="filterDiv";var Br="X";var fM="Highlight filtered";var gw="stateOptions";var We="#cccccc";var KL="BackgroundImages|Tshirt/tshirtwhite.jpg";var un="tshirt1";var CF="tshirt2";var Ji="BackgroundImages|Tshirt/tshirtblue.jpg";var Sd="stamps";var NO="play6.png";var mg="step.png";var JQ="no.png";var pp="/BackgroundImages/Tshirt/";var uJ="BackgroundImages|Tshirt/";var Ft="hr";var SK=" Move";var sg=" Freehand";var zA=" Eraser";var RE=" Text ";var QZ="both";var FX="Fontsize:";var Yw='\b';var mN='\\b';var xi='\t';var pQ='\\t';var lB='\n';var Gr='\\n';var Xb='\f';var kR='\\f';var Mp='\r';var ZY='\\r';var UV='"';var Ip='\\"';var He='\\';var TV='\\\\';var Nq='string';var aF='\\u';var AB='0000';var ye='function';var as="reviver not implemented";var oe='@';var Ob=']';var TD='(';var eS=')';var FT="JSON.parse";var JV='▓';var iu="▒ CoSketch";var dJ="▓ CoSketch";var GI="CoSketch";var cw="/Images/fulltransparent.gif";var JM="dragstart";var TP="dragend";var iO='http://www.w3.org/2000/svg';var OK="svg";var xU="realcanvas";var JF="g";var Gs="transform";var Wk="scale(";var HC="),translate(";var Dk=")";var wx='polyline';var Xj='points';var zt="fill";var oS="stroke";var Xh="stroke-width";var qK="stroke-linecap";var jm="round";var ob="stroke-linejoin";var Vv="points";var HS="opacity";var wo="Stroke";var Gt="circle";var IL="#0000ff";var OD="#555555";var pZ="cx";var KZ="cy";var Rj="r";var zc="Ellipse";var lb="image";var qT="width";var Dw="height";var Ay="preserveAspectRatio";var kk="http://www.w3.org/1999/xlink";var QP="href";var xm="translate(";var bA="),";var uG="rotate(";var tE=" 0 0),";var nf="Image";var xT=".10.";var Ea=".25.";var uE=".50.";var Vl=".75.";var dD="rect";var Xs='style';var cO="fill: ";var Fs="; stroke: ";var uD="; stroke-width: ";var Yy=";";var Zo="y";var Lm="font-size";var wf="\n";var Sr="tspan";var sv="x";var jT="dy";var yH="1em";var fp="relative";var Oz="),scale(";var De="Group";var ys="#ff5555";var lM="#00ff00";var IR="v:group";var Kd="coordorigin";var Kn="0,0";var PX="coordsize";var SS="800 600";var OH="transparent";var Jd='v:polyline';var dh='strokecolor';var fc="#A7CFF4";var IX="v:stroke";var fV='endcap';var nu='joinstyle';var HT='filled';var xV='false';var gf='strokeweight';var vr="filter";var Yb="alpha(opacity=";var oK="v:oval";var Uk="fillcolor";var Al="v:rect";var yz="v:image";var bk="textDiv";var Hd="1000px";var Zp="50 50";var mG="cant scale vml group";var Xd="REFRESH";var dE="Error";var DI="LOGGEDINSOMEWHEREELSEERROR";var Hl="NOTLOGGEDINERROR";var aO="Invalid command in parser1: ";var Ov="Remove";var kx="MoveStamp";var RG="ClearBackground";var AX="ClearAll";var Qv="Undo";var AK="UploadComplete";var Hp="Chat";var ei="ServerMessage";var mp="UserJoined";var QX="ChangedName";var qu="UserLeft";var yx="SaveEmbeddableComplete";var OA="GMapOn";var PQ="GMapPos";var gg="ToggleJoinMode";var QV="true";var CK="SLIDER";var za="stateListId";var tB="undoboxOdd";var IF=" - ";var Pi="TOOLBUTTON";var WB="title";var eQ="[\"Group\",\"Eraser\",[";var Be="]],";var Vz="[\"Group\",\"Eraser\",]]";var lv="#ff3333";var IV="#bb0000";var sF="#3355ff";var cr="undostack";var DC="undoboxActive";var uM="undoboxUndone";var WL="undoBoxNameBox";var Yh="New Sketch";var zO="Error! Not logged in";var Rl="{\"v\":";var nQ=",\"ul\":[";var WE="]}";var Ae="/Upload.aspx";var kQ=",\n";var Op="In upload response: ";var di="v";var fP="New version availible. Auto updating client in 5 seconds.";var Dp="error";var DU="ulr";var oB="LOGINOK";var Jc="OK";var mC="NotLoggedIn";var ty="Failed to upload commands, removing unsyncronized strokes.";var Qo="[\"ClearInk\"]";var VK="[\"ClearStamps\"]";var Zq="[\"ClearText\"]";var NF="[\"Group\",\"Clear All\",[[\"ClearInk\"],[\"ClearStamps\"],[\"ClearText\"],[\"ClearBackground\"]]]";var XS="[\"GMapPos\",";var CL="[\"Chat\",";var cU="[\"Disconnect\"]";var od="[\"RequestNameChange\",";var dQ="[\"SaveEmbeddable\"]";var SE="SERVER";var Ya="sa";var WS="usericonME";var fE="usericon";var ZE=" has joined the room!";var Ro=" has left the room";function g(a){return document.getElementById(a);}
function Yp()
{if (tr.XMLHttpRequest)
return new XMLHttpRequest();
if (tr.ActiveXObject)
return new ActiveXObject(HA);
}function Lk(){var wk=S0;
var BH=this;
var ua=false;
var Gx=ZP;
var hk=Fr
var Pk=GL;
var fI;
this.yg=function (x,y){var eZ=gp.qE.SN();
wk.kf(1 / eZ);
Ab.Gv.XF();
var yU=gp.qE.qe(x,y);
if (ua){wk.Xw(yU,wk.RL);
}else{wk.Xw(yU,gG.zj(yU,new gG(-20,20)));
}var LW=gG.zj(yU,new gG(5,5));
};
this.ud=function (x,y){var yU=gp.qE.qe(x,y);
fI=yU;
if (!ua){ua=true;
if (Gx==ZP)
BH.Lp(ZP);
}else{if (Gx !=ZP)
gC();
}};
this.Bf=function (x,y){var yU=gp.Kc[0].qe(x,y);
if (wk !=S0){if (Gx !=ZP && Gx !=hk && Gx !=Pk && gG.Fl(gG.Ec(fI,yU))> 10 * 10)
gC();
}};
var gC=function (){ua=false;
BH.KE();
BH.Ku();
};
this.KE=function (){var ma=wk;
var nl=gp.Kc[0].ru();
var iI=new hu(ma,ma.RL.x,ma.RL.y,ma.iJ.x,ma.iJ.y,nl.x,nl.y,nl.eI,Gx,Ab.co,S0);
var Kw=iI.pq();
Ab.pv.es(Kw,S0,S0);
this.kn();
};
this.Ku=function (){zL.RO.value=ZP;
wk=new bB({x:0,y:0 },{x:0,y:0 },ZP,Vf);
ua=false;
gp.Kc[0].WK(wk);
BH.Lp(ZP);
Ab.Gv.XF();
};
this.kn=function (){if (wk !=S0){gp.qE.Ij(wk);
wk=S0;
Lr=S0;
}};
this.Lp=function (hx){Gx=hx;
if (wk !=S0){if (Gx==ZP){if (!ua)
wk.ug(hk);
else
wk.ug(Pk);
}else
wk.ug(hx);
}};
}this.Xa=function (XW,Gx){var BH=this;
this.jq=false;
this.so=function (){var ot=new fR(BH.WV,Gx);
var wk=ad.Vx(XW);
if (wk){if (wk.Rs)
wk.Rs(ot);
}BH.jq=true;
};
this.tH=function (){return NY;
};
this.pq=function (){return Mr+XW+FA+KX(Gx)+jR;
};
};
function fR(WV,Gx){var aX=Ab.vj.qC[WV];
if (aX)
this.CA=Ab.vj.qC[WV].wM;
else
this.CA=mB;
this.af=new gp.qE.ON();
this.jH=new gp.qE.Image(wK,20,20,false);
this.jH.SetPosition(5,5);
this.Gb=new gp.qE.Np(this.CA+mZ+Gx,30,5,KS,14);
this.Gx=Gx;
this.af.WK(this.jH);
this.af.WK(this.Gb);
}fR.prototype.Dr=function (){return this.af.Dr();
};
fR.prototype.SetPosition=function (x,y){this.af.SetPosition(x,y);
};
fR.prototype.QY=function (){this.Gb.QY(Gx);
this.Gx=Gx;
};
fR.prototype.zQ=function (){var Ns=this.Gb.zQ();
Ns.Uq+=35;
Ns.WG+=10;
return Ns;
};
fR.prototype.um=function (eI){this.af.um(eI);
};
function bB(XH,DR){this.qc=50;
this.Az=20;
this.lY=30;
this.Wq=new sK(5,5,this.qc,this.Az,0);
this.width=this.qc+10;
this.height=this.Az+10;
this.iJ=DR;
this.RL=XH;
this.PE=new jV(this);
this.af=new gp.qE.ON();
this.rN=new gp.qE.ON();
this.oP=new gp.qE.os(this.width,this.height,1,Te,KS);
this.Pp=new gp.qE.os(this.qc,this.Az,1,fg,KS);
this.Pp.SetPosition(5,5);
this.Va=new gp.qE.Np(cC,this.lY+5,10,KS,14);
this.oT=new gp.qE.os(60,25,1,fg,KS);
this.oT.SetPosition(5,5);
this.BA=new gp.qE.Np(QK,35,15,KS,14);
this.bR=new gp.qE.Nu(KS,3,[{x:0,y:0}]);
this.Ux=[];
this.af.WK(this.bR);
this.af.WK(this.rN);
this.rN.WK(this.oP);
this.rN.WK(this.Pp);
this.rN.WK(this.Va);
this.rN.WK(this.oT);
this.rN.WK(this.BA);
this.Xw(DR,XH);
this.oT.kn();
this.BA.kn();
}bB.prototype.Zk=function (){this.Dr().style.display=Ar;
};
bB.prototype.kn=function (){this.Dr().style.display=xy;
};
bB.prototype.um=function (eI){this.af.um(eI);
};
bB.prototype.Rs=function (Uj){this.Ux.push(Uj);
this.rN.WK(Uj);
this.sN();
};
bB.prototype.sN=function (){var Uq=0;
var WG=5;
for (var DY=0; DY < this.Ux.length; DY++){var iw=this.Ux[DY].zQ();
this.Ux[DY].SetPosition(0,WG);
WG+=iw.WG;
Uq=Math.max(Uq,iw.Uq);
}Uq=Math.max(this.qc+this.lY+10+60,Uq);
this.width=Uq+10;
this.height=WG+this.Az+15;
this.oP.KV(this.width,this.height);
this.Wq=new sK(this.lY,WG+10,this.qc,this.Az,0);
this.Pp.SetPosition(this.lY,WG+10);
this.oT.SetPosition(this.qc+this.lY+5,WG+10);
this.BA.SetPosition(this.qc+this.lY+5+5,WG+15);
this.vW=new sK(this.oT.dI,this.oT.fG,this.oT.Lw,this.oT.bT,0);
this.Va.SetPosition(this.lY+5,WG+12);
this.Xw(this.iJ,this.RL);
};
bB.prototype.Xw=function (iJ,RL){this.iJ=iJ;
this.RL=RL;
this.rN.SetPosition(iJ.x,iJ.y);
var yw=gG.zj(iJ,gG.eF(new gG(this.width,this.height),0.5));
var delta=gG.Ix(gG.Ec(yw,RL));
var gS=delta.x;
var kA=delta.y;
var Uq=3;
var pC=3 * Uq;
var st=2 * Uq;
var XJ=[];
XJ[0]=yw;
XJ[1]=gG.Ec(RL,new gG(-gS * Uq,-kA * Uq));
XJ[2]=gG.Ec(RL,new gG(-gS * pC - kA * st,-kA * pC+gS * st));
XJ[3]=RL;
XJ[4]=gG.Ec(RL,new gG(-gS * pC+kA * st,-kA * pC - gS * st));
this.bR.kY(XJ);
};
bB.prototype.Dr=function (){return this.af.Dr();
};
bB.prototype.zQ=function (){return new sK(this.iJ.x,this.iJ.y,this.width,this.height);
};
bB.prototype.kf=function (ma){};
bB.prototype.ug=function (ma){this.Va.QY(ma);
var jj=this.Va.zQ();
this.qc=Math.max(60,jj.Uq+10);
this.Az=Math.max(20,jj.WG+10);
this.Pp.KV(this.qc,this.Az);
this.oT.SetPosition(this.qc+30+5,this.oT.fG);
this.BA.SetPosition(this.qc+30+5+5,this.oT.fG+5);
this.vW=new sK(this.oT.dI,this.oT.fG,this.oT.Lw,this.oT.bT,0);
this.sN();
};
bB.prototype.OE=function (){var yV=ZP;
for (var DY=0; DY < this.Ux.length; DY++)
yV+=this.Ux[DY].CA+mZ+this.Ux[DY].Gx;
return yV;
};
function jV(parent){this.parent=parent;
this.MJ=false;
this.Gx=ZP;
}jV.prototype.AM=function (e,x,y){var re=this.parent.zQ();
var hg=this.parent.Wq;
if (this.MJ){var vL=this.parent.vW;
if (x > re.x+vL.x && x < re.x+vL.x+vL.Uq &&
y > re.y+vL.y && y < re.y+vL.y+vL.WG){this.parent.oT.Pv(FV);
}else
this.parent.oT.Pv(fg);
}else{if (x > re.x+hg.x && x < re.x+hg.x+hg.Uq &&
y > re.y+hg.y && y < re.y+hg.y+hg.WG){this.parent.Pp.Pv(FV);
}else
this.parent.Pp.Pv(fg);
}e.pL=this.MJ;
};
jV.prototype.FF=function (e,x,y){var re=this.parent.zQ();
var hg=this.parent.Wq;
if (this.MJ){var vL=this.parent.vW;
if (x > re.x+vL.x && x < re.x+vL.x+vL.Uq &&
y > re.y+vL.y && y < re.y+vL.y+vL.WG){if (this.Gx.length > 0){var iI=new Xa(this.parent.id,this.Gx);
var Kw=iI.pq();
Ab.pv.es(Kw,S0,S0);
this.parent.oT.kn();
this.parent.BA.kn();
this.MJ=false;
e.pL=false;
this.parent.ug(cC);
this.parent.Pp.Pv(fg);
return;
}else{e.pL=true;
e.zr=true;
return;
}}}if (x > re.x+hg.x && x < re.x+hg.x+hg.Uq &&
y > re.y+hg.y && y < re.y+hg.y+hg.WG){this.parent.oT.Zk();
this.parent.BA.Zk();
this.parent.Pp.KV(200,90);
zL.RO.value=ZP;
this.parent.ug(Jz);
this.parent.Pp.Pv(mV);
e.pL=true;
e.zr=true;
this.MJ=true;
}else{this.parent.oT.kn();
this.parent.BA.kn();
this.MJ=false;
e.pL=false;
this.parent.ug(cC);
this.parent.Pp.Pv(fg);
}};
jV.prototype.Qk=function (e,x,y){};
jV.prototype.yT=function (e,x,y){};
jV.prototype.abort=function (){};
jV.prototype.fS=function (Gx){this.Gx=Gx;
this.parent.ug(Gx+to);
};
this.hu=function (OF,cF,cV,YR,oy,iN,ET,XN,Gx,WV,id){var BH=this;
this.jq=false;
var zH;
var IS=true;
var wu=OF;
var aa=function (){if (wu.parent==S0)
gp.Kc[0].WK(wu);
ad.zv(id,wu,BH.WV);
wu.sN();
};
this.so=function (){if (wu==S0){wu=new bB(new gG(cF,cV),new gG(YR,oy));
wu.kf(1 / XN);
var oW=new fR(WV,Gx);
wu.Rs(oW);
}wu.HB=function (){if (wu.parent !=S0)
wu.parent.Ij(wu);
ad.GX(wu);
};
zH=wu.HB;
aa();
wu.HB=aa;
BH.jq=true;
};
this.bq=function (){zH();
wu.HB=zH;
BH.jq=false;
};
this.tH=function (){return gb;
};
this.pq=function (){return yK+cF+FA+cV+FA+YR+FA+oy+FA+iN+FA+ET+FA+XN+FA+KX(Gx)+jR;
};
};
var IJ=function (HH){var ck=document.createElement(rz);
var rX=document.createElement(nL);
rX.setAttribute(tx,kB);
var St=document.createElement(rz);
St.style.background=Fc;
St.style.border=Hc;
St.style.position=kM;
St.style.x=Sl;
St.style.y=Sl;
St.style.width=Ln;
St.style.display=xy;
var MV=[];
var pP=-1;
ck.appendChild(rX);
ck.appendChild(St);
var YY=function (lP){if (pP >=0 && pP < MV.length)
MV[pP].rQ.style.background=Fc;
if (lP >=0 && lP < MV.length)
pP=lP;
else
pP=-1;
if (pP >=0 && pP < MV.length)
MV[pP].rQ.style.background=Ja;
};
var eq=function (IW){if (IW >=0 && IW < MV.length)
rX.value=MV[IW].value+ii;
};
ck.NA=function (xN){while (St.lastChild !=S0)
St.removeChild(St.lastChild);
var wv=rX.value.split(FA);
var Gx=wv[wv.length - 1];
MV=[];
pP=-1;
var Dc=false;
var cE=function (id){return function (e){YY(id)}; };
var wp=function (id){return function (e){eq(id)}; };
for (var DY=0; DY < xN.length; DY++){if (xN[DY]==Gx)
Dc=true;
if (Gx==ZP || xN[DY].charAt(0)==Gx.charAt(0)){var sf=document.createElement(rz);
sf.appendChild(document.createTextNode(xN[DY]));
St.appendChild(sf);
sf.onmousemove=cE(DY);
sf.onmousedown=wp(DY);
MV.push({rQ:sf,value:xN[DY] });
}}if (Gx !=ZP && !Dc){}if (MV !=0)
YY(0);
};
rX.onkeydown=function (e){if (!e)
var e=window.event;
if (e.keyCode==9){eq(pP);
return false;
}};
rX.onfocus=function (){St.style.display=Ar;
HH();
};
rX.onblur=function (){St.style.display=xy;
while (St.lastChild !=S0)
St.removeChild(St.lastChild);
};
rX.onkeyup=function (e){if (!e)
var e=window.event;
if (e.keyCode==38){YY(pP - 1);
return;
}if (e.keyCode==40){YY(pP+1);
return;
}HH();
};
return ck;
};
function Nd(){var BH=this;
var ks=S0;
var vE;
var zl=300;
var qd=S0;
var bO=0;
var tg=[
{x:300,y:300,Uq:600,WG:600 }];
this.Bq=function (x,y,eI){var EJ=gp.qE.ru();
ks={yl:EJ,PZ:{x:x,y:y,eI:eI} };
vE=0;
qd=new Date();
zT();
};
this.lV=function (){bO=Math.min(bO+1,tg.length - 1);
var ma=tg[bO];
var eI=gp.qE.sc(ma.Uq,ma.WG);
BH.Bq(ma.x,ma.y,eI);
};
this.yD=function (){bO=Math.max(0,bO - 1);
var ma=tg[bO];
var eI=gp.qE.sc(ma.Uq,ma.WG);
BH.Bq(ma.x,ma.y,eI);
};
this.mb=function (){var eI=gp.qE.sc(600,600);
BH.Bq(300,300,eI);
};
this.gq=function (){var AE=gp.qE.ru();
tg.push({x:AE.x,y:AE.y,eI:AE.eI,Uq:AE.Uq,WG:AE.WG });
};
var zT=function (){var now=new Date();
var IB=now - qd;
vE+=IB;
var AE=vE / zl;
var ju=LH(ks.yl.x,ks.PZ.x,AE);
var cx=LH(ks.yl.y,ks.PZ.y,AE);
var AL=LH(ks.yl.eI,ks.PZ.eI,AE);
BH.SetPosition(ju,cx,AL);
qd=now;
if (vE < zl)
setTimeout(zT,20);
else{BH.SetPosition(ks.PZ.x,ks.PZ.y,ks.PZ.eI);
}};
this.SetPosition=function (x,y,eI){gp.qE.SetPosition(x,y,eI);
};
var li=function (yl,PZ,LJ){return yl+(PZ - yl)* LJ;
};
var LH=function (yl,PZ,LJ){var e=Math.E;
var GC=1.0 / (1.0+Math.pow(e,5.0));
var SC=1.0 / (1.0+Math.pow(e,-5.0));
var sE=SC - GC;
var pK=((1.0 / (1.0+Math.pow(e,-5.0 * ((2.0 * LJ)- 1.0))))- GC)/ sE;
var LZ=1.0 - pK;
return ((LZ * yl)+(pK * PZ));
};
};
function qP(){this.TA=g(kd);
this.TA.Oa=false;
var bv=g(nS);
var RN=g(vk);
var BH=this;
var uj=g(qO);
var NU=g(yY);
var le=g(mz);
var JL=qn;
this.TA.value=JL;
BH.TA.style.color=DZ;
if (le)
le.onmousedown=function (){NU.style.top=S0;
if (S1){NU.style.Ai=5;
NU.style.left=250;
}else{NU.style.Ai=uK;
NU.style.left=BS;
}BH.ie();
return false;
};
this.pB=function (){this.TA.setAttribute(Sk,Sk);
if (bv)
bv.setAttribute(Sk,Sk);
zL.qP.style.background=FP;
};
this.OV=function (){this.TA.removeAttribute(Sk);
if (bv)
bv.removeAttribute(Sk);
zL.qP.style.background=Fc;
};
this.TA.onfocus=function (event){BH.TA.Oa=true;
if (BH.TA.value==JL){BH.TA.value=LC;
}BH.TA.style.color=LB;
};
this.TA.onblur=function (event){BH.TA.Oa=false;
if (BH.TA.value==LC){BH.TA.value=JL;
}BH.TA.style.color=DZ;
};
if (bv)
bv.onclick=function (event){BH.CE();
return false;
};
if (RN)
RN.onclick=function (event){BH.kv();
};
this.Km=function (){BH.TA.focus();
};
this.ie=function (){BH.PF(44);
zL.qP.scrollTop=zL.qP.scrollHeight;
};
this.kv=function (){if (zL.fn.style.height !=iU)
BH.ie();
else
BH.Xx();
};
this.Xx=function (){BH.PF(205);
};
this.PF=function (nH){var Vh=zL.fn.offsetHeight;
var ji=zL.fn.offsetTop;
zL.fn.style.height=nH+dO;
zL.qP.style.height=(nH - 44)+dO;
zL.fn.style.top=(ji+Vh - nH - 4)+dO;
};
this.CE=function (){var ut=BH.TA.value;
if (ut==ZP || ut==JL)
return;
BH.TA.value=ZP;
if (ut.length > 1 && ut.charAt(0)==mk){if (ut==WN){var gv=new Date();
var uN=function (){var tc=new Date();
Lc(new Date(),wE+(tc.getTime()- gv.getTime())+bS);
};
Ab.pv.es(sh,uN,S0);
return;
}else if (ut==Cg){g(ZD).style.display=Ar;
return;
}else{var bO=ut.split(to);
if (bO.length==2){if (bO[0]==sD){Ab.yN.jQ(bO[1]);
return;
}}}}Ab.yN.iz(ut);
};
this.Jl=function (sf){if (Ab.qP){var Js=zL.qP;
var pj=(Js.scrollHeight - Js.clientHeight < Js.scrollTop+10);
uj.appendChild(sf);
if (pj)
Js.scrollTop=Js.scrollHeight;
if (zL.fn){if (zL.fn.offsetHeight < 200)
BH.PF(Math.min(200,zL.fn.offsetHeight+sf.offsetHeight));
}}};
}function OB(vE){var sf=Zg(new Date());
sf.appendChild(ni(Nh+vE+wa,sQ));
var bO=document.createElement(su);
bO.appendChild(document.createTextNode(Rv));
bO.onclick=function (e){Ab.cP.Nv()};
bO.style.textDecoration=XD;
bO.style.color=EU;
bO.style.cursor=sA;
sf.appendChild(bO);
Ab.qP.Jl(sf);
}function td(Gx){}function Lc(vE,Gx){if (Ab.qP){var sf=Zg(vE);
sf.appendChild(ni(Gx,sQ));
Ab.qP.Jl(sf);
}}function pR(vE,WV,Gx){var dR=(WV==Ab.co);
var wM=Ab.vj.qC[WV].wM;
hv(vE,wM,ni(Gx,TR),dR);
}function hv(vE,wM,hy,dR){var sf=Zg(vE);
if (dR)
sf.appendChild(ni(wM+mZ,vt));
else
sf.appendChild(ni(wM+yO,Ho));
sf.appendChild(hy);
Ab.qP.Jl(sf);
}var Cl=S0;
function Zg(now){var WG=now.getHours();
var Ep=now.getMinutes();
var ma=now.getSeconds();
if (Ep < 10)
Ep=jJ+Ep;
if (ma < 10)
ma=jJ+ma;
if (DT==OW)
var vE=WG+yO+Ep;
else
var vE=Go+WG+yO+Ep+qa;
var oG=document.createElement(rz);
if (Cl==S0 ||
Cl.getDate()!=now.getDate()|| Cl.getMonth()!=now.getMonth()|| Cl.getFullYear()!=now.getFullYear()){var VW=now.getMonth()+1;
if (VW < 10)
VW=jJ+VW;
var Fv=now.getDate();
if (Fv < 10)
Fv=jJ+Fv;
oG.appendChild(document.createTextNode(vy+now.getFullYear()+pE+VW+pE+Fv+fQ));
oG.appendChild(document.createElement(me));
}Cl=now;
oG.appendChild(ni(vE,ry));
oG.className=yu;
return oG;
}function ni(Gx,className){var oR=document.createElement(nR);
oR.className=className;
oR.appendChild(document.createTextNode(Gx));
return oR;
}function mj(oV,Rg,Uj,RX){var xH=S0;
var ZC=S0;
var YI=gG.Ec(Rg,oV);
var length=gG.og(YI);
var Qg=gG.eF(YI,1 / length);
var aE=gG.Ec(Uj,oV);
var EN=gG.HJ(aE,Qg);
var Ei=gG.zj(oV,gG.eF(Qg,EN));
var ly=gG.Fl(gG.Ec(Ei,Uj));
var Nw=RX * RX - ly;
if (Nw > 0){var Ns=Math.sqrt(Nw);
var tL=EN - Ns;
var IK=EN+Ns;
if (IK < 0 || tL > length)
return S0;
if (tL < 0)
xH=oV;
else
xH=gG.zj(oV,gG.eF(Qg,tL));
if (IK > length)
ZC=Rg;
else
ZC=gG.zj(oV,gG.eF(Qg,IK));
return{oV:xH,Rg:ZC,tL:tL,IK:IK };
}else
return S0;
}function Zl(Gi,Mh,fO){if (Gi.length <=1)
return;
var oV=Gi[0];
var Rg=Gi[1];
var AQ=[];
var gh=[];
var bg={};
var RI=[];
var DY=1;
var FB=0;
while (DY < Gi.length && FB < Gi.length * 10){FB++;
var oM=mj(oV,Rg,Mh,fO);
if (oM !=S0){if (bg.FJ==undefined){RI.push(bg);
bg.FJ=DY - 1;
if (oM.tL > 0)
bg.qL=oM.oV;
else
bg.qL=oV;
}bg.MY=DY;
bg.UC=oM.Rg;
if (oM.Rg==Rg){DY++;
oV=Rg;
Rg=Gi[DY];
}else{var delta=gG.Ix(gG.Ec(Rg,oV));
oV=gG.zj(oM.Rg,gG.eF(delta,0.00001));
Rg=Rg;
}}else{bg={};
DY++;
oV=Rg;
Rg=Gi[DY];
}}var im=0;
var hE=[];
for (var DY=0; DY < RI.length; DY++){var zR=RI[DY];
for (var Rx=im; Rx <=zR.FJ; Rx++)
hE.push(Gi[Rx]);
if (hE[hE.length - 1] !=zR.qL)
hE.push(zR.qL);
if (hE.length > 1)
gh.push(hE);
hE=[];
hE.push(zR.UC);
im=zR.MY;
}for (var Rx=im; Rx < Gi.length; Rx++)
{if(Gi[Rx] !=hE[0])
hE.push(Gi[Rx]);
}if (hE.length > 1)
gh.push(hE);
if (RI.length > 0)
AQ.push(1);
return{AQ:AQ,gh:gh };
}function uc(oV,Rg,EQ){var HZ=gG.Ec(Rg,oV);
var ae=gG.og(HZ);
var wG=gG.eF(HZ,1 / ae);
var FL=gG.Ec(EQ,oV);
var vn=gG.HJ(wG,FL);
var FW=gG.eF(wG,vn);
var Sb=gG.zj(oV,FW);
if (0 < vn && vn < ae)
return Sb;
else if (vn * 2 < ae)
return oV;
else
return Rg;
}var KC=new function (){var Fn=this;
this.QC=function (aw){if (Ab.Qh !=S0)
aw();
else
gm.push(aw);
};
var hP=false;
var gm=[];
var LI=0;
var Cn=false;
this.gT=function (ZQ){this.so=function (){Cn=ZQ;
};
};
this.ca=function (Gx){this.so=function (){};
this.bq=function (){};
this.tH=function (){return Gx; };
};
this.rb=function (ku,canvas,jy,Uj,Uq,da,ZF,id){var BH=this;
this.jq=false;
var zH;
var aa=function (){if (ku.parent==S0)
canvas.WK(ku);
if (DT==OW)
canvas.UZ(ku);
ad.zv(ku.id,ku,BH.WV);
};
this.so=function (){var aw=function (){if (canvas==S0)
canvas=gp.Kc[jy];
if (ku==S0){var points=[];
for (var DY=0; DY < da.length; DY+=2){var aj=parseFloat(da[DY]);
var VB=parseFloat(da[DY+1]);
var qM=canvas.Rw(aj,VB);
points.push(qM);
}ku=new canvas.Nu(Uj,Uq,points);
if (ku.Fi)
ku.Fi(ZF);
}if (id !=S0)
ku.id=id;
ku.HB=function (){if (ku.parent !=S0)
canvas.Ij(ku);
ad.GX(ku);
};
zH=ku.HB;
aa();
ku.HB=aa;
};
if (jy==1)
Fn.QC(aw)
else
aw();
BH.jq=true;
};
this.bq=function (){var aw=function (){zH();
ku.HB=zH;
BH.jq=false;
};
if (jy==1)
Fn.QC(aw)
else
aw();
};
this.tH=function (){if (jy==1)
return hX;
return xe;
};
this.pq=function (){return ff+jy+Ug+Uj+FH+Uq+hn+da+EB+ZF * 255+jR;
};
};
this.Np=function (Gx,x,y,color,or,id){var BH=this;
this.jq=false;
var Gb=S0;
var zH;
var aa=function (){if (Gb.parent==S0)
gp.Kc[0].WK(Gb);
ad.zv(id,Gb,BH.WV);
};
this.so=function (){if (Gb==S0){Gb=new gp.Kc[0].Np(Gx,x,y,color,or);
}Gb.HB=function (){if (Gb.parent !=S0)
Gb.parent.Ij(Gb);
ad.GX(Gb);
};
zH=Gb.HB;
aa();
Gb.HB=aa;
BH.jq=true;
};
this.bq=function (){zH();
Gb.HB=zH;
BH.jq=false;
};
this.tH=function (){return Ch;
};
this.pq=function (){return SZ+x+FA+y+FA+KX(Gx)+Ug+color+FH+or+jR;
};
};
this.Oj=function (Hy,zp,wb,ml,eX,id){var BH=this;
this.jq=false;
var zH;
this.zp=zp;
this.ml=ml;
this.id=id;
var aa=function (){if (Hy.parent==S0)
gp.Kc[0].WK(Hy);
ad.zv(Hy.id,Hy,BH.WV);
};
this.so=function (){if (Hy==S0){var CU=ad.Vx(BH.zp);
var FU=ad.Vx(BH.ml);
Hy=new TU(CU,wb,FU,eX);
Hy.id=BH.id;
}Hy.HB=function (){if (Hy.parent !=S0)
Hy.parent.Ij(Hy);
ad.GX(Hy);
};
zH=Hy.HB;
aa();
Hy.HB=aa;
BH.jq=true;
};
this.bq=function (){zH();
Hy.HB=zH;
BH.jq=false;
};
this.tH=function (){return oZ;
};
this.pq=function (){var ip=BH.zp || -1;
var Fa=BH.ml || -1;
return et+ip+FA+wb.x+FA+wb.y+FA+Fa+FA+eX.x+FA+eX.y+jR;
};
};
this.Ij=function (id){var BH=this;
this.jq=false;
var ku=S0;
var zH;
var aa=function (){if (ku.parent !=S0)
ku.parent.Ij(ku);
ad.GX(ku);
};
this.so=function (){ku=ad.Vx(id);
if (ku !=S0){zH=ku.HB;
aa();
ku.HB=aa;
}BH.jq=true;
};
this.bq=function (){if (ku !=S0){zH();
ad.zv(id,ku,BH.WV);
ku.HB=zH;
BH.jq=false;
}};
this.tH=function (){return rn;
};
this.pq=function (){return wC+id+jR;
};
};
this.AP=function (WY,src,parent,id,x,y,Uq,WG,RX,JD,uV){var BH=this;
var zH;
this.jq=false;
var aa=function (){WY.SetPosition(x,y);
WY.KV(Uq,WG,RX);
parent.WK(WY);
ad.zv(WY.id,WY,BH.WV);
};
this.so=function (){if (WY==S0)
WY=new gp.Kc[0].Image(src,JD,uV);
if (id !=S0)
WY.id=id;
WY.HB=function (){if (WY.parent !=S0)
WY.parent.Ij(WY);
ad.GX(WY);
};
zH=WY.HB;
aa();
WY.HB=aa;
if (S1 && !hP && DT !=OW){Lc(new Date(),iH+Yu);
hP=true;
}this.jq=true;
};
this.bq=function (){zH();
WY.HB=zH;
this.jq=false;
};
this.tH=function (){return MH; };
this.pq=function (){return nX+KX(src)+FA+x+FA+y+FA+Uq+FA+WG+FA+RX+FA+JD+FA+uV+jR;
};
};
this.KP=function (parent,WY,id,x,y,Uq,WG,RX){var BH=this;
this.jq=false;
var zH;
var aa=function (){WY.SetPosition(x,y);
if (WY.KV && !WY.QY)
WY.KV(Uq,WG,RX);
parent.WK(WY);
ad.zv(WY.id,WY,BH.WV);
};
this.so=function (){if (WY==S0)
WY=ad.Vx(id);
zH=WY.HB;
aa();
WY.HB=aa;
this.jq=true;
};
this.bq=function (){zH();
WY.HB=zH;
this.jq=false;
};
this.tH=function (){return ew; };
this.pq=function (){return hT+id+FA+x+FA+y+FA+Uq+FA+WG+FA+RX+jR;
};
};
this.Ni=function (vm){var hL;
var wM;
if (vm==Fp){hL=function (aw){return (aw.xd !=S0); };
wM=ue;
}else if (vm==pG){hL=function (aw){return (aw.Sy !=S0); };
wM=qN;
}else if (vm==BX){hL=function (aw){return (aw.Gx !=S0); };
wM=JC;
}else{hL=function (aw){return true; };
wM=pc;
}var zH;
this.so=function (){var Ic=ad.lA(hL);
var Ox=[];
for (var DY=0; DY < Ic.length; DY++){var bJ=Ic[DY];
Ox.push(bJ.HB);
var WI=function (Zu){return function (){if (Zu.parent !=S0)
Zu.parent.Ij(bJ);
ad.GX(Zu);
};
};
var aa=WI(bJ);
aa();
bJ.HB=aa;
}zH=function (){for (var DY=0; DY < Ox.length; DY++){Ox[DY]();
Ic[DY].HB=Ox[DY];
}};
};
this.bq=function (){zH();
};
this.tH=function (){return wM; };
this.pq=function (){return BG+vm+BF;
};
};
this.Ca=function (Hx){this.jq=false;
var zH;
var aa=function (){if (Ab.zZ !=S0)
Ab.zZ.kn();
zL.bd.style.backgroundImage=Fq;
if (Hx !=wV){zL.bd.style.backgroundImage=eP+Hx+Jx;
}};
this.so=function (){zH=gp.Ca.HB;
aa();
gp.Ca.HB=aa;
this.jq=true;
};
this.bq=function (){zH();
gp.Ca.HB=zH;
this.jq=false;
};
this.tH=function (){if (Hx==wV)
return QS;
return io;
};
this.pq=function (){if (Hx==wV)
return cX;
return BR+KX(Hx)+jR;
};
};
this.Cc=function (Gx,Ak){var BH=this;
this.jq=false;
this.so=function (){for (var DY=0; DY < Ak.length; DY++){Ak[DY].WV=BH.WV;
Ak[DY].so();
}this.jq=true;
};
this.bq=function (){for (var DY=Ak.length - 1; DY >=0; DY--){Ak[DY].WV=BH.WV;
Ak[DY].bq();
}this.jq=false;
};
this.tH=function (){return Gx; };
this.pq=function (){var ma=TK+KX(Gx)+IO;
for (var DY=Ak.length - 1; DY >=0; DY--){Ak[DY].WV=BH.WV;
ma+=Ak[DY].pq();
if (DY !=Ak.length - 1)
ma+=FA;
}ma+=vY;
};
};
this.bq=function (WV,cW){this.so=function (){var wM=Ab.vj.qC[WV].wM;
Ab.Ld.Wd(cW);
};
this.pq=function (){return gV+cW+jR;
};
};
this.kO=function (ac,x,y,Gx,id){this.Gx=Gx;
this.x=x;
this.y=y;
var BH=this;
this.jq=false;
var zH;
var aa=function (){if (ac.parent==S0)
gp.Kc[0].WK(ac);
ad.zv(ac.id,ac,BH.WV);
ac.SetPosition(x,y);
};
this.so=function (){if (ac==S0){ac=new TO(Gx);
}if (id !=S0)
ac.id=id;
ac.HB=function (){if (ac.parent !=S0)
ac.parent.Ij(ac);
ad.GX(ac);
};
zH=ac.HB;
aa();
ac.HB=aa;
BH.jq=true;
};
this.bq=function (){zH();
ac.HB=zH;
BH.jq=false;
};
};
this.kO.prototype.tH=function (){return Ou;
};
this.kO.prototype.pq=function (){return vT+this.x+FA+this.y+FA+KX(this.Gx)+jR;
};
this.VO=function (){this.jq=false;
var zH;
var aa=function (){var lat=50;
var lng=15;
var eZ=3;
var vm=0;
zL.bd.style.backgroundImage=Fq;
Callbacks.GMapReady=function (){Ab.Qh=g(bU).contentWindow.canvas;
Ab.Qh.cB(lat,lng,eZ);
zL.Xo.PN(eZ);
Ab.Qh.Tf(vm);
gp.Kc[1]=Ab.Qh;
gp.Ys(1);
for (var DY=0; DY < gm.length; DY++)
gm[DY]();
gm=[];
Ab.Qh.WK(new Ab.Qh.Nu(KS,0,[{x:0,y:0 },{x:0.0000001,y:0.00000001}]));
g(eJ).style.display=xy;
g(Uy).style.display=Ar;
};
Ab.zZ.Zk();
var VE=g(XO);
if (VE.style.display==xy){VE.style.display=Ar;
}};
this.so=function (){zH=gp.Ca.HB;
aa();
gp.Ca.HB=aa;
this.jq=true;
};
this.bq=function (){zH();
gp.Ca.HB=zH;
this.jq=false;
};
this.tH=function (){return XI;
};
this.pq=function (){return Io;
};
};
this.ir=function (WV,lat,lng,eZ,vm,Hw){var BH=this;
this.so=function (){var CA=Ab.vj.qC[WV].wM;
var aw=function (){if (vm !=Ab.Qh.Oe()){Lc(BH.vE,CA+Pc);
Ab.Qh.Tf(vm);
}if (WV !=Ab.co){var ku=Ab.vj.qC[WV].bE;
Ab.vj.qC[WV].YW=[lat,lng,eZ];
var delta=5;
var points=Ab.Qh.YZ(new Ab.Qh.Rw(lng,lat),eZ,800,600);
if (ku==S0){ku=new Ab.Qh.Nu(KS,2,points);
Ab.Qh.WK(ku);
Ab.vj.qC[WV].bE=ku;
}else
ku.kY(points);
}};
Fn.QC(aw);
if (Hw==1){var bO=document.createElement(su);
bO.onclick=function (){if (Ab.Qh !=S0){Ab.Qh.cB(lat,lng,eZ);
Ab.yN.bM(lat,lng,eZ,vm,0);
zL.Xo.PN(eZ);
}return false;
};
bO.href=ZP;
bO.appendChild(document.createTextNode(OI));
hv(BH.vE,CA,bO,(WV==Ab.co));
}};
};
this.Yj=function (WV){var BH=this;
this.so=function (){var CA=Ab.vj.qC[WV].wM;
Lc(BH.vE,CA+yR);
if (zL.TQ && zL.TQ.style.display==xy)
Rm();
else{var Xu=GetChannelParams();
g(Dq).src=xC+Xu+UR+LI++;
}};
};
this.xq=function (Fe){var BH=this;
this.so=function (){pR(BH.vE,BH.WV,Fe);
};
};
this.gX=function (Fe){var BH=this;
this.so=function (){Lc(BH.vE,Fe);
};
};
this.Nk=function (WV,To){var BH=this;
this.so=function (){Ab.vj.Iy(WV,To,BH.vE);
};
};
this.uS=function (WV,SP){var BH=this;
this.so=function (){var DX=Ab.vj.qC[WV].wM;
Ab.vj.nC(WV,SP);
if (!Cn)
Lc(BH.vE,DX+eG+SP);
};
};
this.bI=function (WV){var BH=this;
this.so=function (){Ab.vj.qx(WV,BH.vE);
};
};
this.uz=function (ol){this.so=function (){if (window.parent.CoSketchCallback !=S0)
window.parent.CoSketchCallback(ol);
else
window.location=ol;
};
};
};
var fZ=45;
var Callbacks=
{ChangeBG:function (WY){var wv=WY.split(Sh);
var lO=wv[0];
var src=wv[1];
if (lO==KU)
src=zM+Ab.Ap+Hh+src;
else
src=hN+src;
Ab.pv.es(BR+KX(src)+jR);
if (DT !=JH)
Ab.Gv.XF();
},Stamp:function (WY,width,height){var wv=WY.split(Sh);
var lO=wv[0];
var src=wv[1];
if (lO==KU)
src=zM+Ab.Ap+Hh+src;
else{if (DT==OW)
src=NQ+src;
else
src=hN+src;
}pX.Dn.VI(src,width,height);
jI(pX.Dn);
Ab.Gv.XF();
},GMapReady:S0,UploadingFile:function (){}};
var GetChannelParams=function (){var Xu=jr+Ab.Ap+ZK+Ab.EO+ms+Ab.dr.gM+qH+DT;
if (Ab.QH !=S0)
Xu+=mX+Ab.QH;
if (Ab.So)
Xu+=Zc+Ab.So;
if (Ab.rl)
Xu+=RS+Ab.rl;
if (Ab.fY)
Xu+=YP+Ab.fY;
return Xu;
};
var zL=
{fn:S0,qP:S0,bd:S0,TQ:S0,dk:S0,ov:S0,RO:S0,WF:S0,sV:S0,xo:S0
};
var Ab=
{yN:S0,cP:S0,wJ:S0,vl:S0,co:S0,Sp:S0,Ap:S0,QH:S0,Ok:S0,qP:S0,Qh:S0
};
var tr;
var S1=false;
var DT;
function dInit(vm,Ao){DT=vm;
if (Ao !=undefined)
Ab.Sp=Ao;
setTimeout(delayedInit,1);
}function DTS(bO){return bO;
}function Db(){var JT=-1;
if (navigator.appName==Jv){var OC=navigator.userAgent;
var vv=new RegExp(CM);
if (vv.exec(OC)!=S0)
JT=parseFloat(RegExp.MQ);
}return JT;
}var fN=false;
function delayedInit(){var wh=g(rx);
if (wh==S0){setTimeout(delayedInit,50);
return;
}if (fN)
return;
fN=true;
var Uv=Db();
if (Uv==-1 || Uv >=9)
S1=false;
else
S1=true;
wh.parentNode.removeChild(wh);
if ((DT==XU)&& self !=top){var Kv=g(CC);
if (Kv !=S0){var oP=document.createElement(rz);
oP.className=Bi;
var WG=document.createElement(FE);
var cY=document.createElement(su);
cY.href=yy;
cY.appendChild(document.createTextNode(MP));
WG.appendChild(cY);
oP.appendChild(WG);
oP.appendChild(document.createTextNode(FY));
var bO=document.createElement(su);
bO.href=Bm;
bO.ZW=aR;
bO.className=sk;
bO.appendChild(document.createTextNode(Ra));
oP.appendChild(bO);
oP.appendChild(document.createElement(me));
oP.appendChild(document.createElement(me));
oP.appendChild(document.createTextNode(Ta));
oP.style.display=Ar;
while (Kv.firstChild !=S0)
Kv.removeChild(Kv.firstChild);
Kv.appendChild(oP);
g(yY).style.display=xy;
}return;
}tr=window;
zL=
{qP:g(lE),fn:g(yY),bd:g(GK),TQ:g(DM),dk:g(vV),RO:g(eY),WF:g(RU),sV:g(QD)
};
document.body.ap=function (){if (Ab.yN !=S0)
Ab.yN.nA();
};
if (DT !=tK && DT !=OW)
Ab.Ap=tr.location.href.slice(tr.location.href.lastIndexOf(mk)+1);
else{var gR=aC(tr.location.href);
if (gR){Ab.Ap=gR[Qc];
Ab.So=gR[tD];
Ab.rl=gR[be];
Ab.fY=gR[Mt];
}}if (S1){zL.sW=new kp(zL.bd);
}else{zL.sW=new ZV(zL.bd);
}gp.Kc[0]=zL.sW;
gp.Ys(0);
var uC=Math.random().toPrecision(5).toString().substring(1);
Ab.EO=new Date().valueOf().toString()+uC;
Ab.dr=new no();
Ab.pv=new wD();
Ab.yN=new QL();
Ab.cP=new vX();
Ab.IU=(g(CC)==S0);
pX.gF=new Un();
pX.lk=new pJ();
pX.Np=new zo();
Pq.prototype=pX.gF;
YL.prototype=pX.gF;
Uw.prototype=pX.gF;
tn.prototype=pX.gF;
pX.mH=new Pq();
pX.YL=new YL();
pX.Uw=new Uw();
pX.tn=new tn();
pX.Dn=new Dn();
pX.KP=new vS();
pX.nM=new xn();
Ab.Gv=new Gv();
Ab.Gv.nD();
if (DT==OW){YC();
}else if (DT==ft){yr();
}else if (DT==Hj){sO();
}else if (DT==tK){Ql();
}else if (DT==JH){UH();
}else if (DT==XU){Bv();
}Sf();
Ab.HM.hI();
Ab.HM.XK();
window.UB=function (message,Hx,ku){if (Hx==cv)
return;
var Fe=WA+message+xR+Hx+jG+ku;
CO(Fe);
return;
};
if (S1){}else{var Mw=g(fT);
if (Mw !=S0){var AE=Mw.parentNode;
AE.removeChild(Mw);
Mw.setAttribute(Yl,tF);
AE.appendChild(Mw);
}}}var cs=0;
function CO(Fe){if (cs > 10)
return;
cs++;
var BT=Yp();
BT.open(Vr,vN+fZ+qH+DT,true);
BT.setRequestHeader(xE,Nm);
BT.send(mS+encodeURIComponent(Fe));
}function jI(rZ){if (Ab.Ok !=rZ){pX.eM=Ab.Ok;
if (Ab.Ok !=S0){Ab.Ok.kn();
if (Ab.Ok.QO)
Ab.Ok.QO();
}Ab.Ok=rZ;
if (Ab.Ok !=S0){if (Ab.Ok.tk)
Ab.Ok.tk();
rZ.Ku();
}}}var YE=function (){var VR;
var BH=this;
var hf=false;
this.sS=S0;
this.GM=S0;
this.XZ=S0;
this.je=S0;
this.Bp=S0;
this.XK=function (){if (hf)
return;
if (BH.Bp !=S0)
BH.Bp();
Ab.pv.CN(Kk);
if (VR==S0 || !VR.tM())
VR=new vq(function (){BH.XK(); },3000);
};
this.hI=function (){Ab.cP.TI=true;
Ab.Ld.TM();
if (BH.GM !=S0)
BH.GM();
};
this.hY=function (){this.hI();
if (BH.je !=S0)
BH.je();
};
this.uY=function (ik){hf=true;
if (BH.XZ !=S0)
BH.XZ();
var now=new Date();
var Fe=AN+Hq+Ab.QH+KM+ze+ik+KM+Vd+Ab.cP.al.toString()+KM+ek+Ab.pv.gW.toString()+KM+MF+now.toString()+KM;
var PR=ZP;
var Ms=false;
if (Ab.cP.al !=S0){if (now.valueOf()- Ab.cP.al.valueOf()> 60 * 1000 * 15)
PR+=aY;
else{PR+=Tl;
Ms=true;
}}else
PR+=VY;
PR+=KM;
if (Ab.pv.gW !=S0){if (now.valueOf()- Ab.pv.gW.valueOf()> 60 * 1000 * 15)
PR+=XC;
else{PR+=UE;
Ms=true;
}}else
PR+=kX;
Fe+=PR;
var BT=Yp();
BT.open(Vr,bp,true);
BT.setRequestHeader(xE,Nm);
BT.send(Fe);
};
this.qr=function (){if (VR !=S0)
VR.uP();
Ab.cP.Nv();
if (BH.sS !=S0)
BH.sS();
};
};
var vq=function(iI,vE){this.IT=false;
var iq=true;
var BH=this;
this.xh=function(){iq=false;
if (!BH.IT)
iI();
};
this.uP=function(){BH.IT=true;
iq=false;
};
this.tM=function(){return iq;
};
setTimeout(function(){BH.xh(); },vE);
};
NJ.prototype=new function (){this.addListener=function (xz){this.RA.push(xz);
};
this.gt=function (xz){for (var DY=0; DY < this.RA.length; DY++){if (this.RA[DY]==xz){this.RA.splice(DY,1)
return;
}}if (this.RA.length==0){}};
this.iv=function (GP,Zj){for (var DY=0; DY < this.RA.length; DY++){this.RA[DY](GP,Zj);
}};
};
function NJ(){this.RA=[];
}var vX=function (){var BH=this;
this.DA=new Date().valueOf().toString();
this.ql=0;
this.VM=Yp();
this.qg=0;
this.wn=[1000,1000,5000,5000];
var Rc=S0;
var VR=S0;
this.TI=false;
this.al=S0;
this.Nv=function (){this.TI=false;
if (VR !=S0)
VR.uP();
if (Rc !=S0 && Rc.tM())
this.VM.abort();
var Xu=GetChannelParams();
this.VM.open(kT,FC+Xu+UR+this.DA+(this.ql++),true);
this.VM.onreadystatechange=function (){BH.yP(); };
this.VM.send(ka);
Rc=new vq(function (){BH.VM.abort(); },25000);
};
this.yP=function (){if (this.VM.readyState==4){Rc.uP();
var Gl=false;
if (this.VM.status==200){var aT=this.VM.responseText;
Gl=Ab.dr.TT(aT);
}if (this.TI)
return;
if (Gl){BH.al=new Date();
this.qg=0;
BH.Nv();
}else{var QB=this.wn[Math.min(this.qg,this.wn.length - 1)];
this.qg++;
if (this.qg > 3 && this.qg % 3==0){Ab.HM.hI();
Ab.HM.XK();
}else
VR=new vq(function (){BH.Nv(); },QB);
}}};
};
function kH(){var oP=document.createElement(rz);
oP.color=jC;
oP.className=tl;
oP.appendChild(document.createTextNode(WP));
oP.Fu=255;
oP.dc=function (){oP.Fu -=8;
oP.style.color=Zt+oP.Fu.toString(16)+oP.Fu.toString(16);
if (oP.Fu > 29){setTimeout(function (){oP.dc()},50);
}else{if (oP.parentNode !=S0)
oP.parentNode.removeChild(this);
}};
oP.dc();
return oP;
}function XX(rQ){var ZA=rQ.offsetLeft;
while (rQ.offsetParent !=S0){ZA+=rQ.offsetParent.offsetLeft;
rQ=rQ.offsetParent;
}return ZA;
}function fb(rQ){var cL=rQ.offsetTop;
while (rQ.offsetParent !=S0){cL+=rQ.offsetParent.offsetTop;
rQ=rQ.offsetParent;
}return cL;
}function lX(xz,Ee){return function (){return xz(Ee); };
}function lJ(ib,xP){for (var DY=0; DY < ib.length; DY++)
if (ib[DY]==xP)
return DY;
return -1;
}var KX=function (At){At=At.replace(/\\/g,jP);
return XE+At.replace(/\"/g,Tq)+XE;
};
var wi=function (At){At=At.replace(/\\/g,jP);
return At=At.replace(/\|/g,Xp);
};
function aC(Hx){var am=Hx.indexOf(GE);
if (am !=-1){var Xu=[];
var fk=Hx.substr(am+1);
var Vi=fk.split(er);
for (var DY=0; DY < Vi.length; DY++){var aL=Vi[DY].split(wt);
if (aL.length==2)
Xu[aL[0]]=aL[1];
}return Xu;
}return undefined;
}function yr(){Ab.HM=new YE();
Ab.Ld=new Za(g(RD));
Ab.HM.sS=function (){jI(pX.gF);
};
Ab.vj=new vj(S0);
var Om=document.createElement(rz);
Om.className=hF;
g(jt).appendChild(Om);
Om.onclick=function (){YH(); };
var Kl=document.createElement(rz);
Kl.setAttribute(ts,qJ);
Kl.appendChild(yc(pX.gF,6,MN));
Kl.appendChild(yc(pX.mH,3,RC));
Kl.appendChild(yc(pX.YL,8,Mm));
Kl.appendChild(yc(pX.Uw,4,Cv));
Kl.appendChild(yc(pX.tn,5,mW));
Kl.appendChild(xw(pX.Np,yt,wT));
Kl.appendChild(xw(pX.lk,aB,jw));
var HP=document.createElement(rz);
for (var DY=0; DY < 3; DY++){var border=document.createElement(rz);
border.className=qV;
if (DY==1){border.className=CP;
gp.uF.width=1+DY * 2;
}var pI=document.createElement(rz);
pI.className=uO;
pI.NX=1+DY * 2;
pI.onclick=function (e){for (var DY=0; DY < HP.childNodes.length; DY++)
HP.childNodes[DY].className=qV;
this.parentNode.className=CP;
gp.uF.width=this.NX;
};
pI.style.backgroundPositionY=(DY * -13)+dO;
pI.style.backgroundPosition=Ng+(DY * -13)+dO;
border.appendChild(pI);
HP.appendChild(border);
};
g(jt).appendChild(Kl);
g(jt).appendChild(HP);
var bl=Array(Dv,VA,sH,VG,rV,uI,Fy,Em);
var pd=document.createElement(rz);
var KH=function (){for (var cS=0; cS < pd.childNodes.length; cS++)
pd.childNodes[cS].className=qV;
};
var bu=function (color){var border=document.createElement(rz);
border.className=qV;
var pI=document.createElement(rz);
pI.className=NH;
pI.style.backgroundColor=NG+color;
pI.wZ=color;
border.onclick=function (e){KH();
this.className=CP;
gp.uF.color=NG+pI.wZ;
};
border.appendChild(pI);
return border;
};
for (var DY=0; DY < bl.length; DY++){var border=bu(bl[DY]);
pd.appendChild(border);
}g(jt).appendChild(pd);
}var JP=function (Hx){return pu+Hx+bj+Hx+tf;
};
var Jq=function (Hx){return SA+Hx+RY+Hx+AW;
};
var yX=function (Hx){return TJ+Hx+tY+Hx+VZ
};
var cZ=function (Hx){return Hx;
};
var iP=function (XV,Hx){var yW=XV.value;
if (yW.length > 45)
yW=yW.substring(yW.length - 40);
var iw=document.createElement(nR);
iw.appendChild(document.createTextNode(dP+yW));
var Pb=document.createElement(fA);
Pb.appendChild(document.createTextNode(GH));
Pb.onclick=function (){XV.value+=KM+Hx+KM;
qs();
XV.focus();
};
return Pb;
};
var YH=function (){var Pb=g(fu);
Pb.parentNode.removeChild(Pb);
ic();
var DV=function (Hx){DB(Hx); };
Ab.pv.es(Ur,DV,S0);
};
var DB=function (Hx){Ab.HM.hI();
var TC=g(yE);
TC.style.display=Ar;
if (Hx==Yn){var DY=document.createElement(lU);
DY.appendChild(document.createTextNode(MK));
TC.appendChild(DY);
Hx=xI;
} else{var DY=document.createElement(lU);
DY.appendChild(document.createTextNode(eO));
TC.appendChild(DY);
}TC.appendChild(xp(xS,Hx));
TC.appendChild(xp(HN,JP(Hx)));
TC.appendChild(xp(yQ,Jq(Hx)));
TC.appendChild(xp(rI,yX(Hx)));
};
var xp=function (wM,Hx){var oP=document.createElement(rz);
oP.className=EY;
var Pj=document.createElement(UM);
Pj.appendChild(document.createTextNode(wM));
var CB=document.createElement(nL);
CB.setAttribute(tx,kB);
CB.hJ=true;
CB.className=Qs;
CB.value=Hx;
oP.appendChild(Pj);
oP.appendChild(CB);
return oP;
};
var qs=function (){parent.nK();
};
function sO(){Ab.Ld=new Za(g(RD));
Ab.HM=new YE();
Ab.HM.sS=function (){jI(pX.gF);
};
Ab.vj=new vj(S0);
var lG=function (id,VF){var Qg=document.createElement(rz);
Qg.className=iy+id;
if (VF !=undefined)
Qg.appendChild(VF);
return Qg;
};
var Li=lG(1);
var Zn=lG(5);
var Gx=lG(7);
var Iz=function (){Li.className=Tn;
Zn.className=PL;
Gx.className=oQ;
};
Li.onmousedown=function (e){jI(pX.gF); Iz(); Li.className=lT; };
Zn.onmousedown=function (e){jI(pX.lk); Iz(); Zn.className=Rn };
Gx.onmousedown=function (e){jI(pX.Np); Iz(); Gx.className=Sv; };
Li.className=lT;
g(jt).appendChild(Li);
g(jt).appendChild(Zn);
g(jt).appendChild(Gx);
var im=lG(6);
im.style.vg=0;
g(jt).appendChild(im);
}function Ql(){var iE=document.createElement(rz);
iE.className=av;
Ab.Ld=new Za(iE);
var left=g(jt);
var ui=g(KT);
var Ew=g(KO);
var QQ=g(Tz);
var se=S0;
var qX=S0;
Ab.HM=new YE();
Ab.HM.Bp=function (){QQ.style.display=xy;
ui.style.display=Ar;
Ew.style.display=Ar;
if (qX==S0 || !qX.tM())
qX=new vq(function (){if (se==S0){se=document.createElement(rz);
se.appendChild(document.createElement(me));
se.appendChild(document.createTextNode(cR));
Ew.appendChild(se);
}else
se.style.display=Ar;
},5000);
};
Ab.HM.sS=function (){if (qX !=S0)
qX.uP();
if (se !=S0)
se.style.display=xy;
jI(pX.gF);
Ab.Gv.iS=false;
ui.style.display=xy;
Ew.style.display=xy;
left.style.display=Ar;
Ab.qP.OV();
document.title=ld;
};
Ab.HM.GM=function (){left.style.display=xy;
ui.style.display=Ar;
Ab.pv.lI();
jI(S0);
Ab.Gv.iS=true;
Ab.qP.pB();
document.title=rf;
};
Ab.HM.je=function (){ui.style.display=Ar;
QQ.style.display=Ar;
};
g(Nt).onclick=function (){Ab.HM.XK(); };
Ab.vj=new vj(g(jY));
Ab.qP=new qP();
var Iv=function (e){if (!e)var e=window.event;
e.cancelBubble=true;
if (e.stopPropagation)
e.stopPropagation();
return false;
};
var lG=function (id,VF,KD){var Qg=document.createElement(rz);
Qg.className=RF+id;
if (KD){KD.tk=function (){Qg.className=RF+id+ny+id; };
KD.QO=function (){Qg.className=RF+id };
Qg.onmousedown=function (){jI(KD);
};
}return Qg;
};
var lL=function (button,VF,Qx,gl,Uq){var padding=0;
VF.style.height=50+Qx+gl - 2 * padding+dO;
VF.style.top=-Qx - 1+dO;
VF.style.width=Uq+dO;
VF.style.padding=padding+dO;
VF.style.left=JS;
button.appendChild(VF);
VF.onmousedown=Iv;
VF.onclick=Iv;
if (VF.addEventListener)
VF.addEventListener(ps,Iv,false);
VF.onmousewheel=Iv;
};
var Li=lG(1,S0,pX.gF);
var Ek=lG(13,S0,pX.Uw);
var OU=lG(14,S0,pX.tn);
var bR=lG(15,S0,pX.YL);
var my=lG(16);
var Zn=lG(5,S0,pX.lk);
var Gx=lG(7,S0,pX.Np);
var aD=lG(3);
var ER=document.createElement(rh);
var SM=document.createElement(ST);
SM.src=Kq;
ER.appendChild(SM);
lL(my,ER,30,20,120);
var ke=document.createElement(rh);
ke.appendChild(iE);
iE.style.height=Ml;
iE.style.overflow=Ge;
lL(aD,ke,160,0,203);
ke.style.padding=0;
aD.onclick=function (e){var id=Ab.Ld.PV();
if (id !=undefined)
Ab.yN.lH(id);
Iv(e);
return false;
};
left.appendChild(Li);
left.appendChild(Ek);
left.appendChild(OU);
left.appendChild(bR);
left.appendChild(Gx);
left.appendChild(my);
left.appendChild(Zn);
left.appendChild(aD);
Ab.Gv.XF();
}function Bv(){Ab.vj=new vj(g(lf));
Ab.Ld=new Za(g(RD));
var Ew=g(KO);
var ro=g(nP);
var QQ=g(Tz);
var se=S0;
var qX=S0;
Ab.HM=new YE();
Ab.HM.Bp=function (){if (QQ !=S0)
QQ.style.display=xy;
if (Ew !=S0){Ew.style.display=Ar;
if (qX==S0 || !qX.tM())
qX=new vq(function (){if (se==S0){se=document.createElement(rz);
se.appendChild(document.createElement(me));
se.appendChild(document.createTextNode(cR));
Ew.appendChild(se);
}else
se.style.display=Ar;
},5000);
}};
Ab.HM.sS=function (){if (qX !=S0)
qX.uP();
if (se !=S0)
se.style.display=xy;
jI(pX.gF);
Ab.Gv.iS=false;
if (Ew !=S0)
Ew.style.display=xy;
Ab.qP.OV();
g(pO).style.display=Ar;
g(oi).style.display=Ar;
g(Kh).style.display=Ar;
g(jB).style.display=Ar;
document.title=ld;
};
Ab.HM.GM=function (){Ab.pv.lI();
jI(S0);
Ab.Gv.iS=true;
Ab.qP.pB();
g(pO).style.display=xy;
g(oi).style.display=xy;
g(Kh).style.display=xy;
g(jB).style.display=xy;
document.title=rf;
};
Ab.HM.XZ=function (){if (Ew !=S0)
Ew.style.display=xy;
if (ro !=S0)
ro.style.display=Ar;
};
Ab.HM.je=function (){if (QQ !=S0)
QQ.style.display=Ar;
};
Ab.qP=new qP();
g(Nt).onclick=function (){Ab.HM.XK(); };
g(Ct).onclick=function (e){if (Ab.Qh==S0)
return;
var yU=Ab.Qh.ru();
Ab.yN.bM(yU.lat(),yU.lng(),Ab.Qh.SN(),1,0);
};
g(vH).onclick=function (e){if (Ab.Qh==S0)
return;
var yU=Ab.Qh.ru();
Ab.yN.bM(yU.lat(),yU.lng(),Ab.Qh.SN(),0,0);
};
var fF=new SX();
zL.Xo=fF;
fF.Ir(20);
fF.cI(120,6);
fF.style.margin=Qd;
g(Lb).appendChild(fF);
fF.style.VS=jt;
fF.xJ=function (DL){if (Ab.Qh==S0)
return;
DL+=1;
var js=Ab.Qh.qe(400,300);
Ab.Qh.cB(js.lat(),js.lng(),DL);
var yU=Ab.Qh.ru();
var eZ=Ab.Qh.SN();
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
g(wc).onclick=function (e){if (Ab.Qh==S0)
return;
var yU=Ab.Qh.ru();
Ab.yN.bM(yU.lat(),yU.lng(),Ab.Qh.SN(),Ab.Qh.Oe(),1);
};
zL.eu=yL(LG,oD,S0,9);
zL.Ry=yL(Lz,QA,S0,9);
zL.eu.className=CP;
zL.eu.onclick=function (){gp.Ys(1);
};
zL.Ry.onclick=function (){gp.Ys(0);
};
g(Jy).appendChild(zL.eu);
g(Jy).appendChild(zL.Ry);
Ab.zZ=new function (){var Pl=false;
var ME=g(bU);
this.Zk=function (){if (Pl)
return;
g(TG).style.display=xy;
g(yB).style.display=Ar;
if (ME==S0){ME=document.createElement(zi);
ME.setAttribute(pN,bU);
ME.src=Zr;
ME.frameBorder=0;
zL.bd.appendChild(ME);
Ab.qP.ie();
Lc(new Date(),vO);
}else
ME.style.display=Ar;
Pl=true;
};
this.kn=function (){if (!Pl)
return;
g(TG).style.display=Ar;
g(yB).style.display=xy;
ME.style.display=xy;
g(XO).style.display=xy;
if (Ab.Ok==pX.nM)
jI(pX.gF);
gp.Ys(0);
Pl=false;
};
this.yk=function (){return Pl;
};
};
g(hj).onclick=function (){var VE=g(XO);
if (VE.style.display==xy){VE.style.display=Ar;
if (!Ab.zZ.yk())
Ab.yN.lZ();
jI(pX.nM);
}else
VE.style.display=xy;
};
g(Ye).onclick=function (){Ab.Ld.wj();
};
g(ZD).onclick=function (){var VE=g(nT);
if (VE.style.display==xy)
VE.style.display=Ar;
else
VE.style.display=xy;
};
g(Hb).onclick=function (event)
{Rm(); };
g(Ju).onclick=function (event)
{hM(); };
g(iX).onclick=function (event)
{Ab.yN.fU(); };
g(aA).onclick=function (event)
{Ab.yN.sT(); };
g(HX).onclick=function (event)
{Ab.yN.vQ(); };
g(Mg).onclick=function (event)
{Ab.yN.zf(); };
g(Jt).onclick=function (event)
{Ab.yN.BM(); };
var Kl=g(DO);
Kl.appendChild(yc(pX.gF,6,MN));
Kl.appendChild(yc(pX.mH,3,RC));
Kl.appendChild(yc(pX.YL,8,Mm));
Kl.appendChild(yc(pX.Uw,4,Cv));
Kl.appendChild(yc(pX.tn,5,mW));
Kl.appendChild(xw(pX.Np,iV,wT));
Kl.appendChild(xw(pX.lk,aB,Ih));
Kl.appendChild(yc(pX.KP,7,Wc));
g(ht).appendChild(yc(pX.nM,9,Cm));
var HP=g(CQ);
while (HP.firstChild !=S0)
HP.removeChild(HP.firstChild);
for (var DY=0; DY < 3; DY++){var border=document.createElement(rz);
border.className=qV;
if (DY==1){border.className=CP;
gp.uF.width=1+DY * 2;
}var pI=document.createElement(rz);
pI.className=uO;
pI.NX=1+DY * 2;
pI.onclick=function (e){for (var DY=0; DY < HP.childNodes.length; DY++)
HP.childNodes[DY].className=qV;
this.parentNode.className=CP;
gp.uF.width=this.NX;
};
pI.style.backgroundPositionY=(DY * -13)+dO;
pI.style.backgroundPosition=Ng+(DY * -13)+dO;
border.appendChild(pI);
HP.appendChild(border);
}var bl=Array(Dv,VA,sH,VG,rV,uI,Fy,Em);
var pd=g(cH);
var my=g(tZ);
while (pd.firstChild !=S0)
pd.removeChild(pd.firstChild);
pd.appendChild(my);
var gQ=[];
var KH=function (){for (var cS=0; cS < pd.childNodes.length; cS++)
pd.childNodes[cS].className=qV;
};
var bu=function (color){var border=document.createElement(rz);
border.className=qV;
var pI=document.createElement(rz);
pI.className=NH;
pI.style.backgroundColor=NG+color;
pI.wZ=color;
border.onclick=function (e){KH();
this.className=CP;
gp.uF.color=NG+pI.wZ;
};
border.appendChild(pI);
return border;
};
for (var DY=0; DY < bl.length; DY++){var border=bu(bl[DY]);
pd.appendChild(border);
}pd.childNodes[1].className=CP;
gp.uF.color=NG+bl[0];
var eg=g(tZ);
var LF=g(wO);
var NL=100;
var GO={Cj:NL,FR:0 };
var WJ={Cj:(NL * Math.cos(2 * Math.PI / 3)),FR:(NL * Math.sin(2 * Math.PI / 3))};
var ZS={Cj:(NL * Math.cos(2 * 2 * Math.PI / 3)),FR:(NL * Math.sin(2 * 2 * Math.PI / 3))};
LF.onmousemove=function (e){var yU=eC(e,LF);
var x=yU.x - 10;
var y=yU.y - 10;
if (x < 0 || y < 0 || x > 120 || y > 100){if (eg.firstChild.Hf==undefined)
eg.firstChild.style.background=ZH;
else
eg.firstChild.style.background=NG+eg.firstChild.Hf;
eg.firstChild.wZ=undefined;
return true;
}if (x < 100){var RX=y;
var Xk=x * (2 * Math.PI)/ NL;
var x=RX * Math.cos(Xk);
var y=RX * Math.sin(Xk);
var GQ=255 - (255.0 / (2 * NL))* Math.sqrt(Math.pow(GO.Cj - x,2)+Math.pow(GO.FR - y,2));
var jo=255 - (255.0 / (2 * NL))* Math.sqrt(Math.pow(WJ.Cj - x,2)+Math.pow(WJ.FR - y,2));
var dR=255 - (255.0 / (2 * NL))* Math.sqrt(Math.pow(ZS.Cj - x,2)+Math.pow(ZS.FR - y,2));
}else{var GQ=(y * 255.0)/ NL;
var jo=GQ;
var dR=GQ;
}var RX=parseInt(GQ).toString(16);
if (RX.length < 2)
RX=jJ+RX;
var g=parseInt(jo).toString(16);
if (g.length < 2)
g=jJ+g;
var Pb=parseInt(dR).toString(16);
if (Pb.length < 2)
Pb=jJ+Pb;
eg.firstChild.style.background=NG+RX+g+Pb;
eg.firstChild.wZ=RX+g+Pb;
};
LF.onmousedown=function (e){if (eg.firstChild.wZ==undefined)
return;
KH();
eg.className=CP;
if (eg.firstChild.Hf !=S0){var ej=bu(eg.firstChild.Hf);
pd.removeChild(pd.lastChild);
pd.insertBefore(ej,pd.childNodes[1]);
}eg.firstChild.Hf=eg.firstChild.wZ;
gp.uF.color=NG+eg.firstChild.wZ;
};
LF.onmouseout=function (e){if (eg.firstChild.Hf==undefined)
eg.firstChild.style.background=ZH;
else
eg.firstChild.style.background=NG+eg.firstChild.Hf;
};
eg.tv=function (e){if (eg.firstChild.Hf==undefined)
eg.firstChild.style.background=ZH;
else
eg.firstChild.style.background=NG+eg.firstChild.Hf;
};
eg.onmousedown=function (e){KH();
eg.className=CP;
if (eg.firstChild.Hf==undefined)
eg.firstChild.Hf=rV;
gp.uF.color=NG+eg.firstChild.Hf;
};
Ab.Gv.XF();
Ab.Uu=new Lq();
tr.onblur=function (){Ab.Uu.AT();
};
tr.onfocus=function (){Ab.Uu.TW();
};
g(Re).onclick=function (event){zL.WF.style.display=Ar;
zL.sV.style.display=Ar;
g(RM).focus();
};
var ok=function (){zL.WF.style.display=xy;
zL.sV.style.display=xy;
};
var IQ=g(RM);
IQ.onkeydown=function (e){if (!e)var e=tr.event;
if (e.keyCode==13 && this.yj !=ZP){Ab.yN.jQ(this.value);
ok();
}};
var GJ=g(qq).onclick=function (){if (IQ.yj !=ZP){Ab.yN.jQ(IQ.value);
ok();
}};
var lF=g(OS);
lF.parentNode.removeChild(lF);
var JJ=g(qw);
JJ.style.display=Ar;
var Dt=g(Ah);
var rw=g(bW);
var kK=function (){if (Dt.style.display==xy){{Dt.style.display=Ar;
rw.focus();
}}else{Dt.style.display=xy;
Ab.Gv.XF();
}};
JJ.onclick=function (){kK();
};
rw.onfocus=function (event){Ab.Gv.oj=true;
};
rw.onblur=function (event){Ab.Gv.oj=false;
};
var ZT=g(bW);
var cN=g(fL);
cN.onclick=function (e){var Fe=ZT.value;
ZT.value=ZP;
var BT=Yp();
BT.open(Vr,BZ+fZ+qH+DT,true);
BT.setRequestHeader(xE,Nm);
BT.send(Fe);
var qo=g(Sj);
qo.style.display=Ar;
cN.style.display=xy;
ZT.style.display=xy;
setTimeout(function (){Dt.style.display=xy;
qo.style.display=xy;
cN.style.display=Ar;
ZT.style.display=Ar;
},1500);
};
var fX=g(Pd);
var oz=g(YF);
fX.style.display=Ar;
fX.onclick=function (e){if (oz.style.display==xy){oz.style.display=Ar;
}else{oz.style.display=xy;
}};
g(Wr).onclick=ok;
zL.WF.onclick=ok;
}var Ll=false;
function hM(){var WT=g(uq);
if (WT.style.display==xy){WT.style.display=Ar;
if (g(kg).src==ZP)
g(kg).src=xC;
}else
WT.style.display=xy;
}function Rm(){if (!Ll){Lc(new Date(),rq);
Ll=true;
}if (zL.TQ.style.display==xy){zL.TQ.style.display=Ar;
var Xu=GetChannelParams();
g(tX).src=SJ+Xu;
g(Dq).src=xC+Xu;
}else
zL.TQ.style.display=xy;
}function YC(){zL.sW.VP(0,0,0);
Ab.HM=new YE();
var OL=S0;
Ab.HM.sS=function (){OL.style.display=xy;
jI(pX.KP);
};
Ab.HM.GM=function (){OL.style.display=Ar;
};
var dv=g(jY);
var iE=document.createElement(rz);
iE.className=av;
Ab.vj=new vj(dv);
Ab.qP=new qP();
Ab.Ld=new Za(iE);
Ab.EZ=new Nd();
var ev=function (){if (S1)
var WG=document.documentElement.clientHeight;
else
var WG=window.innerHeight;
zL.bd.style.height=(WG - 50)+dO;
zL.qP.style.height=(WG - 527)+dO;
var yU=zL.sW.ru();
var hm=zL.sW.Gc();
if (yU.eI < hm)
zL.sW.SetPosition(yU.x,yU.y,hm);
zL.sW.Th();
};
window.onresize=ev;
ev();
var lG=function (id){var hH=document.createElement(rz);
hH.className=WD;
hH.style.margin=jJ;
var tm=document.createElement(rz);
tm.className=Tj;
tm.style.height=Sl;
tm.style.padding=vJ;
hH.appendChild(tm);
var Qg=document.createElement(rz);
Qg.style.backgroundImage=Bn;
Qg.style.backgroundPositionY=(id * -20)+dO;
Qg.style.backgroundPosition=Ng+(id * -20)+dO;
hH.eE=JO;
hH.Gu=WD;
hH.bX=WD;
Qg.className=QF;
tm.appendChild(Qg);
return hH;
};
var sn=function (Gx){var Qg=document.createElement(rz);
Qg.className=WD;
var hH=document.createElement(rz);
hH.className=Tj;
hH.appendChild(document.createTextNode(Gx));
hH.onselectstart=function (){return false; };
Qg.appendChild(hH);
return Qg;
};
var Ed=0;
var PA=S0;
var AC=function (oP,KD){if (KD){KD.tk=function (){oP.className=oP.eE; };
KD.QO=function (){oP.className=oP.Gu; };
}oP.onclick=function (e){jI(KD);
};
};
var Xu=GetChannelParams();
g(tX).src=SJ+Xu;
g(Dq).src=xC+Xu;
g(UU).onclick=function (){jI(pX.gF);
gp.uF.width=3;
gp.uF.te=1;
};
g(zJ).onclick=function (){jI(pX.gF);
gp.uF.width=30;
gp.uF.te=0.3;
};
g(gx).onclick=function (){jI(pX.lk);
};
var eB=g(Bk);
AC(eB,pX.Np);
Lk.prototype=new RH();
var Ib=new Lk();
g(XY).onclick=function (){jI(Ib); };
var Xl=g(QG);
var dV=document.createElement(rz);
dV.style.display=xy;
var En=function (button,KD){KD.tk=function (){button.className=oJ.eE;
dV.style.display=Ar;
};
KD.QO=function (){button.className=oJ.Gu;
dV.style.display=xy;
};
button.onclick=function (){jI(KD); };
dV.appendChild(button);
};
var oJ=lG(0);
En(oJ,pX.gF);
var Yc=lG(1);
En(Yc,pX.mH);
var EW=lG(4);
En(EW,pX.tn);
var mh=lG(3);
En(mh,pX.Uw);
var lj=lG(2);
En(lj,pX.YL);
var Mi=lG(10);
Mi.style.marginLeft=zS;
dV.appendChild(Mi);
var hb=document.createElement(rz);
var ri=SX(false);
ri.cI(100,20);
ri.Ir(100);
ri.PN(30);
ri.style.marginLeft=zS;
hb.appendChild(document.createTextNode(rD));
hb.appendChild(document.createElement(me));
hb.appendChild(ri);
Xl.appendChild(dV);
var top=g(gA);
var ky=lG(5);
top.appendChild(ky);
AC(ky,pX.KP);
var kl=document.createElement(rz);
kl.style.display=xy;
Xl.appendChild(kl);
var Fd=sn(GU);
Fd.onclick=function (){var Bw=ad.lA(function (Jp){return (Jp.WV !=Ab.co)});
var Pu=1000;
var LM=function (Ns){for (var DY=0; DY < Bw.length; DY++)
if (Bw[DY].Zk==undefined)
{}else
Bw[DY].Zk();
if (Ns > 0)
setTimeout(function (){Ig(Ns - 1); },Pu / 2);
};
var Ig=function (Ns){for (var DY=0; DY < Bw.length; DY++){if (Bw[DY].kn==undefined)
{}else
Bw[DY].kn();
}setTimeout(function (){LM(Ns - 1); },Pu);
};
Ig(1);
};
pX.KP.tk=function (){ky.className=ky.eE;
kl.style.display=Ar;
};
pX.KP.QO=function (){ky.className=ky.Gu;
kl.style.display=xy;
};
var Cd=document.createElement(rz);
Cd.appendChild(document.createTextNode(VL));
Cd.appendChild(document.createElement(me));
Cd.appendChild(document.createTextNode(uk));
Cd.style.fontSize=zS;
Cd.style.display=xy;
Xl.appendChild(Cd);
pX.Dn.tk=function (){Cd.style.display=Ar;
};
pX.Dn.QO=function (){Cd.style.display=xy;
};
var Cb=document.createElement(ST);
Cb.setAttribute(Cx,fJ);
top.appendChild(Cb);
Cb.style.cssFloat=jt;
Cb.style.styleFloat=jt;
Cb.style.marginTop=Zd;
Cb.style.marginLeft=zS;
var rA=SX(false);
rA.cI(100,16);
rA.style.marginLeft=Qd;
rA.style.marginTop=mP;
rA.style.cssFloat=jt;
rA.style.styleFloat=jt;
var tW=50;
var SG=false;
rA.Ir(240 - tW);
rA.PN(100 - tW);
rA.xJ=function (Xk){var yU=zL.sW.ru();
SG=true;
zL.sW.SetPosition(yU.x,yU.y,(Xk+tW)/ 100);
SG=false;
};
top.appendChild(rA);
zL.sW.Ki.addListener(function (){if (SG)
return;
var hm=zL.sW.Gc();
tW=hm * 100;
rA.Ir(240 - tW);
rA.PN(zL.sW.SN()* 100 - tW);
});
var ke=document.createElement(rh);
ke.appendChild(iE);
iE.style.height=SV;
iE.style.overflow=Ge;
ke.style.padding=0;
OL=lG(12);
top.appendChild(OL);
var Dy=g(rd);
var uH=g(vw);
var jW=g(Nr);
var AS=g(UG);
var xr=g(Ck);
var bm=g(fz);
var pF=function (){AS.style.display=xy;
xr.style.display=xy;
bm.style.display=xy;
Dy.className=uB;
uH.className=uB;
jW.className=uB;
};
Dy.onmousedown=function (){pF();
AS.style.display=Ar;
Dy.className=hC;
};
uH.onmousedown=function (){pF();
xr.style.display=Ar;
uH.className=hC;
};
jW.onmousedown=function (){pF();
bm.style.display=Ar;
jW.className=hC;
};
var Oo=sn(yZ);
g(AD).appendChild(Oo);
var dY=sn(LA);
g(AD).appendChild(dY);
var Nj=sn(kc);
g(AD).appendChild(Nj);
var bh=sn(dH);
g(AD).appendChild(bh);
Oo.style.marginTop=mP;
dY.style.marginTop=mP;
Nj.style.marginTop=mP;
bh.style.marginTop=mP;
var zy=function (){nN.NA([Xe,Sx,dm]);
};
var nN=IJ(zy);
g(KK).appendChild(nN);
nN.style.cssFloat=jt;
nN.style.styleFloat=jt;
var Ve=sn(Br);
g(KK).appendChild(Ve);
Ve.style.cssFloat=jt;
Ve.style.styleFloat=jt;
var oH=sn(fM);
oH.cssFloat=jt;
oH.styleFloat=jt;
Fd.cssFloat=jt;
Fd.styleFloat=jt;
g(gw).appendChild(oH);
g(gw).appendChild(Fd);
for (var DY=0; DY <=500; DY+=50){var WW=new zL.sW.Nu(We,1,[new gG(DY,0),new gG(DY,500)]);
var NT=new zL.sW.Nu(We,1,[new gG(0,DY),new gG(500,DY)]);
zL.sW.WK(WW);
zL.sW.WK(NT);
}Ab.Gv.XF();
}function UH(){Ab.HM=new YE();
Ab.Ld=new Za(S0);
Ab.HM.sS=function (){Callbacks.ChangeBG(KL);
};
Ab.vj=new vj(S0);
g(un).onclick=function (e){Callbacks.ChangeBG(KL); };
g(CF).onclick=function (e){Callbacks.ChangeBG(Ji); };
var oq=g(Sd);
var ko=[NO,mg,JQ];
for (var DY=0; DY < ko.length; DY++){var WY=document.createElement(ST);
WY.setAttribute(Cx,pp+ko[DY]);
var ym=function (Hx){return function (e){Callbacks.Stamp(uJ+Hx,50,50); return false; };
};
WY.onmousedown=ym(ko[DY]);
oq.appendChild(WY);
}oq.appendChild(document.createElement(Ft));
oq.appendChild(xw(pX.KP,SK));
oq.appendChild(xw(pX.gF,sg));
oq.appendChild(xw(pX.lk,zA));
oq.appendChild(xw(pX.Np,RE,wT));
var Wv=new SX();
Wv.style.clear=QZ;
Wv.cI(60,14);
Wv.Ir(30);
Wv.PN(14);
Wv.xJ=function (Xk){pX.Np.ge(Xk);
};
oq.appendChild(document.createTextNode(FX));
oq.appendChild(Wv);
}if (!this.JSON){this.JSON={};
}(function(){var Jr= /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
var vC=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
var EL,YS,MS={Yw:mN,xi:pQ,lB:Gr,Xb:kR,Mp:ZY,UV:Ip,He:TV
},mE;
function kG(wX){vC.lastIndex=0;
return vC.test(wX)?
UV+wX.replace(vC,function(bO){var Uj=MS[bO];
return typeof Uj===Nq ? Uj :
aF+(AB+bO.charCodeAt(0).toString(16)).slice(-4);
})+UV :
UV+wX+UV;
}if (typeof JSON.parse !==ye){JSON.parse=function(Gx,an){if (an===ye)
throw as;
var cS;
Gx=String(Gx);
Jr.lastIndex=0;
if (Jr.test(Gx)){Gx=Gx.replace(Jr,function(bO){return aF+(AB+bO.charCodeAt(0).toString(16)).slice(-4);
});
}if (/^[\],:{}\s]*$/.
test(Gx.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,oe).
replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ob).
replace(/(?:^|:|,)(?:\s*\[)+/g,LC))){cS=eval(TD+Gx+eS);
return cS;
}throw new SyntaxError(FT);
};
}}());
var Gv=function (){var BH=this;
this.iS=false;
this.oj=false;
this.bn=[];
this.nD=function (){document.onkeydown=BH.MC;
document.onkeyup=BH.wN;
if (DT==OW)
setTimeout(BH.rP,10);
zL.RO.onkeypress=function (e){if (Ab.Ok !=S0)
if (Ab.Ok.Lp)
Ab.Ok.Lp(zL.RO.value);
return true;
};
zL.RO.onkeyup=function (e){if (Ab.Ok !=S0)
if (Ab.Ok.Lp)
Ab.Ok.Lp(zL.RO.value);
return true;
};
};
this.XF=function (){if (zL.RO !=S0)
zL.RO.focus();
};
this.MC=function (e){if (!e)var e=tr.event;
if (BH.iS)
return true;
BH.bn[e.keyCode]=true;
if (e.ctrlKey || e.altKey){if (!(e.ctrlKey && (e.keyCode==Ha.NW || e.keyCode==Ha.xG)))
return true;
}if (zL.WF !=S0 && zL.WF.style.display==Ar){if (e.keyCode==Ha.kS){zL.WF.style.display=xy;
zL.sV.style.display=xy;
return false;
}return true;
}if ((Ab.qP !=S0 && !Ab.qP.TA.Oa && !BH.oj)|| Ab.qP==S0){if (e.keyCode==Ha.cg && !(Ab.Ok !=S0 && Ab.Ok.Lp))
Ab.qP.Km();
if (e.keyCode==Ha.kS && Ab.Ok.Lp){if (DT==OW)
jI(pX.KP);
else
jI(pX.gF);
BH.XF();
return false;
}else if (Ab.Ok==S0 || Ab.Ok.Lp==undefined ||
(e.keyCode==Ha.rR || e.keyCode==Ha.PY || e.keyCode==Ha.eR || e.keyCode==Ha.Ff)){var gS=0;
var kA=0;
if (e.keyCode==Ha.Hz)
jI(pX.gF);
else if (e.keyCode==Ha.Qn)
jI(pX.Np);
else if (e.keyCode==Ha.xF)
jI(pX.mH);
else if (e.keyCode==Ha.Os)
jI(pX.KP);
else if (e.keyCode==Ha.nz)
jI(pX.YL);
else if (e.keyCode==Ha.ND)
jI(pX.tn);
else if (e.keyCode==Ha.LR)
jI(pX.Uw);
else if (e.keyCode==Ha.ct)
jI(pX.lk);
else if (e.keyCode==Ha.aI)
hM();
else if (e.keyCode==Ha.If)
Ab.Ld.wj();
else if (e.keyCode==Ha.ix)
Ab.qP.kv();
else if (e.keyCode==Ha.NW){var id=Ab.Ld.PV();
if (id !=undefined)
Ab.yN.lH(id);
}else if (e.keyCode==Ha.xG)
{var id=Ab.Ld.LS();
if (id !=undefined)
Ab.yN.lH(id);
}else if (e.keyCode==Ha.KF && DT==OW)
Ab.EZ.mb();
else if (e.keyCode==Ha.ec && DT==OW)
Ab.EZ.gq();
else if (e.keyCode==Ha.Gn && DT==OW)
Ab.EZ.lV();
else if (e.keyCode==Ha.Bl && DT==OW)
Ab.EZ.yD();
else if ((e.keyCode >=48 && e.keyCode <=57)|| e.keyCode==220){var Wz=g(kg);
if (Wz !=S0 && Wz.style.display !=xy && Wz.contentWindow.BrowseHotkeyHandler !=S0)
Wz.contentWindow.BrowseHotkeyHandler(e.keyCode);
}else if (e.keyCode==107 || e.keyCode==187)
pX.nM.My();
else if (e.keyCode==109 || e.keyCode==189)
pX.nM.eh();
else{if (Ab.Ok !=S0)
return Ab.Ok.cz(e.keyCode);
return true;
}BH.bn[e.keyCode]=true;
return false;
}}else if (e.keyCode==Ha.cg && Ab.qP.TA.Oa){Ab.qP.CE();
return false;
}else if (e.keyCode==Ha.kS){Ab.qP.TA.value=ZP;
BH.XF();
return false;
}return true;
};
this.wN=function (e){if (!e)var e=tr.event;
BH.bn[e.keyCode]=false;
if (e.keyCode==17 || e.keyCode==18)
return true;
};
this.rP=function (){var gS=0;
var kA=0;
if (BH.bn[Ha.rR])
gS--;
if (BH.bn[Ha.eR])
kA--;
if (BH.bn[Ha.Ff])
kA++;
if (BH.bn[Ha.PY])
gS++;
if (gS !=0 || kA !=0)
zL.sW.zx(gS,kA);
var xQ=0;
if (BH.bn[Ha.Yv] || BH.bn[187])
xQ++;
if (BH.bn[Ha.HE] || BH.bn[189])
xQ--;
if (xQ !=0){var yU=gp.qE.ru();
gp.qE.VP((yU.Uq * yU.eI)/ 2,(yU.WG * yU.eI)/ 2,xQ * 2);
}setTimeout(BH.rP,10);
};
};
var Ha={vz:3,Uz:6,zP:8,Kg:9,Bc:12,cg:13,NV:14,ul:16,of:17,EH:18,DF:19,fo:20,kS:27,rG:32,Bl:33,Gn:34,ec:35,KF:36,rR:37,eR:38,PY:39,Ff:40,xu:44,YB:45,rS:46,WU:48,oA:49,is:50,VX:51,pD:52,nq:53,pn:54,Lf:55,RP:56,VQ:57,Nl:59,GG:61,nz:65,aI:66,LR:67,Ke:68,ct:69,fi:70,rK:71,ix:72,fe:73,Vb:74,Sg:75,xF:76,Os:77,CV:78,zn:79,Hz:80,dC:81,ND:82,Dd:83,Qn:84,If:85,rY:86,Fk:87,Iq:88,xG:89,NW:90,aM:93,Rq:96,XM:97,gB:98,US:99,eW:100,Lx:101,tj:102,om:103,si:104,sU:105,DQ:106,Yv:107,dg:108,HE:109,HV:110,tC:111,jz:112,mR:113,rs:114,jM:115,rg:116,Vn:117,NR:118,UI:119,Hm:120,zs:121,Um:122,CW:123,iZ:124,Dl:125,SO:126,Fg:127,ZU:128,Xf:129,xx:130,jc:131,ra:132,Jf:133,rU:134,jh:135,Kz:144,Xq:145,Mq:188,ZG:190,TN:191,Pt:192,Ag:219,ID:220,nY:221,Ev:222,iA:224
};
var ns=false;
var fK=false;
var IP=0;
var DE=0;
var ju=-1;
var cx=0;
var gN;
var dU;
function Sf(){document.body.onmousedown=FF;
document.body.onmouseup=yT;
document.body.onmousemove=AM;
if (window.addEventListener)
window.addEventListener(ps,jZ,false);
document.onmousewheel=jZ;
if (S1){gN=document.body.scrollLeft+document.documentElement.scrollLeft - XX(zL.bd)- 3;
dU=document.body.scrollTop+document.documentElement.scrollTop - fb(zL.bd)- 3;
}else{gN=XX(zL.bd);
dU=fb(zL.bd);
}}function ic(){document.body.onmousedown=S0;
document.body.onmouseup=S0;
document.body.onmousemove=S0;
}function jZ(event){if (!event)
var event=window.event;
if (!Ab.IU){if (zL.WF.style.display==Ar)
return true;
IP=eC(event,zL.fn).x;
DE=eC(event,zL.fn).y;
}if (!Ab.IU && IP > 0 && IP < zL.fn.offsetWidth && DE > 0 && DE < zL.fn.offsetHeight){var VF=zL.qP;
if (IP > VF.offsetLeft && IP < VF.offsetLeft+VF.offsetWidth && DE > VF.offsetTop && DE < VF.offsetTop+VF.offsetHeight){return true;
}}else if (ju < 0 || ju >=zL.bd.clientWidth || cx < 0 || cx >=zL.bd.clientHeight){return true;
}else{var delta=0;
if (event.wheelDelta){delta=event.wheelDelta / 120;
if (window.opera)
delta=delta;
} else if (event.detail){delta=-event.detail / 3;
}if (ju==-1){var yU=Bd(event);
ju=yU.x;
cx=yU.y;
}if (DT==OW)
gp.qE.VP(ju,cx,delta);
else
if (delta && Ab.Ok !=S0)
Ab.Ok.bt(ju,cx,delta);
event.returnValue=false;
if (!S1)
event.preventDefault();
return false;
}}function AM(e){if (!Ab.IU)
Ab.Uu.lg();
if (!e)
var e=window.event;
if (fK){if (S1){zL.fn.style.left=parseInt(e.clientX - IP);
zL.fn.style.top=parseInt(e.clientY - DE);
}else{zL.fn.style.left=(e.pageX - IP)+dO;
zL.fn.style.top=(e.pageY - DE)+dO;
}}else if (!fK && Ab.Ok !=S0){var yU=Bd(e);
ju=yU.x;
cx=yU.y;
Ab.Ok.yg(ju,cx);
}}function FF(e){var Xi=e || event;
var button;
if (Xi.which !=undefined){button=Xi.which;
if (button !=1)
return;
}else if (Xi.button !=undefined){button=Xi.button;
if (S1){if (button !=1)
return;
}else
if (button !=0)
return;
}else
return;
if (ju==-1){var yU=Bd(Xi);
ju=yU.x;
cx=yU.y;
}if (!Ab.IU){if (zL.WF.style.display==Ar)
return true;
IP=eC(e,zL.fn).x;
DE=eC(e,zL.fn).y;
}if (!Ab.IU && IP > 0 && IP < zL.fn.offsetWidth && DE > 0 && DE < zL.fn.offsetHeight){var VF=zL.qP;
if (IP > VF.offsetLeft && IP < VF.offsetLeft+VF.offsetWidth && DE > VF.offsetTop && DE < VF.offsetTop+VF.offsetHeight){return true;
}fK=true;
}else if (ju < 0 || ju >=zL.bd.clientWidth || cx < 0 || cx >=zL.bd.clientHeight){return true;
}else{fK=false;
ns=true;
if (Ab.Ok !=S0)
Ab.Ok.ud(ju,cx);
return false;
}}function yT(e){fK=false;
if (ns){ns=false;
if (Ab.Ok !=S0)
Ab.Ok.Bf(ju,cx);
return false;
}}function eC(event,rQ){var yU={};
if (!event){var event=tr.event;
yU.x=parseInt(event.clientX)+document.body.scrollLeft+document.documentElement.scrollLeft - XX(rQ)- 3;
yU.y=parseInt(event.clientY)+document.body.scrollTop+document.documentElement.scrollTop - fb(rQ)- 3;
}else{yU.x=event.pageX - XX(rQ);
yU.y=event.pageY - fb(rQ);
}return yU;
}function Bd(event){var yU;
if (S1){var event=tr.event;
yU={x:parseInt(event.clientX)+gN,y:parseInt(event.clientY)+dU
};
}else{yU={x:event.pageX - gN,y:event.pageY - dU
};
}return yU;
}var Lq=function(){var Yi=true;
var Bz=false;
var BH=this;
var ia=function(){if (Bz){if (document.title.charAt(0)==JV)
document.title=iu;
else
document.title=dJ;
setTimeout(ia,800);
}};
this.TW=function(){if (!S1)
Yi=true;
};
this.AT=function(){Yi=false;
BH.lg();
};
this.Yk=function(){if (Yi)
return;
var OR=Bz;
Bz=true;
if (!OR)
ia();
};
this.lg=function(){if (Bz)
document.title=GI;
Bz=false;
};
};
var loadGMap=function(sf){canvas=new UW(sf);
if (window.parent !=S0 && window.parent.Callbacks !=S0 && window.parent.Callbacks.GMapReady !=S0)
window.parent.Callbacks.GMapReady();
var KA=window.parent;
var Wb=false;
var xb=new GIcon(G_DEFAULT_ICON);
xb.image=cw;
xb.iconSize=new GSize(50,50);
xb.shadowSize=new GSize(0,0);
var fa=new GMarker(new google.maps.LatLng(15,50),{draggable:true,icon:xb });
GEvent.addListener(fa,JM,function(tR){Wb=true;
var AE=canvas.dl(tR);
KA.Ab.Ok.ud(AE.x,AE.y);
});
GEvent.addListener(fa,TP,function(tR){Wb=false;
var AE=canvas.dl(tR);
KA.Ab.Ok.Bf(AE.x,AE.y);
});
document.body.onmousemove=function(e){if (!e)
e=window.event;
if (!e.pageX){var x=e.clientX;
var y=e.clientY;
}else{var x=e.pageX;
var y=e.pageY;
}if (!Wb)
fa.setLatLng(canvas.qe(x,y+1));
KA.Ab.Ok.yg(x,y);
};
canvas.jf().addOverlay(fa);
return canvas;
};
var UW=function (parent){var Tr=new google.maps.Map2(parent);
Tr.disableDragging();
this.jy=1;
var Vy=this;
this.WK=function (hK){var aw=function (){Tr.addOverlay(hK.tb());
hK.parent=Vy;
};
aw();
};
this.Ij=function (hK){Tr.removeOverlay(hK.tb());
hK.parent=S0;
};
this.SN=function (){return Tr.getZoom();
};
this.ru=function (){return Tr.getCenter();
};
this.SetPosition=function (x,y,eZ){Tr.setCenter(new google.maps.LatLng(x,y),eZ);
};
this.cB=function (lat,lng,eZ){if (eZ !=Tr.getZoom())
Tr.setCenter(new google.maps.LatLng(lat,lng),eZ);
else
Tr.panTo(new google.maps.LatLng(lat,lng));
};
this.zx=function (gS,kA){var Uj=Tr.getCenter();
var KW=G_NORMAL_MAP.getProjection();
var hw=KW.fromLatLngToPixel(Uj,Tr.getZoom());
hw.x -=gS;
hw.y -=kA;
var MI=KW.fromPixelToLatLng(hw,Tr.getZoom());
return MI;
};
this.Tf=function (Xc){if (Xc==Tr.getCurrentMapType())
return;
if (Xc==0)
Tr.setMapType(G_NORMAL_MAP);
else if (Xc==1)
Tr.setMapType(G_SATELLITE_MAP);
};
this.Oe=function (){var Xc=Tr.getCurrentMapType();
if (Xc==G_NORMAL_MAP)
return 0;
else if (Xc==G_SATELLITE_MAP)
return 1;
};
this.qe=function (x,y){return Tr.fromContainerPixelToLatLng(new GPoint(x,y));
};
this.dl=function (yI){AE=Tr.fromLatLngToContainerPixel(yI);
return{x:AE.x,y:AE.y };
};
this.Gy=function (js){Tr.zoomIn(js,false,true);
};
this.GF=function (js){Tr.zoomOut(js,true);
};
this.jf=function (){return Tr;
};
this.Rw=function (lng,lat){var IN;
var gE;
if (!lat){gE=lng.y;
IN=lng.x;
}else{gE=lat;
IN=lng;
}return new google.maps.LatLng(gE,IN);
};
this.YZ=function (yI,eZ,Uq,WG){var HI=new GMercatorProjection(40);
var aj=HI.fromLatLngToPixel(yI,eZ);
var points=[];
points.push(HI.fromPixelToLatLng(new GPoint(aj.x - Uq / 2,aj.y - WG / 2),eZ));
points.push(HI.fromPixelToLatLng(new GPoint(aj.x+Uq / 2,aj.y - WG / 2),eZ));
points.push(HI.fromPixelToLatLng(new GPoint(aj.x+Uq / 2,aj.y+WG / 2),eZ));
points.push(HI.fromPixelToLatLng(new GPoint(aj.x - Uq / 2,aj.y+WG / 2),eZ));
points.push(HI.fromPixelToLatLng(new GPoint(aj.x - Uq / 2,aj.y - WG / 2),eZ));
return points;
};
this.Nu=function (Uj,Uq,da){var BH=this;
var hz=[-1,-1];
var x=da[0].x;
var y=da[0].y;
var yJ=x+FA+y;
for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
hz=[x,y];
yJ+=FA+x+FA+y;
}var ku=new GPolyline(da,Uj,Uq);
this.color=Uj;
this.width=Uq;
this.XT=yJ;
var BH=this;
var Gi=da;
this.tq=function (AE){if (hz[0] !=x || hz[1] !=y){ku.insertVertex(0,AE);
}Gi.push(AE);
BH.XT+=FA+AE.x+FA+AE.y;
};
this.kY=function (da){Tr.removeOverlay(ku);
ku=new GPolyline(da,BH.color,BH.width);
Tr.addOverlay(ku);
var x=da[0].x;
var y=da[0].y;
var yJ=x+FA+y;
for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
yJ+=FA+x+FA+y;
}Gi=da;
BH.XT=yJ;
};
this.tb=function (){return ku;
};
this.Zz=function (){return{x:BH.fC.hr,y:BH.fC.bo,Uq:(BH.fC.GZ - BH.fC.hr),WG:(BH.fC.kU - BH.fC.bo)
};
};
this.xd=function (){return Gi;
var lr=[];
for (var DY=0; DY < Gi.length; DY++){lr.push(BH.parent.dl(Gi[DY]));
}return lr;
};
};
this.AY=function (){this.EP=function (){};
this.SetPosition=function (x,y){};
this.KV=function (RX){};
this.kn=function (){};
this.Zk=function (){};
this.ig=function (Uj){};
this.Fi=function (Jp){};
};
this.aV=function (Hx,Uq,WG){};
this.Ba=function (WY,Uq,WG,Oq){};
this.wR=function (WY,x,y){};
};
var Yr=iO;
var ZV=function (parent){this.jy=0;
var Vy=this;
var canvas=document.createElementNS(Yr,OK);
canvas.setAttribute(ts,xU);
var eZ=1;
if (DT==OW){var MG=500;
var Pz=500;
var aQ=1000;
var Af={hr:-1000,GZ:1000,bo:-1000,kU:1000 };
}else{var MG=0;
var Pz=0;
var aQ=0;
var Af={hr:0,GZ:800,bo:0,kU:600 };
}var kJ=0;
var IZ=document.createElement(rz);
IZ.setAttribute(ts,xU);
IZ.style.sX=-5;
IZ.style.background=fg;
parent.appendChild(canvas);
if (DT==OW)
parent.appendChild(IZ);
var g=document.createElementNS(Yr,JF);
canvas.appendChild(g);
var uu=document.createElementNS(Yr,JF);
canvas.appendChild(uu);
this.Ki=new NJ();
ZV.prototype.SN=function (){return eZ;
};
ZV.prototype.Gc=function (){var x=parent.clientWidth / (Af.GZ - Af.hr+aQ);
var y=parent.clientHeight / (Af.kU - Af.bo+aQ);
return Math.min(x,y);
};
ZV.prototype.VP=function (x,y,gn){var Wl=1+gn / 10;
var hQ=eZ * Wl;
if (hQ > 2.4)
hQ=2.4;
if (Wl < 1){var hm=Vy.Gc();
if (hQ < hm)
hQ=hm;
}var Cu=eZ;
eZ=hQ;
var Sw=(x+parent.scrollLeft)/ Cu * eZ - x;
var RV=(y+parent.scrollTop)/ Cu * eZ - y;
IZ.style.display=Ar;
IZ.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
IZ.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
canvas.style.display=xy;
canvas.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
canvas.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
parent.scrollLeft=Sw;
parent.scrollTop=RV;
canvas.style.display=Ar;
IZ.style.display=xy;
g.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
uu.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
Vy.Th();
};
ZV.prototype.Th=function (){Vy.Ki.iv();
var HD=g.firstChild;
while (HD !=S0){if (HD.Gd)
if (HD.Gd.um)
HD.Gd.um(eZ);
HD=HD.nextSibling;
}};
ZV.prototype.SetPosition=function (x,y,hQ){var SI=false;
if (eZ / hQ > 1.01 || eZ / hQ < 0.99)
SI=true;
var Cu=eZ;
eZ=hQ;
if (SI){IZ.style.display=Ar;
IZ.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
IZ.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
canvas.style.display=xy;
canvas.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
canvas.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
}parent.scrollLeft=x * eZ - parent.clientWidth / 2+MG * eZ;
parent.scrollTop=y * eZ - parent.clientHeight / 2+Pz * eZ;
if (SI){canvas.style.display=Ar;
IZ.style.display=xy;
g.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
uu.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
}Vy.Th();
};
ZV.prototype.ru=function (){return{x:(parent.scrollLeft+parent.clientWidth / 2 - MG * eZ)/ eZ,y:(parent.scrollTop+parent.clientHeight / 2 - Pz * eZ)/ eZ,eI:eZ,Uq:parent.clientWidth / eZ,WG:parent.clientHeight / eZ
};
};
ZV.prototype.sc=function (Uq,WG){var lq=parent.clientWidth / Uq;
var Lu=parent.clientHeight / WG;
return Math.min(lq,Lu);
};
ZV.prototype.UZ=function (hK){if (hK.fC !=S0){Af.hr=Math.min(Af.hr,hK.fC.hr);
Af.GZ=Math.max(Af.GZ,hK.fC.GZ);
Af.bo=Math.min(Af.bo,hK.fC.bo);
Af.kU=Math.max(Af.kU,hK.fC.kU);
canvas.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
canvas.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
var GN=MG;
MG=-Af.hr+aQ / 2;
parent.scrollLeft+=(MG - GN)* eZ;
var dn=Pz;
Pz=-Af.bo+aQ / 2;
parent.scrollTop+=(Pz - dn)* eZ;
g.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
uu.setAttribute(Gs,Wk+eZ+HC+MG+FA+Pz+Dk);
}};
ZV.prototype.zx=function (gS,kA){parent.scrollLeft+=gS * 20;
parent.scrollTop+=kA * 20;
};
ZV.prototype.WK=function (hK){hK.Dr().Gd=hK;
g.appendChild(hK.Dr());
hK.parent=this;
};
ZV.prototype.mQ=function (hK){hK.Dr().Gd=hK;
uu.appendChild(hK.Dr());
hK.parent=this;
};
ZV.prototype.Ij=function (hK){var Jp=hK.Dr();
if (Jp.parentNode==g)
g.removeChild(Jp);
hK.parent=S0;
};
ZV.prototype.qe=function (x,y){x+=parent.scrollLeft;
y+=parent.scrollTop;
x /=eZ;
y /=eZ;
x -=MG;
y -=Pz;
return{x:x,y:y };
};
ZV.prototype.dl=function (AE){var x=(MG+AE.x)* eZ - parent.scrollLeft;
var y=(Pz+AE.y)* eZ - parent.scrollTop;
return{x:x,y:y };
};
ZV.prototype.Rw=function (x,y){if (y)
return{x:x,y:y };
else
return{x:x.x,y:x.y };
};
var An=new function (){this.Zk=function (){this.Dr().style.display=Ar;
};
this.kn=function (){this.Dr().style.display=xy;
};
};
ZV.prototype.Nu=function (Uj,Uq,da){var BH=this;
var ku=document.createElementNS(Yr,wx);
var x=da[0].x;
var y=da[0].y;
var yJ=x+FA+y;
this.fC={hr:x,GZ:x,bo:y,kU:y };
var hz=[x,y];
if (da.length < 2){}else{for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
var margin=2;
BH.fC.hr=Math.min(BH.fC.hr - margin,x - margin);
BH.fC.GZ=Math.max(BH.fC.GZ+margin,x+margin);
BH.fC.bo=Math.min(BH.fC.bo - margin,y - margin);
BH.fC.kU=Math.max(BH.fC.kU+margin,y+margin);
yJ+=FA+x+FA+y;
}hz=[x,y];
}ku.setAttribute(Xj,yJ);
ku.style.setProperty(zt,xy,ZP);
ku.style.setProperty(oS,Uj,ZP);
ku.style.setProperty(Xh,Uq,ZP);
ku.style.setProperty(qK,jm,ZP);
ku.style.setProperty(ob,jm,ZP);
this.color=Uj;
this.width=Uq;
this.XT=yJ;
this.te=1;
this.Dr=function (){return ku;
};
this.tq=function (AE){if (hz[0] !=AE.x || hz[1] !=AE.y){BH.XT+=FA+AE.x+FA+AE.y;
ku.setAttribute(Vv,BH.XT);
hz=[AE.x,AE.y];
var margin=2;
BH.fC.hr=Math.min(BH.fC.hr - margin,AE.x - margin);
BH.fC.GZ=Math.max(BH.fC.GZ+margin,AE.x+margin);
BH.fC.bo=Math.min(BH.fC.bo - margin,AE.y - margin);
BH.fC.kU=Math.max(BH.fC.kU+margin,AE.y+margin);
}};
this.kY=function (da){if (da.length < 2){}else{var x=da[0].x;
var y=da[0].y;
var yJ=x+FA+y;
BH.fC={hr:x,GZ:x,bo:y,kU:y };
for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
var margin=2;
BH.fC.hr=Math.min(BH.fC.hr - margin,x - margin);
BH.fC.GZ=Math.max(BH.fC.GZ+margin,x+margin);
BH.fC.bo=Math.min(BH.fC.bo - margin,y - margin);
BH.fC.kU=Math.max(BH.fC.kU+margin,y+margin);
yJ+=FA+x+FA+y;
}hz=[x,y];
ku.setAttribute(Xj,yJ);
BH.XT=yJ;
}};
this.ig=function (Uj){BH.color=Uj;
ku.style.setProperty(zt,xy,ZP);
ku.style.setProperty(oS,Uj,ZP);
ku.style.setProperty(Xh,BH.width,ZP);
};
this.Cf=function (Uq){BH.width=Uq;
ku.style.setProperty(zt,xy,ZP);
ku.style.setProperty(oS,BH.color,ZP);
ku.style.setProperty(Xh,BH.width,ZP);
};
this.xd=function (){var du=BH.XT;
var IC=du;
var Bg=IC.split(FA);
var Gi=[];
for (var DY=0; DY < Bg.length; DY+=2){var CT=parseFloat(Bg[DY],10);
var Iw=parseFloat(Bg[DY+1],10);
Gi.push(new gG(CT,Iw));
}return Gi;
};
this.Zz=function (){return{x:BH.fC.hr,y:BH.fC.bo,Uq:(BH.fC.GZ - BH.fC.hr),WG:(BH.fC.kU - BH.fC.bo)
};
};
this.zQ=function (){var iw=BH.Zz();
return new sK(iw.x,iw.y,iw.Uq,iw.WG,0);
};
this.Fi=function (Jp){BH.te=Jp;
ku.setAttribute(HS,Jp);
};
this.OE=function (){return wo };
};
ZV.prototype.Nu.prototype=An;
ZV.prototype.AY=function (){var hW=document.createElementNS(Yr,Gt);
hW.setAttribute(oS,IL);
hW.setAttribute(Xh,Qd);
hW.setAttribute(zt,OD);
this.Dr=function (){return hW;
};
this.SetPosition=function (x,y){hW.setAttribute(pZ,x);
hW.setAttribute(KZ,y);
};
this.KV=function (RX){hW.setAttribute(Rj,RX);
};
this.ig=function (Uj){hW.setAttribute(zt,Uj);
};
this.Fi=function (Jp){hW.setAttribute(HS,Jp);
};
this.OE=function (){return zc };
};
ZV.prototype.AY.prototype=An;
ZV.prototype.Image=function (Hx,Uq,WG,MZ){if (MZ==undefined)
MZ=true;
var WY=document.createElementNS(Yr,lb);
this.Sy=Hx;
this.Lw=parseInt(Uq);
this.bT=parseInt(WG);
this.JD=parseInt(Uq);
this.uV=parseInt(WG);
this.dI=parseInt(0);
this.fG=parseInt(0);
this.bi=parseInt(0);
this.zN=Uq / WG;
var xs=1;
this.lW=[new gG(0,0),new gG(0,1),new gG(1,1),new gG(1,0)];
WY.setAttribute(qT,this.JD+dO);
WY.setAttribute(Dw,this.uV+dO);
WY.setAttribute(Ay,xy);
WY.setAttributeNS(kk,QP,Hx);
var BH=this;
this.oO=new NJ();
this.Dr=function (){return WY;
};
this.KV=function (Uq,WG,Oq){BH.Lw=(Uq);
BH.bT=(WG);
xs=Uq / BH.JD;
BH.bi=(Oq);
WY.setAttribute(Gs,xm+BH.dI+FA+BH.fG+bA+uG+BH.bi+tE+Wk+BH.Lw / BH.JD+FA+BH.bT / BH.uV+Dk);
BH.oO.iv();
BH.um(eZ);
};
this.SetPosition=function (x,y){BH.dI=(x);
BH.fG=(y);
WY.setAttribute(Gs,xm+BH.dI+FA+BH.fG+bA+uG+BH.bi+tE+Wk+BH.Lw / BH.JD+FA+BH.bT / BH.uV+Dk);
BH.oO.iv();
};
this.Ga=function (){return BH.bi;
};
this.zQ=function (){return new sK(BH.dI,BH.fG,BH.Lw,BH.bT,BH.bi * Math.PI / 180);
};
this.OE=function (){return nf };
var jd=S0;
this.um=function (eI){if (DT !=OW || !MZ)
return;
var Rk;
var zY=Hx.substr(Hx.length - 3,3);
var ma=eI * xs;
if (ma < 0.1)
Rk=Hx+xT+zY;
else if (ma < 0.25)
Rk=Hx+Ea+zY;
else if (ma < 0.5)
Rk=Hx+uE+zY;
else if (ma < 0.75)
Rk=Hx+Vl+zY;
else
Rk=Hx;
if (Rk !=jd){jd=Rk;
WY.setAttributeNS(kk,QP,Rk);
}};
};
ZV.prototype.Image.prototype=An;
ZV.prototype.os=function (Uq,WG,BQ,zG,HK){var BH=this;
var bD=document.createElementNS(Yr,dD);
this.dI=0;
this.fG=0;
this.Lw=Uq;
this.bT=WG;
this.oO=new NJ();
bD.setAttribute(qT,BH.Lw);
bD.setAttribute(Dw,BH.bT);
bD.setAttribute(Xs,cO+zG+Fs+HK+uD+BQ+Yy);
this.Pv=function (zG){bD.setAttribute(Xs,cO+zG+Fs+HK+uD+BQ+Yy);
};
this.KV=function (Uq,WG){BH.Lw=(Uq);
BH.bT=(WG);
bD.setAttribute(qT,Uq);
bD.setAttribute(Dw,WG);
BH.oO.iv();
};
this.SetPosition=function (x,y){BH.dI=x;
BH.fG=y;
bD.setAttribute(Gs,xm+BH.dI+FA+BH.fG+Dk);
BH.oO.iv();
};
this.zQ=function (){return new sK(BH.dI,BH.fG,BH.Lw,BH.bT,0);
};
this.Dr=function (){return bD;
};
};
ZV.prototype.os.prototype=An;
ZV.prototype.Np=function (Gx,x,y,Uj,ma){var BH=this;
var hx=document.createElementNS(Yr,kB);
hx.onselectstart=function (){return false; };
this.Gx=Gx;
hx.setAttribute(Zo,ma);
hx.setAttribute(zt,Uj);
hx.setAttribute(Lm,ma);
this.dI=x;
this.fG=y;
this.Lw=50;
var HR=0;
var aG=ma;
hx.setAttribute(Gs,xm+BH.dI+FA+BH.fG+Dk);
this.Dr=function (){return hx;
};
this.SetPosition=function (x,y){BH.dI=parseFloat(x);
BH.fG=parseFloat(y);
hx.setAttribute(Gs,xm+BH.dI+FA+BH.fG+Dk);
};
this.KV=function (WG){aG=WG;
hx.setAttribute(Lm,WG);
};
this.QY=function (Gx){while (hx.firstChild !=S0)
hx.removeChild(hx.firstChild);
if (Gx !=ZP){var Eh=Gx.split(wf);
for (var DY=0; DY < Eh.length; DY++){var vp=document.createElementNS(Yr,Sr);
vp.setAttribute(sv,0);
if (DY !=0)
vp.setAttribute(jT,yH);
vp.style.position=fp;
var wB=Eh[DY];
if (wB.length==0)
wB=to;
vp.appendChild(document.createTextNode(wB));
hx.appendChild(vp);
}HR=Eh.length;
}hx.setAttribute(Gs,xm+BH.dI+FA+BH.fG+Dk);
};
this.ig=function (Uj){hx.setAttribute(zt,Uj);
};
this.zQ=function (){BH.Lw=0;
var HD=hx.firstChild;
BH.Lw=5;
while (HD){try{var eU=HD;
HD=HD.nextSibling;
var Uq=eU.getComputedTextLength();
if (Uq==0)
Uq=eU.offsetWidth;
if (Uq !=undefined)
BH.Lw=Math.max(BH.Lw,Uq);
}catch (e){}}var WG=Math.max(aG * HR,5);
return new sK(BH.dI,BH.fG,BH.Lw,WG,0);
};
this.QY(Gx);
this.OE=function (){return Ch };
};
ZV.prototype.Np.prototype=An;
ZV.prototype.ON=function (){var BH=this;
var af=document.createElementNS(Yr,JF);
var ve=[];
var x,y;
var eF=1;
var fC={hr:Number.Hn,GZ:Number.Jj,bo:Number.Hn,kU:Number.Jj };
this.oO=new NJ();
this.WK=function (XV){af.appendChild(XV.Dr());
ve.push(XV);
if (XV.oO)
XV.oO.addListener(BH.fD);
try{}catch (e){}};
this.Ij=function (XV){if (XV.Dr().parentNode==af)
af.removeChild(XV.Dr());
for (var DY=0; DY < ve.length; DY++){if (ve[DY]==XV){ve.splice(DY,1);
break;
}}if (XV.oO)
XV.oO.gt(BH.fD);
BH.fD();
};
this.fD=function (){fC={hr:Number.Hn,GZ:Number.Jj,bo:Number.Hn,kU:Number.Jj };
for (var DY=0; DY < ve.length; DY++){var Uj=ve[DY];
}};
this.Dr=function (){return af;
};
this.Sz=function (ma){eF=ma;
af.setAttribute(Gs,xm+x+FA+y+Oz+eF+Dk);
};
this.SetPosition=function (vB,wP){x=vB;
y=wP;
af.setAttribute(Gs,xm+x+FA+y+Oz+eF+Dk);
BH.oO.iv();
};
this.um=function (eI){for (var DY=0; DY < ve.length; DY++)
if (ve[DY].um)
ve[DY].um(eI);
};
this.OE=function (){return De };
};
ZV.prototype.ON.prototype=An;
ZV.prototype.Lj=function (){var sf=document.createElement(rz);
var OU=new ZV.prototype.os(400,500,3,ys,lM);
this.zz=new NJ();
this.SetPosition=function (x,y){sf.style.left=x+MG+dO;
sf.style.top=y+Pz+dO;
};
};
};
var kp=function (parent){this.jy=0;
var Vy=this;
parent.onselectstart=function (){return false; };
var eZ=1;
if (DT==OW){var MG=500;
var Pz=500;
var aQ=1000;
var Af={hr:-1000,GZ:1000,bo:-1000,kU:1000 };
}else{var MG=0;
var Pz=0;
var aQ=0;
var Af={hr:0,GZ:800,bo:0,kU:600 };
}var kJ=0;
var g=document.createElement(IR);
g.setAttribute(Kd,Kn);
g.setAttribute(PX,SS);
g.className=xU;
parent.appendChild(g);
var uu=document.createElement(IR);
uu.setAttribute(Kd,Kn);
uu.setAttribute(PX,SS);
uu.className=xU;
uu.style.background=OH;
parent.appendChild(uu);
var cd=document.createElement(Jd);
var MX=document.createElement(Jd);
var WX=document.createElement(Jd);
var ax=document.createElement(Jd);
cd.setAttribute(dh,fc);
MX.setAttribute(dh,fc);
WX.setAttribute(dh,fc);
ax.setAttribute(dh,fc);
g.appendChild(cd);
g.appendChild(MX);
g.appendChild(WX);
g.appendChild(ax);
var qZ=document.createElement(Jd);
var UL=document.createElement(Jd);
var vx=document.createElement(Jd);
var Nn=document.createElement(Jd);
qZ.setAttribute(dh,fc);
UL.setAttribute(dh,fc);
vx.setAttribute(dh,fc);
Nn.setAttribute(dh,fc);
uu.appendChild(qZ);
uu.appendChild(UL);
uu.appendChild(vx);
uu.appendChild(Nn);
if (DT !=OW){cd.points.value=(Af.hr - aQ)+FA+(Af.bo - aQ)+FA+(Af.hr - aQ)+FA+(Af.bo - aQ);
MX.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ);
WX.points.value=(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ);
ax.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ);
qZ.points.value=(Af.hr - aQ)+FA+(Af.bo - aQ)+FA+(Af.hr - aQ)+FA+(Af.bo - aQ);
UL.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ);
vx.points.value=(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ);
Nn.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ);
}this.Ki=new NJ();
kp.prototype.SN=function (){return eZ;
};
kp.prototype.Gc=function (){var x=parent.clientWidth / (Af.GZ - Af.hr+aQ);
var y=parent.clientHeight / (Af.kU - Af.bo+aQ);
return Math.min(x,y);
};
kp.prototype.VP=function (x,y,gn){var Wl=1+gn / 5;
var hQ=eZ * Wl;
if (hQ > 2.4)
hQ=2.4;
if (Wl < 1){var hm=Vy.Gc();
if (hQ < hm)
hQ=hm;
}var Cu=eZ;
eZ=hQ;
var Sw=(x+parent.scrollLeft)/ Cu * eZ - x;
var RV=(y+parent.scrollTop)/ Cu * eZ - y;
g.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
g.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
uu.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
uu.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
parent.scrollLeft=Sw;
parent.scrollTop=RV;
Vy.Th();
};
kp.prototype.Th=function (){Vy.Ki.iv();
var HD=g.firstChild;
while (HD !=S0){if (HD.Gd)
if (HD.Gd.um)
HD.Gd.um(eZ);
HD=HD.nextSibling;
}var HD=uu.firstChild;
while (HD !=S0){if (HD.Gd)
if (HD.Gd.um)
HD.Gd.um(eZ);
HD=HD.nextSibling;
}};
kp.prototype.SetPosition=function (x,y,hQ){var SI=false;
if (eZ / hQ > 1.01 || eZ / hQ < 0.99)
SI=true;
var Cu=eZ;
eZ=hQ;
if (SI){g.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
g.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
uu.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
uu.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
}parent.scrollLeft=x * eZ - parent.clientWidth / 2+MG * eZ;
parent.scrollTop=y * eZ - parent.clientHeight / 2+Pz * eZ;
if (SI){}Vy.Th();
};
kp.prototype.ru=function (){return{x:(parent.scrollLeft+parent.clientWidth / 2 - MG * eZ)/ eZ,y:(parent.scrollTop+parent.clientHeight / 2 - Pz * eZ)/ eZ,eI:eZ,Uq:parent.clientWidth / eZ,WG:parent.clientHeight / eZ
};
};
kp.prototype.sc=function (Uq,WG){var lq=parent.clientWidth / Uq;
var Lu=parent.clientHeight / WG;
return Math.min(lq,Lu);
};
kp.prototype.UZ=function (hK){if (hK.fC !=S0){Af.hr=Math.min(Af.hr,hK.fC.hr);
Af.GZ=Math.max(Af.GZ,hK.fC.GZ);
Af.bo=Math.min(Af.bo,hK.fC.bo);
Af.kU=Math.max(Af.kU,hK.fC.kU);
g.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
g.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
uu.style.width=(Af.GZ - Af.hr+aQ)* eZ+kJ+dO;
uu.style.height=(Af.kU - Af.bo+aQ)* eZ+kJ+dO;
var GN=MG;
MG=-Af.hr+aQ / 2;
parent.scrollLeft+=(MG - GN)* eZ;
var dn=Pz;
Pz=-Af.bo+aQ / 2;
parent.scrollTop+=(Pz - dn)* eZ;
g.setAttribute(Kd,-MG+to+-Pz);
uu.setAttribute(Kd,-MG+to+-Pz);
g.setAttribute(PX,(Af.GZ - Af.hr+aQ)+to+(Af.kU - Af.bo+aQ));
uu.setAttribute(PX,(Af.GZ - Af.hr+aQ)+to+(Af.kU - Af.bo+aQ));
cd.points.value=(Af.hr - aQ)+FA+(Af.bo - aQ)+FA+(Af.hr - aQ)+FA+(Af.bo - aQ);
MX.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ);
WX.points.value=(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ);
ax.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ);
qZ.points.value=(Af.hr - aQ)+FA+(Af.bo - aQ)+FA+(Af.hr - aQ)+FA+(Af.bo - aQ);
UL.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.bo - aQ);
vx.points.value=(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.hr - aQ)+FA+(Af.kU+0.5 * aQ);
Nn.points.value=(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ)+FA+(Af.GZ+0.5 * aQ)+FA+(Af.kU+0.5 * aQ);
}};
kp.prototype.zx=function (gS,kA){parent.scrollLeft+=gS * 100;
parent.scrollTop+=kA * 100;
};
this.WK=function (hK){hK.Dr().Gd=hK;
g.appendChild(hK.Dr());
hK.onselectstart=function (){return false; };
hK.parent=this;
if (hK.QY && hK.Gx && hK.um)
hK.um(eZ);
};
this.mQ=function (hK){hK.Dr().Gd=hK;
uu.appendChild(hK.Dr());
hK.onselectstart=function (){return false; };
hK.parent=this;
if (hK.QY && hK.Gx && hK.um)
hK.um(eZ);
};
this.Ij=function (hK){var Jp=hK.Dr();
if (Jp.parentNode==g)
g.removeChild(Jp);
if (Jp.parentNode==uu)
uu.removeChild(Jp);
hK.parent=S0;
};
this.qe=function (x,y){x+=parent.scrollLeft;
y+=parent.scrollTop;
x /=eZ;
y /=eZ;
x -=MG;
y -=Pz;
return{x:x,y:y };
};
this.dl=function (AE){var x=(MG+AE.x)* eZ - parent.scrollLeft;
var y=(Pz+AE.y)* eZ - parent.scrollTop;
return{x:x,y:y };
};
this.Rw=function (x,y){if (y)
return{x:x,y:y };
else
return{x:x.x,y:x.y };
};
var An=new function (){this.Zk=function (){this.Dr().style.display=Ar;
};
this.kn=function (){this.Dr().style.display=xy;
};
};
this.Nu=function (Uj,Uq,da){var ku=document.createElement(Jd);
var x=da[0].x;
var y=da[0].y;
this.fC={hr:x,GZ:x,bo:y,kU:y };
var yJ=x+FA+y;
var BH=this;
if (da.length < 2)
yJ+=FA+(x+1)+FA+(y+1);
else{for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
BH.fC.hr=Math.min(BH.fC.hr,x);
BH.fC.GZ=Math.max(BH.fC.GZ,x);
BH.fC.bo=Math.min(BH.fC.bo,y);
BH.fC.kU=Math.max(BH.fC.kU,y);
yJ+=FA+x+FA+y;
}hz=[x,y];
}this.color=Uj;
this.width=Uq;
this.XT=yJ;
this.te=1;
var Li=document.createElement(IX);
ku.appendChild(Li);
Li.setAttribute(fV,jm);
Li.setAttribute(nu,jm);
ku.setAttribute(dh,Uj);
ku.setAttribute(HT,xV);
ku.setAttribute(gf,this.width * eZ);
ku.setAttribute(Xj,yJ);
this.tq=function (AE){BH.XT+=FA+AE.x+FA+AE.y;
ku.points.value=BH.XT;
BH.fC.hr=Math.min(BH.fC.hr,AE.x);
BH.fC.GZ=Math.max(BH.fC.GZ,AE.x);
BH.fC.bo=Math.min(BH.fC.bo,AE.y);
BH.fC.kU=Math.max(BH.fC.kU,AE.y);
};
this.kY=function (da){if (da.length < 2){}else{var x=da[0].x;
var y=da[0].y;
var yJ=x+FA+y;
for (var em=1; em < da.length; em++){x=da[em].x;
y=da[em].y;
BH.fC.hr=Math.min(BH.fC.hr,x);
BH.fC.GZ=Math.max(BH.fC.GZ,x);
BH.fC.bo=Math.min(BH.fC.bo,y);
BH.fC.kU=Math.max(BH.fC.kU,y);
yJ+=FA+x+FA+y;
}BH.XT=yJ;
ku.points.value=BH.XT;
}};
this.ig=function (color){BH.color=color;
ku.setAttribute(dh,color);
};
this.Cf=function (Uq){BH.width=Uq;
ku.setAttribute(gf,this.width * eZ);
};
this.Fi=function (ZF){BH.te=ZF;
if (ZF==1)
return;
ku.style[vr]=Yb+ZF * 100+Dk;
};
this.xd=function (){var du=BH.XT;
var IC=du;
var Bg=IC.split(FA);
var Gi=[];
for (var DY=0; DY < Bg.length; DY+=2){var CT=parseFloat(Bg[DY],10);
var Iw=parseFloat(Bg[DY+1],10);
Gi.push(new gG(CT,Iw));
}var du=BH.XT;
var IC=du;
var Bg=IC.split(FA);
return Gi;
};
this.Zz=function (){return{x:BH.fC.hr,y:BH.fC.bo,Uq:(BH.fC.GZ - BH.fC.hr),WG:(BH.fC.kU - BH.fC.bo)
};
};
this.zQ=function (){var iw=BH.Zz();
return new sK(iw.x,iw.y,iw.Uq,iw.WG,0);
};
this.Dr=function (){return ku;
};
this.um=function (eI){ku.setAttribute(gf,this.width * eZ);
};
};
this.Nu.prototype=An;
this.AY=function (){var e=document.createElement(oK);
var ma=document.createElement(IX);
this.SetPosition=function (x,y){if (e.style.width.toString()!=jJ){e.style.left=x - parseInt(e.style.width,10)/ 2;
e.style.top=y - parseInt(e.style.height,10)/ 2;
}};
this.KV=function (RX){e.style.width=RX * 2;
e.style.height=RX * 2;
};
this.ig=function (Uj){e.setAttribute(Uk,Uj);
};
this.Fi=function (Jp){return;
};
this.Dr=function (){return e;
};
};
this.AY.prototype=An;
this.os=function (Uq,WG,BQ,zG,HK){var BH=this;
var e=document.createElement(Al);
this.dI=0;
this.fG=0;
this.Lw=Uq;
this.bT=WG;
this.oO=new NJ();
e.style.width=Uq;
e.style.height=WG;
e.setAttribute(Uk,zG);
e.setAttribute(gf,BQ * eZ);
this.SetPosition=function (x,y){BH.dI=x;
BH.fG=y;
e.style.left=x;
e.style.top=y;
};
this.KV=function (Uq,WG){BH.Lw=Uq;
BH.bT=WG;
e.style.width=Uq;
e.style.height=WG;
};
this.Pv=function (Uj){e.setAttribute(Uk,Uj);
};
this.zQ=function (){return new sK(BH.dI,BH.fG,BH.Lw,BH.bT,0);
};
this.Dr=function (){return e;
};
this.um=function (eI){e.setAttribute(gf,BQ * eI);
};
};
this.os.prototype=An;
this.Image=function (Hx,Uq,WG,MZ){if (MZ==undefined)
MZ=true;
var WY=document.createElement(yz);
this.Sy=Hx;
this.Lw=parseInt(Uq);
this.bT=parseInt(WG);
this.JD=parseInt(Uq);
this.uV=parseInt(WG);
this.dI=parseInt(0);
this.fG=parseInt(0);
this.bi=parseInt(0);
this.zN=Uq / WG;
var BH=this;
var xs=1;
WY.setAttribute(Cx,Hx);
WY.style.width=Uq+dO;
WY.style.height=WG+dO;
this.KV=function (Uq,WG,Oq){BH.Lw=(Uq);
BH.bT=(WG);
BH.bi=(Oq);
xs=Uq / BH.JD;
var Qp=(BH.bi)/ 180 * Math.PI;
var md=Uq * Math.cos(Qp)+WG * Math.sin(Qp);
var bf=Uq * Math.sin(Qp)+WG * Math.cos(Qp);
WY.style.left=(BH.dI - Uq / 2+md / 2 - WG * Math.sin(Qp))+dO;
WY.style.top=(BH.fG - WG / 2+bf / 2)+dO;
WY.style.width=Uq+dO;
WY.style.height=WG+dO;
WY.style.rotation=Oq;
BH.um(eZ);
};
this.SetPosition=function (x,y){BH.dI=(x);
BH.fG=(y);
var Qp=(BH.bi)/ 180 * Math.PI;
var md=BH.Lw * Math.cos(Qp)+BH.bT * Math.sin(Qp);
var bf=BH.Lw * Math.sin(Qp)+BH.bT * Math.cos(Qp);
WY.style.left=(BH.dI - BH.Lw / 2+md / 2 - BH.bT * Math.sin(Qp))+dO;
WY.style.top=(BH.fG - BH.bT / 2+bf / 2)+dO;
};
this.Ga=function (){return BH.bi;
};
this.zQ=function (){return new sK(BH.dI,BH.fG,BH.Lw,BH.bT,BH.bi * Math.PI / 180);
};
this.Dr=function (){return WY;
};
var jd=ZP;
this.um=function (eI){if (DT !=OW || !MZ)
return;
var Rk;
var zY=Hx.substr(Hx.length - 3,3);
var ma=eI * xs;
if (ma < 0.25)
Rk=Hx+xT+zY;
else if (ma < 0.5)
Rk=Hx+Ea+zY;
else if (ma < 0.75)
Rk=Hx+uE+zY;
else if (ma < 1)
Rk=Hx+Vl+zY;
else
Rk=Hx;
if (Rk !=jd){jd=Rk;
WY.setAttribute(Cx,Rk);
}};
};
this.Image.prototype=An;
this.Np=function (Gx,x,y,Uj,ma){var BH=this;
this.Gx=Gx;
var qz=document.createElement(rz);
qz.className=bk;
qz.style.position=kM;
qz.style.styleFloat=jt;
qz.style.cssFloat=jt;
qz.style.width=Hd;
this.dI=(x);
this.fG=(y);
qz.style.fontSize=ma * eZ+dO;
qz.style.left=BH.dI * eZ+dO;
qz.style.top=BH.fG * eZ+dO;
if (BH.parent==Vy){qz.style.left=(BH.dI+MG+aQ / 2)* eZ+dO;
qz.style.top=(BH.fG+Pz+aQ / 2)* eZ+dO;
}qz.style.color=Uj;
qz.style.sX=51;
qz.style.height=ma * eZ+dO;
qz.onmousedown=function (){return false; };
qz.onmouseup=function (){return false; };
qz.onmousemove=function (){return false; };
this.SetPosition=function (x,y){BH.dI=x;
BH.fG=y;
qz.style.left=BH.dI * eZ+dO;
qz.style.top=BH.fG * eZ+dO;
if (BH.parent==Vy){qz.style.left=(BH.dI+MG+aQ / 2)* eZ+dO;
qz.style.top=(BH.fG+Pz+aQ / 2)* eZ+dO;
}};
this.ig=function (Uj){qz.style.color=Uj;
};
this.zQ=function (){BH.Lw=0;
var HD=qz.firstChild;
BH.bT=0;
while (HD !=S0){BH.Lw=Math.max(BH.Lw,HD.clientWidth);
HD=HD.nextSibling;
BH.bT+=ma+2;
}BH.Lw /=eZ;
return new sK(BH.dI,BH.fG,BH.Lw,BH.bT,0);
};
this.Dr=function (){return qz;
};
this.QY=function (Gx){while (qz.firstChild !=S0)
qz.removeChild(qz.firstChild);
if (Gx !=ZP){var Eh=Gx.split(wf);
for (var DY=0; DY < Eh.length; DY++){var vp=document.createElement(rz);
vp.style.position=fp;
vp.style.styleFloat=jt;
vp.style.cssFloat=jt;
vp.style.clear=jt;
vp.appendChild(document.createTextNode(Eh[DY]));
qz.appendChild(vp);
}}BH.Lw=0;
var HD=qz.firstChild;
BH.bT=0;
while (HD !=S0){BH.Lw=Math.max(BH.Lw,HD.clientWidth);
HD=HD.nextSibling;
BH.bT+=ma+2;
}BH.Lw /=eZ;
};
this.um=function (eI){qz.style.fontSize=ma * eI+dO;
qz.style.left=BH.dI * eZ+dO;
qz.style.top=BH.fG * eZ+dO;
if (BH.parent==Vy){qz.style.left=(BH.dI+MG+aQ / 2)* eZ+dO;
qz.style.top=(BH.fG+Pz+aQ / 2)* eZ+dO;
}};
this.OE=function (){return Ch };
this.QY(Gx);
};
this.Np.prototype=An;
kp.prototype.ON=function (){var BH=this;
var af=document.createElement(IR);
af.style.width=50;
af.style.height=50;
af.setAttribute(Kd,Kn);
af.setAttribute(PX,Zp);
var ve=[];
var x,y;
var eF=1;
var fC={hr:Number.Hn,GZ:Number.Jj,bo:Number.Hn,kU:Number.Jj };
this.oO=new NJ();
this.WK=function (XV){af.appendChild(XV.Dr());
ve.push(XV);
if (XV.oO)
XV.oO.addListener(BH.fD);
try{}catch (e){}};
this.Ij=function (XV){if (XV.Dr().parentNode==af)
af.removeChild(XV.Dr());
for (var DY=0; DY < ve.length; DY++){if (ve[DY]==XV){ve.splice(DY,1);
break;
}}if (XV.oO)
XV.oO.gt(BH.fD);
BH.fD();
};
this.fD=function (){fC={hr:Number.Hn,GZ:Number.Jj,bo:Number.Hn,kU:Number.Jj };
for (var DY=0; DY < ve.length; DY++){var Uj=ve[DY];
}};
this.Dr=function (){return af;
};
this.Sz=function (ma){eF=ma;
throw mG;
af.setAttribute(Gs,xm+x+FA+y+Oz+eF+Dk);
};
this.SetPosition=function (vB,wP){x=vB;
y=wP;
af.style.left=x;
af.style.top=y;
BH.oO.iv();
};
this.OE=function (){return De };
this.um=function (eI){for (var DY=0; DY < ve.length; DY++)
if (ve[DY].um)
ve[DY].um(eI);
};
};
this.ON.prototype=An;
};
var no=function (){var BH=this;
this.gM=-1;
this.TT=function (Ef){if (Ef==Xd){return true;
}var Gl=false;
var MR=JSON.parse(Ef);
if (MR[dE] !=S0){var FS=MR[dE];
if (FS==DI){Ab.HM.hY();
return true;
}else if (FS==Hl){Ab.HM.hI();
Ab.HM.XK();
return true;
}}else{var EX=MR[ka];
var it=[];
for (var DY=0; DY < EX.length; DY++){var Uj=BH.SW(EX[DY]);
it.push(Uj);
}for (var DY=0; DY < it.length; DY++){var Uj=it[DY];
if (Uj==true || Uj.iI==true)
Gl=true;
else if (Uj.iI !=S0){Gl=true;
if (Uj.iI.bq !=S0){var CA=Ab.vj.qC[Uj.WV].wM;
Ab.Ld.zv(Uj.dd,CA,Uj.iI);
}else
Uj.iI.so();
}}}return Gl;
};
this.SW=function (Ef){var dd=Ef[0];
var WV=Ef[1];
var vE=new Date(Ef[2]);
var zE=Ef[3];
if (WV !=Ab.co && !Ab.IU)
Ab.Uu.Yk();
Ab.vj.eH(WV);
var iI=BH.Xt(zE,WV,dd);
if (iI==S0){aP;
CO(aO+Ef);
return false;
}iI.vE=vE;
iI.WV=WV;
this.gM=Math.max(this.gM,parseInt(dd));
return{iI:iI,dd:dd,WV:WV };
};
this.Xt=function (EE,WV,dd){var vm=EE[0];
if (vm==wo){var jy=EE[1];
var Uj=EE[2];
var Uq=EE[3];
var da=EE[4];
var pa=EE[5];
var ZF=pa / 255;
return new KC.rb(S0,S0,jy,Uj,Uq,da,ZF,dd);
}else if (vm==Ov){var uX=EE[1];
return new KC.Ij(uX);
}else if (vm==Ch){var x=EE[1];
var y=EE[2];
var Gx=EE[3];
var color=EE[4];
var or=EE[5];
return new KC.Np(Gx,x,y,color,or,dd);
}else if (vm==nf){var ol=EE[1];
var x=EE[2];
var y=EE[3];
var Uq=EE[4];
var WG=EE[5];
var Oq=EE[6];
var JD=EE[7];
var np=EE[8];
return new KC.AP(S0,ol,gp.Kc[0],dd,x,y,Uq,WG,Oq,JD,np);
}else if (vm==kx){var id=EE[1];
var x=EE[2];
var y=EE[3];
var Uq=EE[4];
var WG=EE[5];
var Oq=EE[6];
return new KC.KP(gp.Kc[0],S0,id,x,y,Uq,WG,Oq);
}else if (vm==io){var ol=EE[1];
return new KC.Ca(ol);
}else if (vm==RG){return new KC.Ca(wV);
}else if (vm==Fp){return new KC.Ni(Fp);
}else if (vm==pG){return new KC.Ni(pG);
}else if (vm==BX){return new KC.Ni(BX);
}else if (vm==AX){return new KC.Ni(AX);
}else if (vm==Qv){var cW=EE[1];
return new KC.bq(WV,cW);
}else if (vm==AK){return new KC.Yj(WV);
}else if (vm==Hp){var Fe=EE[1];
return new KC.xq(Fe)
}else if (vm==ei){var Fe=EE[1];
return new KC.gX(Fe)
}else if (vm==mp){var To=EE[1];
return new KC.Nk(WV,To);
}else if (vm==QX){var RK=EE[1];
var SP=EE[2];
return new KC.uS(RK,SP);
}else if (vm==qu){return new KC.bI(WV);
}else if (vm==yx){var ol=EE[1];
return new KC.uz(Hx);
}else if (vm==OA){return new KC.VO(lat,lng,eZ,ar);
}else if (vm==PQ){var lat=EE[1];
var lng=EE[2];
var eZ=EE[3];
var ar=EE[4];
var Hw=EE[5];
return new KC.ir(WV,lat,lng,eZ,ar,Hw);
}else if (vm==De){var zd=dd;
var Gx=EE[1];
var UJ=EE[2];
var Zf=[];
for (var DY=0; DY < UJ.length; DY++){zd++;
var hR=UJ[DY];
Zf.push(BH.Xt(hR,WV,zd));
}return new KC.Cc(Gx,Zf);
}else if (vm==gg){return new KC.gT(EE[1]==QV);
}else if (vm==oZ){var zp=EE[1];
var CT=EE[2];
var Iw=EE[3];
var ml=EE[4];
var Uc=EE[5];
var jb=EE[6];
if (zp==-1)
zp=S0;
if (ml==-1)
ml=S0;
return new KC.Oj(S0,zp,new gG(CT,Iw),ml,new gG(Uc,jb),dd);
}else if (vm==Ou){var x=EE[1];
var y=EE[2];
var Gx=EE[3];
return new KC.kO(S0,x,y,Gx,dd);
}else if (vm==gb){var tJ=EE[1];
var tS=EE[2];
var gJ=EE[3];
var nW=EE[4];
var iN=EE[5];
var ET=EE[6];
var XN=EE[7];
var Gx=EE[8];
return new hu(S0,tJ,tS,gJ,nW,iN,ET,XN,Gx,WV,dd);
}else if (vm==NY){var wr=EE[1];
var Gx=EE[2];
return new Xa(wr,Gx);
}};
};
function SX(WW){if (WW==undefined)
var WW=false;
var sf=document.createElement(rz);
var Wg=document.createElement(rz);
sf.className=CK;
sf.appendChild(Wg);
sf.ux=100;
sf.KB=100;
sf.style.cursor=sA;
sf.cI=function (x,y){sf.ux=x;
sf.rv=y;
sf.style.width=x+dO;
sf.style.height=y+dO;
Wg.style.width=x+dO;
Wg.style.height=y+dO;
};
sf.Ir=function (bO){sf.KB=bO;
};
sf.PN=function (bO){if (bO > sf.KB || bO < 0)
return;
if (WW)
Wg.style.height=((bO * sf.rv)/ sf.KB)+dO;
else
Wg.style.width=((bO * sf.ux)/ sf.KB)+dO;
};
sf.oC=false;
var CR=function (x,y){if (WW){y -=fb(sf)+2;
var jg=Math.round((y * sf.KB)/ sf.rv);
}else{x -=XX(sf)+2;
var jg=Math.round((x * sf.KB)/ sf.ux);
}if (jg > sf.KB)
jg=sf.KB;
if (jg < 0)
jg=0;
sf.PN(jg);
if (sf.xJ !=S0)
sf.xJ(jg);
};
sf.onmousedown=function (e){if (!e){e=window.event;
var x=e.clientX+document.body.scrollLeft;
var y=e.clientY+document.body.scrollTop;
} else{var x=e.pageX;
var y=e.pageY;
}CR(x,y);
sf.oC=true;
return false;
};
sf.onmouseup=function (e){sf.oC=false;
return false;
};
sf.onmousemove=function (e){if (sf.oC){if (!e){e=window.event;
var x=e.clientX+document.body.scrollLeft;
var y=e.clientY+document.body.scrollTop;
} else{var x=e.pageX;
var y=e.pageY;
}CR(x,y);
}return false;
};
sf.xJ=S0;
return sf;
}var ad=new function (){this.Vw=[];
var BH=this;
this.zv=function (id,Uj,WV){if (BH.Vx(id)!=S0)
return;
Uj.Vw=true;
Uj.id=id;
Uj.WV=WV;
BH.Vw[su+id]=Uj;
var ZJ=g(nT);
if (ZJ !=S0){var EV=document.createElement(rz);
EV.setAttribute(pN,za+id);
EV.className=tB;
var wM=id+IF;
if (Uj.OE)
wM+=Uj.OE();
if (Uj.zQ){EV.onclick=function (){var fC=Uj.zQ();
var eI=zL.sW.sc(fC.Uq,fC.WG);
var x=fC.x+fC.Uq / 2;
var y=fC.y+fC.WG / 2;
Ab.EZ.Bq(x ,y ,eI * 0.95);
};
}EV.appendChild(document.createTextNode(wM));
ZJ.appendChild(EV);
}};
this.GX=function (Jp){BH.aH(Jp.id);
};
this.aH=function (id){var Jp=BH.Vx(id);
if (Jp !=S0){Jp.Vw=false;
delete BH.Vw[su+id];
}var ZJ=g(nT);
if (ZJ !=S0){var bO=g(za+id);
if (bO !=S0)
ZJ.removeChild(bO);
}};
this.Vx=function (id){var Jp=BH.Vw[su+id];
if (Jp !=S0 && Jp !=undefined){return Jp;
}};
this.lA=function (aw){var Mv=[];
for (pi in BH.Vw){var Jh=BH.Vw[pi];
if (aw(Jh))
Mv.push(BH.Vw[pi]);
}return Mv;
};
this.gu=function (x,y){var nc=undefined;
var rH=undefined;
var xA=undefined;
var pf;
for (pi in BH.Vw){var Jp=BH.Vw[pi];
if (Jp.lW !=undefined){var bN=Jp.lW;
var Ns=Jp.zQ();
for (var DY=0; DY < bN.length; DY++){var AE=kZ.sK(Ns.nd(),bN[DY]);
var mY=Math.pow(AE.x - x,2)+Math.pow(AE.y - y,2);
if (rH==undefined || mY < pf){nc=Jp;
rH=AE;
xA=bN[DY];
pf=mY;
}}}}if (nc==undefined || pf > 10 * 10)
return S0;
return{rQ:nc,sl:xA,JG:rH };
};
};
function yc(KD,Ps,Ej){var button=qS(Ps,Ej,lX(jI,KD));
KD.tk=function (){button.className=CP; };
KD.QO=function (){button.className=qV; };
return button;
}function xw(KD,Gx,Ej){var button=yL(Gx,Ej,lX(jI,KD));
KD.tk=function (){button.className=CP; };
KD.QO=function (){button.className=qV; };
return button;
}function yL(Gx,Ej,iI,fontSize){if (fontSize==undefined)
fontSize=11;
var border=document.createElement(rz);
border.className=qV;
var pI=document.createElement(rz);
pI.className=Pi;
border.onclick=iI;
pI.appendChild(document.createTextNode(Gx));
pI.setAttribute(WB,Ej);
border.appendChild(pI);
border.style.height=(fontSize+2)+dO;
pI.style.height=(fontSize+2)+dO;
pI.style.fontSize=fontSize+dO;
return border;
}function qS(Ps,Ej,iI){var border=document.createElement(rz);
border.className=qV;
var pI=document.createElement(rz);
pI.className=uO;
border.onclick=iI;
pI.style.backgroundPositionY=(Ps * -13)+dO;
pI.style.backgroundPosition=Ng+(Ps * -13)+dO;
pI.setAttribute(WB,Ej);
border.appendChild(pI);
return border;
}var pX=
{gF:S0,lk:S0,Np:S0,mH:S0,Uw:S0,tn:S0,Dn:S0,KP:S0,km:S0
};
var gp=
{Kc:[],uF:{color:KS,width:3,te:1 },qE:S0,Ca:{HB:function (){if (Ab.zZ)
Ab.zZ.kn();
zL.bd.style.backgroundImage=Fq;
}},Ys:function (id){this.qE=this.Kc[id];
if (zL.Ry !=S0 && zL.eu !=S0){if (id==0){zL.Ry.className=CP;
zL.eu.className=qV;
}else if (id==1){zL.eu.className=CP;
zL.Ry.className=qV;
}}}};
function RH(){this.ud=function (x,y){};
this.yg=function (x,y){};
this.Bf=function (x,y){};
this.bt=function (delta){return true;
};
this.Ku=function (){};
this.kn=function (){};
this.cz=function (keyCode){return true;
};
this.CI=function (keyCode){};
}Un.prototype=new RH();
function Un(){this.vF=S0;
this.Wh=S0;
this.TL=S0;
this.qR=S0;
var UN=new gp.qE.AY();
var fq=20;
UN.kn();
UN.Fi(0.3);
zL.sW.mQ(UN);
this.ud=function (x,y){if (this.vF !=S0){this.lS();
return;
}this.TL={x:x,y:y };
this.qR=gp.qE.qe(x,y);
this.vF=new gp.qE.Nu(gp.uF.color,gp.uF.width,[this.qR]);
gp.qE.WK(this.vF);
if (this.vF.Fi)
this.vF.Fi(gp.uF.te);
};
this.yg=function (x,y){var eI=zL.sW.SN();
var Uq=gp.uF.width;
if (Uq * eI > 5){var yU=gp.qE.qe(x,y);
UN.KV(Uq / 2);
if (UN.Dr()!=S0)
UN.Dr().style.cursor=xy;
UN.SetPosition(yU.x,yU.y);
UN.Zk();
}else
UN.kn();
if (this.vF !=S0){var Rg=this.vF.parent.qe(x,y);
this.vF.tq(Rg);
}};
this.Bf=function (x,y){this.lS();
};
this.lS=function (){if (this.vF !=S0)
Ab.yN.Eo(this.vF);
this.vF=S0;
};
this.Ku=function (){this.vF=S0;
if (!Ab.IU){g(CQ).style.display=Ar;
g(cH).style.display=Ar;
}};
this.kn=function (){UN.kn();
this.lS();
if (!Ab.IU){g(CQ).style.display=xy;
g(cH).style.display=xy;
}};
}function Pq(){this.yg=function (x,y){if (this.vF !=S0){var Rg;
var Qj=Math.atan2(y - this.qR.y,x - this.qR.x);
if (Ab.Gv.bn[Ha.ul]){var bJ=gG.og(gG.Ec(this.qR,new gG(x,y)));
var Qg=Math.PI / 8;
Qj /=Qg;
Qj=Math.round(Qj);
Qj *=Qg;
var gJ=bJ * Math.cos(Qj);
var nW=bJ * Math.sin(Qj);
Rg=this.vF.parent.qe(this.qR.x+gJ,this.qR.y+nW);
}else
Rg=this.vF.parent.qe(x,y);
var XJ=[this.qR,Rg];
this.vF.kY(XJ);
}};
}function YL(){this.yg=function (x,y){if (this.vF !=S0){if (gp.qE==gp.Kc[0]){var pg;
var Qj=Math.atan2(y - this.qR.y,x - this.qR.x);
if (Ab.Gv.bn[Ha.ul]){var bJ=gG.og(gG.Ec(this.qR,new gG(x,y)));
var Qg=Math.PI / 8;
Qj /=Qg;
Qj=Math.round(Qj);
Qj *=Qg;
var gJ=bJ * Math.cos(Qj);
var nW=bJ * Math.sin(Qj);
pg=this.vF.parent.qe(this.qR.x+gJ,this.qR.y+nW);
}else
pg=this.vF.parent.qe(x,y);
var delta=gG.Ix(gG.Ec(this.qR,pg));
var gS=delta.x;
var kA=delta.y;
var pC=3 * gp.uF.width;
var st=2 * gp.uF.width;
var XJ=[];
XJ[0]=this.qR;
XJ[1]=gG.Ec(pg,new gG(-gS * gp.uF.width,-kA * gp.uF.width));
XJ[2]=gG.Ec(pg,new gG(-gS * pC - kA * st,-kA * pC+gS * st));
XJ[3]=pg;
XJ[4]=gG.Ec(pg,new gG(-gS * pC+kA * st,-kA * pC - gS * st));
this.vF.kY(XJ);
}else{var gS=x - this.TL.x;
var kA=y - this.TL.y;
var bJ=Math.sqrt(gS * gS+kA * kA);
gS /=bJ;
kA /=bJ;
var pC=10;
var st=7;
var PB=this.vF.parent.qe;
var XJ=[];
XJ[0]=this.qR;
XJ[1]=PB(x - gS * gp.uF.width,y - kA * gp.uF.width);
XJ[2]=PB(x - gS * pC - kA * st,y - kA * pC+gS * st);
XJ[3]=PB(x,y);
XJ[4]=PB(x - gS * pC+kA * st,y - kA * pC - gS * st);
this.vF.kY(XJ);
}}};
}function Uw(){this.yg=function (x,y){if (this.vF !=S0){if (gp.qE==gp.Kc[0]){var pg=this.vF.parent.qe(x,y);
var LD;
var Xz;
if (Ab.Gv.bn[Ha.ul]){var RX=gG.og(gG.Ec(this.qR,pg));
LD=RX;
Xz=RX;
}else{var RX=gG.Ec(this.qR,pg);
LD=Math.abs(RX.x);
Xz=Math.abs(RX.y);
}LD=Math.max(1,LD);
Xz=Math.max(1,Xz);
var Er=41;
var XJ=[];
var delta=2 * Math.PI / Er;
for (var DY=0.0; DY < Math.PI * 2; DY+=delta){var Xr=LD * Math.cos(DY);
var zK=Xz * Math.sin(DY);
var AE=gG.zj(this.qR,new gG(Xr,zK));
XJ.push(AE);
}XJ.push(gG.zj(this.qR,new gG(LD,0)));
this.vF.kY(XJ);
}else{var Jr=this.TL.x;
var nJ=this.TL.y;
var gS=x - Jr;
var kA=y - nJ;
var RX=Math.sqrt(gS * gS+kA * kA);
var Er=41;
var XJ=[];
for (var DY=0.0; DY < Math.PI * 2; DY+=2 * Math.PI / Er){var Xr=RX * Math.cos(DY);
var zK=RX * Math.sin(DY);
var AE=this.vF.parent.qe(Jr+Xr,nJ+zK)
XJ.push(AE);
}XJ.push(this.vF.parent.qe(Jr+RX,nJ));
this.vF.kY(XJ);
}}};
}function tn(){this.yg=function (x,y){if (this.vF !=S0){if (gp.qE==gp.Kc[0]){var BJ=gp.qE.qe(x,y);
if (Ab.Gv.bn[Ha.ul]){var Qg=gG.Ec(BJ,this.qR);
var bJ=gG.og(Qg);
var cp=Math.abs(Qg.x)/ Qg.x;
var on=Math.abs(Qg.y)/ Qg.y;
BJ=gG.zj(this.qR,new gp.qE.Rw(cp * bJ / Math.sqrt(2),on * bJ / Math.sqrt(2)));
}var XJ=[];
var zm=gp.uF.width / 2;
var mm=gp.uF.width / 2;
if (BJ.x < this.qR.x)
zm=-zm;
if (BJ.y < this.qR.y)
mm=-mm;
XJ.push(gp.qE.Rw(gG.zj(this.qR,new gG(0,-mm))));
XJ.push(gp.qE.Rw(gG.zj(new gG(this.qR.x,0),new gG(0,BJ.y))));
XJ.push(gp.qE.Rw(BJ));
XJ.push(gp.qE.Rw(gG.zj(new gG(0,this.qR.y),new gG(BJ.x,0))));
XJ.push(gp.qE.Rw(gG.zj(this.qR,new gG(zm,0))));
this.vF.kY(XJ);
}else{var Jr=this.TL.x;
var nJ=this.TL.y;
var XJ=[];
var zm=gp.uF.width / 2;
var mm=gp.uF.width / 2;
if (x < Jr)
zm=-zm;
if (y < nJ)
mm=-mm;
XJ.push(gp.qE.qe(Jr,nJ - mm));
XJ.push(gp.qE.qe(Jr,y));
XJ.push(gp.qE.qe(x,y));
XJ.push(gp.qE.qe(x,nJ));
XJ.push(gp.qE.qe(Jr+zm,nJ));
this.vF.kY(XJ);
}}};
}xn.prototype=new RH();
function xn(){var oE;
var lp;
var Wb=false;
var ME;
var BH=this;
this.ud=function (x,y){oE=x;
lp=y;
Wb=true;
};
this.yg=function (x,y){if (Ab.Qh==S0)
return;
if (Wb){var uh=x - oE;
var tt=y - lp;
var MI=Ab.Qh.zx(uh,tt);
Ab.Qh.SetPosition(MI.y,MI.x,Ab.Qh.SN());
}oE=x;
lp=y;
};
this.Bf=function (x,y){if (Ab.Qh==S0)
return;
Wb=false;
var eZ=Ab.Qh.SN();
var yU=Ab.Qh.ru();
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
this.Ku=function (){Wb=false;
};
this.cz=function (keyCode){if (Ab.Qh==S0)
return;
if (keyCode >=37 && keyCode <=40){var NM=200;
var gS=0;
var kA=0;
if (keyCode==37)
gS=NM;
if (keyCode==38)
kA=NM;
if (keyCode==39)
gS=-NM;
if (keyCode==40)
kA=-NM;
var MI=Ab.Qh.zx(gS,kA);
var eZ=Ab.Qh.SN();
Ab.Qh.cB(MI.lat(),MI.lng(),eZ);
Ab.yN.bM(MI.lat(),MI.lng(),eZ,Ab.Qh.Oe(),0);
return false;
}return true;
};
this.bt=function (x,y,delta){if (delta > 0)
BH.Gy(x,y);
else if (delta < 0)
BH.GF(x,y);
return false;
};
this.My=function (){if (Ab.Qh==S0)
return;
var yU=Ab.Qh.ru();
Ab.Qh.Gy(yU);
var eZ=Ab.Qh.SN();
zL.Xo.PN(eZ);
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
this.eh=function (){if (Ab.Qh==S0)
return;
var yU=Ab.Qh.ru();
Ab.Qh.GF(yU);
var eZ=Ab.Qh.SN();
zL.Xo.PN(eZ);
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
this.Gy=function (x,y){if (Ab.Qh==S0)
return;
var js=Ab.Qh.qe(x,y);
Ab.Qh.Gy(js);
var yU=Ab.Qh.ru();
var eZ=Ab.Qh.SN();
zL.Xo.PN(eZ);
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
this.GF=function (x,y){if (Ab.Qh==S0)
return;
var js=Ab.Qh.qe(x,y);
Ab.Qh.GF(js);
var yU=Ab.Qh.ru();
var eZ=Ab.Qh.SN();
zL.Xo.PN(eZ);
Ab.yN.bM(yU.lat(),yU.lng(),eZ,Ab.Qh.Oe(),0);
};
}ZL.prototype=new RH();
function ZL(){var pW=S0;
this.ud=function (x,y){var yU=gp.qE.qe(x,y);
Ab.Gv.XF();
var e={};
var aW=ad.lA(function (Jp){return (Jp.PE !=undefined)});
for (var DY=0; DY < aW.length; DY++){var Jp=aW[DY];
Jp.PE.FF(e,yU.x,yU.y);
if (e.pL){pW=Jp.PE;
return;
}if (e.zr)
return;
}};
this.yg=function (x,y){var yU=gp.qE.qe(x,y);
var e={};
if (pW==S0){var aW=ad.lA(function (Jp){return (Jp.PE !=undefined)});
for (var DY=0; DY < aW.length; DY++){var Jp=aW[DY];
Jp.PE.AM(e,yU.x,yU.y);
if (e.zr)
return;
}}else{pW.Qk(e,yU.x,yU.y);
}};
this.Bf=function (x,y){if (pW !=S0)
pW.Bf(e,yU.x,yU.y);
};
this.Ku=function (){pW=S0;
};
this.kn=function (){if (pW !=S0)
pW.abort();
pW=S0;
};
this.cz=function (ED){};
}pJ.prototype=new RH();
function pJ(){this.Wh=S0;
var Yt=[];
var kI=[];
var ns=false;
var UN=new gp.qE.AY();
var fq=20;
UN.KV(fq);
UN.kn();
UN.Fi(0.3);
if (UN.Dr()!=S0)
UN.Dr().style.cursor=xy;
zL.sW.mQ(UN);
var Mv=[];
var zw=[];
this.ud=function (x,y){if (ns)
lS();
Yt=[];
kI=[];
zw=[];
ns=true;
Mv=ad.lA(function (bJ){return (bJ.xd !=S0)&&
(Ab.Sp==3 || (Ab.Sp==2 && Ab.co==bJ.WV)|| DT !=OW);
});
};
this.bt=function (x,y,delta){if (DT==OW)
return;
fq+=parseInt(delta)* 3;
fq=Math.min(250,Math.max(5,fq));
var Cy=fq;
if (UN.parent.ru)
Cy=fq / UN.parent.ru().eI;
UN.KV(Cy);
UN.SetPosition(x,y);
return false;
};
this.yg=function (x,y){if (true || x > 0 && y > 0 && x < 800 && y < 600){var Qr=zL.sW.qe(x,y);
var Cy=fq;
if (UN.parent.ru)
Cy=fq / UN.parent.ru().eI;
UN.KV(Cy);
UN.SetPosition(Qr.x,Qr.y);
UN.Zk();
}else
UN.kn();
if (!ns)
return;
var ij=[];
for (var DY=0; DY < Mv.length; DY++)
ij.push(Mv[DY]);
for (var DY=0; DY < zw.length; DY++)
ij.push(zw[DY]);
for (var yF=0; yF < ij.length; yF++){var ku=ij[yF];
if (ku.parent !=S0){var yU=Qr;
var Gi=ku.xd();
var lr=[];
for (var DY=0; DY < Gi.length; DY++){lr.push(ku.parent.dl(Gi[DY]));
}if (ku.fC !=S0 && (ku.fC.GZ < yU.x - fq || ku.fC.hr > yU.x+fq || ku.fC.kU < yU.y - fq || ku.fC.bo > yU.y+fq)){}else{yU=new gG(x,y);
var Gh=Zl(lr,yU,fq);
var gh=Gh.gh;
var AQ=Gh.AQ;
if (AQ.length > 0){if (ku.Vw){Yt.push(ku);
Mv.splice(lJ(Mv,ku),1);
}else
zw.splice(lJ(zw,ku),1);
var parent=ku.parent;
ku.dx=ku.parent;
ku.parent.Ij(ku);
for (var DY=0; DY < gh.length; DY++){var points=[];
for (var ma=0; ma < gh[DY].length; ma++)
points.push(parent.qe(gh[DY][ma].x,gh[DY][ma].y));
var nZ=new parent.Nu(ku.color,ku.width,points);
if (nZ.Fi)
nZ.Fi(ku.te);
parent.WK(nZ);
zw.push(nZ);
}}}}}var Aq=ad.lA(function (aw){return (aw.OE && aw.OE()==Ch)&&
(Ab.Sp==3 || (Ab.Sp==2 && Ab.co==aw.WV)|| DT !=OW);
});
for (var DY=0; DY < Aq.length; DY++){var Gx=Aq[DY];
var Iu=Gx.Dr();
if (Gx.parent !=S0){var tA=Gx.zQ();
var vc=tA.Ud();
var Et=kZ.sK(vc,Qr);
if (Et.x > 0 && Et.x < 1 && Et.y > 0 && Et.y < 1){kI.push(Gx);
Gx.parent.Ij(Gx);
}}}};
this.Bf=function (x,y){ns=false;
lS();
};
var lS=function (){if (Yt.length==0 && kI.length==0 && zw==0)
return;
var ci=eQ;
for (var DY=0; DY < Yt.length; DY++){if (Yt[DY].Vw)
ci+=wC+Yt[DY].id+EB;
}for (var DY=0; DY < kI.length; DY++)
ci+=wC+kI[DY].id+EB;
for (var DY=0; DY < zw.length; DY++){var ma=zw[DY];
ci+=ff+ma.parent.jy+FA+KX(ma.color)+FA+ma.width+hn+ma.XT+Be;
}ci=ci.substr(0,ci.length - 1);
ci+=vY;
var NN=function (SF,Vk,VJ){return function (Ko){var nI=[];
Ko=parseInt(Ko,10);
var gs=Ko;
for (var DY=0; DY < SF.length; DY++){gs++;
nI.push(new KC.Ij(SF[DY].id));
}for (var DY=0; DY < Vk.length; DY++){gs++;
nI.push(new KC.Ij(Vk[DY].id));
}for (var DY=0; DY < VJ.length; DY++){gs++;
var Li=VJ[DY];
nI.push(new KC.rb(Li,Li.parent,Li.parent.jy,Li.color,Li.width,Li.XT,Li.te,gs));
}var jk=new KC.Cc(aB,nI);
jk.WV=Ab.co;
Ab.dr.gM=Math.max(Ab.dr.gM,gs);
Ab.Ld.zv(Ko,Ab.vj.qC[Ab.co].wM,jk);
Ab.vj.eH(Ab.co);
};
};
var LY=function (SF,Vk,VJ){return function (){for (var DY=0; DY < SF.length; DY++)
SF[DY].HB();
for (var DY=0; DY < Vk.length; DY++)
Vk[DY].HB();
for (var DY=0; DY < VJ.length; DY++)
VJ[DY].parent.Ij(VJ[DY]);
}};
var uN=NN(Yt,kI,zw);
var WC=LY(Yt,kI,zw);
if (ci==Vz){WC();
zw=[];
return;
}Ab.pv.es(ci,uN,WC);
zw=[];
};
this.Ku=function (){UN.Zk();
};
this.kn=function (){UN.kn();
};
}Dn.prototype=new RH();
function Dn(){var WY=S0;
var src=S0;
var FF=false;
var Fj=S0;
var lo;
var HL;
var kN;
var LK;
var pW;
this.ud=function (x,y){FF=true;
lo=x;
HL=y;
};
this.yg=function (x,y){var yU=zL.sW.qe(x - 5,y - 5);
if (WY==S0)
this.Ku();
if (!FF){WY.SetPosition(yU.x,yU.y);
var AH=S0;
if (false){var AE;
var YN
for (var DY=0; DY < WY.lW.length; DY++){var AE=WY.lW[DY];
tA=WY.zQ();
Rf=kZ.sK(tA.nd(),AE);
AH=ad.gu(Rf.x,Rf.y);
if (AH !=S0)
break;
}}if (AH==S0){if (WY.lW !=S0 && WY.lW.length > 0)
kN=WY.lW[0];
else
kN=new gG(0,0);
}else{kN=AE;
WY.SetPosition(yU.x - Rf.x+AH.JG.x,yU.y - Rf.y+AH.JG.y);
}LK=gG.Ec(new gG(1,1),kN);
}else{var Uq=yU.x - WY.dI;
var WG=yU.y - WY.fG;
var zI=WY.zN;
if (Math.sqrt(Math.pow(lo - yU.x,2)+Math.abs(HL - yU.y,2))< 5)
WY.SetPosition(yU.x,yU.y);
else{var bw=lC(WY,yU,kN,LK);
WY.KV(bw.Uq,bw.WG,bw.Oq * 180 / Math.PI);
WY.SetPosition(bw.x,bw.y);
}}};
this.Bf=function (x,y){if (WY==S0)
return;
Ab.yN.rJ(WY);
WY=S0;
FF=false;
jI(pX.KP);
};
this.Ku=function (){if (WY==S0)
WY=new gp.qE.Image(src);
zL.sW.WK(WY);
var Td=function (Us){return function (){zL.sW.Ij(Us); } };
WY.HB=Td(WY);
FF=false;
};
this.kn=function (){if (WY !=S0)
zL.sW.Ij(WY);
WY=S0;
};
this.VI=function (Wj,Uq,WG){if (WY !=S0)
zL.sW.Ij(WY);
src=Wj;
WY=new gp.Kc[0].Image(src,Uq,WG);
WY.SetPosition(10,10);
var eZ=zL.sW.SN();
var fh=400;
if (Uq * eZ > fh){var Wl=fh / (Uq * eZ);
Uq *=Wl;
WG *=Wl;
}WY.KV(Uq,WG,0);
zL.sW.WK(WY);
var Td=function (Us){return function (){zL.sW.Ij(Us); } };
WY.HB=Td(WY);
};
this.cz=function (ED){if (ED==Ha.kS){jI(pX.KP);
}};
}var lC=function (rQ,NK,vZ,xj){var vb=rQ.zQ();
var Kj=vb.nd();
var ay=kZ.sK(Kj,vZ);
var DK=kZ.sK(Kj,xj);
var IA=gG.Ec(NK,ay);
var hs=gG.Ec(DK,ay);
var mo=vb.qB;
if (true || SL){if (rQ.zN !=undefined)
var zI=rQ.zN;
else
var zI=rQ.Lw / XA.bT;
var YO=gG.Fl(IA);
var e=Math.sqrt(YO / (1+zI * zI));
var Ze=Math.atan2(IA.x,IA.y);
var CZ=Math.atan2(hs.x,hs.y);
var Ad=(Ze - CZ);
var qb=mo - Ad;
var VC=e * zI;
var ds=e;
}else{}var Uq=vb.Uq;
var WG=vb.WG;
var Uj=Math.cos(mo);
var ma=Math.sin(mo);
var MO=Math.cos(qb);
var Cr=Math.sin(qb);
var YM=new kZ(Uq * Uj - VC * MO,-WG * ma+ds * Cr,Uq * ma - VC * Cr,WG * Uj - ds * MO,0,0);
var delta=kZ.sK(YM,vZ);
return{x:rQ.dI+delta.x,y:rQ.fG+delta.y,Uq:VC,WG:ds,Oq:qb };
};
vS.prototype=new RH();
function vS(){var BH=this;
var RW=S0;
var ed=0;
var NI=0;
var Cj=new zL.sW.Nu(We,4,[{x:0,y:0}]);
zL.sW.mQ(Cj);
var Vg;
var yo=false;
var jx=function (Gx){if (pW !=S0)
if (pW.fS)
pW.fS(Gx);
};
var qG=[{yU:new gG(0.03,0.03),sq:new zL.sW.AY()},{yU:new gG(0.97,0.03),sq:new zL.sW.AY()},{yU:new gG(0.97,0.97),sq:new zL.sW.AY()},{yU:new gG(0.03,0.97),sq:new zL.sW.AY()}];
for (var DY=0; DY < qG.length; DY++){qG[DY].sq.kn();
qG[DY].sq.KV(8);
zL.sW.mQ(qG[DY].sq);
}var QE;
var BN;
var XA=S0;
var BH=this;
this.ud=function (x,y){var yU=gp.qE.qe(x,y);
Ab.Gv.XF();
var e={};
var aW=ad.lA(function (Jp){return (Jp.PE !=undefined)});
for (var DY=0; DY < aW.length; DY++){var Jp=aW[DY];
Jp.PE.FF(e,yU.x,yU.y);
if (e.pL){pW=Jp.PE;
BH.Lp=jx;
zL.RO.value=ZP;
Ab.Gv.XF();
}else{pW=S0;
BH.Lp=S0;
}if (e.zr)
return;
}FF=true;
for (var DY=0; DY < qG.length; DY++)
qG[DY].sq.kn();
Cj.kn();
if (XA !=S0){this.Bf(QE+1,BN);
}if (RW !=S0){QE=x;
BN=y;
ed=yU.x - RW.dI;
NI=yU.y - RW.fG;
XA=RW;
Cj.ig(lv);
}};
this.yg=function (x,y){var yU=S0;
var e={};
if (pW !=S0){yU=gp.qE.qe(x,y);
pW.AM(e,yU.x,yU.y);
return;
}var aW=ad.lA(function (Jp){return (Jp.PE !=undefined)});
for (var DY=0; DY < aW.length; DY++){var Jp=aW[DY];
yU=Jp.parent.qe(x,y);
Jp.PE.AM(e,yU.x,yU.y);
if (e.zr)
return;
}for (var DY=0; DY < qG.length; DY++)
qG[DY].sq.kn();
Cj.kn();
if (XA==S0 || !XA.SetPosition){var PH=ad.lA(function (DY){return (DY.zQ !=S0 && DY.parent && DY.parent==gp.Kc[0])&& DY.xd==undefined &&
(Ab.Sp==3 || (Ab.Sp==2 && Ab.co==DY.WV)|| DT !=OW);
});
RW=S0;
for (var DY=PH.length - 1; DY >=0; DY--){var WY=PH[DY];
if (WY.parent !=S0 && WY.zQ){yU=WY.parent.qe(x,y);
var tA=WY.zQ();
var vc=tA.Ud();
var Et=kZ.sK(vc,yU);
if (Et.x > 0 && Et.x < 1 && Et.y > 0 && Et.y < 1){RW=WY;
break;
}}}if (RW !=S0){var vb=RW.zQ();
var Kj=vb.nd();
yo=false;
if (RW.KV && RW.QY==undefined){for (var DY=0; DY < qG.length; DY++){var FQ=kZ.sK(Kj,qG[DY].yU);
var gL=FQ.x;
var AF=FQ.y;
qG[DY].sq.Zk();
qG[DY].sq.SetPosition(gL,AF);
var hA=Math.pow(yU.x - gL,2)+Math.pow(yU.y - AF,2);
if (hA < 15 * 15){yo=true;
Vg=DY;
qG[DY].sq.ig(IV);
}else
qG[DY].sq.ig(We);
}}var XJ=[];
XJ[0]=kZ.sK(Kj,new gG(0,0))
XJ[1]=kZ.sK(Kj,new gG(1,0));
XJ[2]=kZ.sK(Kj,new gG(1,1));
XJ[3]=kZ.sK(Kj,new gG(0,1));
XJ[4]=XJ[0];
var eI=zL.sW.SN();
Cj.Cf(5 / eI);
Cj.kY(XJ);
Cj.Zk();
}else{for (var DY=0; DY < qG.length; DY++)
qG[DY].sq.kn();
}}else{yU=XA.parent.qe(x,y);
if (XA.SetPosition){if (XA.parent==S0)
{BH.Ku();
return;
}if (!yo)
XA.SetPosition(yU.x - ed,yU.y - NI);
else{var SL=true;
var CJ=qG[Vg].yU;
var Hi={x:1 - CJ.x,y:1 - CJ.y };
var bw=lC(XA,yU,Hi,CJ);
XA.KV(bw.Uq,bw.WG,bw.Oq * 180 / Math.PI);
XA.SetPosition(bw.x,bw.y);
}}}};
this.Bf=function (x,y){var yU=zL.sW.qe(x - 5,y - 5);
if (QE !=x || BN !=y){if (XA !=S0){var mo=XA.Ga * Math.PI / 180;
var Uj=Math.cos(mo);
var ma=Math.sin(mo);
var Uq=XA.Lw;
var WG=XA.bT;
var XJ=[];
XJ[0]=XA.dI;
XJ[1]=XA.fG;
XJ[2]=XA.dI+(Uq * Uj - 0 * ma);
XJ[3]=XA.fG+(Uq * ma+0 * Uj);
XJ[4]=XA.dI+(Uq * Uj - WG * ma);
XJ[5]=XA.fG+(Uq * ma+WG * Uj);
XJ[6]=XA.dI+(0 * Uj - WG * ma);
XJ[7]=XA.fG+(0 * ma+WG * Uj);
var iG=true;
Cj.kn();
XA.dx=XA.parent;
var tA=XA.zQ();
if (iG){if (XA.KV && XA.Ga)
Ab.yN.rM(XA,XA.dI,XA.fG,XA.Lw,XA.bT,XA.Ga());
else if (XA.SetPosition)
Ab.yN.rM(XA,XA.dI,XA.fG,10,12,0);
else{}}else{XA.dx.Ij(XA);
Ab.yN.JK(XA);
}}RW=S0;
XA=S0;
Cj.ig(We);
FF=false;
}};
this.Ku=function (){pW=S0;
this.Lp=S0;
RW=S0;
XA=S0;
Cj.ig(We);
};
this.kn=function (){if (pW !=S0)
pW.abort();
pW=S0;
this.Lp=S0;
if (XA !=S0)
XA.HB();
RW=S0;
XA=S0;
for (var DY=0; DY < qG.length; DY++)
qG[DY].sq.kn();
Cj.kn();
};
this.cz=function (ED){if (ED==46 && XA !=S0){var parent=XA.parent;
XA.parent.Ij(XA);
Ab.yN.JK(XA,parent);
XA=S0;
Cj.ig(We);
RW=S0;
for (var DY=0; DY < qG.length; DY++)
qG[DY].sq.kn();
Cj.kn();
return false;
}};
}zo.prototype=new RH();
function zo(){this.Wh=S0;
var or=14;
var UA=S0;
this.ud=function (x,y){var Gx=zL.RO.value;
zL.RO.value=ZP;
var yU=UA.parent.qe(x,y);
if (Gx !=ZP){Ab.yN.Yd(yU.x,yU.y - or,Gx,gp.uF.color,or);
UA.QY(ZP);
}};
this.yg=function (x,y){if ((DT==OW)|| (x > 0 && x < 800 && y > 0 && y < 600)){if (DT !=OW)
zL.dk.style.display=Ar;
UA.Zk();
Ab.Gv.XF();
zL.dk.style.left=x+dO;
zL.dk.style.top=(y - or)+dO;
var yU=UA.parent.qe(x,y);
UA.SetPosition(yU.x,yU.y - or);
UA.ig(gp.uF.color);
}else{UA.kn();
zL.dk.style.display=xy;
}};
this.bt=function (x,y,delta){};
this.Ku=function (){zL.RO.value=ZP;
UA=new zL.sW.Np(ZP,0,0,KS,14);
UA.kn();
zL.sW.mQ(UA);
UA.QY(ZP);
zL.dk.style.display=xy;
Ab.Gv.XF();
if (!Ab.IU)
g(cH).style.display=Ar;
};
this.kn=function (){zL.RO.value=ZP;
UA.kn();
UA=S0;
zL.dk.style.display=xy;
if (!Ab.IU)
g(cH).style.display=xy;
};
this.ge=function (pb){or=Math.max(Math.min(pb,200),9);
};
this.Lp=function (Gx){UA.QY(Gx);
};
}var TO=function (Gx){var BH=this;
this.Gx=Gx;
var af=new gp.qE.ON();
var oP=new gp.qE.os(100,60,1,fg,KS);
var Gb=new gp.qE.Np(Gx,0,0,KS,14);
af.WK(oP);
af.WK(Gb);
Gb.SetPosition(5,5);
this.lW=[new gG(0.5,0.5)];
var eF=1;
BH.oO=new NJ();
this.Pv=function (zG){oP.Pv(zG);
};
this.SetPosition=function (x,y){BH.dI=x;
BH.fG=y;
af.SetPosition(x,y);
BH.oO.iv();
};
this.QY=function (Gx){Gb.QY(Gx);
this.Gx=Gx;
var iw=Gb.zQ();
var Uq=Math.max(50,iw.Uq+10);
var WG=Math.max(30,iw.WG+10);
oP.KV(Uq,WG);
BH.oO.iv();
};
this.kf=function (ma){eF=ma;
af.Sz(ma);
BH.oO.iv();
};
this.Dr=function (){return af.Dr();
};
this.Zk=function (){af.Zk();
};
this.kn=function (){af.kn();
};
this.zQ=function (){var Ns=oP.zQ();
Ns.Uq *=eF;
Ns.WG *=eF;
Ns.x=BH.dI;
Ns.y=BH.fG;
return Ns;
};
this.QY(Gx);
};
zU.prototype=new RH();
function zU(){var oP=S0;
this.yg=function (x,y){Ab.Gv.XF();
var yU=gp.qE.qe(x,y);
oP.SetPosition(yU.x,yU.y);
};
this.ud=function (x,y){var yU=gp.qE.qe(x,y);
oP.SetPosition(yU.x,yU.y);
KE(oP);
zL.RO.value=ZP;
oP=new TO(ZP);
gp.qE.WK(oP);
oP.SetPosition(yU.x+5,yU.y+5);
};
var KE=function (Ph){var iI=new KC.kO(Ph,Ph.dI,Ph.fG,Ph.Gx,S0);
iI.WV=Ab.co;
var uN=function (hU){Ph.id=hU;
Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
Ph.parent.UZ(Ph);
};
var WC=function (){if (Ph.parent !=S0)
Ph.parent.Ij(Ph);
};
Ab.pv.es(iI.pq(),uN,WC);
};
this.Ku=function (){oP=new TO(ZP);
gp.qE.WK(oP);
oP.SetPosition(0,0);
zL.RO.value=ZP;
Ab.Gv.XF();
};
this.kn=function (){gp.qE.Ij(oP);
oP=S0;
};
this.Lp=function (Gx){oP.QY(Gx);
};
};
function TU(by,Cw,aZ,Ym){var BH=this;
BH.by=by;
BH.aZ=aZ;
BH.Cw=Cw;
BH.Ym=Ym;
var xa;
var Mj;
this.ku;
this.zQ=function (){var gS=Mj.x - xa.x;
var kA=Mj.y - xa.y;
var mo=Math.atan2(kA,gS);
var Qg=Math.sqrt(gS * gS+kA * kA);
var Uq=Qg;
var WG=15;
var Uj=Math.cos(mo);
var ma=Math.sin(mo);
return new sK(xa.x,xa.y - 0.5,1,1,mo);
var lz=new kZ(1,0,0,1,0,-0.5);
var Oh=new kZ(Uq * Uj,WG * -ma,Uq * ma,WG * Uj,xa.x,xa.y);
return kZ.RJ(Oh,lz);
};
var kE=function (){var tA=BH.by.zQ();
xa=kZ.sK(tA.nd(),BH.Cw);
BH.ku.kY([xa,Mj]);
};
var gy=function (){var tA=BH.aZ.zQ();
Mj=kZ.sK(tA.nd(),BH.Ym);
BH.ku.kY([xa,Mj]);
};
if (BH.by !=S0){xa=kZ.sK(BH.by.zQ().nd(),BH.Cw);
BH.by.oO.addListener(kE);
}else
xa=BH.Cw;
if (BH.aZ !=S0){Mj=kZ.sK(BH.aZ.zQ().nd(),BH.Ym);
BH.aZ.oO.addListener(gy);
}else{if (BH.Ym==S0)
Mj=xa;
else
Mj=Ym;
}BH.ku=new zL.sW.Nu(KS,4,[xa,Mj]);
this.OQ=function (yU){BH.Ym=yU;
Mj=yU;
BH.ku.kY([xa,Mj]);
};
this.uT=function (tQ,rk){BH.aZ=tQ;
BH.Ym=rk;
if (BH.aZ !=S0){Mj=kZ.sK(BH.aZ.zQ().nd(),BH.Ym);
BH.aZ.oO.addListener(gy);
}else
Mj=BH.Ym;
BH.ku.kY([xa,Mj]);
};
this.Dr=function (){return BH.ku.Dr();
};
this.OE=function (){return oZ };
};
Vu.prototype=new RH();
function Vu(){var KR=S0;
var Qu=new zL.sW.AY();
Qu.kn();
Qu.KV(5);
zL.sW.mQ(Qu);
var QE,BN;
this.yg=function (x,y){var yU=gp.qE.qe(x,y);
var AH=ad.gu(yU.x,yU.y);
if (AH !=S0){Qu.SetPosition(AH.JG.x,AH.JG.y);
Qu.Zk();
}else
Qu.kn();
if (KR==S0){}else{if (AH !=S0)
yU=AH.JG;
KR.OQ(yU);
}};
var lS=function (x,y){var yU=gp.qE.qe(x,y);
var AH=ad.gu(yU.x,yU.y);
if (KR==S0){if (AH !=S0){yU=AH.yU;
KR=new TU(AH.rQ,AH.sl,S0,S0);
}else
KR=new TU(S0,yU,S0,S0);
gp.qE.WK(KR);
}else{if (AH !=S0){yU=AH.yU;
KR.uT(AH.rQ,AH.sl);
}else
KR.uT(S0,yU);
var xv=KR;
var zp=S0;
if (KR.by !=S0)
zp=KR.by.id;
var ml=S0;
if (KR.aZ !=S0)
ml=KR.aZ.id;
var iI=new KC.Oj(KR,zp,KR.Cw,ml,KR.Ym);
iI.WV=Ab.co;
var uN=function (hU){xv.id=hU;
Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
};
var WC=function (){iI.bq();
};
Ab.pv.es(iI.pq(),uN,WC);
KR=S0;
}};
this.ud=function (x,y){QE=x;
BN=y;
lS(x,y);
};
this.Bf=function (x,y){var gS=x - QE;
var kA=y - BN;
if (gS * gS+kA * kA > 3 * 3)
lS(x,y);
};
this.Ku=function (){if (KR !=S0){KR.parent.Ij(KR);
KR=S0;
}Qu.kn();
};
this.kn=function (){if (KR !=S0){KR.parent.Ij(KR);
KR=S0;
}Qu.kn();
};
}function GV(){var hW=zL.sW.AY();
hW.KV(5);
hW.Pv(sF);
hW.ig(We);
hW.vA(2);
this.oO=new NJ();
var RX=5;
this.SetPosition=function (x,y){hW.SetPosition(x,y);
oO.iv();
};
this.zQ=function (){return new sK(this.dI - RX,this.fG - RX,RX,RX,0);
};
this.Dr=function (){return hW;
};
}var Za=function (zk){var BH=this;
var BB=[];
var cJ=[];
var Kt=0;
var Nf;
var OZ;
if (zk !=S0){OZ=document.createElement(rz);
OZ.className=cr;
zk.appendChild(OZ);
OZ.onmouseout=function (e){if (!e)var e=window.event;
var SR=OZ;
var OM=(e.relatedTarget)? e.relatedTarget :e.toElement;
if (OM==undefined)
return;
while (OM !=SR && OM !=document.body && OM !=S0)
OM=OM.parentNode;
if (OM !=document.body)
return;
BH.TM();
};
}this.TM=function (){BH.sp(Kt);
};
this.wj=function (){if (zk.style.display==xy){zk.style.display=Ar;
BH.Nx();
}else
zk.style.display=xy;
};
this.Nx=function (){OZ.scrollTop=OZ.scrollHeight;
};
var iB=function (){if (cJ.length !=0){var SH=cJ.pop();
BB.push(SH);
SH.so();
if (OZ !=S0){if (SH.id==Kt)
SH.NC.className=DC;
else
SH.NC.className=tB;
}}};
var mT=function (){if (BB.length > 1){var dN=BB.pop();
cJ.push(dN);
dN.bq();
if (OZ !=S0){if (dN.id==Kt)
dN.NC.className=DC;
else
dN.NC.className=uM;
}}};
this.zv=function (id,wM,Uj){BH.sp(Kt);
id=parseInt(id);
Uj.id=id;
var jE=BB[BB.length - 1];
if (jE !=undefined){if (OZ !=S0)
jE.NC.className=tB;
if (jE.id > id){if (Uj.jq)
Uj.bq();
}else{if (OZ !=S0){for (var DY=0; DY < cJ.length; DY++)
OZ.removeChild(cJ[DY].NC);
}cJ=[];
}}var FO=cJ[cJ.length - 1];
while (jE !=S0 && jE.id > id){mT();
jE=BB[BB.length - 1];
}if (!Uj.jq)
Uj.so();
BB.push(Uj);
if (OZ !=S0){if (Nf !=S0)
Nf.NC.className=tB;
var pj=(OZ.scrollHeight - OZ.clientHeight < OZ.scrollTop+10)
var Pb=QN(id,wM,Uj.tH());
Nf=Uj;
Uj.NC=Pb;
if (cJ.length==0)
Pb.className=DC;
else
Pb.className=tB;
for (var DY=0; DY < cJ.length; DY++)
OZ.removeChild(cJ[DY].NC);
OZ.appendChild(Pb);
for (var DY=cJ.length - 1; DY >=0; DY--)
OZ.appendChild(cJ[DY].NC);
if (pj)
OZ.scrollTop=OZ.scrollHeight;
}var PO=cJ[cJ.length - 1];
while (PO !=S0 && PO !=FO){iB();
PO=cJ[cJ.length - 1];
}Kt=BB[BB.length - 1].id;
};
this.sp=function (id){var Uj=BB[BB.length - 1];
id=parseInt(id);
while (Uj !=S0 && Uj !=undefined && Uj.id > id){mT();
Uj=BB[BB.length - 1];
}while (Uj !=S0 && Uj !=undefined && Uj.id < id && cJ.length !=0){iB();
Uj=BB[BB.length - 1];
}};
this.Wd=function (id){var Uj=BB[BB.length - 1];
id=parseInt(id);
if (OZ !=S0){if (id < Kt)
Nf.NC.className=uM;
else
Nf.NC.className=tB;
}Kt=id;
while (Uj !=S0 && Uj !=undefined && Uj.id > id){mT();
Uj=BB[BB.length - 1];
}while (Uj !=S0 && Uj !=undefined && Uj.id < id && cJ.length !=0){iB();
Uj=BB[BB.length - 1];
}Nf=Uj;
if (OZ !=S0)
Nf.NC.className=DC;
};
var QN=function (id,CA,Gx){var EV=document.createElement(rz);
var GT=document.createElement(rz);
GT.className=WL;
GT.appendChild(document.createTextNode(CA));
EV.appendChild(GT);
EV.appendChild(document.createTextNode(Gx));
EV.onmouseover=function (){BH.sp(id);
};
EV.onmousedown=function (){Ab.yN.lH(id);
};
return EV;
};
this.PV=function (){if (BB[BB.length - 1].id !=Kt)
return undefined;
if (BB.length > 1)
return BB[BB.length - 2].id;
else
return undefined;
};
this.LS=function (){if (BB[BB.length - 1].id !=Kt)
return undefined;
if (cJ.length > 0)
return cJ[cJ.length - 1].id;
else
return undefined;
};
BH.zv(-1,ZP,new KC.ca(Yh));
};
function wD(){var BH=this;
var fm=Yp();
var OG=false;
var tp=[300,300,300,300,300];
var WQ=[];
var Jm=0;
var Qz=0;
var Su;
this.gW=S0;
this.es=function (Ef,uN,WC){if (Ab.co==S0){Lc(new Date(),zO);
if (WC !=S0)
WC();
return;
};
var id=Jm;
var Tk=Go+id+FA+Ef+jR;
Jm++;
WQ[lU+id]={Ef:Tk,uN:uN,WC:WC };
Tk=Rl+fZ+nQ+Tk+WE;
if (!OG){OG=true;
var Xu=GetChannelParams();
fm.open(Vr,Ae+Xu,true);
fm.setRequestHeader(xE,Nm);
fm.onreadystatechange=function (){BH.qU()};
Su=new vq(function (){OG=false; fm.abort(); },6000);
fm.send(mS+encodeURIComponent(Tk));
}};
this.CN=function (Ef){if (!OG){OG=true;
var Xu=GetChannelParams()
if (Ab.QH !=S0)
Xu+=mX+Ab.QH;
fm.open(Vr,Ae+GetChannelParams(),true);
fm.setRequestHeader(xE,Nm);
fm.onreadystatechange=function (){BH.qU()};
Su=new vq(function (){OG=false; fm.abort(); },6000);
fm.send(mS+encodeURIComponent(Ef));
}};
this.qU=function (){if (fm.readyState==4){if (Su !=S0)
Su.uP();
var uW=false;
if (fm.status==200)
uW=BH.Gk(fm.responseText);
if (uW){BH.gW=new Date();
Qz=0;
}else
Qz++;
if (Qz==0){OG=false;
BH.nm();
}else{if (Qz==3){OG=false;
Ab.HM.hI();
Ab.HM.XK();
}else{Qz=Math.min(Qz,3);
var vs=tp[Qz];
setTimeout(function (){OG=false;
BH.nm();
},vs);
}}}};
this.lI=function (){for (pi in WQ){if (WQ[pi].WC !=S0)
WQ[pi].WC();
}WQ=[];
};
this.nm=function (){var Ef=Rl+fZ+nQ;
var DY=0;
for (pi in WQ){Ef+=WQ[pi].Ef+kQ;
DY++;
}Ef=Ef.substr(0,Ef.length - 2);
Ef+=WE;
if (DY !=0)
BH.CN(Ef);
};
this.Gk=function (Uh){var uW=false;
try{var fy=JSON.parse(Uh);
}catch (e){CO(Op+e)
BH.lI();
return false;
}if (fy[di] !=S0){if (fy[di] !=fZ){Ab.HM.hI();
for (var DY=0; DY < 2; DY++)
Lc(new Date(),fP);
setTimeout(function (){window.location=window.location; },5000);
return;
}}if (fy[Dp] !=S0){}else if (fy[DU] !=S0){var ZR=fy[DU];
for (var rE=0; rE < ZR.length; rE++){var RX=ZR[rE];
if (RX.length==3){var rO=RX[0];
var vm=RX[1];
var ya=RX[2];
var yp=WQ[lU+rO];
if (vm==oB){if (Ab.QH==S0)
Ab.QH=ya[1];
if (Ab.QH !=ya[1]){Ab.HM.hI();
Ab.HM.uY(ya[1]);
}else{if (Ab.co==S0){Ab.co=ya[0];
}Ab.HM.qr();
}uW=true;
}else if (yp !=S0){if (vm==Jc){var uN=yp.uN;
if (uN !=S0)
uN(ya);
}else
{if (yp.WC !=S0)
yp.WC();
if (ya==mC){OG=false;
Ab.HM.hI();
Ab.HM.XK();
}}delete WQ[lU+rO];
uW=true;
}}else{Lc(new Date(),ty);
BH.lI();
}}return uW;
}};
}function QL(){this.Eo=function (Li){if (Li.xd().length < 2){Li.parent.Ij(Li);
return;
}var iI=new KC.rb(Li,Li.parent,Li.parent.jy,Li.color,Li.width,Li.XT,Li.te,S0);
iI.WV=Ab.co;
var uN=function (hU){Li.id=hU;
Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
if (DT==OW)
Li.parent.UZ(Li);
};
var WC=function (){if (Li.parent !=S0)
Li.parent.Ij(Li);
};
Ab.pv.es(iI.pq(),uN,WC);
};
this.JK=function (ku){var iI=new KC.Ij(ku.id);
iI.WV=Ab.co;
var uN=function (hU){Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
};
var WC=function (){ku.HB();
};
Ab.pv.es(iI.pq(),uN,WC);
};
this.rJ=function (WY){var ma=WY;
var parent=ma.parent;
var iI=new KC.AP(ma,ma.Sy,gp.Kc[0],S0,ma.dI,ma.fG,ma.Lw,ma.bT,ma.Ga(),ma.JD,ma.uV);
iI.WV=Ab.co;
var uN=function (hU){ma.id=hU;
Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
};
var WC=function (){WY.HB();
};
Ab.pv.es(iI.pq(),uN,WC);
};
this.rM=function (WY,x,y,Uq,WG,RX){var iI=new KC.KP(gp.Kc[0],WY,WY.id,x,y,Uq,WG,RX);
iI.WV=Ab.co;
var uN=function (hU){Ab.Ld.zv(hU,Ab.vj.qC[Ab.co].wM,iI);
Ab.vj.eH(Ab.co);
};
var WC=function (){WY.HB();
};
Ab.pv.es(iI.pq(),uN,WC);
};
this.Yd=function (x,y,Gx,color,or){Ab.pv.es(SZ+x+FA+y+FA+KX(Gx)+Ug+color+FH+or+jR);
};
this.lH=function (va){Ab.pv.es(gV+va+jR)};
this.fU=function (){Ab.pv.es(Qo); };
this.sT=function (){Ab.pv.es(VK); };
this.zf=function (){Ab.pv.es(cX); };
this.vQ=function (){Ab.pv.es(Zq); };
this.BM=function (){Ab.pv.es(NF);
};
this.bM=function (lat,lng,eZ,iT,Hw){Ab.pv.es(XS+lat+FA+lng+FA+eZ+FA+iT+FA+Hw+jR);
};
this.lZ=function (){Ab.pv.es(Io);
};
this.iz=function (Gx){Ab.pv.es(CL+KX(Gx)+jR); };
this.nA=function (){Ab.pv.es(cU); };
this.jQ=function (wM){if (wM !=ZP)
Ab.pv.es(od+KX(wM)+jR);
};
this.Xg=function (){Ab.pv.es(dQ); };
}function MD(tT){this.wM=tT;
this.YW=S0;
this.bE=S0;
this.Bj=S0;
this.pr=S0;
}var vj=function (mw){this.qC=[];
var BH=this;
var Id=new MD(SE);
this.qC[Ya]=Id;
this.Iy=function (WV,To,vE){if (BH.qC[WV]==S0)
BH.qC[WV]=new MD(To);
var rE=BH.qC[WV];
if (mw !=S0){if (rE.pr==S0){var pr=document.createElement(rz);
pr.className=jY;
var vU=document.createElement(rz);
vU.appendChild(document.createTextNode(rE.wM));
if (WV==Ab.co)
vU.className=WS;
else
vU.className=fE;
rE.pr=pr;
pr.appendChild(vU);
var XL=document.createElement(rz);
rE.Bj=XL;
pr.appendChild(XL);
mw.appendChild(rE.pr);
if (WV !=Ab.co){Lc(vE,To+ZE);
}}}};
this.qx=function (WV,vE){if (WV==Ab.co)
return;
var cn=BH.qC[WV];
if (cn !=S0){if (mw !=S0){if (cn.pr !=S0){cn.pr.parentNode.removeChild(cn.pr);
Lc(vE,cn.wM+Ro);
}cn.pr=S0;
}if (cn.bE !=S0){var fr=cn.bE;
var aw=function (){Ab.Qh.Ij(fr); };
KC.QC(aw);
}}};
this.nC=function (WV,SP){BH.qC[WV].wM=SP;
if (mw !=S0){var pr=BH.qC[WV].pr;
if (pr !=S0){var vU=pr.firstChild;
while (vU.firstChild !=S0)
vU.removeChild(vU.firstChild);
vU.appendChild(document.createTextNode(SP));
}}};
this.eH=function (WV){if (mw !=S0){var aX=BH.qC[WV];
if (aX !=undefined){var dv=aX.Bj;
if (dv !=S0){if (dv.childNodes.length==1)
dv.removeChild(dv.lastChild);
dv.appendChild(kH());
}}}};
};
function gG(x,y){this.x=x;
this.y=y;
this.zj=function (Xk){return gG.zj(this,Xk);
};
this.Ec=function (Xk){return gG.Ec(this,Xk);
};
this.eF=function (ma){return gG.eF(this,ma);
};
}gG.Fl=function (Xk){return Xk.x * Xk.x+Xk.y * Xk.y;
};
gG.og=function (Xk){return Math.sqrt(gG.Fl(Xk));
};
gG.HJ=function (Xk,rE){return Xk.x * rE.x+Xk.y * rE.y;
};
gG.zj=function (Xk,rE){return new gG(Xk.x+rE.x,Xk.y+rE.y);
};
gG.Ec=function (Xk,rE){return new gG(Xk.x - rE.x,Xk.y - rE.y);
};
gG.eF=function (Xk,ma){return new gG(Xk.x * ma,Xk.y * ma);
};
gG.Ix=function (Xk){var bJ=gG.og(Xk);
return new gG(Xk.x / bJ,Xk.y / bJ);
};
gG.eF=function (Xk,ma){return new gG(Xk.x * ma,Xk.y * ma);
};
function sK(x,y,Uq,WG,qB){this.Uq=Uq;
this.WG=WG;
this.qB=qB;
this.x=x;
this.y=y;
};
sK.prototype.zu=function (){return{Uq:this.Uq,WG:this.WG };
};
sK.prototype.ru=function (){return{x:this.x,y:this.y };
};
sK.prototype.TF=function (){return this.qB;
};
sK.prototype.nd=function (){var Uq=this.Uq;
var WG=this.WG;
var Uj=Math.cos(this.qB);
var ma=Math.sin(this.qB);
return new kZ(Uq * Uj,WG * -ma,Uq * ma,WG * Uj,this.x,this.y);
};
sK.prototype.Ud=function (){var x=this.x;
var y=this.y;
var Uq=this.Uq;
var WG=this.WG;
var Uj=Math.cos(this.qB);
var ma=Math.sin(this.qB);
return new kZ(Uj / Uq,ma / Uq,-ma / WG,Uj / WG,-(x * Uj+y * ma)/ Uq,(-y * Uj+x * ma)/ WG);
};
function kZ(oo,Nc,hp,Bh,vB,wP){this.oo=oo;
this.Nc=Nc;
this.hp=hp;
this.Bh=Bh;
this.vB=vB;
this.wP=wP;
}kZ.sK=function (VW,Xk){var x=VW.oo * Xk.x+VW.Nc * Xk.y+VW.vB;
var y=VW.hp * Xk.x+VW.Bh * Xk.y+VW.wP;
return new gG(x,y);
};
kZ.Tm=function (VW){var oo=VW.Bh / (-VW.Nc * VW.hp+VW.oo * VW.Bh);
var Nc=VW.Nc / (VW.Nc * VW.hp - VW.oo * VW.Bh);
var hp=VW.hp / (VW.Nc * VW.hp - VW.oo * VW.Bh);
var Bh=VW.oo / (-VW.Nc * VW.hp+VW.oo * VW.Bh);
var vB=(VW.Bh * VW.vB - VW.Nc * VW.wP)/ (VW.Nc * VW.hp - VW.oo * VW.Bh);
var wP=(VW.hp * VW.vB - VW.oo * VW.wP)/ (-VW.Nc * VW.hp+VW.oo * VW.Bh);
return new kZ(oo,Nc,hp,Bh,vB,wP);
};
kZ.RJ=function (NM,NL){var oo=NM.oo * NL.oo+NM.Nc * NL.hp;
var Nc=NM.oo * NL.Nc+NM.Nc * NL.Bh;
var hp=NM.hp * NL.oo+NM.Bh * NL.hp;
var Bh=NM.hp * NL.Nc+NM.Bh * NL.Bh;
var vB=NM.vB+NM.oo * NL.vB+NM.Nc * NL.wP;
var wP=NM.wP+NM.hp * NL.vB+NM.Bh * NL.wP;
return new kZ(oo,Nc,hp,Bh,vB,wP);
};
kZ.Lg=function (VW){return{x:VW.vB,y:VW.wP };
};
kZ.TF=function (VW){return Math.atan2(VW.hp,VW.oo);
};
kZ.oc=function (VW){return Math.atan2(VW.hp,VW.oo)* 180 / Math.PI;
};
kZ.CH=function (VW){var Uq=Math.sqrt(Math.pow(VW.oo,2)+Math.pow(VW.hp,2));
var WG=Math.sqrt(Math.pow(VW.Nc,2)+Math.pow(VW.Bh,2));
return{Uq:Uq,WG:WG };
};
