A new series of Vassiliev invariants of ornaments, generalizing most of previously known invariants, is introduced. These invariants solve the problem of classification of decompositions of permutations into products of transpositions, posed by S.Fomin, which can obviously be reduced to homotopy classification of certain collections of plain curves.