<%@ master language="VB" inherits="LoginMaster, App_Web_loginmaster.master.cdcab7d2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

<meta http-equiv="x-ua-compatible" content="IE=8" />
    <title>Engineering</title>
     <link id="Link1" runat="server" rel="shortcut icon" href="Images/favicon.ico" type="image/x-icon" />
 
    <base target="_self" />
     <script src="../Styles/Scripts/JS/Scripts.js"></script>   
    <script language="javascript" type="text/javascript">


        function setHeightAndWidth(percWidth) {
            var myWidth = document.body.clientWidth;
            //alert(myWidth);
            if (document.getElementById('main_data')) {
                var objwdth = document.getElementById('main_data');
                objwdth.style.width = myWidth + "px";
                //alert(objwdth.style.width);
            }
            if (document.getElementById('contentLogin_contentMain_divGrid')) {
                //alert('First if');
               // 
                document.getElementById('contentLogin_contentMain_divGrid').style.width = ((myWidth * percWidth) / 100) + 'px';
                //alert('divGrid=' + document.getElementById('contentMain_oneColumnContent_divGrid').style.width);
            }
            if (document.getElementById('contentLogin_contentMain_divPageContent')) {
                document.getElementById('contentLogin_contentMain_divPageContent').style.width = (myWidth - 20) + "px";
                // alert(myWidth);
                //alert(document.getElementById('contentMain_oneColumnContent_divGrid').style.width);
            }

        }
        function getDocHeight() {
            var D = document;
            var w = window;
            var availHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
            var RequiredHeight = Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
            //alert("Available Height" + availHeight);
            //alert("Required Height" + RequiredHeight);
            return Math.min(availHeight, RequiredHeight);
        }

        function getDocWidth() {
            var D = document;
            return Math.max(
        Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
        Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
        Math.max(D.body.clientWidth, D.documentElement.clientWidth)
    );
        }

        function SetHeight() {
            if (document.getElementById('container')) {
                var totalHeight = getDocHeight();
                var availHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
                var totalWidth = getDocWidth();
                var objHgt = document.getElementById('container');
                objHgt.style.height = totalHeight + "px";
            }
            if (document.getElementById('main_data')) {
                var headerContainer = document.getElementById('headerContainer').offsetHeight;                
                var mainDataDiv = document.getElementById('main_data');
                mainDataDiv.style.height = getDocHeight() - headerContainer;

                if (document.getElementById('ContentPageDivSpace')) {
                    var headerContentContainer = document.getElementById('HeaderDivForThisMaster').offsetHeight;
                    var mainContentDataDiv = document.getElementById('ContentPageDivSpace');
                    var errMsgMainMasterHt = 0;
                    if (document.getElementById('divMainMasterErrMsg')) {
                        errMsgMainMasterHt = document.getElementById('divMainMasterErrMsg').offsetHeight;
                    }
                    //alert(headerContentContainer);
                    //alert(headerContainer);
                   
                    mainContentDataDiv.style.height = (availHeight - headerContentContainer - headerContainer - errMsgMainMasterHt-20) + "px";

                }


                if (document.getElementById('contentLogin_contentMain_divPageContent')) {
                    var divPageContentHt = document.getElementById('contentLogin_contentMain_divPageContent');
                    divPageContentHt.style.height = (availHeight - headerContentContainer - headerContainer - errMsgMainMasterHt-20 ) + "px";
                }

                if (document.getElementById('divTreeView')) {
                    // 
                    var headerContentContainer = document.getElementById('HeaderDivForThisMaster').offsetHeight;
                    var divTreeView = document.getElementById('divTreeView');
                    var htdivLeftTreeviewSectionHeader = 0;
                    if (document.getElementById('divLeftTreeviewSectionHeader')) {
                        htdivLeftTreeviewSectionHeader = document.getElementById('divLeftTreeviewSectionHeader').offsetHeight;
                    }
                    divTreeView.style.height = (availHeight - headerContentContainer - headerContainer - errMsgMainMasterHt - htdivLeftTreeviewSectionHeader - 40) + "px";
                    divTreeView.style.width = ((totalWidth * 25) / 100) + "px";

                } //divLibraryTreeView

                if (document.getElementById('divLibraryTreeView')) {
                     
                    var headerContentContainer = document.getElementById('HeaderDivForThisMaster').offsetHeight;
                    var divLibraryTreeView = document.getElementById('divLibraryTreeView');
                    var htdivLeftTreeviewSectionHeader = 0;
                    if (document.getElementById('divLeftTreeviewSectionHeader')) {
                        htdivLeftTreeviewSectionHeader = document.getElementById('divLeftTreeviewSectionHeader').offsetHeight;
                    }
                    divLibraryTreeView.style.height = (availHeight - headerContentContainer - headerContainer - errMsgMainMasterHt - htdivLeftTreeviewSectionHeader - 40) + "px";
                    divLibraryTreeView.style.width = ((totalWidth * 28) / 100) + "px";

                } //


                if (document.getElementById('divWideTreeView')) {
                    // 
                    var headerContentContainer = document.getElementById('HeaderDivForThisMaster').offsetHeight;
                    var divWideTreeView = document.getElementById('divWideTreeView');
                    var htdivLeftTreeviewSectionHeader = 0;
                    if (document.getElementById('divLeftTreeviewSectionHeader')) {
                        htdivLeftTreeviewSectionHeader = document.getElementById('divLeftTreeviewSectionHeader').offsetHeight;
                    }
                    divWideTreeView.style.height = (availHeight - headerContentContainer - headerContainer - errMsgMainMasterHt - htdivLeftTreeviewSectionHeader - 40) + "px";
                    var width = ((totalWidth * 45) / 100);
                    divWideTreeView.style.width = width + "px";
                    if (document.getElementById('contentLogin_contentMain_divTaskStatusTreeview')) {
                        document.getElementById('contentLogin_contentMain_divTaskStatusTreeview').style.width = width + "px";
                    }
                    if (document.getElementById('contentLogin_contentMain_divTaskStatusTreeview')) {
                        document.getElementById('contentLogin_contentMain_divTaskStatusTreeview').style.width = width + "px";
                    }
                    if (document.getElementById('contentLogin_contentMain_divTaskStatusTreeview')) {
                        document.getElementById('contentLogin_contentMain_divTaskStatusTreeview').style.width = width + "px";
                    }
                    
                } 



            }

            setHeightAndWidth(72)
        }

       window.history.forward(1);
       

    </script>
</head>
<body id="body" class="hold-transition skin-blue fixed sidebar-mini  sidebar-collapse" ng-app="Engineering" >
    <form id="form1" runat="server" autocomplete="off">
       <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="wrapper">

    <div id="container" >

        <div id="main_data" >
            <asp:ContentPlaceHolder ID="contentLogin" runat="server">
                <asp:Label ID="lblMasterMsg" runat="server" Text=""></asp:Label>
            </asp:ContentPlaceHolder>
        </div>

        
    </div>
     </div>
    </form>


</body>



</html>
