(function(){function a(a){var b=document.createElement("canvas");imgContext=b.getContext("2d"),b.width=a.width,b.height=a.height,imgContext.drawImage(a,0,0,a.width,a.height),a==l?n.gsFiles.a=b.toDataURL():n.gsFiles.b=b.toDataURL(),n.gsFiles.date="1";try{sessionStorage.setItem("gsFiles",JSON.stringify(n.gsFiles))}catch(a){console.log("Storage failed: "+a)}}function b(a){a=null,clearInterval(a)}function c(a,b){return!!a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))}function d(a,b){c(a,b)||(a.className+=" "+b)}function e(a,b){c(a,b)&&(a.className=a.className.replace(new RegExp("(\\s|^)"+b+"(\\s|$)")," "))}function f(a){h(a,0);for(var b=0;b<=20;b++)!function(){p=null,clearTimeout(p);var c=5*b;p=setTimeout(function(){h(a,c)},25*b)}()}function g(a){for(var b=0;b<=20;b++)!function(){q=null,clearTimeout(q);var c=100-5*b;q=setTimeout(function(){h(a,c)},25*b)}()}function h(a,b){a.filters?a.style.filter="alpha(opacity="+b+")":a.style.opacity=b/100}function i(){var a=document.getElementById("certify-img1"),b=document.getElementById("certify-img2");c(a,"act")?(g(a),f(b),e(a,"act"),d(b,"act")):(d(a,"act"),e(b,"act"),g(b),f(a))}var j=document.getElementById("jvs-cert"),k=document.createElement("div"),l=document.createElement("img"),m=document.createElement("img"),n={};k.id="jvs-certifyOuter",k.className="jvs-certifyOuter",k.style.width="100%",k.style.position="relative",l.id="certify-img1",l.className="act",l.crossOrigin="anonymous",l.style.position="absolute",l.style.left="0",l.style.top="0",l.style.display="block",l.style.width="100%",l.style.height="auto",l.style.opacity="1",l.style.maxHeight="none",l.style.border="none",l.style.filter="Alpha(opacity=100)",m.id="certify-img2",m.crossOrigin="anonymous",m.className="act",m.style.position="absolute",m.style.left="0",m.style.top="0",m.style.display="block",m.style.maxHeight="none",m.style.width="100%",m.style.height="auto",m.style.opacity="0",m.style.border="none",m.style.filter="Alpha(opacity=0)",j.style.display="block",j.style.maxWidth="132px",n.gsFiles=JSON.parse(sessionStorage.getItem("gsFiles"))||{},n.gsFilesDate=n.gsFiles.date,n.imgUrl1="https://webcert.cnmstl.net/cert/grade/first_middle_h_img.png?sn=7172be41656a46719eae64a924f1ca93",n.imgUrl2="https://webcert.cnmstl.net/cert/grade/second_middle_h_img.png?sn=7172be41656a46719eae64a924f1ca93",navigator.userAgent.indexOf("MSIE")>0&&(navigator.userAgent.indexOf("MSIE 6.0")>0||navigator.userAgent.indexOf("MSIE 7.0")>0||navigator.userAgent.indexOf("MSIE 8.0")>0)?(l.setAttribute("src",n.imgUrl1),m.setAttribute("src",n.imgUrl2)):void 0===n.gsFilesDate?(l.addEventListener("load",function(){a(l)},!1),m.addEventListener("load",function(){a(m)},!1),l.setAttribute("src",n.imgUrl1),m.setAttribute("src",n.imgUrl2)):(l.setAttribute("src",n.gsFiles.a),m.setAttribute("src",n.gsFiles.b)),j.appendChild(k),k.appendChild(l),k.appendChild(m);var o=null,p=null,q=null;o=window.setInterval(function(){b(o),i()},3e3)})()