Selfinjective algebras of quasitilted type