$(document).ready( function(){
	autoFill($(".txtSearch"), "search site");
});

//Auto-Fill function accepts id of input and fills it with the given value.
//Written by Joe Sak http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/
function autoFill(id, v){
	$(id).css({ color: "#a8a8a8" }).attr({ value: v }).focus(function(){
		if($(this).val()==v){
			$(this).val("").css({ color: "#403f32" });
		}
	}).blur(function(){
		if($(this).val()==""){
			$(this).css({ color: "#a8a8a8" }).val(v);
		}
	});
	
}
