Complexes of nonseparating curves and mapping class groups