Shadowbox.loadSkin('classic', 'http://www.hansoku-ichi.jp/shared/js/box/skin');
Shadowbox.loadLanguage('en', 'http://www.hansoku-ichi.jp/shared/js/box/lang');
Shadowbox.loadPlayer(['html', 'img'], 'http://www.hansoku-ichi.jp/shared/js/box/player');

window.onload = function(){

    Shadowbox.init();

    /**
     * Note: The following function call is not necessary in your own project.
     * It is only used here to set up the demonstrations on this page.
     */
    initDemos();

};

//imgover
function initRollOverImages() {
	  var image_cache = new Object();
	  $("img.imgovr").each(function(i) {
	    var imgsrc = this.src;
	    var dot = this.src.lastIndexOf('.');
	    var imgsrc_on = this.src.substr(0, dot) + '_ovr' + 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);
