How do you unlock the cinnabar island Pokemon gym in leaf green?

You will need the Secret Key to open the door. The key is hidden inside Pokemon Mansion which is located on Cinnibar Island.