// JavaScript Document


//smoothscroll

jQuery.fn.extend({
scrollTo : function(speed, easing) {
<!-- hashの取得が出来なければ、処理を中断 -->
if(!$(this)[0].hash || $(this)[0].hash == "#") {
return false;
}
return this.each(function() {
var targetOffset = $($(this)[0].hash).offset().top;
$('html,body').animate({scrollTop: targetOffset}, speed, easing);
});
}
});
$(document).ready(function(){
$('a[href*=#]').click(function() {
$(this).scrollTo(500);
return false;
});
});
//mouse action
function mact(){
$(document).ready(
function(){
$("#banner a img,#box-recommend a img,.banner a img,a.fade").hover(function(){
$(this).fadeTo("fast", 0.6); // マウスオーバーで透明度を30%にする
},function(){
$(this).fadeTo("fast", 1.0); // マウスアウトで透明度を100%に戻す
});
});
};

$(document).ready(
function(){
$("a.fadeall img").hover(function(){
$(this).fadeTo("fast", 0.1); // マウスオーバーで透明度を30%にする
},function(){
$(this).fadeTo("fast", 1.0); // マウスアウトで透明度を100%に戻す
});
});
mact();

