// JavaScript Document
// 各種プラグインの設定 | Ability Consultant


// 画像切替
function preload(arrayOfImages) {
    $(arrayOfImages).each(function(){
        $('<img/>')[0].src = this;
        // Alternatively you could use:
        // (new Image()).src = this;
    });
}

// Usage:

preload([
    'images/gallery/img_gallery01.jpg',
    'images/gallery/img_gallery02.jpg',
    'images/gallery/img_gallery03.jpg',
    'images/gallery/img_gallery04.jpg',
    'images/gallery/img_gallery05.jpg',
]);

$(document).ready( function() {
  $(".bt_menu a").click( function() {
		$(".bt_menu a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#p_menu img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
});

