//ログインのポップアップ

     jQuery(function() {  
       jQuery(document).keyup(function(e) {  
         var key = (e.keyCode ? e.keyCode : e.charCode);  
         switch (key) {  
           case 27 :jQuery("a#funny_login").trigger('click'); 
             navigateUrl(jQuery('a#funny_login'));  
             break;    
           default: ;  
         }  
       });  
       function navigateUrl(jQueryObj) {  
         //window.location.href = jQueryObj.attr("href");  
         //alert("Navigating to " + jQueryObj.attr("href"));  
       }  
     });

//スムーススクロール

jQuery.fn.extend({
  scrollTo : function(speed, easing) {
    <!-- hashの取得が出来なけれabbr、処理を中断 -->
    if(!jQuery(this)[0].hash || jQuery(this)[0].hash == "#") {
      return false;
    }
    return this.each(function() {
      var targetOffset = jQuery(jQuery(this)[0].hash).offset().top;
      jQuery('html,body').animate({scrollTop: targetOffset}, speed, easing);
    });
  }
});

jQuery(document).ready(function(){
  jQuery('a[href*=#]').live('click', function() {
    jQuery(this).scrollTo(1000);
    return false;
  });
});

