// jQueryを事前に読み込んでおくこと。
// 更新履歴
// ver 1.1 タブ切り替えの実装
// ver 1.0 フルパス用外部リンクの作成

//スライドパネル設定の読み込み
$(document).ready(function(){
	$(".slideconts").slideBox({width: "100%", height: "220px", position: "bottom"});
});

//jcarousel設定の読み込み
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 3,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});

// #NEWS透明度設定
$(document).ready(function(){
	$('#News').fadeTo("slow", 0.77);

	$("#News").hover(function(){
       $(this).fadeTo(800, 1.0); // マウスオーバーで透明度を100%にする
    },function(){
       $(this).fadeTo(500, 0.77); // マウスアウトで透明度を80%に戻す
    });
});

// スクロールバー設定の読み込み
$("maxImage").ready(function(){
	// this initialises the demo scollpanes on the page.
	$('#News dl').jScrollPane();
	$('.slideconts-inner').jScrollPane();
});
