Invariants of contact structures and transversally oriented foliations