In some textbooks, Lie algebra is written as $$[X_a, X_b]=if_{abc}X_c$$ where $X_a$'s are the generators of the Lie group. But sometimes, the Lie algebra is written as $$[X_a,X_b]=if_{ab}^{~~~ c}X_c$$ or sometimes as $$[X^a, X^b]=if^{ab}_{~~~ c}X^c$$ where the index $c$ on the right-hand side of each expression is assumed to be summed over and $f$'s stand for structure constants.
Why are indices sometimes written as upstairs and sometimes as downstairs and sometimes everything downstairs? Is there a tool for raising or lowering indices?