function stripTitlesAndLabelify( selectorString ){
  $.each( $("input:text"), function(index, element){
    if ( $(element).val() != null && $(element).val() != "" ){
      $(element).removeAttr("title");
    }
  });
  $( selectorString ).labelify({
    labelledClass: "unfocused"
  });
}

$(document).ready(function(){

  // Close links in notification boxes.
  $(".close").live( 'click',
		function () {
			$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
				$(this).slideUp(400, function(){ $(this).remove(); } );
			});
			return false;
		}
	);

  stripTitlesAndLabelify( "input:text" );

});