I was told by a Jet Blue pilot that they take off the "wrong" way if their computer doesnt pick the proper flight path over the mountain. I'm also sure there are times wind comes into it. One time the wind was so strong from the SW (tail wind when landing) that AA had to divert to San Juan as they couldnt be sure of braking in time!!