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