$(function(){$(".helpmsg").tooltip({position:"bottom center",offset:[10,20],effect:"fade",opacity:0.8,events:{def:"click,mouseout"}});$("#smtp_enable").click(function(){if($(this).prop("checked")==true){$("#ms_box_smtp .ms_box_email").slideDown()}else{$("#ms_box_smtp .ms_box_email").slideUp()}});$("#more_option_misc_settings").click(function(){if($(this).text()=="advanced options"){$("#ms_box_misc .ms_box_more").slideDown();$(this).text("hide options");$("#misc_settings_img_arrow").attr("src","images/icons/38_topred_16.png")}else{$("#ms_box_misc .ms_box_more").slideUp();$(this).text("advanced options");$("#misc_settings_img_arrow").attr("src","images/icons/38_rightred_16.png")}return false});$("#button_save_main_settings").click(function(){if($("#button_save_main_settings").text()!="Saving..."){$("#button_save_main_settings").prop("disabled",true);$("#button_save_main_settings").text("Saving...");$("#button_save_main_settings").after("<img style=\"margin-left: 10px\" src='images/loader_small_grey.gif' />");$("#ms_form").submit()}return false})});