// ==UserScript==
// @name netflix.com - Clear search box
// @author Lee Harvey 
// @namespace http://my.opera.com/Lee_Harvey/ 
// @version 1.0
// @description  Clears the test in the search field when it is first
//			activated.
// @ujs:category site: fixes
// @ujs:published 2005-11-18 23:43
// @ujs:modified 2005-11-18 23:43
// @ujs:documentation http://userjs.org/scripts/site/fixes/netflix-clear-search-box 
// @ujs:download http://userjs.org/scripts/download/site/fixes/netflix-clear-search-box.js
// ==/UserScript==


/* 
 * This script is granted to the Public Domain.
 */

if (document.domain.match(/^(www\.)?netflix\.com$/)) {
	window.opera.defineMagicFunction("focusNClearInput",
		function(oRealFunc, oThis, inputObject) {
			if (inputObject.style.color == "#000000") return;
			inputObject.style.color = "#000000";
			inputObject.value = "";
			if (inputObject.form.submit_button)
				inputObject.form.submit_button.disabled = false;
		});
}