/* bxslider */

jQuery(document).ready(function() {
	jQuery('#slider').bxSlider({
		auto: true,
	    autoControls: false,
	    pager: false,
	    mode: 'horizontal', /* fade,vertical など */
	    speed: 1500,
	    prevText: '　',
	    nextText: '　',
	    pause: 10000,
	    easing: 'jswing',
	    autoHover: true
	});
	
	jQuery(document).ready(function(){
    	jQuery(".bx-prev,.bx-next").wrapAll("<div class='prev-next'></div>");
  	});
  	
  	jQuery('.green-button').append('<span class="hover">Back to Article</span>').each(function () {
  		var span = jQuery('span.hover', this).css('opacity', 0);
  		jQuery(this).hover(function () {
    		span.stop().fadeTo(500, 1);
 		}, function () {
   	span.stop().fadeTo(500, 0);
  		});
	});
});


/* Shadowbox */

        Shadowbox.init({
           overlayOpacity: 0.8,
           slideshowDelay: 5,       //スライドショーのオプション 0：手動スライドショー 1以上：自動スライドショー
           counterType: "skip",     //ギャラリーカウンターのオプション
           continuous: "true"       //ギャラリーカウンターのオプション
          });
