﻿/* 拡張JavaScript */
  jQuery(document).ready(function(){
    jQuery('#tabss').tabs();
    jQuery('#tabss').tabs({selected:0});
    jQuery("#return").hide();
    jQuery(function () {
      // scroll body to 0px on click
      jQuery('#return a').click(function () {
        jQuery('body,html').animate({
          scrollTop: 0
          }, 800, 'easeOutBounce');
        return false;
      });
      jQuery(window).scroll(function () {
        if (jQuery(this).scrollTop() > 100) {
          jQuery('#return').fadeIn();
        } else {
          jQuery('#return').fadeOut();
        }
      });
    });
  });
/* 拡張JavaScript */
  jQuery(document).ready(function(){
    // init
    jQuery('#tabss').tabs();
    jQuery('#tabss').tabs({selected:0});
    jQuery('#discussion').tabs();
    jQuery('#discussion').tabs({selected:0});
    jQuery("#return").hide();
    jQuery('#slider').nivoSlider();
    // search bar  
    jQuery( '.head_sub_widget .box' ).hide().click(
      function(){
        $(this).val('');
      }
    );
    jQuery( '.head_sub_widget .submit' ).mouseover(
      function(){
        jQuery( '.head_sub_widget .box' ).fadeIn('slow');
      }).mouseout(function(){
    });
  });
  // scroll part
  jQuery(function () {
    // scroll body to 0px on click
    jQuery('#return a').click(function () {
      jQuery('body,html').animate({
        scrollTop: 0
      }, 800, 'easeOutBounce');
      return false;
    });
    jQuery(window).scroll(function () {
      if (jQuery(this).scrollTop() > 100) {
        jQuery('#return').fadeIn();
      } else {
        jQuery('#return').fadeOut();
      }
    });
  });
