$(document).ready(function() {
	initBoxes();
	$('a').focus(function() { $(this).blur(); });
	var query = $('#header input.text');
	query.data('def', query.val());
	query.focus(function() {
		query.val('');
		query.addClass('focus');
	});
	query.blur(function() {
		if (!query.val()) {
			query.val(query.data('def'));
			query.removeClass('focus');
		}
	});
});

function initBoxes() {
	var tbl = $('table.sfc_box');
	tbl.each(function() {
		$(this).find('tr').first().children('td').each(function() {
			var td = $(this);
			td.addClass('head');
		});
	});
}
