var __guide=function(d){var l=function(h){function a(b,c){b=document.getElementById(b);b.innerHTML=c;b.setAttribute("tabindex",m++,0);return b}function e(b,c){b=document.getElementById(b);b.setAttribute("src",d.ESVS.SRCPath+"unisignweb/rsrc/img/"+c,0);return b}var n=function(){var b=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");b.open("GET",d.ESVS.SRCPath+"unisignweb/rsrc/layout/guide.html?version="+d.ver,!1);b.send(null);return b.responseText},l=function(){var b=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");b.open("GET",d.ESVS.SRCPath+"unisignweb/rsrc/lang/"+d.ESVS.Language+"/guide_"+d.ESVS.Language+".js?version="+d.ver,!1);b.send(null);return b.responseText},m=d.ESVS.TabIndex;return function(){var b=d.CustomEval(n),c=d.CustomEval(l,!0);if(document.getElementById("es-div-guide"))return document.getElementById("es-div-guide");for(var f=d.ESVS.TargetObj.childNodes,k=d.ESVS.TargetObj.firstChild,g=0;g<f.length;g++)if(-1!=d.ESVS.TargetObj.childNodes[g].id.indexOf("us-div-cert")){k=d.ESVS.TargetObj.childNodes[g];break}f=document.createElement("div");f.innerHTML=b();k.insertBefore(f,k.firstChild);f=navigator.userAgent.toLowerCase();b="ie";b="Netscape"==navigator.appName&&-1!=f.search("Trident")||-1!=f.indexOf("msie")?"ie":"else";f=a("browsersign-guide-lbl-title",c.BROWSERSIGN.IDS_TITLE);"ie"==b&&(f.style.paddingBottom="8px");a("browsersign-join-step-1",c.BROWSERSIGN.IDS_JOIN_STEP_1);a("browsersign-join-step-2",c.BROWSERSIGN.IDS_JOIN_STEP_2);a("browsersign-join-step-3",c.BROWSERSIGN.IDS_JOIN_STEP_3);a("browsersign-join-step-4",c.BROWSERSIGN.IDS_JOIN_STEP_4);a("browsersign-save-cert-notice",c.BROWSERSIGN.IDS_SAVE_CERT_NOTICE);a("browsersign-save-sert-subject",c.BROWSERSIGN.IDS_SAVE_CERT_SUBJECT);a("browsersign-save-cert-step-1",c.BROWSERSIGN.IDS_SAVE_CERT_1);e("browsersign-img-next1","layer1_img2.jpg");e("browsersign-img-next2","layer1_img2.jpg");e("browsersign-img-next3","layer1_img2.jpg");f=a("cloudsign-guide-lbl-title",c.CLOUDSIGN.IDS_TITLE);"ie"==b&&(f.style.paddingTop="5px");a("cloudsign-save-cert-subject",c.CLOUDSIGN.IDS_SAVE_CERT_SUBJECT);a("cloudsign-join-step-1",c.CLOUDSIGN.IDS_JOIN_STEP_1);a("cloudsign-join-step-2",c.CLOUDSIGN.IDS_JOIN_STEP_2);a("cloudsign-saved-cert-subject",c.CLOUDSIGN.IDS_SAVED_CERT_SUBJECT);a("cloudsign-saved-step-1",c.CLOUDSIGN.IDS_SAVED_CERT_1);a("cloudsign-saved-step-2",c.CLOUDSIGN.IDS_SAVED_CERT_2);a("cloudsign-saved-step-3",c.CLOUDSIGN.IDS_SAVED_CERT_3);a("cloudsign-saved-step-4",c.CLOUDSIGN.IDS_SAVED_CERT_4);a("cloudsign-detail-link",c.CLOUDSIGN.IDS_DETAIL_LINK);e("cloudsign-img-next1","layer1_img2.jpg");e("cloudsign-img-next2","layer1_img2.jpg");e("cloudsign-img-next3","layer1_img2.jpg");e("cloudsign-img-next4","layer1_img2.jpg");e("cloudsign-question","layer1_img3.jpg");e("guide-img-close","btn_hd_close.png").onclick=function(){h.onCancel()};"browsersign"==h.type?(document.getElementById("cloudsign-div-guide").style.display="none",document.getElementById("cloudsign-div-guide").style.visible="hidden",document.getElementById("browsersign-div-guide").style.display="block",document.getElementById("browsersign-div-guide").style.visible="visibility"):(document.getElementById("browsersign-div-guide").style.display="none",document.getElementById("browsersign-div-guide").style.visible="hidden",document.getElementById("cloudsign-div-guide").style.display="block",document.getElementById("cloudsign-div-guide").style.visible="visibility");if("us-div-cert-manage"==k.id)for(g=0;g<document.getElementsByClassName("layer1_p1").length;g++)document.getElementsByClassName("layer1_p1")[g].style.marginTop="8px",document.getElementsByClassName("layer1_p1")[g].style.marginBottom="8px";return document.getElementById("es-div-guide")}()};return function(h){var a=d.uiLayerLevel,e=l({onCancel:h.onCancel,type:h.type});e.style.zIndex=a+1;return{show:function(){d.ESVS.TabIndex+=30},hide:function(){e.style.display="none"},dispose:function(){var a=e.parentNode;a&&a.removeChild(e)},changeMedia:function(a){"browsersign"==a?(document.getElementById("cloudsign-div-guide").style.display="none",document.getElementById("cloudsign-div-guide").style.visible="hidden",document.getElementById("browsersign-div-guide").style.display="block",document.getElementById("browsersign-div-guide").style.visible="visibility"):(document.getElementById("browsersign-div-guide").style.display="none",document.getElementById("browsersign-div-guide").style.visible="hidden",document.getElementById("cloudsign-div-guide").style.display="block",document.getElementById("cloudsign-div-guide").style.visible="visibility")}}}};