<!DOCTYPE html>
<!--[if IE 8]>
<html dir="$TextDirection$" class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html dir="$TextDirection$" class="html-background_custom">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="shortcut icon" href="data:image/x-icon;base64,malformed-to-disable-favicon">
    <title>$CertificateInfoTitle$</title>
    <style>
        !main_styles.css!
        !controls.css!
        !main_styles_custom.css!
        !controls_custom.css!
    </style>
</head>
<body class="body-background_custom body-foreground_custom" tag="safe-banking-invalid-certificate">
    <img class="logo" src="#logo.png#" alt="Kaspersky Lab" />
    <a href="%InvalidCertificateKnowledgeBaseLink%" class="info link-foreground_custom" id="showTutorial">$GetMoreInfoAboutProduct$</a>
    <table class="wrapper">
        <tr>
            <td class="wrapper-td">
                <div class="main">
                    <div class="aside">
                        <img src="#banking_stubs.png#" alt="Safe money" />
                    </div>
                    <div class="content content-background_custom">
                        <h1 class="h1-foreground_custom">$CertificateInfoTitle$</h1>
                        <p id="ksnCertInvalidReason" class="p-foreground_custom">$%CertificateInvalidReason%$&nbsp;($CertificateInvalidReasonCodeText$&nbsp;%CertificateInvalidReasonCode%)</p>
                        <p class="note">$CertificateInfoDescription$</p>
	                    <div class="buttons">
		                    <form action="%RetryCheck%" onclick="callCup(retryCheckDoubleQuoted);return false;" %ShowRetryCheck% class="button-wrapper">
			                    <button id="retryKsnCheck" class="button button-background_custom button-shadow_custom button-border_custom button-foreground_custom"><span class="button__text">$InvalidCertificateRetryCheck$</span></button>
		                    </form>
		                    <div class="clear"></div>
	                    </div>
                        <div class="footer footer-border_custom">
                            <a href="%IgnoreRunUrl%" class="link-foreground_custom" onclick="callCup(ignoreRunUrlDoubleQuoted); return false;">$IgnoreInvalidCertificate$</a>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    !tutorial.html!

    %RetryPostRequestScriptSnippet%

    <script>
        function retryOriginalRequest()
        {
            if(typeof retryPostRequest !== "undefined")
            {
                retryPostRequest();
            }
            else
            {
                document.location.reload();
            }
        }

        var retryCheckDoubleQuoted = "%RetryCheck%";
        var ignoreRunUrlDoubleQuoted = "%IgnoreRunUrl%";

        function callCup(url)
        {
            var xhr = new XMLHttpRequest();
            xhr.open('GET', url, true);
            xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4) {
                    retryOriginalRequest();
                }
            };
			xhr.send();
        }
    </script>
</body>
</html>