<!DOCTYPE html>
<!--[if IE 8]>
<html dir="$TextDirection$" class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html dir="$TextDirection$">
<!--<![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!
    </style>
</head>
<body tag="safe-banking-invalid-certificate">
    <table class="wrapper">
        <tr>
            <td>
                <div class="main">
                    <div class="aside">
                        <img src="#banking_stubs.png#" alt="Safe money" />
                    </div>
                    <div class="content">
                        <h1>$CertificateInfoTitle$</h1>
                        <p id="ksnCertInvalidReason">$%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"><span class="button__text">$InvalidCertificateRetryCheck$</span></button>
		                    </form>
		                    <div class="clear"></div>
	                    </div>
                        <div class="footer">
                            <a href="%IgnoreRunUrl%" onclick="callCup(ignoreRunUrlDoubleQuoted); return false;">$IgnoreInvalidCertificate$</a>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td height="50">
                <a href="%InvalidCertificateKnowledgeBaseLink%" class="info" id="showTutorial">$GetMoreInfoAboutProduct$</a>
                <img class="logo" src="#logo.png#" alt="Kaspersky Lab" />
                <div class="clear"></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>