$(document).ready(function(){ $("a[data-gal^='prettyPhoto']").prettyPhoto({theme:'facebook'}); });