$(document).ready(function(){
	/************************/
	// テキストフィールド内に初期表示
	/************************/
	//テキスト
	text = "サイト内検索";
	//テキストフィールドのID
	textId = ".cse-tf";
	//未入力時の文字の色
	col1 = "#AAAAAA";
	//入力時の文字の色
	col2 = "#000000";
	
	
	if($(textId).val() == "" || $(textId).val() == text){
		$(textId).val(text).css("color",col1);
	}
	//フォーカスがあたった時の挙動
	$(textId).focus(function(){
		if($(textId).val() == text){
			$(this).removeAttr("value").css("color",col2);
		}
	});
	//フォームが送信される時の入力値の制御
	$("form").submit(function(){
		if($(textId).val() == text){
			$(textId).removeAttr("value");
		}
	});
});