CSS for issue #11
resolve #11, pull window focus and blur handlers out to functions