sw_init = function() {
	var i=0;
	$("#search_text").attr("value", "");
	$("#search_optList").children("li").each(function(){
		var ancObj = $(this).children("a");
		var href_org = $(ancObj).attr("href");
		if(i <= 0){
			sw_switchSearchType(ancObj, href_org);
			i++;
		}
		$(ancObj).attr("href", "javascript:void(0);");
		$(ancObj).click(function(){sw_switchSearchType(this, href_org);});
		$(ancObj).keypress(function(){sw_switchSearchType(this, href_org);});
	});
//	$("#search_text").focus(function(){sw_chk_focus();});
//	$("#search_text").blur(function(){sw_chk_blur();});
}

sw_switchSearchType = function(tgtObj, tgtURI) {
	$("#search_form").attr("action", tgtURI);
	$(tgtObj).removeClass("sw_off");
	$(tgtObj).addClass("sw_on");
	$(tgtObj).parent().siblings().each(function(){
		$(this).children("a").removeClass("sw_on");
		$(this).children("a").addClass("sw_off");
	});
}

/*
sw_chk_focus = function() {
	if($("#search_text").attr("value") == $(".sw_on").html()){
		$("#search_text").attr("value", "");
		$("#search_text").css("color", "#000");
	}
}

sw_chk_blur = function() {
	if($("#search_text").attr("value") == ""){
		$("#search_text").attr("value", $(".sw_on").html());
		$("#search_text").css("color", "#ccc");
	}
}
*/