(function(){function a(a){a?(l[0]=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0,this.blocks=l):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=1732584193;this.h1=4023233417;this.h2=2562383102;this.h3=271733878;this.h4=3285377520;this.block=this.start=this.bytes=0;this.finalized=this.hashed=!1;this.first=!0}var b="object"===typeof window?window:{},c="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],f=[24,16,8,0],m=["hex","array","digest", "arrayBuffer"],l=[],p=function(b){return function(c){return(new a(!0)).update(c)[b]()}};a.prototype.update=function(a){if(!this.finalized){var c="string"!==typeof a;c&&a.constructor===b.ArrayBuffer&&(a=new Uint8Array(a));for(var n,h=0,e,d=a.length||0,g=this.blocks;he;++h)g[e>>2]|=a[h]<e;++h)n= a.charCodeAt(h),128>n?g[e>>2]|=n<n?g[e>>2]|=(192|n>>6)<n||57344<=n?g[e>>2]|=(224|n>>12)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<>2]|=d[b&3];this.block=a[16];56<=b&&(this.hashed||this.hash(),a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0);a[15]=this.bytes<<3;this.hash()}};a.prototype.hash=function(){var a=this.h0,b=this.h1,c=this.h2,h=this.h3,e=this.h4,d,g=this.blocks;for(d=16;80>d;++d){var f=g[d-3]^g[d-8]^g[d-14]^g[d-16];g[d]=f<<1|f>>>31}for(d=0;20>d;d+=5){var k=b&c|~b&h;f=a<<5|a>>>27;e=f+k+e+1518500249+ g[d]<<0;b=b<<30|b>>>2;k=a&b|~a&c;f=e<<5|e>>>27;h=f+k+h+1518500249+g[d+1]<<0;a=a<<30|a>>>2;k=e&a|~e&b;f=h<<5|h>>>27;c=f+k+c+1518500249+g[d+2]<<0;e=e<<30|e>>>2;k=h&e|~h&a;f=c<<5|c>>>27;b=f+k+b+1518500249+g[d+3]<<0;h=h<<30|h>>>2;k=c&h|~c&e;f=b<<5|b>>>27;a=f+k+a+1518500249+g[d+4]<<0;c=c<<30|c>>>2}for(;40>d;d+=5)k=b^c^h,f=a<<5|a>>>27,e=f+k+e+1859775393+g[d]<<0,b=b<<30|b>>>2,k=a^b^c,f=e<<5|e>>>27,h=f+k+h+1859775393+g[d+1]<<0,a=a<<30|a>>>2,k=e^a^b,f=h<<5|h>>>27,c=f+k+c+1859775393+g[d+2]<<0,e=e<<30|e>>>2, k=h^e^a,f=c<<5|c>>>27,b=f+k+b+1859775393+g[d+3]<<0,h=h<<30|h>>>2,k=c^h^e,f=b<<5|b>>>27,a=f+k+a+1859775393+g[d+4]<<0,c=c<<30|c>>>2;for(;60>d;d+=5)k=b&c|b&h|c&h,f=a<<5|a>>>27,e=f+k+e-1894007588+g[d]<<0,b=b<<30|b>>>2,k=a&b|a&c|b&c,f=e<<5|e>>>27,h=f+k+h-1894007588+g[d+1]<<0,a=a<<30|a>>>2,k=e&a|e&b|a&b,f=h<<5|h>>>27,c=f+k+c-1894007588+g[d+2]<<0,e=e<<30|e>>>2,k=h&e|h&a|e&a,f=c<<5|c>>>27,b=f+k+b-1894007588+g[d+3]<<0,h=h<<30|h>>>2,k=c&h|c&e|h&e,f=b<<5|b>>>27,a=f+k+a-1894007588+g[d+4]<<0,c=c<<30|c>>>2;for(;80> d;d+=5)k=b^c^h,f=a<<5|a>>>27,e=f+k+e-899497514+g[d]<<0,b=b<<30|b>>>2,k=a^b^c,f=e<<5|e>>>27,h=f+k+h-899497514+g[d+1]<<0,a=a<<30|a>>>2,k=e^a^b,f=h<<5|h>>>27,c=f+k+c-899497514+g[d+2]<<0,e=e<<30|e>>>2,k=h^e^a,f=c<<5|c>>>27,b=f+k+b-899497514+g[d+3]<<0,h=h<<30|h>>>2,k=c^h^e,f=b<<5|b>>>27,a=f+k+a-899497514+g[d+4]<<0,c=c<<30|c>>>2;this.h0=this.h0+a<<0;this.h1=this.h1+b<<0;this.h2=this.h2+c<<0;this.h3=this.h3+h<<0;this.h4=this.h4+e<<0};a.prototype.hex=function(){this.finalize();var a=this.h0,b=this.h1,d=this.h2, f=this.h3,e=this.h4;return c[a>>28&15]+c[a>>24&15]+c[a>>20&15]+c[a>>16&15]+c[a>>12&15]+c[a>>8&15]+c[a>>4&15]+c[a&15]+c[b>>28&15]+c[b>>24&15]+c[b>>20&15]+c[b>>16&15]+c[b>>12&15]+c[b>>8&15]+c[b>>4&15]+c[b&15]+c[d>>28&15]+c[d>>24&15]+c[d>>20&15]+c[d>>16&15]+c[d>>12&15]+c[d>>8&15]+c[d>>4&15]+c[d&15]+c[f>>28&15]+c[f>>24&15]+c[f>>20&15]+c[f>>16&15]+c[f>>12&15]+c[f>>8&15]+c[f>>4&15]+c[f&15]+c[e>>28&15]+c[e>>24&15]+c[e>>20&15]+c[e>>16&15]+c[e>>12&15]+c[e>>8&15]+c[e>>4&15]+c[e&15]};a.prototype.toString=a.prototype.hex; a.prototype.digest=function(){this.finalize();var a=this.h0,b=this.h1,c=this.h2,d=this.h3,e=this.h4;return[a>>24&255,a>>16&255,a>>8&255,a&255,b>>24&255,b>>16&255,b>>8&255,b&255,c>>24&255,c>>16&255,c>>8&255,c&255,d>>24&255,d>>16&255,d>>8&255,d&255,e>>24&255,e>>16&255,e>>8&255,e&255]};a.prototype.array=a.prototype.digest;a.prototype.arrayBuffer=function(){this.finalize();var a=new ArrayBuffer(20),b=new DataView(a);b.setUint32(0,this.h0);b.setUint32(4,this.h1);b.setUint32(8,this.h2);b.setUint32(12,this.h3); b.setUint32(16,this.h4);return a};var q=function(){var b=p("hex");b.create=function(){return new a};b.update=function(a){return b.create().update(a)};for(var c=0;c=e.AutoReloadTimeout?(e.DisableControls(),e.SessionExpired= !0):(e.AutoReloading=!0,e.ReloadImage(),e.AutoReloading=!1,e.AutoReloadPeriodSum+=e.AutoReloadPeriod,e=null)},e.AutoReloadPeriod)}this.ReloadIcon=document.getElementById(this.Id+"_ReloadIcon");this.SoundStartDelay=n;this.LimitSoundRegeneration=r;this.SoundPlayDelayed=this.SoundPlayed=!1;if(l=document.getElementById(a+"_SoundLink"))this.SoundUrl=l.href;this.SoundPlaceholder=document.getElementById(a+"_AudioPlaceholder");this.SoundIcon=document.getElementById(this.Id+"_SoundIcon");this.CaptchaEndpointPath= this.ImageSrcUrl.split("?")[0];this.ValidationUrl=this.CaptchaEndpointPath+"?get=validation-result&c="+this.Id+"&t="+this.CaptchaId;this.FollowHelpLink=!0;this.TestModeEnabled=h;c&&(this.InputId=c,a=BotDetect.GetInputElement(c))&&(this.UserInput=a,a.Captcha=this,a.setAttribute("autocomplete","off"),this.AutoFocusInput=f,this.AutoClearInput=m,d?(BotDetect.RemoveClassFromElement(a,"BDC_TextLowercase"),BotDetect.AddClassToElement(a,"BDC_TextUppercase")):(BotDetect.RemoveClassFromElement(a,"BDC_TextUppercase"), BotDetect.AddClassToElement(a,"BDC_TextLowercase")))},BotDetect.Init=function(a,b,c,d,f,m,l,p,q,n,r,t,h){var e=function(){document.getElementById(a+"_CaptchaImage")&&(window[a]=new BotDetect(a,b,c,d,f,m,l,p,q,n,r,t,h),window[a].PostInit(),window[a].InitEventListeners())};"undefined"!=typeof Sys&&"undefined"!=typeof Sys.Application?Sys.Application.add_load(e):"undefined"!=typeof window.jQuery?jQuery(e):"complete"===document.readyState?e():"interactive"===document.readyState?setTimeout(e,150):BotDetect.RegisterHandler(window, "domready",e,!1);window.opera?BotDetect.RegisterHandler(window,"popstate",function(b){window[a].ReloadImage()},!1):window.chrome?BotDetect.RegisterHandler(window,"domready",function(b){if(b=document.getElementById("BDC_BackWorkaround_"+a))"0"==b.value?b.value="1":(b.value="0",window[a].ReloadImage())},!1):BotDetect.RegisterHandler(window,"pageshow",function(b){b&&b.persisted&&window[a].ReloadImage()},!1)},BotDetect.ReloadTimerMaxTicks=100,BotDetect.ReloadTimerDelay=250,BotDetect.MillisecondsInAMinute= 6E4,BotDetect.AjaxTimeout=1E4,BotDetect.MinSoundCooldown=2E3,BotDetect.ConvertGrayscaleImageTimerDelay=500,BotDetect.MergeObjects=function(a,b){for(var c in b)a[c]=b[c];return a},BotDetect.prototype.InitBase64ImageDataUrl=function(a){var b=this;this.Base64Image=document.createElement("img");BotDetect.Get(this.Base64ImageDataUrl,function(c){if(200!==c.status)b=null;else try{var d=c.responseText,f=!1;b.Base64Image.onload=function(){!f&&b.ImagePlaceholder&&(b.ImagePlaceholder.innerHTML="",b.ImagePlaceholder.appendChild(this), b.Image=b.Base64Image,b.ColorImageDataUrl=d,f=!0,"function"===typeof a&&a())};b.Base64Image.id=b.Image.id;b.Base64Image.alt=b.Image.alt;b.Base64Image.src=d;b.UseImageColorMode()&&b.HideImage(b.Base64Image)}catch(m){}})},BotDetect.prototype.ReloadImage=function(){if(!this.ReloadInProgress&&BotDetect.CanReloadImage()&&(this.DisableControls(),this.PreReloadImage(),this.Image&&!this.ReloadInProgress&&!this.SessionExpired)){this.ReloadInProgress=!0;this.ProgressIndicator=document.createElement("span"); this.ProgressIndicator.className="BDC_ProgressIndicator";this.ProgressIndicator.appendChild(document.createTextNode("."));var a=BotDetect.UpdateTimestamp(this.Base64ImageDataUrl);this.InitNewImage(a);this.ImagePlaceholder.innerHTML="";this.ImagePlaceholder.appendChild(this.ProgressIndicator);this.ShowProgress()}},BotDetect.prototype.InitNewImage=function(a){var b=this,c=function(c){b.NewImage=document.createElement("img");var d=!1;b.NewImage.onload=function(){!d&&b.NewImage&&b.ImagePlaceholder&&b.ProgressIndicator&& (b.ImagePlaceholder.innerHTML="",b.ImagePlaceholder.appendChild(b.NewImage),b.Image=b.NewImage,b.ProgressIndicator=null,b.InitImageColorModeHandler(),b.PostReloadImage(),b=null,d=!0)};b.NewImage.id=b.Image.id;b.NewImage.alt=b.Image.alt;b.NewImage.src=c;b.ColorImageDataUrl=c;b.ImageSrcUrl=a;b.UseImageColorMode()&&b.HideImage(b.NewImage);return b.NewImage};BotDetect.Get(a,function(a){if(200===a.status)try{var d=c(a.responseText);b.Base64Image=d}catch(m){}})},BotDetect.prototype.ShowProgress=function(){if(this.ProgressIndicator&& this.ReloadTimerTicks";this.SoundPlaceholder.innerHTML=a;var b=this;this.SoundCooldownTimer=setTimeout(function(){b&& (clearTimeout(b.SoundCooldownTimer),b.SoundPlayingInProgess=!1,b.EnableControls(),b=null)},BotDetect.MinSoundCooldown)},BotDetect.prototype.StartAjaxValidation=function(){this.PreAjaxValidate();if(!BotDetect.AjaxError){var a=this.GetUserInputElement();!a||!a.value||0>a.value.length?this.AjaxValidationFailed():this.StartValidationRequest()}},BotDetect.prototype.StartValidationRequest=function(){var a=this.GetCaptchaData();a=this.ValidationUrl+"&captchaData="+a;var b=this;this.AjaxTimer=setTimeout(b.AjaxValidationError, BotDetect.AjaxTimeout);BotDetect.Get(a,function(a){clearTimeout(b.AjaxTimer);if(200!=a.status)b.AjaxValidationError();else{var c=!1;(a=BotDetect.ParseJson(a.responseText))&&(c=a);b.EndValidationRequest(c)}b=null},null)},BotDetect.prototype.EndValidationRequest=function(a){a?this.AjaxValidationPassed():this.AjaxValidationFailed()},BotDetect.prototype.GetCaptchaData=function(){var a={userInput:this.GetUserInputElement().value,captchaId:this.CaptchaId};a=JSON.stringify(a);return BotDetect.Base64Encode(a)}, BotDetect.AddClassToElement=function(a,b){a=BotDetect.RemoveClassFromElement(a,b);"undefined"!==typeof a.classList?a.classList.add(b):a.className+=" "+b;return a},BotDetect.RemoveClassFromElement=function(a,b){if("undefined"!==typeof a.classList)a.classList.remove(b);else{for(var c=a.className.split(" "),d=0;d=a.AutoReloadTimeout?(a.DisableControls(),a.SessionExpired=!0):(a.AutoReloading=!0,a.ReloadImage(),a.AutoReloading=!1,a.AutoReloadPeriodSum+=a.AutoReloadPeriod,a=null)},a.AutoReloadPeriod)}this.SoundIcon?(this.SoundPlaceholder.innerHTML="",this.SoundPlayed=!1,this.SoundPlayDelayed?(this.PlaySound(),this.SoundPlayDelayed=!1):this.EnableControls()):this.EnableControls()},BotDetect.prototype.PrePlaySound= function(){this.FocusInput()},BotDetect.prototype.OnHelpLinkClick=function(){},BotDetect.RegisterCustomHandler=function(a,b){var c=BotDetect.prototype[a],d="PrePlaySound"===a;BotDetect.prototype[a]=function(){b.call(this);d||c.call(this)}},BotDetect.prototype.FocusInput=function(a){var b=this,c=function(){var a=b.GetUserInputElement();a&&setTimeout(function(){try{a.focus()}catch(f){}},100)};"undefined"!==typeof a?a&&c():this.AutoFocusInput&&!this.AutoReloading&&c()},BotDetect.prototype.ClearInput= function(){var a=this.GetUserInputElement();this.AutoClearInput&&a&&(a.value="")},BotDetect.UpdateTimestamp=function(a){var b=a.indexOf("&d=");-1!==b&&(a=a.substring(0,b));return a+"&d="+BotDetect.GetTimestamp()},BotDetect.GetTimestamp=function(){var a=new Date;return a.getTime()+a.getTimezoneOffset()*BotDetect.MillisecondsInAMinute},BotDetect.DetectSSL=function(a){var b=a.indexOf("&e=");if(-1!==b){var c=a.length;a=a.substring(0,b)+a.substring(b+4,c)}"https:"===document.location.protocol&&(a+="&e=1"); return a},BotDetect.UseHtml5Audio=function(){if(BotDetect.DetectAndroid()||BotDetect.DetectIOS())var a=!0;else a=document.createElement("audio"),a=!!a.canPlayType&&!!a.canPlayType("audio/wav")&&!BotDetect.DetectIncompatibleAudio();return a},BotDetect.DetectIncompatibleAudio=function(){return BotDetect.DetectFirefox3()},BotDetect.DetectAndroid=function(){var a=!1;navigator&&navigator.userAgent&&navigator.userAgent.match(/Linux; U; Android/)&&(a=!0);return a},BotDetect.DetectIOS=function(){var a=!1; if(navigator&&navigator.userAgent){var b=navigator.userAgent.toLowerCase();if(b.match(/like mac os/)||b.match(/like macos/))a=!0}return a},BotDetect.DetectFirefox3=function(){var a=!1;navigator&&navigator.userAgent&&navigator.userAgent.match(/(Firefox)\/(3\.6\.[^;\+,\/\s]+)/)&&(a=!0);return a},BotDetect.DetectSafariSsl=function(){var a=!1;if(navigator&&navigator.userAgent){var b=navigator.userAgent.match(/Safari/);b&&((b=navigator.userAgent.match(/Chrome/))||"https:"!==document.location.protocol|| (a=!0))}return a},BotDetect.DetectAndroidBelow41=function(){var a=!1;if(navigator&&navigator.userAgent){var b=navigator.userAgent.indexOf("Android");0<=b&&4.1>parseFloat(navigator.userAgent.slice(b+8))&&(a=!0)}return a},BotDetect.DetectChromiumBasedBrowser=function(){var a=!1;-1!==navigator.userAgent.toLowerCase().indexOf("chrome")&&(a=!0);return a},BotDetect.SoundReplaySupported=function(){return BotDetect.UseHtml5Audio()&&!BotDetect.DetectAndroidBelow41()},BotDetect.DetectIE=function(){if(navigator&& navigator.userAgent){var a=navigator.userAgent.toLowerCase();if(-1!==a.indexOf("msie")||-1!==a.indexOf("trident/"))return!0}return!1},BotDetect.GetIosSafariVersion=function(){var a=null;if(navigator&&navigator.userAgent){var b=!1,c=navigator.userAgent;-1===c.indexOf("iPhone OS")&&-1===c.indexOf("iPad")||-1===c.indexOf("Safari")||-1!==c.indexOf("CriOS")||-1!==c.indexOf("FxiOS")||(b=!0);b&&(b=c.split("Version/"),2===b.length&&(a=parseFloat(b[1])))}return a},BotDetect.DetectFilterCssSupport=function(){if(BotDetect.DetectIE())return!1; var a=BotDetect.GetIosSafariVersion();if(a&&9>a)return!1;a=document.createElement("div");a.style.cssText="-webkit-filter: blur(1px)";return 0===a.style.length?!1:!0},BotDetect.Base64Encode=function(a){a=encodeURIComponent(a);var b=a.length,c=b%3;b-=c;for(var d="",f=0;f>18);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m>> 12)%64);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m>>6)%64);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(m%64)}1===c?(m=a.charCodeAt(b),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m>>2)%64),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m<<4)%64),d+="=="):2===c&&(m=a.charCodeAt(b)<<8|a.charCodeAt(b+1),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m>> 10)%64),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m>>4)%64),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((m<<2)%64),d+="=");return d=d.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},BotDetect.prototype.DisableControls=function(){this.ControlsDisabled=!0;this.DisableReloadIcon();this.DisableSoundIcon()},BotDetect.prototype.EnableControls=function(){this.ControlsDisabled=!1;this.EnableReloadIcon();this.EnableSoundIcon()}, BotDetect.prototype.DisableReloadIcon=function(){this.ReloadIcon&&BotDetect.AddClassToElement(this.ReloadIcon,"BDC_DisabledReloadIcon")},BotDetect.prototype.EnableReloadIcon=function(){this.ReloadIcon&&BotDetect.RemoveClassFromElement(this.ReloadIcon,"BDC_DisabledReloadIcon")},BotDetect.prototype.DisableSoundIcon=function(){this.SoundIcon&&BotDetect.AddClassToElement(this.SoundIcon,"BDC_DisabledSoundIcon")},BotDetect.prototype.EnableSoundIcon=function(){this.SoundIcon&&BotDetect.RemoveClassFromElement(this.SoundIcon, "BDC_DisabledSoundIcon")},BotDetect.RegisterHandler=function(a,b,c,d){if("domready"==b)BotDetect.RegisterDomReadyHandler(c);else if("undefined"!=typeof a.addEventListener)a.addEventListener(b,c,d);else if("undefined"!=typeof a.attachEvent){var f=b+c;a["e"+f]=c;a[f]=function(b){"undefined"==typeof b&&(b=window.event);a["e"+f](b)};a.attachEvent("on"+b,a[f])}else if(b="on"+b,"function"==typeof a[b]){var m=a[b];a[b]=function(){m();return c()}}else a[b]=c},BotDetect.RegisterDomReadyHandler=function(a){if(document.addEventListener)document.addEventListener("DOMContentLoaded", function(){document.removeEventListener("DOMContentLoaded",arguments.callee,!1);a()},!1);else if(document.attachEvent){var b=!1;document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",arguments.callee),a(),b=!0)});document.documentElement.doScroll&&window==window.top&&function(){if(!b){try{document.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,1);return}a();b=!0}}()}else BotDetect.RegisterHandler(window, "load",a,!1)},BotDetect.IsEmptyObject=function(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0},BotDetect.Xhr=function(){var a=null;try{return a=new XMLHttpRequest}catch(b){}try{return a=new ActiveXObject("MSXML2.XMLHTTP.5.0")}catch(b){}try{return a=new ActiveXObject("MSXML2.XMLHTTP.4.0")}catch(b){}try{return a=new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){}try{return a=new ActiveXObject("MSXML2.XMLHTTP")}catch(b){}try{return a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}return a}, BotDetect.SetRequestHeaders=function(a,b){if(!BotDetect.IsEmptyObject(b)&&a.setRequestHeader)for(var c in b)b.hasOwnProperty(c)&&a.setRequestHeader(c,b[c])},BotDetect.Get=function(a,b,c){BotDetect.AjaxError=!1;var d=BotDetect.Xhr();d&&0==d.readyState&&(d.onreadystatechange=function(){4==d.readyState&&b(d)},d.open("GET",a,!0),BotDetect.SetRequestHeaders(d,c),d.send())},BotDetect.prototype.ShowImage=function(){var a=this,b=document.getElementById(this.Id+"_CaptchaImage");setTimeout(function(){b.getAttribute("src")|| b.setAttribute("src",a.ImageSrcUrl);BotDetect.RemoveClassFromElement(b,"BDC_HideCaptchaImage")},300)},BotDetect.prototype.HideImage=function(a){BotDetect.AddClassToElement(a,"BDC_HideCaptchaImage")},BotDetect.prototype.InitImageColorModeHandler=function(){if(BotDetect.DetectFilterCssSupport()){switch(this.ImageColorMode){case "color":this.ShowImage();break;case "grayscale":BotDetect.AddClassToElement(this.Image,"BDC_GrayscaleImageFilter"),this.ShowImage()}this.RegisterImageHoverHandler()}else if(BotDetect.IsCanvasSupported()){var a= this;switch(this.ImageColorMode){case "color":a.ShowImage();a.RegisterImageHoverHandler();break;case "grayscale":a.ConvertColorImageToGrayscale(function(){a.ShowImage();a.RegisterImageHoverHandler()})}}else this.ShowImage()},BotDetect.prototype.ConvertColorImageToGrayscale=function(a){var b=0;!this.ReloadInProgress&&BotDetect.DetectIOS()&&(b=BotDetect.ConvertGrayscaleImageTimerDelay);var c=this,d=this.Image,f=function(){setTimeout(function(){var b=BotDetect.ImageProcess.GetBase64GrayscaleImageDataUrl(d); d.src=b;c.GrayscaleImageDataUrl=b;"function"===typeof a&&a();c=null},b)};d.complete||0!==d.naturalHeight?f():d.onload=function(){f()}},BotDetect.prototype.RegisterImageHoverHandler=function(){if(this.UseImageColorMode()){var a=this;BotDetect.DetectFilterCssSupport()?(BotDetect.RegisterHandler(this.Image,"mouseenter",function(b){switch(a.ImageColorMode){case "color":BotDetect.AddClassToElement(this,"BDC_GrayscaleImageFilter");break;case "grayscale":BotDetect.RemoveClassFromElement(this,"BDC_GrayscaleImageFilter")}}, !1),BotDetect.RegisterHandler(this.Image,"mouseleave",function(b){switch(a.ImageColorMode){case "color":BotDetect.RemoveClassFromElement(this,"BDC_GrayscaleImageFilter");break;case "grayscale":BotDetect.AddClassToElement(this,"BDC_GrayscaleImageFilter")}},!1)):(BotDetect.RegisterHandler(this.ImagePlaceholder,"mouseenter",function(b){if(0