We define new topological invariants for Anosov representations and study them in detail for maximal representations of the fundamental group of a closed oriented surface Σ into the symplectic group Sp (2n, R). In particular we show that the invariants distinguish connected components of the space of symplectic maximal representations other than Hitchin components. Since the invariants behave naturally with respect to the action of the mapping class group of Σ, we obtain from this the number of components of the quotient by the mapping class group action. For specific symplectic maximal representations we compute the invariants explicitly. This allows us to construct nice model representations in all connected components. The construction of model representations is of particular interest for Sp (4, R), because in this case there are −1−χ(Σ) connected components in which all representations are Zariski dense and no model representations have been known so far. Finally, we use the model representations to draw conclusions about the holonomy of symplectic maximal representations.