function pic (product, pic, type) {
  switch (product) {
    case "sample" :
      pic = 'Image/Product/Sample_Card/origin/' + pic + '.jpg';
      window.open(pic,"_blank", "height=500,width=450,top=50,left=100,resizable=yes,scrollbars=yes");
      break;
    case "sample-all" :
      pic = 'Image/Product/Sample_Card/title/' + pic + '-All.gif';
      window.open(pic,"_blank", "height=500,width=500,top=50,left=100");
      break;
    case "fashion" :
      pic = 'Image/Product/Fashion_Jewelry/' + type + '/origin/' + pic + '.jpg';
      window.open(pic,"_blank", "height=400,width=350,top=50,left=100,resizable=yes,scrollbars=yes");
      break;
  }
}

function pItem (name) {
  this.on = new Image();
  this.on.src = "Image/Top/" + name + "_2.gif";
  this.off = new Image();
  this.off.src = "Image/Top/" + name + "_1.gif";
}

function img_act (imgName) {
  if (document.images) document[imgName].src = pItem[imgName].on.src;
}

function img_inact (imgName) {
  if (document.images) document[imgName].src = pItem[imgName].off.src;
}

button = new Array ("home", "com", "pro", "stone", "mail", "back");
if (document.images != null)
{
  for (i = 0; i < button.length; i++)
    pItem[button[i]] = new pItem(button[i]);
}