function downloadHDMusicBot(){JS.showLoading();JS.gotoUrl("/botnhac.aspx");JS.hideLoading()}function setActiveTab(n){_tabControl.tabs({active:n})}function editMyPage(n,t){var u=encodeURIComponent(JS.getUrl()),r;n||(n="site_js");t||(t="7");r="/user/site.aspx?sid="+t+"&skey="+n+"&redirect="+u;i=JS.newWin(r,"90%","95%","user")}function showUserPop(n,t){t||(t="user");JS.showWindow(n,t,"80%","80%")}var MyGlobal=new function(){this.showError=function(n,t){this.showMessageBox("Error",n,t)};this.showInfo=function(n,t){this.showMessageBox("Information",n,t)};this.memberSignOut=function(){JS.gotoUrl("signout-member.aspx")};this.userSignOut=function(){JS.gotoUrl("signout.aspx")};this.showUrlBox=function(n,t,i,r,u,f){f||(f=function(){});u||(u={});JS.msgbox(n,"",i,r,u,f,!1,!0,t)};this.showMessageBox=function(n,t,i){i||(i=function(){});JS.msgbox(n,t,400,300,["OK"],i)};this.showConfirm=function(n,t,i,r){t||(t="Are you sure you want to delete?");i||(i=400);r||(r=150);JS.msgbox("Confirmation",t,i,r,["Yes","No"],n,!0,!0)};this.uploadFiles=function(n,t){var i=this.callbackFailed;$.ajax({type:"POST",url:"/ws.asmx/uploadFiles",enctype:"multipart/form-data",contentType:!1,processData:!1,cache:!1,data:n,success:function(n){var u=n.firstChild.innerHTML,r=JSON.parse(u),f=r.statusCode;if(f!=200){i(r.errorMessage);return}t(r.result)},error:function(n,t,i){alert(t+": "+i)}})};this.processMyService=function(n,t,i){this.processService("V97xHPcZr2flfOSIpLk6Ig==",n,t,i)};this.processSite=function(n,t,i){this.processService("ABHw8YsZ3mSkI2VWXBNCDQ==",n,t,i)};this.processMedia=function(n,t,i){this.processService("QNaqEPc/MQMFguZpI4knYw==",n,t,i)};this.processService=function(n,t,i,r){JS.processService(n,t,i,r,this.callbackFailed,"/ws.asmx/processService")};this.callbackFailed=function(n){if(JS.hideLoading(),(typeof n=="string"||n instanceof String)&&n.contains("System.Data")){var t=JS.getUrl();t.contains("localhost")?alert(n):alert("Database issue, contact support for help.");alert(n)}};window.addEventListener("load",function(){$(function(){$(".show-date-picker").datepicker({changeMonth:!0,changeYear:!0})})})};window.addEventListener("load",function(){JS.setHTML("lblYear",(new Date).getFullYear())})