public final static String[] FILESNAME={"bg_prop","bg_prop_2","bg_soul","bossui","box","cg0","cg1","cg2","cp","cure","cure2","d_bing1","d_bing2","d_cao1","d_cao2","d_chelun","d_d","d_dashu1","d_dashu1s","d_dashu2","d_deng1","d_deng2","d_dj","d_dx","d_hb","d_ht","d_lt","d_qgdj","d_qgdj2","d_qizi","d_qq","d_sd","d_shitou1","d_shitou2","d_shugan","d_shuijing","d_shuzhuang","d_suishi","d_ta1","d_ta2","d_tac","d_xueshu","d_zz","db_f","down","eff_blood","eff_dust","eff_getsoul","eff_hit","emy_boss0_0","ex0","ex1","ex2","ex3","eye","fire","fire2","gamebg0","gamebg0_0","gamebg0_1","gamebg1","gamebg1_1","gamebg2","gamebg2_0","gamebg3","gamebg3_0","getExp","head0","head1","head2","head3","head4","head5","head6","head7","head8","hit_num1","hit_num2","hitwaring","icon_gold","icon_item","icon_silver","icon_soul","kj_bg","levelup","levelupword","load","map","map_door","map_point","map_role","maparrow","mapcf","more_word","number","qq","r_eff","r_eff2","s0","s1","s10","s11","s12","s13","s14","s15","s16","s17","s18","s19","s2","s22","s23","s24","s25","s26","s27","s28","s29","s30","s31","s4","s5","s6","s7","s8","s9","shot_emy_gjs","shot_emy_qd","shot_role","slt0","slt1","slt2","slt3","sp","stone","str_choose","str_menu","str_other","trap","trap2","ui","ui2","ui_bg","ui_choose","ui_frame","ui_line","ui_num","ui_num2","ui_num2_2","ui_sel","ui_shop","ui_str2","ui_talk"};

public final static byte IMG_BG_PROP=0;
public final static byte IMG_BG_PROP_2=1;
public final static byte IMG_BG_SOUL=2;
public final static byte IMG_BOSSUI=3;
public final static byte IMG_BOX=4;
public final static byte IMG_CG0=5;
public final static byte IMG_CG1=6;
public final static byte IMG_CG2=7;
public final static byte IMG_CP=8;
public final static byte IMG_CURE=9;
public final static byte IMG_CURE2=10;
public final static byte IMG_D_BING1=11;
public final static byte IMG_D_BING2=12;
public final static byte IMG_D_CAO1=13;
public final static byte IMG_D_CAO2=14;
public final static byte IMG_D_CHELUN=15;
public final static byte IMG_D_D=16;
public final static byte IMG_D_DASHU1=17;
public final static byte IMG_D_DASHU1S=18;
public final static byte IMG_D_DASHU2=19;
public final static byte IMG_D_DENG1=20;
public final static byte IMG_D_DENG2=21;
public final static byte IMG_D_DJ=22;
public final static byte IMG_D_DX=23;
public final static byte IMG_D_HB=24;
public final static byte IMG_D_HT=25;
public final static byte IMG_D_LT=26;
public final static byte IMG_D_QGDJ=27;
public final static byte IMG_D_QGDJ2=28;
public final static byte IMG_D_QIZI=29;
public final static byte IMG_D_QQ=30;
public final static byte IMG_D_SD=31;
public final static byte IMG_D_SHITOU1=32;
public final static byte IMG_D_SHITOU2=33;
public final static byte IMG_D_SHUGAN=34;
public final static byte IMG_D_SHUIJING=35;
public final static byte IMG_D_SHUZHUANG=36;
public final static byte IMG_D_SUISHI=37;
public final static byte IMG_D_TA1=38;
public final static byte IMG_D_TA2=39;
public final static byte IMG_D_TAC=40;
public final static byte IMG_D_XUESHU=41;
public final static byte IMG_D_ZZ=42;
public final static byte IMG_DB_F=43;
public final static byte IMG_DOWN=44;
public final static byte IMG_EFF_BLOOD=45;
public final static byte IMG_EFF_DUST=46;
public final static byte IMG_EFF_GETSOUL=47;
public final static byte IMG_EFF_HIT=48;
public final static byte IMG_EMY_BOSS0_0=49;
public final static byte IMG_EX0=50;
public final static byte IMG_EX1=51;
public final static byte IMG_EX2=52;
public final static byte IMG_EX3=53;
public final static byte IMG_EYE=54;
public final static byte IMG_FIRE=55;
public final static byte IMG_FIRE2=56;
public final static byte IMG_GAMEBG0=57;
public final static byte IMG_GAMEBG0_0=58;
public final static byte IMG_GAMEBG0_1=59;
public final static byte IMG_GAMEBG1=60;
public final static byte IMG_GAMEBG1_1=61;
public final static byte IMG_GAMEBG2=62;
public final static byte IMG_GAMEBG2_0=63;
public final static byte IMG_GAMEBG3=64;
public final static byte IMG_GAMEBG3_0=65;
public final static byte IMG_GETEXP=66;
public final static byte IMG_HEAD0=67;
public final static byte IMG_HEAD1=68;
public final static byte IMG_HEAD2=69;
public final static byte IMG_HEAD3=70;
public final static byte IMG_HEAD4=71;
public final static byte IMG_HEAD5=72;
public final static byte IMG_HEAD6=73;
public final static byte IMG_HEAD7=74;
public final static byte IMG_HEAD8=75;
public final static byte IMG_HIT_NUM1=76;
public final static byte IMG_HIT_NUM2=77;
public final static byte IMG_HITWARING=78;
public final static byte IMG_ICON_GOLD=79;
public final static byte IMG_ICON_ITEM=80;
public final static byte IMG_ICON_SILVER=81;
public final static byte IMG_ICON_SOUL=82;
public final static byte IMG_KJ_BG=83;
public final static byte IMG_LEVELUP=84;
public final static byte IMG_LEVELUPWORD=85;
public final static byte IMG_LOAD=86;
public final static byte IMG_MAP=87;
public final static byte IMG_MAP_DOOR=88;
public final static byte IMG_MAP_POINT=89;
public final static byte IMG_MAP_ROLE=90;
public final static byte IMG_MAPARROW=91;
public final static byte IMG_MAPCF=92;
public final static byte IMG_MORE_WORD=93;
public final static byte IMG_NUMBER=94;
public final static byte IMG_QQ=95;
public final static byte IMG_R_EFF=96;
public final static byte IMG_R_EFF2=97;
public final static byte IMG_S0=98;
public final static byte IMG_S1=99;
public final static byte IMG_S10=100;
public final static byte IMG_S11=101;
public final static byte IMG_S12=102;
public final static byte IMG_S13=103;
public final static byte IMG_S14=104;
public final static byte IMG_S15=105;
public final static byte IMG_S16=106;
public final static byte IMG_S17=107;
public final static byte IMG_S18=108;
public final static byte IMG_S19=109;
public final static byte IMG_S2=110;
public final static byte IMG_S22=111;
public final static byte IMG_S23=112;
public final static byte IMG_S24=113;
public final static byte IMG_S25=114;
public final static byte IMG_S26=115;
public final static byte IMG_S27=116;
public final static byte IMG_S28=117;
public final static byte IMG_S29=118;
public final static byte IMG_S30=119;
public final static byte IMG_S31=120;
public final static byte IMG_S4=121;
public final static byte IMG_S5=122;
public final static byte IMG_S6=123;
public final static byte IMG_S7=124;
public final static byte IMG_S8=125;
public final static byte IMG_S9=126;
public final static byte IMG_SHOT_EMY_GJS=127;
public final static byte IMG_SHOT_EMY_QD=128;
public final static byte IMG_SHOT_ROLE=129;
public final static byte IMG_SLT0=130;
public final static byte IMG_SLT1=131;
public final static byte IMG_SLT2=132;
public final static byte IMG_SLT3=133;
public final static byte IMG_SP=134;
public final static byte IMG_STONE=135;
public final static byte IMG_STR_CHOOSE=136;
public final static byte IMG_STR_MENU=137;
public final static byte IMG_STR_OTHER=138;
public final static byte IMG_TRAP=139;
public final static byte IMG_TRAP2=140;
public final static byte IMG_UI=141;
public final static byte IMG_UI2=142;
public final static byte IMG_UI_BG=143;
public final static byte IMG_UI_CHOOSE=144;
public final static byte IMG_UI_FRAME=145;
public final static byte IMG_UI_LINE=146;
public final static byte IMG_UI_NUM=147;
public final static byte IMG_UI_NUM2=148;
public final static byte IMG_UI_NUM2_2=149;
public final static byte IMG_UI_SEL=150;
public final static byte IMG_UI_SHOP=151;
public final static byte IMG_UI_STR2=152;
public final static byte IMG_UI_TALK=153;

public final static Image loadImage(byte imgIndex){
   byte[] imgData=loadImageData(imgIndex);
    return Image.createImage(imgData, 0, imgData.length);
}

public final static byte[] loadImageData(byte imgIndex){
  InputStream is= "".getClass().getResourceAsStream("/imgPackage.dat");
  int offset=0;
  int len=0;
  byte[] imgData=null;
  try{
    switch(imgIndex){ 
      case IMG_BG_PROP:
        offset=0;
        len=13058;
        break;
      case IMG_BG_PROP_2:
        offset=13058;
        len=581;
        break;
      case IMG_BG_SOUL:
        offset=13639;
        len=10309;
        break;
      case IMG_BOSSUI:
        offset=23948;
        len=309;
        break;
      case IMG_BOX:
        offset=24257;
        len=650;
        break;
      case IMG_CG0:
        offset=24907;
        len=13263;
        break;
      case IMG_CG1:
        offset=38170;
        len=11995;
        break;
      case IMG_CG2:
        offset=50165;
        len=13054;
        break;
      case IMG_CP:
        offset=63219;
        len=2486;
        break;
      case IMG_CURE:
        offset=65705;
        len=430;
        break;
      case IMG_CURE2:
        offset=66135;
        len=201;
        break;
      case IMG_D_BING1:
        offset=66336;
        len=999;
        break;
      case IMG_D_BING2:
        offset=67335;
        len=541;
        break;
      case IMG_D_CAO1:
        offset=67876;
        len=731;
        break;
      case IMG_D_CAO2:
        offset=68607;
        len=516;
        break;
      case IMG_D_CHELUN:
        offset=69123;
        len=1162;
        break;
      case IMG_D_D:
        offset=70285;
        len=999;
        break;
      case IMG_D_DASHU1:
        offset=71284;
        len=4827;
        break;
      case IMG_D_DASHU1S:
        offset=76111;
        len=470;
        break;
      case IMG_D_DASHU2:
        offset=76581;
        len=956;
        break;
      case IMG_D_DENG1:
        offset=77537;
        len=408;
        break;
      case IMG_D_DENG2:
        offset=77945;
        len=428;
        break;
      case IMG_D_DJ:
        offset=78373;
        len=456;
        break;
      case IMG_D_DX:
        offset=78829;
        len=800;
        break;
      case IMG_D_HB:
        offset=79629;
        len=1256;
        break;
      case IMG_D_HT:
        offset=80885;
        len=619;
        break;
      case IMG_D_LT:
        offset=81504;
        len=240;
        break;
      case IMG_D_QGDJ:
        offset=81744;
        len=6606;
        break;
      case IMG_D_QGDJ2:
        offset=88350;
        len=239;
        break;
      case IMG_D_QIZI:
        offset=88589;
        len=1728;
        break;
      case IMG_D_QQ:
        offset=90317;
        len=1070;
        break;
      case IMG_D_SD:
        offset=91387;
        len=5249;
        break;
      case IMG_D_SHITOU1:
        offset=96636;
        len=787;
        break;
      case IMG_D_SHITOU2:
        offset=97423;
        len=1571;
        break;
      case IMG_D_SHUGAN:
        offset=98994;
        len=932;
        break;
      case IMG_D_SHUIJING:
        offset=99926;
        len=1263;
        break;
      case IMG_D_SHUZHUANG:
        offset=101189;
        len=1149;
        break;
      case IMG_D_SUISHI:
        offset=102338;
        len=708;
        break;
      case IMG_D_TA1:
        offset=103046;
        len=319;
        break;
      case IMG_D_TA2:
        offset=103365;
        len=248;
        break;
      case IMG_D_TAC:
        offset=103613;
        len=369;
        break;
      case IMG_D_XUESHU:
        offset=103982;
        len=3607;
        break;
      case IMG_D_ZZ:
        offset=107589;
        len=1820;
        break;
      case IMG_DB_F:
        offset=109409;
        len=2291;
        break;
      case IMG_DOWN:
        offset=111700;
        len=386;
        break;
      case IMG_EFF_BLOOD:
        offset=112086;
        len=745;
        break;
      case IMG_EFF_DUST:
        offset=112831;
        len=479;
        break;
      case IMG_EFF_GETSOUL:
        offset=113310;
        len=634;
        break;
      case IMG_EFF_HIT:
        offset=113944;
        len=2598;
        break;
      case IMG_EMY_BOSS0_0:
        offset=116542;
        len=804;
        break;
      case IMG_EX0:
        offset=117346;
        len=8864;
        break;
      case IMG_EX1:
        offset=126210;
        len=8163;
        break;
      case IMG_EX2:
        offset=134373;
        len=7956;
        break;
      case IMG_EX3:
        offset=142329;
        len=9913;
        break;
      case IMG_EYE:
        offset=152242;
        len=669;
        break;
      case IMG_FIRE:
        offset=152911;
        len=6489;
        break;
      case IMG_FIRE2:
        offset=159400;
        len=2786;
        break;
      case IMG_GAMEBG0:
        offset=162186;
        len=3959;
        break;
      case IMG_GAMEBG0_0:
        offset=166145;
        len=5201;
        break;
      case IMG_GAMEBG0_1:
        offset=171346;
        len=3590;
        break;
      case IMG_GAMEBG1:
        offset=174936;
        len=7517;
        break;
      case IMG_GAMEBG1_1:
        offset=182453;
        len=9541;
        break;
      case IMG_GAMEBG2:
        offset=191994;
        len=10037;
        break;
      case IMG_GAMEBG2_0:
        offset=202031;
        len=8902;
        break;
      case IMG_GAMEBG3:
        offset=210933;
        len=8319;
        break;
      case IMG_GAMEBG3_0:
        offset=219252;
        len=1595;
        break;
      case IMG_GETEXP:
        offset=220847;
        len=296;
        break;
      case IMG_HEAD0:
        offset=221143;
        len=4315;
        break;
      case IMG_HEAD1:
        offset=225458;
        len=2589;
        break;
      case IMG_HEAD2:
        offset=228047;
        len=3582;
        break;
      case IMG_HEAD3:
        offset=231629;
        len=4719;
        break;
      case IMG_HEAD4:
        offset=236348;
        len=3430;
        break;
      case IMG_HEAD5:
        offset=239778;
        len=5865;
        break;
      case IMG_HEAD6:
        offset=245643;
        len=6323;
        break;
      case IMG_HEAD7:
        offset=251966;
        len=4465;
        break;
      case IMG_HEAD8:
        offset=256431;
        len=6303;
        break;
      case IMG_HIT_NUM1:
        offset=262734;
        len=414;
        break;
      case IMG_HIT_NUM2:
        offset=263148;
        len=705;
        break;
      case IMG_HITWARING:
        offset=263853;
        len=216;
        break;
      case IMG_ICON_GOLD:
        offset=264069;
        len=351;
        break;
      case IMG_ICON_ITEM:
        offset=264420;
        len=1454;
        break;
      case IMG_ICON_SILVER:
        offset=265874;
        len=351;
        break;
      case IMG_ICON_SOUL:
        offset=266225;
        len=3692;
        break;
      case IMG_KJ_BG:
        offset=269917;
        len=27997;
        break;
      case IMG_LEVELUP:
        offset=297914;
        len=1870;
        break;
      case IMG_LEVELUPWORD:
        offset=299784;
        len=701;
        break;
      case IMG_LOAD:
        offset=300485;
        len=2092;
        break;
      case IMG_MAP:
        offset=302577;
        len=20328;
        break;
      case IMG_MAP_DOOR:
        offset=322905;
        len=1261;
        break;
      case IMG_MAP_POINT:
        offset=324166;
        len=219;
        break;
      case IMG_MAP_ROLE:
        offset=324385;
        len=1294;
        break;
      case IMG_MAPARROW:
        offset=325679;
        len=256;
        break;
      case IMG_MAPCF:
        offset=325935;
        len=528;
        break;
      case IMG_MORE_WORD:
        offset=326463;
        len=744;
        break;
      case IMG_NUMBER:
        offset=327207;
        len=256;
        break;
      case IMG_QQ:
        offset=327463;
        len=762;
        break;
      case IMG_R_EFF:
        offset=328225;
        len=7242;
        break;
      case IMG_R_EFF2:
        offset=335467;
        len=1373;
        break;
      case IMG_S0:
        offset=336840;
        len=11207;
        break;
      case IMG_S1:
        offset=348047;
        len=5875;
        break;
      case IMG_S10:
        offset=353922;
        len=426;
        break;
      case IMG_S11:
        offset=354348;
        len=5581;
        break;
      case IMG_S12:
        offset=359929;
        len=731;
        break;
      case IMG_S13:
        offset=360660;
        len=611;
        break;
      case IMG_S14:
        offset=361271;
        len=5430;
        break;
      case IMG_S15:
        offset=366701;
        len=6268;
        break;
      case IMG_S16:
        offset=372969;
        len=5965;
        break;
      case IMG_S17:
        offset=378934;
        len=7914;
        break;
      case IMG_S18:
        offset=386848;
        len=8735;
        break;
      case IMG_S19:
        offset=395583;
        len=1993;
        break;
      case IMG_S2:
        offset=397576;
        len=5010;
        break;
      case IMG_S22:
        offset=402586;
        len=735;
        break;
      case IMG_S23:
        offset=403321;
        len=845;
        break;
      case IMG_S24:
        offset=404166;
        len=957;
        break;
      case IMG_S25:
        offset=405123;
        len=570;
        break;
      case IMG_S26:
        offset=405693;
        len=630;
        break;
      case IMG_S27:
        offset=406323;
        len=576;
        break;
      case IMG_S28:
        offset=406899;
        len=542;
        break;
      case IMG_S29:
        offset=407441;
        len=253;
        break;
      case IMG_S30:
        offset=407694;
        len=211;
        break;
      case IMG_S31:
        offset=407905;
        len=208;
        break;
      case IMG_S4:
        offset=408113;
        len=3999;
        break;
      case IMG_S5:
        offset=412112;
        len=933;
        break;
      case IMG_S6:
        offset=413045;
        len=6391;
        break;
      case IMG_S7:
        offset=419436;
        len=6222;
        break;
      case IMG_S8:
        offset=425658;
        len=654;
        break;
      case IMG_S9:
        offset=426312;
        len=660;
        break;
      case IMG_SHOT_EMY_GJS:
        offset=426972;
        len=477;
        break;
      case IMG_SHOT_EMY_QD:
        offset=427449;
        len=263;
        break;
      case IMG_SHOT_ROLE:
        offset=427712;
        len=497;
        break;
      case IMG_SLT0:
        offset=428209;
        len=4609;
        break;
      case IMG_SLT1:
        offset=432818;
        len=4593;
        break;
      case IMG_SLT2:
        offset=437411;
        len=4299;
        break;
      case IMG_SLT3:
        offset=441710;
        len=4056;
        break;
      case IMG_SP:
        offset=445766;
        len=14181;
        break;
      case IMG_STONE:
        offset=459947;
        len=2922;
        break;
      case IMG_STR_CHOOSE:
        offset=462869;
        len=478;
        break;
      case IMG_STR_MENU:
        offset=463347;
        len=3731;
        break;
      case IMG_STR_OTHER:
        offset=467078;
        len=3031;
        break;
      case IMG_TRAP:
        offset=470109;
        len=298;
        break;
      case IMG_TRAP2:
        offset=470407;
        len=290;
        break;
      case IMG_UI:
        offset=470697;
        len=1468;
        break;
      case IMG_UI2:
        offset=472165;
        len=1229;
        break;
      case IMG_UI_BG:
        offset=473394;
        len=25371;
        break;
      case IMG_UI_CHOOSE:
        offset=498765;
        len=251;
        break;
      case IMG_UI_FRAME:
        offset=499016;
        len=1029;
        break;
      case IMG_UI_LINE:
        offset=500045;
        len=196;
        break;
      case IMG_UI_NUM:
        offset=500241;
        len=255;
        break;
      case IMG_UI_NUM2:
        offset=500496;
        len=190;
        break;
      case IMG_UI_NUM2_2:
        offset=500686;
        len=123;
        break;
      case IMG_UI_SEL:
        offset=500809;
        len=150;
        break;
      case IMG_UI_SHOP:
        offset=500959;
        len=10674;
        break;
      case IMG_UI_STR2:
        offset=511633;
        len=780;
        break;
      case IMG_UI_TALK:
        offset=512413;
        len=4163;
        break;
    }
    imgData = new byte[len]; 
    is.skip(offset);
    is.read(imgData, 0, len);
    is.close();
   }
  catch(Exception e){}
  return imgData;
}

int[] offsetArray={0,13058,13058,581,13639,10309,23948,309,24257,650,24907,13263,38170,11995,50165,13054,63219,2486,65705,430,66135,201,66336,999,67335,541,67876,731,68607,516,69123,1162,70285,999,71284,4827,76111,470,76581,956,77537,408,77945,428,78373,456,78829,800,79629,1256,80885,619,81504,240,81744,6606,88350,239,88589,1728,90317,1070,91387,5249,96636,787,97423,1571,98994,932,99926,1263,101189,1149,102338,708,103046,319,103365,248,103613,369,103982,3607,107589,1820,109409,2291,111700,386,112086,745,112831,479,113310,634,113944,2598,116542,804,117346,8864,126210,8163,134373,7956,142329,9913,152242,669,152911,6489,159400,2786,162186,3959,166145,5201,171346,3590,174936,7517,182453,9541,191994,10037,202031,8902,210933,8319,219252,1595,220847,296,221143,4315,225458,2589,228047,3582,231629,4719,236348,3430,239778,5865,245643,6323,251966,4465,256431,6303,262734,414,263148,705,263853,216,264069,351,264420,1454,265874,351,266225,3692,269917,27997,297914,1870,299784,701,300485,2092,302577,20328,322905,1261,324166,219,324385,1294,325679,256,325935,528,326463,744,327207,256,327463,762,328225,7242,335467,1373,336840,11207,348047,5875,353922,426,354348,5581,359929,731,360660,611,361271,5430,366701,6268,372969,5965,378934,7914,386848,8735,395583,1993,397576,5010,402586,735,403321,845,404166,957,405123,570,405693,630,406323,576,406899,542,407441,253,407694,211,407905,208,408113,3999,412112,933,413045,6391,419436,6222,425658,654,426312,660,426972,477,427449,263,427712,497,428209,4609,432818,4593,437411,4299,441710,4056,445766,14181,459947,2922,462869,478,463347,3731,467078,3031,470109,298,470407,290,470697,1468,472165,1229,473394,25371,498765,251,499016,1029,500045,196,500241,255,500496,190,500686,123,500809,150,500959,10674,511633,780,512413,4163};

