var arrImgs = [];
var Imgs = [];


arrImgs[0] = new Image(); arrImgs[0].src = 'img-lite/toumei.gif';
arrImgs[1] = new Image(); arrImgs[1].src = 'img-lite/s001.jpg';
arrImgs[2] = new Image(); arrImgs[2].src = 'img-lite/s002.jpg';
arrImgs[3] = new Image(); arrImgs[3].src = 'img-lite/s003.jpg';
arrImgs[4] = new Image(); arrImgs[4].src = 'img-lite/s004.jpg';
arrImgs[5] = new Image(); arrImgs[5].src = 'img-lite/s005.jpg';
arrImgs[6] = new Image(); arrImgs[6].src = 'img-lite/s006.jpg';
arrImgs[7] = new Image(); arrImgs[7].src = 'img-lite/s007.jpg';

Imgs[0]  = new Image(); Imgs[0].src  = 'img-lite/toumei.gif';
Imgs[1]  = new Image(); Imgs[1].src  = 'img-lite/image001.jpg';
Imgs[2]  = new Image(); Imgs[2].src  = 'img-lite/image002.jpg';
Imgs[3]  = new Image(); Imgs[3].src  = 'img-lite/image003.jpg';
Imgs[4]  = new Image(); Imgs[4].src  = 'img-lite/image004.jpg';
Imgs[5]  = new Image(); Imgs[5].src  = 'img-lite/image005.jpg';
Imgs[6]  = new Image(); Imgs[6].src  = 'img-lite/image006.jpg';
Imgs[7]  = new Image(); Imgs[7].src  = 'img-lite/image007.jpg';
Imgs[8]  = new Image(); Imgs[8].src  = 'img-lite/image008.jpg';
Imgs[9]  = new Image(); Imgs[9].src  = 'img-lite/image009.jpg';
Imgs[10] = new Image(); Imgs[10].src = 'img-lite/image010.jpg';
Imgs[11] = new Image(); Imgs[11].src = 'img-lite/image011.jpg';
Imgs[12] = new Image(); Imgs[12].src = 'img-lite/image012.jpg';
Imgs[13] = new Image(); Imgs[13].src = 'img-lite/image013.jpg';
Imgs[14] = new Image(); Imgs[14].src = 'img-lite/s010.jpg';
Imgs[15] = new Image(); Imgs[15].src = 'img-lite/s011.jpg';
Imgs[16] = new Image(); Imgs[16].src = 'img-lite/image016.jpg';
Imgs[17] = new Image(); Imgs[17].src = 'img-lite/image017.jpg';
Imgs[18] = new Image(); Imgs[18].src = 'img-lite/image018.jpg';
Imgs[19] = new Image(); Imgs[19].src = 'img-lite/image019.jpg';
Imgs[20] = new Image(); Imgs[20].src = 'img-lite/image020.jpg';
Imgs[21] = new Image(); Imgs[21].src = 'img-lite/image021.gif';
Imgs[22] = new Image(); Imgs[22].src = 'img-lite/image022.jpg';
Imgs[23] = new Image(); Imgs[23].src = 'img-lite/image023.jpg';
Imgs[24] = new Image(); Imgs[24].src = 'img-lite/image024.jpg';
Imgs[25] = new Image(); Imgs[25].src = 'img-lite/image025.jpg';
Imgs[26] = new Image(); Imgs[26].src = 'img-lite/image026.jpg';
Imgs[27] = new Image(); Imgs[27].src = 'img-lite/image027.jpg';
Imgs[28] = new Image(); Imgs[28].src = 'img-lite/image028.jpg';
Imgs[29] = new Image(); Imgs[29].src = 'img-lite/image029.jpg';
Imgs[30] = new Image(); Imgs[30].src = 'img-lite/image030.gif';
Imgs[31] = new Image(); Imgs[31].src = 'img-lite/image031.jpg';
Imgs[32] = new Image(); Imgs[32].src = 'img-lite/image032.jpg';
Imgs[33] = new Image(); Imgs[33].src = 'img-lite/image033.jpg';
Imgs[34] = new Image(); Imgs[34].src = 'img-lite/image034.jpg';
Imgs[35] = new Image(); Imgs[35].src = 'img-lite/image035.jpg';
Imgs[36] = new Image(); Imgs[36].src = 'img-lite/image036.jpg';
Imgs[37] = new Image(); Imgs[37].src = 'img-lite/image037.jpg';
Imgs[38] = new Image(); Imgs[38].src = 'img-lite/image038.jpg';
Imgs[39] = new Image(); Imgs[39].src = 'img-lite/image039.jpg';
Imgs[40] = new Image(); Imgs[40].src = 'img-lite/image040.jpg';
Imgs[41] = new Image(); Imgs[41].src = 'img-lite/image041.jpg';
Imgs[42] = new Image(); Imgs[42].src = 'img-lite/image042.jpg';

Imgs[43] = new Image(); Imgs[43].src = 'img-lite/s008.jpg';
Imgs[44] = new Image(); Imgs[44].src = 'img-lite/s009.jpg';
Imgs[45] = new Image(); Imgs[45].src = 'img-lite/kentuika01.jpg';
Imgs[46] = new Image(); Imgs[46].src = 'img-lite/kentuika02.jpg';
Imgs[47] = new Image(); Imgs[47].src = 'img-lite/s012.jpg';

Imgs[48] = new Image(); Imgs[48].src = 'img-lite/print001.jpg';
Imgs[49] = new Image(); Imgs[49].src = 'img-lite/print002.jpg';
Imgs[50] = new Image(); Imgs[50].src = 'img-lite/print003.jpg';
Imgs[51] = new Image(); Imgs[51].src = 'img-lite/print004.gif';
Imgs[52] = new Image(); Imgs[52].src = 'img-lite/print005.jpg';
Imgs[53] = new Image(); Imgs[53].src = 'img-lite/print006.jpg';
Imgs[54] = new Image(); Imgs[54].src = 'img-lite/print007.jpg';
Imgs[55] = new Image(); Imgs[55].src = 'img-lite/print008.jpg';
Imgs[56] = new Image(); Imgs[56].src = 'img-lite/print009.jpg';
Imgs[57] = new Image(); Imgs[57].src = 'img-lite/print010.jpg';
Imgs[58] = new Image(); Imgs[58].src = 'img-lite/print011.jpg';
Imgs[59] = new Image(); Imgs[59].src = 'img-lite/print012.jpg';
Imgs[60] = new Image(); Imgs[60].src = 'img-lite/print013.jpg';
Imgs[61] = new Image(); Imgs[61].src = 'img-lite/print014.jpg';
Imgs[62] = new Image(); Imgs[62].src = 'img-lite/print015.jpg';
Imgs[63] = new Image(); Imgs[63].src = 'img-lite/print016.jpg';
Imgs[64] = new Image(); Imgs[64].src = 'img-lite/print017.jpg';
Imgs[65] = new Image(); Imgs[65].src = 'img-lite/print018.jpg';
Imgs[66] = new Image(); Imgs[66].src = 'img-lite/print019.jpg';
Imgs[67] = new Image(); Imgs[67].src = 'img-lite/print020.jpg';


function DivObj ()
{ 
  var element1 = document.createElement('div');
  element1.style.position = 'absolute';
  element1.style.visibility = 'visible';
  element1.style.width  =  '1px';
  element1.style.height =  '1px';
  element1.style.zindex  =  2;
  element1.id  =  'div01';
  var objBody = document.getElementsByTagName('body').item(0);
  objBody.appendChild(element1);
  var element2 = document.createElement('img');
  element2.src = arrImgs[0].src;
  element2.id  = 'layer1';
  element2.style.width  =  '1px';
  element2.style.height =  '1px';
  element1.appendChild(element2);
}

function Show (index, evt)
{ var obj1 = document.getElementById( 'div01' );
  if (window.createPopup)  {
     x = event.x + document.body.scrollLeft;
     y = event.y + document.body.scrollTop;
  }
  else {
     x = evt.pageX;
     y = evt.pageY;
   }
  obj1.style.left = '50px';
  obj1.style.top = ( y + 50 ) + 'px';

  if(index == '0') {
    hideLAYER('div01');
  }
  else {
    img_w = arrImgs[index].width;
    img_h = arrImgs[index].height;
    obj1.style.width  = img_w + 'px';
    obj1.style.height = img_h + 'px';
    var obj2 = document.getElementById('layer1');
    obj2.src = arrImgs[index].src;
    obj2.style.width  =  img_w + 'px';
    obj2.style.height =  img_h + 'px';
    showLAYER('div01');
  }
}

function Show2 (index, evt)
{ var obj1 = document.getElementById( 'div01' );
  if (window.createPopup)  {
     x = event.x + document.body.scrollLeft;
     y = event.y + document.body.scrollTop;
  }
  else {
     x = evt.pageX;
     y = evt.pageY;
   }
  obj1.style.left = '50px';
  obj1.style.top = ( y + 30 ) + 'px';

  if(index == '0') {
    hideLAYER('div01');
  }
  else {
    img_w = Imgs[index].width;
    img_h = Imgs[index].height;
    var obj2 = document.getElementById('layer1');
    obj2.src = Imgs[index].src;
    obj2.style.width  =  img_w + 'px';
    obj2.style.height =  img_h + 'px';
    showLAYER('div01');
  }
}

function showLAYER(idName){ 
  if(document.getElementById) document.getElementById(idName).style.visibility = 'visible'  //NN6,Mozilla,IE5用
  else if(document.all)       document.all(idName).style.visibility  = 'visible'  //IE4用
  else if(document.layers)    document.layers[idName].visibility     = 'show'  //NN4用
}

function hideLAYER(idName){ 
  if(document.getElementById) document.getElementById(idName).style.visibility = 'hidden'  //NN6,Mozilla,IE5用
  else if(document.all)       document.all(idName).style.visibility  = 'hidden'  //IE4用
  else if(document.layers)    document.layers[idName].visibility     = 'hide'    //NN4用
}

