﻿        function AdjustColumnsHeight() {
            // get a reference to the three DIVS that make up the columns
            var centerCol = window.document.getElementById('centercol');
            var leftCol = window.document.getElementById('leftcol');
            var rightCol = window.document.getElementById('rightcol');
            // calculate the max height
            var hCenterCol = centerCol.offsetHeight;
            var hLeftCol = leftCol.offsetHeight;
            var hRightCol = rightCol.offsetHeight;
            var maxHeight = Math.max(hCenterCol, Math.max(hLeftCol, hRightCol));
           
          //  maxHeight += 50;//I added this 
            // set the height of all 3 DIVS to the max height
            centerCol.style.height = maxHeight + 'px';
            leftCol.style.height = maxHeight + 'px';
            rightCol.style.height = maxHeight + 'px';
            // Show the footer
            window.document.getElementById('footer').style.visibility = 'inherit';
        }
        //The same as <body onload="AdujustColumnsHeight();init();"
        window.onload = function() { AdjustColumnsHeight();  }
        //window.onresize = function() { HideBrand() };
        //window.onscroll = function() {HideBrand()};

//Marquee javascript////////////////////////////////////////////
        // <!--
        var speed = 1; //=5 change scroll speed with this value
        /**
        * Initialize the marquee, and start the marquee by calling the marquee function.
        */
        function init() {
            var el = document.getElementById("marquee_replacement");
            el.style.overflow = 'hidden';
            scrollFromBottom();
        }

        var go = 0;
        /**
        * This is where the scroll action happens.
        * Recursive method until stopped.
        */
        function scrollFromBottom() {
            var el = document.getElementById("marquee_replacement");
            if (el.scrollTop >= el.scrollHeight - 150) {
                el.scrollTop = 0;
            };
            el.scrollTop = el.scrollTop + speed;
            if (go == 0) {
                setTimeout("scrollFromBottom()",50);
            };
        }

        /**
        * Set the stop variable to be true (will stop the marquee at the next pass).
        */
        function stop() {
            go = 1;
        }

        /**
        * Set the stop variable to be false and call the marquee function.
        */
        function startit() {
            go = 0;
            scrollFromBottom();
        }
        // -->
        ///////////////////////////////////////////////////////////////
        function HideBrand() {
            if (screen.width <= 1000)
                window.document.getElementById('rightcol').style.visibility = 'hidden';
            window.document.getElementById('footer').style.visibility = 'hidden';
        }
        function PrintFriendlly() {
            window.print();
        }
        
       
