$(document).ready(function() {
	
	$('fieldset').each(function() {
		var heading = $('legend', this).remove().text();
		if(heading!=""){
			 $(this).before($('<h3></h3>').text(heading));
		}
	});

	$('.search-input').addClass('search-placeholder').focus(function() {
			$(this).removeClass('search-placeholder');
		}).blur(function() {
			if (this.value == '') {
				$(this).addClass('search-placeholder');
			};
	});

});


