Abstract
We show that recently constructed invariants of 3-dimensional manifolds and of hyperkähler manifolds (L. Rozansky and E. witten) come from characteristic classes of foliations and from Gelfand-fuks cohomology.