How to disable Right click on image using jquery

in so many site i have checked in that they have disabled right click on wherever we can see images so i have planned create such kind of post in smitcky. so using below function we can disabled right click on our whole site images. add that function in your header common file so it will effect to whole site.