/**
 * Geometry.js: portable functions for querying window and document geometry
 * modded to omit unused in layOver code for OLA interactive page
 * IMPORTANT: This module must be included in the <body> of a document instead of the <head> of the document.
 */
var lo_Geometry = {};

if (window.innerWidth) { // All browsers but IE
    lo_Geometry.getHorizontalScroll = function() { return window.pageXOffset; };
    lo_Geometry.getVerticalScroll = function() { return window.pageYOffset; };
}
else if (document.documentElement && document.documentElement.clientWidth) {
    // These functions are for IE6 when there is a DOCTYPE
    lo_Geometry.getHorizontalScroll = 
        function() { return document.documentElement.scrollLeft; };
    lo_Geometry.getVerticalScroll = 
        function() { return document.documentElement.scrollTop; };
}
else if (document.body.clientWidth) {
    // These are for IE4, IE5, and IE6 without a DOCTYPE
    lo_Geometry.getHorizontalScroll =
        function() { return document.body.scrollLeft; };
    lo_Geometry.getVerticalScroll = 
        function() { return document.body.scrollTop; };
}
