ts.window_resize = function() {
        if ( ts.timer_resize ) {
            clearTimeout( ts.timer_resize );
        }
        ts.timer_resize = setTimeout( function() {