
function onClickSearch() {
  $('#search input').click(function() {
  	$(this).attr('value', '');	
  });

  $('#search input').focusout(function() {
	  if ($(this).attr('value') == '') {
		
		$(this).attr('value', 'Search');	
	  }
  });
}

function searchWarning() {
  $('#search input').focusin(function() {
    $('<div style="display:none" class="warning"><p>Disabled</p></div>').appendTo($('#search'));
	$('.warning').slideDown(100, function() {
			//Animation complete
	});

    //Activate after $time
    $('.warning').delay(2000).slideUp(100, function() {
      //Remove warning fae dom
	  $(this).detach();
    });

  });


  $('#search').focus().submit(function(event) {
        event.preventDefault();
        $('#search input').focusin();
  });

}

function speechHover() {
    $('#social li').hover(function() {
      $(this).append('<span class="social-hover">'+ $(this).attr('id') + '</span');
    }, function() {
      $('.social-hover').detach(); 
    });
}

