if(location.href.indexOf("https://") != -1) {
	document.write('<img src="/images/ripley/search_disabled.gif" alt="search disabled when https" />');
} else {
	var searchHTML = '<form action="/search/results.asp">'
		+ '<fieldset>'
		+ '<legend>Search</legend>'
		+ '<input type="hidden" name="cx" value="009683275883428623758:3rfza1vgwgq" />'
		+ '<input type="hidden" name="cof" value="FORID:11" />'
		+ '<input type="text" class="text" name="q" id="search-field" value="Search" size="25" />'
		+ '<input type="submit" class="fade-link" id="global-search-button" value="Search" />'
	+ '</fieldset></form>';
	document.write(searchHTML);
	document.write(unescape("%3Cscript src='http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en' type='text/javascript'%3E%3C/script%3E"));
}

var theProtocol = (location.href.indexOf("https://") != -1) ? "https://" : "http://";
