이메일 직접입력/선택입력

@ 메일서버선택버튼
							// 이메일 선택/직접입력

							(function ($) {									
								$.fn.changeEmailInputMode = function (options) {
									
									// 옵션설정
									options = $.extend({
										directMod: "#directInput",
										selectMod: "#selectMailServer",
										directImg: "/florakid_lib/images/scriptedbyme/email/btn_input.gif",
										selectImg: "/florakid_lib/images/scriptedbyme/email/btn_mailserver.gif",
										directTxt: "직접입력",
										selectTxt: "메일서버선택"
									}, options);

									// 참조선언
									var selectServer = $(options.selectMod);
									var directInput = $(options.directMod);
									

									// 초기화
									selectServer.hide();

									return this.each(function () {
										
										// 상태변수
										var f_st = true;	

										$(this).click(function (e) {
											e.preventDefault();
											if (f_st == true) {
												directInput.hide();
												selectServer.show();
												f_st = false;
												$("img",this).attr({
													"src": options.directImg,
													"alt": options.directTxt
												});
											}else {
												directInput.show();
												selectServer.hide();
												f_st = true;	
												$("img",this).attr({
													"src": options.selectImg,
													"alt": options.selectTxt
												});	
											}
										});// end of click event
									});
								};
							})(window.jQuery) // end of Execute_Self	
							
							$(function(){
								$('#btnChangeMode').changeEmailInputMode();
							});