
function initRollOverImages() {
  var image_cache = new Object();
  jQuery("img.swap").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    jQuery(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}

jQuery(document).ready(initRollOverImages);

// 別ウィンドウ
function openpop(page,name,w,h,others){
 var prm="";
 others=""+others;
 if (others.search(/t/i) != -1) {
 prm += ",toolbar=yes";
 }
 if (others.search(/l/i) != -1) {
 prm += ",location=yes";
 }
 if (others.search(/s/i) != -1) {
 prm += ",status=yes";
 }
 if (others.search(/m/i) != -1) {
 prm += ",menubar=yes";
 }
 if (others.search(/b/i) != -1) {
 prm += ",scrollbars=yes";
 }
 if (others.search(/r/i) != -1) {
 prm += ",resizable=yes";
 }
 window.open(page,name,"directories=no,width="+w+",height="+h+prm);
}
function stword(word){
 window.status = word;
 return true;
}
