/**
 * Resize footer on load and on window resize event
 */
function footerRize(onLoadCheck) {
    var currheight;
    if (onLoadCheck === true && typeof onLoadCheck != "undefined") {
        if ($(document).width() <= 1301) {
            $('#footer').width($(document).width());
        } else {
            $('#footer').width("100%");
        }
    } else {
        if ($.browser.msie) {
            window.onresize = function() {
                if (currheight != document.documentElement.clientHeight) {
                    if ($(document).width() <= 1301) {
                        $('#footer').width($(document).width());
                    } else {
                        $('#footer').width("100%");
                    }
                }
                currheight = document.documentElement.clientHeight;
            };
        } else {
            $(window).resize(function() {
                if ($(document).width() <= 1301) {
                    $('#footer').width($(document).width());
                } else {
                    $('#footer').width("100%");
                }
            });
        }
    }
}
