added fail(), spaz(), and resize() types. optimized how functions are chosen and changed code to use addEventListener and attachEvent instead of onload.
added fail(), spaz(), and resize() types. optimized how functions are chosen and changed code to use addEventListener and attachEvent instead of onload.

Signed-off-by: Jared Barboza <36564e9762edb2e6077c2fc6fdcb40daeb60b72b@gmail.com>

digitalBush/hotlinkr