var mentionInit=function(){var a={at:"@",data:[],show_the_at:!0,limit:10,callbacks:{remote_filter:function(a,b){a.length<2||$.ajax({url:smf_scripturl+"?action=suggest;"+smf_sessvar+"="+smf_sessid+";xml",method:"GET",data:{search:a,suggest_type:"member"},success:function(a){var c=$(a).find("smf > items > item"),d=[];$.each(c,function(a,b){d[d.length]={name:$(b).text()}}),b(d)}})}}};if("undefined"==typeof $.fn.atwho&&"undefined"!=typeof jQuery.fn.atwho){var b=jQuery("#html_message");"undefined"!=typeof b[0]&&jQuery(b[0].contentDocument.body).atwho(a),jQuery("textarea[name=message]").atwho(a)}else{var b=$("#html_message");"undefined"!=typeof b[0]&&$(b[0].contentDocument.body).atwho(a),$("textarea[name=message]").atwho(a)}},atWhoElement=document.createElement("script");if(atWhoElement.src=atwho_url,atWhoElement.type="text/javascript",atWhoElement.onload=mentionInit,"undefined"==typeof $||1==parseInt($.fn.jquery.substr(0,1))&&parseInt($.fn.jquery.substr(2,3))<8||jQuery.fn.jquery!=$.fn.jquery){var scriptElement=document.createElement("script");scriptElement.src=jquery_url,scriptElement.type="text/javascript",scriptElement.onload=function(){document.body.appendChild(atWhoElement)},document.body.appendChild(scriptElement)}else document.body.appendChild(atWhoElement);