<!DOCTYPE HTML>
<html>
	<head>  
		<!-- prevent caching -->
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<!-- CSS -->
        <link rel="stylesheet" type="text/css" id="cleanfont-css" href="content/css/clean.css" />
        <link rel="stylesheet" type="text/css" id="cep-css" href="css/hello.css" />

		<!-- imported scripts -->
        <script type="text/javascript" src="content/scripts/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="content/scripts/cep/CSInterface.js"></script>
        <script type="text/javascript" src="content/scripts/hello-util.js"></script>
        <script type="text/javascript" src="content/scripts/adobehello.js"></script>
        <script type="text/javascript" src="content/scripts/hello-cepinit.js"></script>

		<!-- document ready script -->
		<script>
            (function () {
                /**
                 * Don't load stuff till all the various JavaScript has been loaded,
                 * which can't be guaranteed till after the DOM is ready (document.ready)
                 */
                document.onreadystatechange = function()
                {
                    if ( document.readyState === "complete" )
                    {
                        try
                        {
                            HelloLog.mark("HelloCEP initializing....");
                            var options     = {
                                    // extension version from manifest
                                    version     : HelloUtil.getCEPExtensionVersion(),

                                    // default host application ID
                                    hostID      : "UNKN",

                                    // path to our content in this DOM
                                    contentpath : "content/",

                                    // check to see if our testing/override file exists
                                    test        : false,

                                    // get the CEP interface and hosting application's ID
                                    csInterface : new CSInterface()
                            };

                            // get the hosting application's ID
                            options.hostID      = (typeof options.csInterface !== "undefined" && options.csInterface != null )
                                                    ? options.csInterface.getApplicationID() : options.hostID;

                            // check for presence of the testing override script
                            HelloUtil.loadTestModule( options, cepRedirectToHelloContentURL );
                        }
                        catch( e ) { HelloLog.exception( e ); }
                    }
                }
             }());
        </script>
	</head>
	<body id="CEPBody">
        <!-- set the background so we don't have the white box of doom... -->
        <img class="loadspinner" src="content/images/box-spinner-med-2x.gif">
    </body>
</html>
