$(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square',social_tools:false, deeplinking: false}); });