Variational Approximations between Mean Field Theory and the Junction Tree Algorithm