Topological phases in two-legged Heisenberg ladders with alternating interactions