$(function() {
  var text = '複数のキーワードでの検索は、半角スペースで区切ってください。';
  if ($('#search_area').val() == '' || $('#search_area').val() == text) {
    $('#search_area').css({
      'color' : '#999',
      'font-size' : '10px'
    }).val(text);
  }
  $('#search_area').focus(function() {
    if ($(this).val() == text) {
      $(this).css({
        'color' : '#000',
        'font-size' : '12px'
      }).val('');
    }
  });
  $('#search_area').blur(function() {
    if ($(this).val() == '') {
      $(this).css({
        'color' : '#999',
        'font-size' : '10px'
      }).val(text);
    }
  });
  $('.box_search form').submit(function() {
    if ($('#search_area').val() == text) {
      $('#search_area').val('');
    }
    return true;
  });
});

