function ProductSearchSuggestion(inputElem, suggestionText)
{
	this.inputElem = inputElem;
	this.suggestionText = suggestionText;

	this.onBlurHandler();
	Event.observe(inputElem, 'blur', this.onBlurHandler.bind(this));
	Event.observe(inputElem, 'focus', this.onFocusHandler.bind(this));
}

ProductSearchSuggestion.prototype.onFocusHandler = function()
{
	if (this.inputElem.value == this.suggestionText) {
		this.inputElem.value = '';
	}
};

ProductSearchSuggestion.prototype.onBlurHandler = function()
{
	if (this.inputElem.value == '') {
		this.inputElem.value = this.suggestionText;
	}
};
