var engine = null;
        if (window.navigator.appName == "Microsoft Internet Explorer") {
            // This is an IE browser. What mode is the engine in?
            if (document.documentMode) // IE8
                engine = document.documentMode;
            else // IE 5-7
            {
                engine = 5; // Assume quirks mode unless proven otherwise.
                if (document.compatMode) {
                    if (document.compatMode == "CSS1Compat")
                        engine = 7; // standards mode
                }
            }
            // The engine variable now contains the document compatibility mode.
            //alert('Document compatibility mode is: ' + engine);
        }

        function hosMouseOnOut(action) {
            if (action == 'out') {
                document.body.style.cursor = 'default';
            }
            else {
                document.body.style.cursor = 'pointer';
            }

            var theImage = document.getElementById('hosImg');
            //alert(theImage.src.substring(theImage.src.length - 6));
            if (theImage.src.substring(theImage.src.length - 6) == 'on.jpg') {
                theImage.src = 'images/feat_hos.jpg';
            }
            else {
                theImage.src = 'images/feat_hos_on.jpg';
            }
        }

        function tactMouseOver(action) {
            if (action == 'out') {
                document.body.style.cursor = 'default';
            }
            else {
                document.body.style.cursor = 'pointer';
            }

            var theImage = document.getElementById('tactImg');
            //alert(theImage.src.substring(theImage.src.length - 6));
            if (theImage.src.substring(theImage.src.length - 6) == 'on.jpg') {
                theImage.src = 'images/feat_tact.jpg';
            }
            else {
                theImage.src = 'images/feat_tact_on.jpg';
            }

        }

        function rdMouseOver(action) {
            if (action == 'out') {
                document.body.style.cursor = 'default';
            }
            else {
                document.body.style.cursor = 'pointer';
            }

            var theImage = document.getElementById('rdImg');
            //alert(theImage.src.substring(theImage.src.length - 6));
            if (theImage.src.substring(theImage.src.length - 6) == 'on.jpg') {
                theImage.src = 'images/feat_rd.jpg';
            }
            else {
                theImage.src = 'images/feat_rd_on.jpg';
            }

        }

        //globals for nav menu
        var navOurCompanyHighlight = false;
        var navSolutionsHighlight = false;
        var navServiceHighlight = false;

        function highlightHome() {
            unhighlightMilitary('Military')
            unhighlightService('Service')
            unhighlightSolutions('Solutions');
            unhighlightOurCompany('OurCompany');
        }

        function highlightOurCompany(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "84px 0px";
            theElement.style.backgroundColor = "#434343";
            theElement.style.color = "#e8e8e8";
            unhighlightMilitary('Military')
            unhighlightService('Service')
            unhighlightSolutions('Solutions');
        }

        function unhighlightOurCompany(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "84px -19px";
            theElement.style.color= "#434343";
            theElement.style.backgroundColor= "#e8e8e8";
        }

        function highlightMilitary(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "100px 0px";
            theElement.style.backgroundColor = "#434343";
            theElement.style.color = "#e8e8e8";
            //highlightSolutions('Solutions');
        }

        function unhighlightMilitary(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "100px -19px";
            theElement.style.color = "#434343";
            theElement.style.backgroundColor = "#e8e8e8";
        }

        function highlightService(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "85px 0px";
            theElement.style.backgroundColor = "#434343";
            theElement.style.color = "#e8e8e8";
            unhighlightMilitary('Military')
            unhighlightSolutions('Solutions')
            unhighlightOurCompany('OurCompany');
        }

        function unhighlightService(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "85px -19px";
            theElement.style.color = "#434343";
            theElement.style.backgroundColor = "#e8e8e8";
        }

        function highlightSolutions(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "60px 0px";
            theElement.style.backgroundColor = "#434343";
            theElement.style.color = "#e8e8e8";
            unhighlightService('Service')
            unhighlightOurCompany('OurCompany');
        }

        function unhighlightSolutions(element) {
            var theElement = document.getElementById('a' + element);
            theElement.style.backgroundPosition = "60px -19px";
            theElement.style.color = "#434343";
            theElement.style.backgroundColor = "#e8e8e8";
        }

        function hover(element) {
            if (element == "Service") {
                highlightService(element);
            }
            else if (element == "Solutions") {
                highlightSolutions(element);
            }
            else if (element == "OurCompany") {
                highlightOurCompany(element);
            }
            else if (element == "Military") {
                highlightMilitary(element);
            }
        }

        function hoverOff(element) {
            if (element == "Service") {
                unhighlightService(element);
            }
            else if (element == "Solutions") {
                unhighlightSolutions(element);
            }
            else if (element == "OurCompany") {
                unhighlightOurCompany(element);
            }
            else if (element == "Military") {
                unhighlightMilitary(element);
            }
        }
        