function getObjectValue(n){return typeof n=="object"?n.value:typeof n=="string"?n:""}function exceptionHandler(n,t){n.status==0?alert("You are offline!!\n Please Check Your Network."):n.status==404?alert("Requested URL not found."):n.status==500?alert("Internel Server Error."):t=="parsererror"?alert("Error.\nParsing JSON Request failed."):t=="timeout"?alert("Request Time out."):t!=undefined||t!=""?alert(t):alert("Unknow Error.\n"+n.responseText)}function LoadMenuHighLights(){var n=window.location.pathname;n.toLowerCase().indexOf("document")!=-1?setActiveMenu("#mn1"):n.toLowerCase().indexOf("contact")!=-1?setActiveMenu("#mn3"):n.toLowerCase().indexOf("list")!=-1||n.toLowerCase().indexOf("subscriber")!=-1||n.toLowerCase().indexOf("notification")!=-1||n.toLowerCase().indexOf("subscription")!=-1?setActiveMenu("#mn2"):setActiveMenu("#mn4")}function setActiveMenu(n){resetSelectedMyMenus();$(n).find("a").addClass("mnTpLnkOn")}function resetSelectedMyMenus(){$(".mnTpLnk").each(function(){var n=$(this),t=n.hasClass("mnTpLnkOn");t&&n.removeClass("mnTpLnkOn")})}function LoadBannerMessage(){$.get("/Home/SystemStatus",null,function(n){if($(".alert-bar p").attr("class","").addClass(n.level),$(".alert-bar p span").first().before(n.statusmessage),n.createddate.length>0){$(".alert-bar p span").first().show();var t=new Date(n.createddate+" UTC");$(".alert-bar p span > span#updated").text(t.toLocaleString())}else $(".alert-bar p span").first().hide()})}Util={redirectWithDelay:function(n){var t=n;setTimeout(function(){location=t},100)},htmlEncode:function(n){return $("<div/>").text(n).html()},htmlDecode:function(n){return $("<div/>").html(n).text()}};$(document).ready(function(){LoadMenuHighLights();$(".mnTpLnk").click(function(){LoadMenuHighLights()});$("span.resource").length>0&&$("span.resource").click(function(){var t=$(this),n=null;t.hasClass("documentation")?n=$("#mn1"):t.hasClass("notification")?n=$("#mn2"):t.hasClass("contactus")&&(n=$("#mn3"));n&&n.find("a")[0].click()});LoadBannerMessage()})