function MM_showHideLayers() { //v9.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) 

  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

$("html").prepend('<div style="display:none;"></div>');

$(function (){
	//**********************
	//プルダウン表示横幅調整
	//**********************
	if($('select.fixed-select-css').size() > 0){
		$('select.fixed-select-css').ieSelectWidth({
				containerClassName : 'select-container',
				overlayClassName : 'select-overlay'
		});	
	}

	/************************/

	// テキストフィールド内に初期表示

	/************************/

	//テキスト

	text = "サイト内検索";

	//テキストフィールドのID

	textId = "input[name='q']";

	//未入力時の文字の色

	col1 = "#808080";

	//入力時の文字の色

	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");

		}

	});

	

	

	

	

	

});
