Fixed IE problems with javascript 1.6 (map etc.). Added a bunch of UI functions for calculating screen height etc.