made some changes to get it to work in old IE. Stupid IE does not support keywords as properties...