/* 
This is a script that will clear out a form's initial contents when focused.  
-When the user puts their own data in it will not clear on blur. 
-When the user clears out their inputted data it WILL clear on blur.  This is the essential effect.

Code originally created by eggChops:
http://www.eggchops.com/jquery/jquery-clear-focus-function/

Modified for use by Mike Bowen, Derin Adeyokunno - Nineyard 
*/

$(document).ready(function(){

	var clearMePrevious = "";
	
	// clear input on focus
	$("#searchform input#s").focus(function()
	{
	if($(this).val()==$(this).attr("title"))
	{
	clearMePrevious = $(this).val();
	$(this).val("");
	}
	});
	
	// if field is empty afterward, add text again
	$(".clearMeFocus").blur(function()
	{
	if($(this).val()=="")
	{
	$(this).val(clearMePrevious);
	}
	
	});
	
});

