Keeping pets safe around fireworks

While many enjoy all the Independence Day fireworks, pets often do not. Many of us have seen our pets react badly to the loud noises, so how can we keep them safe for the holiday?