var qp_a,queue,qp_b=32,qp_c=20,qp_d=[],qp_e=null,qp_f=5,qp_g=6,qp_h=null,qp_i=1,qp_j=1,qp_k=30,qp_l=120,qp_m=20,qp_n=100,qp_o=4,qp_p=1200,qp_q=500,qp_r=null,qp_s=null,qp_t=null,qp_u=null,qp_v=null,qp_w=null,qp_x=10,qp_y=qp_x,qp_z=null,qp_A=0,qp_B=60,qp_C=qp_B,qp_D=null,qp_E=100,qp_F=qp_B-1; function loadResource(){SCREEN_SHOW_ALL=!0;var a=new ProgressBar(0.8*W,40);a.regX=a.w/2;a.regY=a.h/2;a.x=W/2;a.y=H/2;stage.addChild(a);queue=qp_a=new createjs.LoadQueue(!1);qp_a.on("complete",qp_G,null,!0);loadGameData();USE_NATIVE_SOUND||(IS_NATIVE_ANDROID?(createjs.Sound.registMySound("linked",0),createjs.Sound.registMySound("ding",2),createjs.Sound.registMySound("over",6),createjs.Sound.registMySound("silenttail",6.54),queue.loadFile({id:"sound",src:RES_DIR+"audio/all.mp3"})):(createjs.Sound.alternateExtensions= ["ogg"],queue.installPlugin(createjs.Sound),queue.loadManifest({path:RES_DIR+"audio/",manifest:[{src:"ding.mp3",id:"ding"},{src:"linked.mp3",id:"linked"},{src:"over.mp3",id:"over"}]},!1)));for(var b=[{src:"gameover.png",id:"gameover"},{src:"topline.png",id:"topline"},{src:"bb1.png",id:"bb1"},{src:"bb2.png",id:"bb2"},{src:"bb3.png",id:"bb3"},{src:"star1.png",id:"star1"},{src:"star2.png",id:"star2"},{src:"star3.png",id:"star3"},{src:"welcome.jpg",id:"welcome"},{src:"bonus.png",id:"bonus"},{src:"bestscore.png", id:"bestscore"},{src:"clock.png",id:"clock"},{src:"curscore.png",id:"curscore"},{src:"score.png",id:"score"},{src:"lowkeysharebtn.png",id:"lowkeysharebtn"},{src:"toplistbtn.png",id:"toplistbtn"},{src:"replaybtn.png",id:"replaybtn"},{src:"ready.png",id:"ready"},{src:"go.png",id:"go"},{src:"bg.png",id:"bg"},{src:"fcwm520logobg.png",id:"fcwm520logobg"},{src:"smallline.png",id:"smallline"},{src:"choose.png",id:"choose"},{src:"btn.png",id:"btn"}],c=1;c=qp_y?(qp_y=qp_x,qp_z.text=qp_x.toString()):(qp_y--,qp_z.text=qp_y.toString()))},1E3);qp_r=new createjs.Container;stage.addChild(qp_r);qp_L(!0);qp_M();stage.removeChild(this)});stage.addChild(a);stage.removeChild(this)});stage.addChild(a);a=new createjs.Bitmap(qp_a.getResult("fcwm520logobg"));a.regX=0;a.regY=92;a.x=0;a.y=960;stage.addChild(a);gjQipa.onGameStarted()} function qp_K(){createjs.Sound.play("over",!0);onNewScore();clearInterval(qp_D);stage.removeChild(qp_s);qp_s=new createjs.Container;qp_s.on("mousedown",function(a){});stage.addChild(qp_s);var a=new createjs.Shape;a.graphics.f("#fff").r(0,0,640,960).ef();a.x=0;a.y=0;a.alpha=0.8;qp_s.addChild(a);a=new createjs.Bitmap(qp_a.getResult("gameover"));a.regX=180;a.regY=30;a.x=320;a.y=170;qp_s.addChild(a);var b=new createjs.Bitmap(qp_a.getResult("star3"));b.regX=30;b.regY=30;b.x=320;b.y=480;b.alpha=0;createjs.Tween.get(b).to({x:670, rotation:360},800);createjs.Tween.get(b).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(b)});qp_s.addChild(b);var c=new createjs.Bitmap(qp_a.getResult("star3"));c.regX=30;c.regY=30;c.x=320;c.y=480;c.alpha=0;createjs.Tween.get(c).to({x:-30,rotation:360},800);createjs.Tween.get(c).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(c)});qp_s.addChild(c);var d=new createjs.Bitmap(qp_a.getResult("star3"));d.regX=30;d.regY=30;d.x=320;d.y=480;d.alpha=0;createjs.Tween.get(d).to({y:130, rotation:360},800);createjs.Tween.get(d).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(d)});qp_s.addChild(d);var e=new createjs.Bitmap(qp_a.getResult("star3"));e.regX=30;e.regY=30;e.x=320;e.y=480;e.alpha=0;createjs.Tween.get(e).to({y:830,rotation:360},800);createjs.Tween.get(e).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(e)});qp_s.addChild(e);var h=new createjs.Bitmap(qp_a.getResult("star2"));h.regX=62;h.regY=60;h.x=320;h.y=480;h.alpha=0;createjs.Tween.get(h).to({x:120, y:280,rotation:360},800);createjs.Tween.get(h).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(h)});qp_s.addChild(h);var g=new createjs.Bitmap(qp_a.getResult("star2"));g.regX=62;g.regY=60;g.x=320;g.y=480;g.alpha=0;createjs.Tween.get(g).to({x:520,y:280,rotation:360},800);createjs.Tween.get(g).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(g)});qp_s.addChild(g);var k=new createjs.Bitmap(qp_a.getResult("star2"));k.regX=62;k.regY=60;k.x=320;k.y=480;k.alpha=0; createjs.Tween.get(k).to({x:120,y:680,rotation:360},800);createjs.Tween.get(k).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(k)});qp_s.addChild(k);var f=new createjs.Bitmap(qp_a.getResult("star2"));f.regX=62;f.regY=60;f.x=320;f.y=480;f.alpha=0;createjs.Tween.get(f).to({x:520,y:680,rotation:360},800);createjs.Tween.get(f).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(f)});qp_s.addChild(f);var l=new createjs.Bitmap(qp_a.getResult("star1"));l.regX=69;l.regY= 67;l.x=320;l.y=480;createjs.Tween.get(l).to({rotation:360},800);createjs.Tween.get(l).to({alpha:1},400).to({alpha:0},400).call(function(){qp_s.removeChild(l)});qp_s.addChild(l);a=stage.getChildByName("follow");qp_s.addChild(a);a=new createjs.Bitmap(qp_a.getResult("fcwmlogl"));a.regX=320;a.regY=70;a.x=320;a.y=110;qp_s.addChild(a);a=new createjs.Bitmap(qp_a.getResult("curscore"));a.x=90;a.y=260;qp_s.addChild(a);a=new createjs.Bitmap(qp_a.getResult("bestscore"));a.x=90;a.y=380;qp_s.addChild(a);a=new createjs.Text(score, "bold 48px Arial","#ff1e50");a.stroke="white";a.textBaseline="middle";a.x=440;a.y=300;qp_s.addChild(a);a=new createjs.Text(best,"bold 48px Arial","#ff1e50");a.stroke="white";a.textBaseline="middle";a.x=440;a.y=410;qp_s.addChild(a);a=new createjs.Bitmap(qp_a.getResult("replaybtn"));a.regX=115;a.regY=40;a.x=200;a.y=540;a.on("mousedown",function(a){IS_TOUCH&&a.nativeEvent instanceof MouseEvent||(qp_v.visible=!0,qp_C=qp_B,qp_u.text=qp_C,stage.removeChild(qp_s),qp_N(!0),gjQipa.onGameStarted())});qp_s.addChild(a); var m=new createjs.Bitmap(qp_a.getResult("toplistbtn"));m.regX=115;m.regY=40;m.x=440;m.y=540;m.on("mousedown",function(a){IS_TOUCH&&a.nativeEvent instanceof MouseEvent||showTop()});qp_s.addChild(m);var n=new createjs.Bitmap(qp_a.getResult("lowkeysharebtn"));n.regX=125;n.regY=42;n.x=320;n.y=670;n.on("mousedown",function(a){IS_TOUCH&&a.nativeEvent instanceof MouseEvent||share()});qp_s.addChild(n);a.y=1200;createjs.Tween.get(a).to({y:540},200);m.y=1200;createjs.Tween.get(m).to({y:1200},150).to({y:540}, 200);n.y=1200;createjs.Tween.get(n).to({y:1200},350).to({y:670},200);gjQipa.onGameOver()}function qp_M(){qp_v=new createjs.Bitmap(qp_a.getResult("btn"));qp_v.regX=27;qp_v.regY=40;qp_v.x=580;qp_v.y=914;var a=new createjs.Shape;a.graphics.f("red").r(0,0,60,60);qp_v.hitArea=a;qp_v.on("mousedown",function(a){IS_TOUCH&&a.nativeEvent instanceof MouseEvent||(qp_O(),qp_e.girdRefreshLoad(),qp_L())},this);stage.addChild(qp_v)} function qp_N(a){qp_r.removeAllChildren();qp_e.girdLoad();qp_e.m_currentchooseitem=null;qp_e.m_iconnum=qp_f*qp_g;!0==a?(qp_i=1,score=0,qp_t.text=score.toString(),qp_F=qp_B-1,qp_D=setInterval(function(){0e-c&&(g=-g);for(e=0;eh-d&&(g=-g),e=0;e=qp_e.m_iconnum&&qp_N(!1),score+=qp_j,qp_t.text=score):(qp_e.m_currentchooseitem= this,qp_Q(this.x,this.y)):(qp_e.m_currentchooseitem=this,qp_Q(this.x,this.y)))},this)},Qp_U=function(a,b){this.x=a;this.y=b},Qp_V=function(a,b,c){this.a=a;this.b=b;this.direction=c},Qp_W=function(a,b){this.m_img=this.img=a;this.m_id=this.id=b},Qp_I=function(a,b){this.m_queueresult=a;this.m_id=this.id=b}; function Qp_J(a){this.m_xnum=qp_f;this.m_ynum=qp_g;this.m_iconnum=qp_f*qp_g;this.m_allitems=[];a=qp_X(a,7);this.m_imglist=[];for(var b=0;b<=a.length;b++)b==a.length&&(this.m_imglist.push(a[b-1]),this.m_imglist.push(a[b-1])),this.m_imglist.push(a[b]),this.m_imglist.push(a[b]),this.m_imglist.push(a[b]),this.m_imglist.push(a[b]);this.m_imgrescount=this.m_imglist.length;this.m_currentchooseitem=null;score=0} Qp_J.prototype.girdLoad=function(){var a=[];this.m_allitems=[];for(var b=0;b