window.addEvent('domready', function () {
	var inp = $('modelSearch');
	if (inp) {
		inp.addEvent('focus', function () {
			this.removeClass('default');
			if (this.get('value') == this.getProperty('label')) {
				this.set('value', '');
			}
		});
		inp.addEvent('blur', function () {
			if (!this.get('value').length || this.get('value') == this.getProperty('label')) {
				this.addClass('default');
				this.set('value', this.getProperty('label'));
			}
		});
		inp.fireEvent('blur');
	}
});
