function initRollOverImages() {
  var image_cache = new Object();
  $("img.swap,input.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;
    $(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}

$(document).ready(initRollOverImages);






/*********************************************
Copyright (c) 2008-2009 Nippon Art Printing Co.,Ltd.
http://www.nipponart-p.co.jp/
last update 2009/06/03
*********************************************/
var imageObj=new Array();
$(function(){
	$('img[src*="_off."] , input[src*="_off"]').each(function(i){artRollover(this,"_off.","_on.");});
});
function artRollover(thisObj,before,after){
	var off=thisObj.src;
	var on=thisObj.src.replace(before,after);
	var imageObjTemp=new Image();
	imageObjTemp.src=on;
	imageObj.push(imageObjTemp);
	$(thisObj).mouseover(function(){thisObj.setAttribute("src",on);});
	$(thisObj).mouseout (function() {thisObj.setAttribute("src",off);});
	$(thisObj).error(function() {thisObj.setAttribute("src",off);thisObj.onmouseover=function(){};});
}