jQuery( function ($) {
	
	var searchForm = $('form.quicksearch:first'),
		searchField = searchForm.find('.search-field');
	
	searchField.bind('change', function () {
		var val = searchField.val();
		
		if (val.length) {
			searchForm.addClass('not-empty');
		} else {
			searchForm.removeClass('not-empty');
		}
	}).change();
	
	
	if ($('html').hasClass('ie7')) {
		searchField.bind('focus blur', function (e) {
			searchField[ e.type === 'focus' ? 'addClass' : 'removeClass' ]('focus');
		});
	}
});
