if(!WRSGroup){var WRSGroup={}}WRSGroup.setFormError=function(a,b){$("#"+a).parents("li").find("label").addClass("WRSGroup-Sf-error");$("#Wrsgroup-Sf-errorMsg").text(b);$("#Wrsgroup-Sf-errorMsg").show();$("#"+a).focus()};WRSGroup.validateContact=function(e,c,b){var d=c[0];$("#SendEmail").find("label").removeClass("WRSGroup-Sf-error");if(!d.name.value){WRSGroup.setFormError("name","Please enter your name.");return false}if(!d.email.value){WRSGroup.setFormError("email","Please enter your e-mail address.");return false}else{var a=/^.+@.+\..{2,3}$/;if(!a.test(d.email.value)){WRSGroup.setFormError("email","Please enter a valid e-mail address.");return false}}$("#Wrsgroup-Sf-errorMsg").hide();$("#SendEmail").fadeTo("fast",0.33)};WRSGroup.submitAjax=function(a,b){$("#SendEmail-success").show();$("#SendEmail").fadeTo("fast",1,function(){if($.browser.msie){this.style.removeAttribute("filter")}});$("#remove-fields").hide()};$(document).ready(function(){var b=$("#inquiry")[0].selectedIndex;if($("#inquiry")[0].options[b].text!="Remove from mailing list"){$("#remove-fields").hide()}var c={target:"#SendEmail-success",resetForm:true,beforeSubmit:WRSGroup.validateContact,success:WRSGroup.submitAjax};$("#SendEmail").ajaxForm(c);$("#inquiry").change(function(){if($(this)[0].options[$(this)[0].selectedIndex].text=="Remove from mailing list"){$("#remove-fields").show("fast")}else{$("#remove-fields").hide("fast")}})});