Look for a large aerosol can, blue or red and it has a really weird looking top on it, kinda like a scrubbing brush with a hole in it...
Spray this foamy shit on, leave it for a while, vacuum it off, and then reapply as need be, will bring your carpets up real nice.
Cheers,Chris