I have this script http://pastebin.com/PY922MyL
How can i bind the slideSwitch method to window such that i can call it with window.slideSwitch() ?