<!DOCTYPE html>
<!--[if lte IE 9]>
<html class="lt-ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![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>$WaitingStubTitle$</title>
	<style>
		!vpn_styles.css!
		!vpn_customization_styles.css!
   </style>
</head>

<body>
    <table class="wrapper">
        <tr>
            <td colspan="2">
                <div class="main">
                    <img src="#vpn.png#" class="vpn_logo" id="vpnLogo" />
                    <p class="product-name" id="vpnProductName">$ProductName$</p>
                    <div class="content">
                        <table class="intermediate__content">
                            <tr>
                                <td>
                                    <div id="spinner">
                                        <img id="loader" src="#html_loader.png#" alt="" />
                                        <div id="loader_old"></div>
                                    </div>
                                </td>
                                <td>
                                    <h1 id="wait-title">$WaitingStubTitle$</h1>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="buttons">
                                        <form id="cancel-button-wrapper" onclick="cancelVpnConnect();return false;"
                                            class="button-wrapper">
                                            <button id="cancel-button"
                                                class="button button-border_custom button-foreground_custom button-background_custom button-shadow_custom"><span
                                                    id="cancel-button-text"
                                                    class="button__text">$CancelVpnConnectButtonText$</span></button>
                                        </form>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
        <tr height="50">
            <td>
                <img src="#kl_logo.png#" class="kl_logo" id="vpnKlLogo" />
            </td>
        </tr>
    </table>
    <script type="text/javascript">?safe_nav_check_environment.js?</script>
    <script type="text/javascript">?loader.js?</script>
    <script>
                enqueueIntermediateStubCheck();

        var isCancelPossible = true;
        function showCancelButton() {
            if (%IsCancelAllowed%) {
                document.title = "$WaitingStubTitle$";
                document.getElementById("wait-title").textContent = "$WaitingStubTitle$";
                document.getElementById("cancel-button").removeAttribute("disabled");
                document.getElementById("cancel-button-text").innerHTML = "$CancelVpnConnectButtonText$";
                document.getElementById("cancel-button-wrapper").removeAttribute("disabled");
            }
        }

        function onCancelVpnConnectImpossible() {
            isCancelPossible = false;
            document.getElementById("cancel-button").disabled = true;
            document.getElementById("cancel-button-text").textContent = "$CancelVpnConnectButtonText$";
            document.getElementById("cancel-button-wrapper").setAttribute("disabled", true);
        }

        function cancelVpnConnect() {
            document.title = "$CancellingStubTitle$";
            document.getElementById("wait-title").textContent = "$CancellingStubTitle$";
            document.getElementById("cancel-button").disabled = true;
            document.getElementById("cancel-button-text").textContent = "$CancellingVpnConnectButtonText$";
            document.getElementById("cancel-button-wrapper").setAttribute("disabled", true);
            cancelCurrentOperation();
        }

        setOnCancelImpossible(onCancelVpnConnectImpossible);
        showCancelButton();
    </script>
</body>

</html>
<!--KL-PR-ResponseTemplate VpnIntermediatePage-->