if(void 0===verifypass_is_loaded){var verifypass_is_loaded=!0,verifypass_old_classes={mil:["gr_verify","idd_mil"],fir:["fr_verify","idd_fir"],edu:["ed_verify","idd_edu"],tea:["tr_verify","idd_tea"]};function verifypass_open_standard(e){var s=null,n="",t=document.getElementsByTagName("script");for(i=0;i<t.length;i++)if(-1!==t[i].src.indexOf("cdn.verifypass.com/seller/launcher")||-1!==t[i].src.indexOf("cdn.id.discount/seller/launcher")||-1!==t[i].src.indexOf("cdn.id.services")){s=t[i],n=t[i].src;break}if(n.split("shop=")[1])var o=n.split("shop=")[1];else if(s&&s.getAttribute("data-key"))o=s.getAttribute("data-key");else o=/:\/\/([^\/]+)/.exec(window.location.href)[1];verifypass_popup(e+"/"+o)}function verifypass_clicks_load(){return window.setInterval((function(){for(var e=document.querySelectorAll("[class*=vfyps_]"),i=0;i<e.length;++i)for(var s=e[i].className.split(" "),n=0;n<s.length;n++)0===s[n].lastIndexOf("vfyps_",0)&&(e[i].style.cursor="pointer",e[i].setAttribute("onclick",'verifypass_open_standard("'+s[n].split("_")[1]+'");'));for(var t in verifypass_old_classes)if(verifypass_old_classes.hasOwnProperty(t))for(i=0;i<verifypass_old_classes[t].length;i++)for(e=document.getElementsByClassName(verifypass_old_classes[t][i]),n=0;n<e.length;++n)e[n].style.cursor="pointer",e[n].setAttribute("onclick",'verifypass_open_standard("'+t+'");')}),500)}var verifypass_click_listener=null;function verifypass_body_load(){return window.setInterval((function(){void 0!==document.body&&null!=typeof document.body&&(window.clearInterval(verifypass_body_listener),verifypass_click_listener=verifypass_clicks_load())}),50)}var verifypass_body_listener=verifypass_body_load();function verifypass_open_api(e){var i=this;if(i.o=e,window.onmessage=function(e){"token"==e.data.substring(0,5)&&"function"==typeof i.o.onSuccess&&(i.verifypass_window.close(),i.o.onSuccess(e.data.substring(6))),"loaded"==e.data.substring(0,7)&&(i.o.hasOwnProperty("onLoad")&&"function"==typeof i.o.onLoad&&i.o.onLoad(),i.o.hasOwnProperty("message")&&"string"==typeof i.o.message&&i.verifypass_window.postMessage("vfypsmessage="+i.o.message,"*"))},i.verifypass_window=verifypass_popup("api/"+i.o.pub_key),i.o.hasOwnProperty("onClose")&&"function"==typeof i.o.onClose)var s=setInterval((function(){(void 0===i.verifypass_window||i.verifypass_window.closed)&&(clearInterval(s),i.hasOwnProperty("token")||i.o.onClose())}),250)}function verifypass_api_instantiator(){this.verify=function(e){self.o=e,e.hasOwnProperty("pub_key")&&e.hasOwnProperty("initializer")&&e.hasOwnProperty("onSuccess")?window.setInterval((function(){if(e.initializer.length)for(var i=0;i<e.initializer.length;i++){document.getElementById(e.initializer[i].id).onclick=function(){new verifypass_open_api(e)}}else document.getElementById(e.initializer.id).onclick=function(){new verifypass_open_api(e)}}),500):alert("Error: requires pub_key, initializer, onSuccess")}}var IDSRV=new verifypass_api_instantiator,IDDJS=new verifypass_api_instantiator,VFYPS=new verifypass_api_instantiator;function verifypass_popup(e){var i=null!=window.screenLeft?window.screenLeft:window.screenX,s=null!=window.screenTop?window.screenTop:window.screenY,n=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-237.5+i,t=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-347.5+s,o=window.open("https://verifypass.com/auth/"+e,"VerifyPass","scrollbars=yes,width=475,height=695,top="+t+",left="+n);return window.focus&&o.focus(),o}}
