fallback for MSIE <= 8
minor corrections
correct handling of IE > 9
detect if ua accepts cookies