funcs for prettyPhoto and jQuery.mobile