// Create scrollWidth method
jQuery.fn.scrollWidth = function(val) {
    if (!this[0]) return;

    return val != undefined ?

    // Set the scrollWidth
    this.each(function() {
        this == window || this == document ?
        window.scrollWidth( val ) :
        this[ 'scrollWidth' ] = val;
    }) :

    // Return the scrollWidth
    this[0] == window || this[0] == document ?
    self[ 'scrollWidth' ] ||
    $.boxModel && document.documentElement[ 'scrollWidth' ] ||
    document.body[ 'scrollWidth' ] :
    this[0][ 'scrollWidth' ];
};
