/*
 * setting.js
 * よく使うjsをまとめて記述する
 * Copyright (c) 2010 Ability Consultant
 *
 */


// IE pngfix
$(document).ready(function(){
	$(document).pngFix();
});



// 画像切替
$(document).ready( function() {
  $(".bt_sea a").click( function() {
		$(".bt_sea a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#sea_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_kumano a").click( function() {
		$(".bt_kumano a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#kumano_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_large a").click( function() {
		$(".bt_large a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#large_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_onsui a").click( function() {
		$(".bt_onsui a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#onsui_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_garden a").click( function() {
		$(".bt_garden a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#garden_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_log a").click( function() {
		$(".bt_log a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#log_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
	
	$(".bt_inperial a").click( function() {
		$(".bt_inperial a").removeClass("active");
		$(this).addClass("active");
		var changeSrc = $(this).attr("href");
    $("#inperial_photo img").fadeOut(
      "slow",
      function() {
        $(this).attr("src", changeSrc);
        $(this).fadeIn();
      }
    );
		return false;
  });
});
