
// htmlのheader内に記述せず、本ファイルに書きためています。

/*####################################################################################################*/
/*
/*	ロールオーバーで画像を変更
/*	参考サイト：http://www.webcreatorbox.com/tech/jquery-tips20/
/*
/*####################################################################################################*/

$(function(){
     $('a img').hover(function(){
        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
          }, function(){
             if (!$(this).hasClass('currentPage')) {
             $(this).attr('src', $(this).attr('src').replace('_on', '_off'));
        }
   });
});


/*####################################################################################################*/
/*
/*	scroll
/*	参考サイト：http://blog.verygoodtown.com/2010/02/no-plugin-jquery-tips-24/
/*
/*####################################################################################################*/

$(document).ready(function() {
$('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, 500);
    return false;
   }
  }
  });
});


/*####################################################################################################*/
/*
/*	折りたたみ(jquery-latest.jsとともに使用しています)
/*	Toggle Tutorial - jQuery CSS Toggle Effect - javascript toggle tutorial
/*	- simple Toggle Effect | jQuery Tutorials | Web Design Tutorials and Front-end Development Blog by Soh Tanaka
/*	参考サイト：http://www.sohtanaka.com/web-design/easy-toggle-jquery-tutorial/
/*
/*####################################################################################################*/

$(document).ready(function(){
	$(".toggle_container").hide();
	$(".trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
	});
});


/*####################################################################################################*/
/*
/*	テーブルの偶数・奇数の行の色を変える
/*	参考サイト：http://www.webcreatorbox.com/tech/jquery-tips20/
/*
/*####################################################################################################*/

$(function(){
     $("tr:odd").addClass("odd");
});


/*####################################################################################################*/
/*
/*	jQuery lightbox for images, videos, YouTube, iframes | prettyPhoto モーダルボックスの決定版
/*	配布サイト：http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
/*
/*####################################################################################################*/

		$(document).ready(function(){
			$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square',slideshow:2000, autoplay_slideshow: false});
			//false→もとはtrue
			$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000});
			
			$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
				custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
				changepicturecallback: function(){ initialize(); }
			});

			$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
				custom_markup: '<div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
				changepicturecallback: function(){ _bsap.exec(); }
			});
		});

		<!-- Google Maps Code -->

		  function initialize() {
		    var latlng = new google.maps.LatLng(-34.397, 150.644);
		    var myOptions = {
		      zoom: 8,
		      center: latlng,
		      mapTypeId: google.maps.MapTypeId.ROADMAP
		    };
		    var map = new google.maps.Map(document.getElementById("map_canvas"),
		        myOptions);
		  }

		<!-- END Google Maps Code -->
		
		<!-- BuySellAds.com Ad Code -->

		(function(){
		  var bsa = document.createElement('script');
		     bsa.type = 'text/javascript';
		     bsa.async = true;
		     bsa.src = '//s3.buysellads.com/ac/bsa.js';
		  (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
		})();


/*####################################################################################################*/
/*
/*	●●●●●
/*	参考サイト：
/*
/*####################################################################################################*/




/*####################################################################################################*/
/*
/*	●●●●●
/*	参考サイト：
/*
/*####################################################################################################*/




/*####################################################################################################*/
/*
/*	●●●●●
/*	参考サイト：
/*
/*####################################################################################################*/




/*####################################################################################################*/
/*
/*	●●●●●
/*	参考サイト：
/*
/*####################################################################################################*/




/*####################################################################################################*/
/*
/*	●●●●●
/*	参考サイト：
/*
/*####################################################################################################*/




