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