/* START applesearch object */

if (!applesearch)	var applesearch = {};

applesearch.init = function ()
{
	// add applesearch css for non-safari, dom-capable browsers
	if ( navigator.userAgent.toLowerCase().indexOf('safari') < 0  && document.getElementById )
	{
		this.clearBtn = false;


		var srchinput = document.getElementById("query");

		// Label actions (clear on focus, change it's color, etc)
		if(srchinput) {

			var labelColor = '#999';
			var inputColor = '#002F5D';
			var labelText = srchinput.getAttribute("placeholder");
				}
			srchinput.onfocus = function () {
					if (this.value == labelText) {
						this.value = '';
						this.style.color = inputColor;
					}
				}
			srchinput.onblur = function () {
					if (this.value == '') {
						this.value = labelText;
						this.style.color = labelColor;
					}
				}

			// initially set the placeholder text
			srchinput.value = labelText;
			srchinput.style.color = labelColor;

		}

	}



/* END applesearch object */

// Load It Up //
// window.onload = function () { applesearch.init(); }
