function getClientLeft() {
            // Get the left position of the browser client window
            return typeof self.pageXOffset != "undefined" ? self.pageXOffset : document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;
        }

        function getClientTop() {
            // Get the top position of the browser client window
            return typeof self.pageYOffset != "undefined" ? self.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;
        }

        function getClientWidth() {
            // Get the width of the browser client window
            return self.innerWidth ? self.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body ? document.body.clientWidth : 0;
        }

        function getClientHeight() {
            // Get the height of the browser client window 
            return self.innerHeight ? self.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body ? document.body.clientHeight : 0;
        }