Fixes for ie7
-using str.charAt(0) instead of str[0]
-added ie7 css opacity styles