1function DrawArea(e,ag,z,A,N,n,H,r){var c=e;var C=ag;var ah=z;var b=A;var af=N;var ac=false;var U=n;var u=false;var y=H;var L=0;var a=900;var I=900;var G;var f;var x;var aa=new Array();var E=new Array();var m;var l;var S="";var ad=false;var J=false;var Z=false;var d=false;var ae=false;var F=false;var B="#555";var R=3;var W=r;var ab=false;var Y=null;this.setXMLAnim=function(ai){C=ai};this.animateFrame=function(ai){if(ac==true){return}for(var aj=0;aj<ai;aj++){if(L==ah){p()}else{if(L==b){C.pauseAll();L++;return}}L++;if(L>=ah&&L<=b){return aj+1}}return ai};this.pauseAnimation=function(){ac=true;var ai=U.getImage()};this.resumeAnimation=function(){if(L<b){ac=false}};this.drawAsKey=function(){J=true};this.drawAsEgg=function(){Z=true};this.drawAsCloud=function(){ae=true};this.drawAsSword=function(){d=true};this.drawAsDrain=function(){F=true};this.setDrawFinishedFunction=function(ai){Y=ai};this.setDrawColor=function(ai){B=ai};this.setStrokeWidth=function(ai){R=ai};var P=function(ai){if(ai.pageX){return ai.pageX}else{if(ai.clientX){return ai.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return null}}};var O=function(ai){if(ai.pageY){return ai.pageY}else{if(ai.clientY){return ai.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return null}}};var M=function(){if(x.findFeet()==true){var ai=new Stickman(x,c);C.setStickman(ai)}o();C.resumeAnimation()};this.cleanUp=function(){if(ab==true){if(G!=null){G.remove()}if(u==false){var ai=U.getImage();ai.unclick(q);ai.unmouseover(X);ai.unmouseout(D);var aj=y.getImage();aj.unclick(t);aj.unmouseover(X);aj.unmouseout(D)}document.onmousedown=null;ab=false;o()}};var o=function(){document.onmousedown=null;try{document.removeEventListener("touchstart",g,false);document.removeEventListener("touchmove",g,false);document.removeEventListener("touchend",g,false);document.removeEventListener("touchcancel",g,false)}catch(ai){}};var V=function(aj,ai){var al=W.unzoomX(m+aj);var ak=W.unzoomY(l+ai);mousePosX=al;mousePosY=ak;w(al,ak)};var w=function(aj,ai){if(af.isPointWithinRect(aj,ai)==true){f.quickDrawNode(Math.round(aj),Math.round(ai))}};var k=function(ak){f=new Path(c,B,R,W);if(u==true){u=false;C.resumeAnimation();var ai=U.getImage();ai.click(q);ai.mouseover(X);ai.mouseout(D);var aj=y.getImage();aj.click(t);aj.mouseover(X);aj.mouseout(D)}};var t=function(ai){x.clearDisplay()};var q=function(ak){var al=x.getRect();if(al.getWidth()<15||al.getHeight()<15){return}var ai=U.getImage();ai.unclick(q);ai.unmouseover(X);ai.unmouseout(D);var aj=y.getImage();aj.unclick(t);aj.unmouseover(X);aj.unmouseout(D);G.remove();ab=false;document.body.style.cursor="default";if(Y!=null){Y(x);C.resumeAnimation()}else{M()}o()};var X=function(ai){document.body.style.cursor="pointer"};var D=function(ai){document.body.style.cursor="default"};var T=function(ak){if(f==null){return}if(f.getNumNodes()>0){f.finalizePath();x.addPath(f);if(G!=null){G.toFront();var ai=U.getImage();ai.toFront();var aj=y.getImage();aj.toFront()}f=new Path(c,B,R,W)}};var K=function(ai){try{ai.preventDefault()}catch(ai){}};var Q=function(al,ai,am){var an=$("#episodeHolder").offset();offsetX=an.left;offsetY=an.top;mousePosX=W.unzoomX(al-offsetX);mousePosY=W.unzoomY(ai-offsetY);var ak=U.getBoundsNoZoom();var aj=y.getBoundsNoZoom();if(ak.isPointWithinRect(mousePosX,mousePosY)==true){q()}else{if(aj.isPointWithinRect(mousePosX,mousePosY)==true){t()}else{if(af.isPointWithinRect(mousePosX,mousePosY)==true){T();k();w(mousePosX,mousePosY);ad=true;K(am)}else{ad=false}}}};var j=function(aj,ai,ak){if(ad==true){var al=$("#episodeHolder").offset();offsetX=al.left;offsetY=al.top;mousePosX=W.unzoomX(aj-offsetX);mousePosY=W.unzoomY(ai-offsetY);w(mousePosX,mousePosY);K(ak)}};var v=function(ai){if(ad==true){T();K(ai)}};var g=function(ai){if(ai.type=="touchstart"){Q(ai.touches[0].pageX,ai.touches[0].pageY,ai)}else{if(ai.type=="touchmove"){j(ai.touches[0].pageX,ai.touches[0].pageY,ai)}else{if(ai.type=="touchend"||ai.type=="touchcancel"){v(ai)}}}};var p=function(){C.pauseAll();u=true;ab=true;x=new PathGroup(c,W);var ai=navigator.userAgent.match(/iPad/i)!=null;var aj=navigator.userAgent.toLowerCase();var ak=(aj.indexOf("iphone")!=-1);G=c.rect(0,0,c.width,c.height,0).attr({fill:"#f00",opacity:0}
1);if(ai==false&&ak==false){G.drag(V,k,T);document.onmousedown=i}try{if(ai==true||ak==true){document.addEventListener("touchstart",g,false);document.addEventListener("touchmove",g,false);document.addEventListener("touchend",g,false);document.addEventListener("touchcancel",g,false)}}catch(al){}};function s(ai){ai=ai||window.event;j(P(ai),O(ai),ai)}function i(ai){ai=ai||window.event;Q(P(ai),O(ai),ai);document.onmousemove=s;document.onmouseup=h}function h(ai){v(ai);document.onmousemove=null;document.onmouseup=null}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.