﻿<!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="loader-css" href="hello.css" />

		<!-- imported scripts -->
        <script type="text/javascript" src="offline/scripts/jquery-1.11.0.min.js"></script>

        <!-- Hello related scripts -->
        <script type="text/javascript" src="offline/scripts/hello-util.js"></script>
        <script type="text/javascript" src="offline/scripts/hello-init.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
                        {
                            // setup default API object if running in the external browser
                            if ( typeof window.projectHello === "undefined" ) { window.projectHello = {}; }

                            HelloLog.mark("AdobeHello extension initializing....");
                            var DEFAULTS = {
                                    // default product ID - in this case a custom version for Muse
                                    hostID          : "MUSE"

                                    // extension version from manifest
                                    , version       : "1.6.5"

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

                                    // default for if our testing/override file exists
                                    , test          : false
                                };

                            // merge in query string parameters which will contain the host's ID
                            var options = $.extend( true, DEFAULTS, HelloUtil.convertURLParameters( window.location.search.substring(1) ) );

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