/*
 * jQuery config
	
	  jquery-config.js　このファイル
			
			jQuery  plugin list
			Shadowbox　Shadowbox
			jquery.corner.js　角丸
	  //jquery.inc-5.js　外部ファイルの読込
	  //jcarousellite_1.0.1.min.js　スクロール
			//thickbox-bk.js　モーダル　Modal window
			//jquery.hoveraccordion.js　Nav アコーディオン
	
 *
 */


// 画像のロールオーバー
var preLoadImg = new Object();
 
function initRollOvers(){
    $("a img.hover").each(function(){
        var imgSrc = this.src;
        var sep = imgSrc.lastIndexOf('.');
        var onSrc = imgSrc.substr(0, sep) + '_on' + imgSrc.substr(sep, 4);
        preLoadImg[imgSrc] = new Image();
        preLoadImg[imgSrc].src = onSrc;
        $(this).hover(
            function() { this.src = onSrc; },
            function() { this.src = imgSrc; }
        );
    });
}
$(function(){
    initRollOvers();
});


// ページ内アンカー・スクロール　scroll page
jQuery.easing.quart = function (x, t, b, c, d) {
    return -c * ((t=t/d-1)*t*t*t - 1) + b;
};  

$(function () {
        $('.link-pagetop').click(function () {
            $(this).blur();
            $('html,body').animate({ scrollTop: 0 }, 300, 'quart');
            return false;
        });
});



// Shadowbox Settings
Shadowbox.init({
    language: 'ja',
    players:  ['img', 'html', 'iframe', 'swf', 'flv']
});




// コーナー角丸 
/* footer-sitemap
$(function(){
	$("#footer-sitemap").corner("round 5px");
}); */






