Global Solutions of Nonlinear Wave Equations in Time Dependent Inhomogeneous Media