Here you go..... just put in your my documents>maya> scripts folder.. then type in toggleXray in maya under the time line... hit enter. then select the toggleXray type and middle mouse drag it to your shelf. If it dont work the first time just restart and past toggleXray again hit enter. Hope that is clear.