jumpbn1URL = new Array();
jumpbn2URL = new Array();
pbnIMG     = new Array();
pbnIMG2    = new Array();

var imsge_cnt = 0;

function Images_Pre_Load(in_flg, in_cnt, img_str1, img_str2, in_Name, in_Name2){

  imsge_cnt = in_cnt;

  image1 = img_str1.split(":");
  image2 = img_str2.split(":");

  for( i=1; i <= in_cnt; i++ ) {

       pbnIMG[i]  = in_Name+i;
       pbnIMG2[i] = in_Name2+i;

       i2 = i - 1;

       jumpbn1URL[i] = "./Image/"+image1[i2];
       jumpbn2URL[i] = "./Image/"+image2[i2];

       document.images[pbnIMG[i]].src = jumpbn1URL[i];

       if( in_flg == 0 ){ document.images[pbnIMG2[i]].src = jumpbn1URL[i]; }

  }

}

function swimg(in_num, in_flg){

  for ( i=1; i<=imsge_cnt; i++ ) { document.images[pbnIMG[i]].src = jumpbn1URL[i]; }

  if( in_flg == 0 ){
      document.images[pbnIMG[in_num]].src = jumpbn1URL[in_num];
  }else{
      document.images[pbnIMG[in_num]].src = jumpbn2URL[in_num];
  }

}

function swimg2(in_num, in_flg){

  for ( i=1; i<=imsge_cnt; i++ ) { document.images[pbnIMG2[i]].src = jumpbn1URL[i]; }

  if( in_flg == 0 ){
      document.images[pbnIMG2[in_num]].src = jumpbn1URL[in_num];
  }else{
      document.images[pbnIMG2[in_num]].src = jumpbn2URL[in_num];
  }

}
