<!DOCTYPE html>
<html>
        <head>
                <title>Test case for HTTPS-Everywhere: embed tag</title>
                <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
                <script type="text/javascript">
                        $(document).ready(function () {
                                $("#starthttp").click(function () {
                                        $("#instructions").slideUp(350, function () {
                                                $("#testhttp")
                                                                        .slideDown(350)
                                                                        .prepend("<embed src=\"http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/swf/LandingPage.swf\">");
                                                $("#starthttps").click(function () {
                                                        $("#testhttp").slideUp(350, function () {
                                                                $("#testhttps")
                                                                                        .slideDown(350)
                                                                                        .prepend("<embed src=\"https://gmaps-samples-flash.googlecode.com/svn/trunk/examples/swf/LandingPage.swf\">");
                                                                $("#startover").click(function () {
                                                                        $("#testhttps").slideUp(350, function () {
                                                                                $("#instructions").slideDown(350);
                                                                        });
                                                                });
                                                        });     
                                                });
                                        });
                                });
                        });
                </script>
                <style type="text/css">
                        embed {
                                left: -10000px;
                        }
                        .test {
                                display: none;
                        }
                </style>
        </head>
        <body>
                <div id="instructions">
                        <p>
                                Open Firebug or a suitable packet inspector and filter by Flash or HTTP/TCP.
                                <br>
                                If you are using a packet inspector, it is recommended that you close all other network applications.
                                <br>
                                You must have the Google (not sure which one(s)) rules enabled and gmaps-samples-flash.googlecode.com allowed in NoScript.
                        </p>
                        <p>Click here to start: <input type="button" value="Start test case" id="starthttp"></p>
                </div>
                <div id="testhttp" class="test">
                        <p>
                                That was the HTTP version of the test flash.
                                <br>
                                Click here to test HTTPS: <input type="button" id="starthttps" value="Start HTTPS test">
                        </p>
                </div>
                <div id="testhttps" class="test">
                        <p>
                                That was the HTTPS version of the test flash.
                                <br>
                                Click here to start over: <input type="button" id="startover" value="Start over">
                        </p>
                </div>
        </body>
</html>