<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=11" />
        <title>@ViewBag.Title</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width,height=device-height, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1 "/>
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
        @Scripts.Render("~/bundles/jquery")
        <script type="text/javascript" src="~/Scripts/bs-common.js"></script>
        <script type="text/javascript">
            var rootPath = "@(Url.Content("~/").TrimEnd('/'))";
            var emisWeb = "@(System.Configuration.ConfigurationManager.AppSettings["EMISUrl"])";
            var emisReportWeb = "@(System.Configuration.ConfigurationManager.AppSettings["EMISReportUrl"])";
            $(function () {
                $("#body").height($(window).height());
            });

            function showError(message) {
                $("#pageContent").hide();
                $("#errorMessage #errorTitle").html(message);
                $("#errorMessage").show();
            }

            function goHome() {
                location.href = "@Url.Content("~/Home/screensaver")";
            }
        </script>
        @RenderSection("scripts", required: false)
    </head>
    <body style="padding: 0;margin: 0; border:0;  height: 100%;overflow:hidden;">
        <div id="loading" class="window-mask" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 999;
            background: #ccc; filter: alpha(opacity=40); opacity: 0.40; -moz-opacity: 0.4; font-size: 1px; *zoom: 1;
            overflow: hidden; display: none;">
            <img src="~/Content/themes/base/images/timg.gif" alt="" style="top: 50%; left: 50%; transform: translate(-50%,-50%); position: absolute;" />
        </div>
        <div id="body" style="width: 100%; height: 100%; text-align: center; background-image:url(/Content/themes/base/images/background.png); background-repeat:no-repeat; background-size:100% 100%;-moz-background-size:100% 100%;">
        @RenderBody()
        </div>
    </body>
</html>