minor fix for safari, media queries for IE7

, added media queries support for IE7