better support for firefox
stretch image padding to fill all screen
change cursor on background div, not on document.body
initialize callbacks after page is set up to avoid forward declarations