<!DOCTYPE html>
<!--[if lte IE 9]>
<html dir="$TextDirection$" class="lt-ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html dir="$TextDirection$" class="html-background_custom">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
    <title>$SafeNavigateIntermediateStubInfoHeader$</title>
    <style>
        !main_styles.css!
        !controls.css!
        !spinner.css!
        !main_styles_custom.css!
        !controls_custom.css!
    </style>
</head>
    <noscript>
        <meta http-equiv="REFRESH" content="0; url=%CheckPassedUrl%">
    </noscript>
</head>
<body class="body-background_custom body-foreground_custom" tag="safe-banking-intermediate">
    <img class="logo" src="#logo.png#" alt="Kaspersky Lab" />
    <a href="%GetMoreInfoUrl%" 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">$SafeNavigateIntermediateStubInfoTitle$</h1>
                        <div id="spinner">
                            <img id="loader" src="#html_loader.png#" alt="" />
                            <div id="loader_old"> </div>
                        </div>

                        <p class="p-foreground_custom">$Website$: %TargetUrl%</p>
                        <div class="buttons"></div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">%SpinnerScript%</script>
    <script type="text/javascript">?safe_nav_check_environment.js?</script>
    <script type="text/javascript">

        var exploratoryRequestsSent = false;
        function processExploratoryRequest(request)
        {
            if(!exploratoryRequestsSent && request && request.urlsToExplore)
            {
                var forceLoadImage = 0;
                for(i = 0; i < request.urlsToExplore.length; i++)
                {
                    var element = document.createElement("img");
                    element.src = request.urlsToExplore[i];
                    element.setAttribute("style", "display:none");
                    document.body.appendChild(element);
                    forceLoadImage += element.width;
                }
                exploratoryRequestsSent = true;
            }
        }

        function cookieNames(cookiesString)
        {
            var allCookies = cookiesString.split(';');
            var namesString = '';
            for (var i = 0 ; i < allCookies.length; i++) 
            {
                namesString += allCookies[i].split('=')[0] + '=;';
            }
            return namesString;
        }

        setCustomScriptData(cookieNames(document.cookie));
        setCustomCommandProcessor(processExploratoryRequest);

        enqueueIntermediateStubCheck();
    </script>
</body>
</html>

