function initialize(n){var i,t;_commandList=n;_commandArray=$.map(_commandList,function(n){return n.Command});_commandArray.push("ping-smtp");_buttonTextArray=$.map(_commandList,function(n){return n.ButtonText});loadCommands();($("#btnAction3").text()===""||$("#btnAction3").text()==="MX Lookup")&&setCommand2("mx","MX Lookup");$("#txtInput2:visible").focus();$('[id$="txtInput_picker"]:visible').focus();i=$("#txtInput2").val()||$('[id$="txtInput_picker"]').val();i!==""&&(t=getParameterByName("run")||"primary",getParameterByName("newAppVersion")?window.MXT.OnUserLoaded(function(){doLookup2(t)}):doLookup2(t),console.log("If you are trying to perform DNS lookups using our API you might want to check out https://mojodns.com/ which has friendly APIs with plans available starting as low as zero dollars."));loadPickerModal()}function loadCommands(){var n=$(".picker2-items");n.empty();$.each(_commandList,function(t,i){n.append($("
").attr("c",i.Command).attr("t",i.ButtonText).click(function(){setCommand2($(this).attr("c"),$(this).attr("t"))}).append($("").attr("href","#").append($("").addClass("picker-command").html(i.ButtonText))))});n.append($("").append($("").attr("href","/deliverability").append($("").addClass("picker-command").html("Email Deliverability"))))}function loadCommandsABOrder(){var n=$(".picker2-items");n.empty();$.each([{ButtonText:"MX Lookup",Command:"mx"},{ButtonText:"Blacklist Check",Command:"blacklist"},{ButtonText:"DMARC Lookup",Command:"dmarc"},{ButtonText:"SPF Record Lookup",Command:"spf"},{ButtonText:"DKIM Lookup",Command:"dkim"},{ButtonText:"Test Email Server",Command:"smtp"}],function(t,i){n.append($("").attr("c",i.Command).attr("t",i.ButtonText).click(function(){setCommand2($(this).attr("c"),$(this).attr("t"))}).append($("").attr("href","#").append($("").addClass("picker-command").html(i.ButtonText))))});n.append($("").append($("").attr("href","/EmailHeaders.aspx").append($("").addClass("picker-command").html("Header Analyzer"))));n.append($("").append($("").attr("href","/deliverability").append($("").addClass("picker-command").html("Email Deliverability"))));$.each([{ButtonText:"DNS Lookup",Command:"a"},{ButtonText:"DNS Check",Command:"dns"},{ButtonText:"HTTPS Lookup",Command:"https"},{ButtonText:"What Is My IP?",Command:"whatismyip"},{ButtonText:"TXT Lookup",Command:"txt"},{ButtonText:"Whois Lookup",Command:"whois"},{ButtonText:"CNAME Lookup",Command:"cname"},{ButtonText:"ARIN Lookup",Command:"arin"},{ButtonText:"Reverse Lookup",Command:"ptr"},{ButtonText:"AAAA Lookup",Command:"aaaa"},{ButtonText:"SRV Lookup",Command:"srv"},{ButtonText:"DNSKEY Lookup",Command:"dnskey"},{ButtonText:"CERT Lookup",Command:"cert"},{ButtonText:"LOC Lookup",Command:"loc"},{ButtonText:"IPSECKEY Lookup",Command:"ipseckey"},{ButtonText:"NSEC3PARAM Lookup",Command:"nsec3param"},{ButtonText:"DS Lookup",Command:"ds"},{ButtonText:"NSEC Lookup",Command:"nsec"},{ButtonText:"RRSIG Lookup",Command:"rrsig"},{ButtonText:"ASN Lookup",Command:"asn"},{ButtonText:"Domain Health",Command:"domain"},{ButtonText:"Trace",Command:"trace"},{ButtonText:"Ping",Command:"ping"},{ButtonText:"HTTP Lookup",Command:"http"},{ButtonText:"TCP Lookup",Command:"tcp"},{ButtonText:"SOA Lookup",Command:"soa"}],function(t,i){n.append($("").attr("c",i.Command).attr("t",i.ButtonText).click(function(){setCommand2($(this).attr("c"),$(this).attr("t"))}).append($("").attr("href","#").append($("").addClass("picker-command").html(i.ButtonText))))})}function loadPickerModal(){var n,t,i;_commandList=_commandList.concat(_extraCommands);n=$(".supertool_modal");n.empty();t=$("").addClass("st_tabs_container");i=$("").addClass("st_category_container");$.each(_pickerTabs,function(n,r){var f=$("").addClass("st_tab").addClass("clickable").attr("category",r.name).html(r.name),u,e;f.on({mouseenter:function(){$(this).addClass("hovered")},mouseleave:function(){$(this).removeClass("hovered")},click:function(){setPickerCategory($(this))}});u=$("").addClass("st_category").attr("category",r.name);e=$.grep(_commandList,function(n){return r.filter.indexOf(n.Category)!==-1||r.filter.length===0});e.sort(function(n,t){return n.ButtonText.toLowerCase()