//!< ページトップへ
$(function(){
     $("#pageTop a").click(function(){
     	$('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
     	return false;
     })
});

$(function() {
	$('.gNav li a').hover(
		function(){
			//$(this).parent("li").css('background-color','#3A73B2');
       		//$(this).parent("li").stop().fadeTo("normal", 0.7);
       		$(this).parent("li").stop().fadeTo("normal", 0.0);
		},
		function () {
			//$(this).parent("li").css('background-color','#0061A7');
       		//$(this).parent("li").stop().fadeTo("normal", 1.0);
       		$(this).parent("li").stop().fadeTo("normal", 1.0);
		}
	);
});

//!< マウスオーバーで透明度を変更
$(document).ready( function(){
	$(".fadeItem,.more").hover(function(){
       $(this).stop().fadeTo("normal", 0.7); // マウスオーバーで透明度を80%にする
    },function(){
       $(this).stop().fadeTo("normal", 1.0); // マウスアウトで透明度を100%に戻す
    });
});
/*
//!< 自動更新
(function () {
  var last = null;
  (function request() {
    with (new XMLHttpRequest()) {
      open('get', location.href, true);
      send(null);
      onload = function () {
        if (!last || last == this.responseText) {
          last = this.responseText;
          setTimeout(request, 500);
        } else {
          location.reload(true);
        }
      };
    }
  })();
})();
*/
