// Initialization of javascript
document.observe("dom:loaded", function() {
  // Focus on the first element in the form
	var form = $('mainform');
	if (form != null) {
		form.focusFirstElement();
	}

	// Clear search text on activation
	$$('.words').each(function(e) {
		e.onfocus = function() {
			if (this._cleared) return;
			this.clear();
			this._cleared = true;
		}
	});
});

