made IE7 compatible
ie7 doesn't like event.preventDefault for some reason. i'm not sure if we need this or not
checking for outside of NC or not
added stuff for outside of nc