1!(function (e) { 2 function t() { 3 var e = location.href; 4 return (hashtag = -1 !== e.indexOf("#prettyPhoto") ? decodeURI(e.substring(e.indexOf("#prettyPhoto") + 1, e.length)) : !1), hashtag && (hashtag = hashtag.replace(/<|>/g, "")), hashtag; 5 } 6 function i() { 7 "undefined" != typeof theRel && (location.hash = theRel + "/" + rel_index + "/"); 8 } 9 function p() { 10 -1 !== location.href.indexOf("#prettyPhoto") && (location.hash = "prettyPhoto"); 11 } 12 function o(e, t) { 13 e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 14 var i = "[\\?&]" + e + "=([^&#]*)", 15 p = new RegExp(i), 16 o = p.exec(t); 17 return null == o ? "" : o[1]; 18 } 19 (e.prettyPhoto = { version: "3.1.6" }), 20 (e.fn.prettyPhoto = function (a) { 21 function s() { 22 e(".pp_loaderIcon").hide(), 23 (projectedTop = scroll_pos.scrollTop + (I / 2 - f.containerHeight / 2)), 24 projectedTop < 0 && (projectedTop = 0), 25 $ppt.fadeTo(settings.animation_speed, 1), 26 $pp_pic_holder.find(".pp_content").animate({ height: f.contentHeight, width: f.contentWidth }, settings.animation_speed), 27 $pp_pic_holder.animate({ top: projectedTop, left: j / 2 - f.containerWidth / 2 < 0 ? 0 : j / 2 - f.containerWidth / 2, width: f.containerWidth }, settings.animation_speed, function () { 28 $pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(f.height).width(f.width), 29 $pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed), 30 isSet && "image" == h(pp_images[set_position]) ? $pp_pic_holder.find(".pp_hoverContainer").show() : $pp_pic_holder.find(".pp_hoverContainer").hide(), 31 settings.allow_expand && (f.resized ? e("a.pp_expand,a.pp_contract").show() : e("a.pp_expand").hide()), 32 !settings.autoplay_slideshow || P || v || e.prettyPhoto.startSlideshow(), 33 settings.changepicturecallback(), 34 (v = !0); 35 }), 36 m(), 37 a.ajaxcallback(); 38 } 39 function n(t) { 40 $pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden"), 41 $pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () { 42 e(".pp_loaderIcon").show(), t(); 43 }); 44 } 45 function r(t) { 46 t > 1 ? e(".pp_nav").show() : e(".pp_nav").hide(); 47 } 48 function l(e, t) { 49 if (((resized = !1), d(e, t), (imageWidth = e), (imageHeight = t), (k > j || b > I) && doresize && settings.allow_resize && !$)) { 50 for (resized = !0, fitting = !1; !fitting; ) 51 k > j ? ((imageWidth = j - 200), (imageHeight = (t / e) * imageWidth)) : b > I ? ((imageHeight = I - 200), (imageWidth = (e / t) * imageHeight)) : (fitting = !0), (b = imageHeight), (k = imageWidth); 52 (k > j || b > I) && l(k, b), d(imageWidth, imageHeight); 53 } 54 return { 55 width: Math.floor(imageWidth), 56 height: Math.floor(imageHeight), 57 containerHeight: Math.floor(b), 58 containerWidth: Math.floor(k) + 2 * settings.horizontal_padding, 59 contentHeight: Math.floor(y), 60 contentWidth: Math.floor(w), 61 resized: resized, 62 }; 63 } 64 function d(t, i) { 65 (t = parseFloat(t)), 66 (i = parseFloat(i)), 67 ($pp_details = $pp_pic_holder.find(".pp_details")), 68 $pp_details.width(t), 69 (detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom"))), 70 ($pp_details = $pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({ position: "absolute", top: -1e4 })), 71 (detailsHeight += $pp_details.height()), 72 (detailsHeight = detailsHeight <= 34 ? 36 : detailsHeight), 73 $pp_details.remove(), 74 ($pp_title = $pp_pic_holder.find(".ppt")), 75 $pp_title.width(t), 76 (titleHeight = parseFloat($pp_title.css("marginTop")) + parseFloat($pp_title.css("marginBottom"))), 77 ($pp_title = $pp_title.clone().appendTo(e("body")).css({ position: "absolute", top: -1e4 })), 78 (titleHeight += $pp_title.height()), 79 $pp_title.remove(), 80 (y = i + detailsHeight), 81 (w = t), 82 (b = y + titleHeight + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height()), 83 (k = t); 84 } 85 function h(e) { 86 return e.match(/youtube\.com\/watch/i) || e.match(/youtu\.be/i)
87 ? "youtube" 88 : e.match(/vimeo\.com/i) 89 ? "vimeo" 90 : e.match(/\b.mov\b/i) 91 ? "quicktime" 92 : e.match(/\b.swf\b/i) 93 ? "flash" 94 : e.match(/\biframe=true\b/i) 95 ? "iframe" 96 : e.match(/\bajax=true\b/i) 97 ? "ajax" 98 : e.match(/\bcustom=true\b/i) 99 ? "custom" 100 : "#" == e.substr(0, 1) 101 ? "inline" 102 : "image"; 103 } 104 function c() { 105 if (doresize && "undefined" != typeof $pp_pic_holder) { 106 if ( 107 ((scroll_pos = _()), 108 (contentHeight = $pp_pic_holder.height()), 109 (contentwidth = $pp_pic_holder.width()), 110 (projectedTop = I / 2 + scroll_pos.scrollTop - contentHeight / 2), 111 projectedTop < 0 && (projectedTop = 0), 112 contentHeight > I) 113 ) 114 return; 115 $pp_pic_holder.css({ top: projectedTop, left: j / 2 + scroll_pos.scrollLeft - contentwidth / 2 }); 116 } 117 } 118 function _() { 119 return self.pageYOffset 120 ? { scrollTop: self.pageYOffset, scrollLeft: self.pageXOffset } 121 : document.documentElement && document.documentElement.scrollTop 122 ? { scrollTop: document.documentElement.scrollTop, scrollLeft: document.documentElement.scrollLeft } 123 : document.body 124 ? { scrollTop: document.body.scrollTop, scrollLeft: document.body.scrollLeft } 125 : void 0; 126 } 127 function g() { 128 (I = e(window).height()), (j = e(window).width()), "undefined" != typeof $pp_overlay && $pp_overlay.height(e(document).height()).width(j); 129 } 130 function m() { 131 isSet && settings.overlay_gallery && "image" == h(pp_images[set_position]) 132 ? ((itemWidth = 57), 133 (navWidth = "facebook" == settings.theme || "pp_default" == settings.theme ? 50 : 30), 134 (itemsPerPage = Math.floor((f.containerWidth - 100 - navWidth) / itemWidth)), 135 (itemsPerPage = itemsPerPage < pp_images.length ? itemsPerPage : pp_images.length), 136 (totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1), 137 0 == totalPage ? ((navWidth = 0), $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()) : $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(), 138 (galleryWidth = itemsPerPage * itemWidth), 139 (fullGalleryWidth = pp_images.length * itemWidth), 140 $pp_gallery 141 .css("margin-left", -(galleryWidth / 2 + navWidth / 2)) 142 .find("div:first") 143 .width(galleryWidth + 5) 144 .find("ul") 145 .width(fullGalleryWidth) 146 .find("li.selected") 147 .removeClass("selected"), 148 (goToPage = Math.floor(set_position / itemsPerPage) < totalPage ? Math.floor(set_position / itemsPerPage) : totalPage), 149 e.prettyPhoto.changeGalleryPage(goToPage), 150 $pp_gallery_li.filter(":eq(" + set_position + ")").addClass("selected")) 151 : $pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave"); 152 } 153 function u() { 154 if ( 155 (settings.social_tools && (facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href))), 156 (settings.markup = settings.markup.replace("{pp_social}", "")), 157 e("body").append(settings.markup), 158 ($pp_pic_holder = e(".pp_pic_holder")), 159 ($ppt = e(".ppt")),
160 ($pp_overlay = e("div.pp_overlay")), 161 isSet && settings.overlay_gallery) 162 ) { 163 (currentGalleryPage = 0), (toInject = ""); 164 for (var t = 0; t < pp_images.length; t++) 165 pp_images[t].match(/\b(jpg|jpeg|png|gif)\b/gi) ? ((classname = ""), (img_src = pp_images[t])) : ((classname = "default"), (img_src = "")), 166 (toInject += "<li class='" + classname + "'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"); 167 (toInject = settings.gallery_markup.replace(/{gallery}/g, toInject)), 168 $pp_pic_holder.find("#pp_full_res").after(toInject), 169 ($pp_gallery = e(".pp_pic_holder .pp_gallery")), 170 ($pp_gallery_li = $pp_gallery.find("li")), 171 $pp_gallery.find(".pp_arrow_next").click(function () { 172 return e.prettyPhoto.changeGalleryPage("next"), e.prettyPhoto.stopSlideshow(), !1; 173 }), 174 $pp_gallery.find(".pp_arrow_previous").click(function () { 175 return e.prettyPhoto.changeGalleryPage("previous"), e.prettyPhoto.stopSlideshow(), !1; 176 }), 177 $pp_pic_holder.find(".pp_content").hover( 178 function () { 179 $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn(); 180 }, 181 function () { 182 $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut(); 183 } 184 ), 185 (itemWidth = 57), 186 $pp_gallery_li.each(function (t) { 187 e(this) 188 .find("a") 189 .click(function () { 190 return e.prettyPhoto.changePage(t), e.prettyPhoto.stopSlideshow(), !1; 191 }); 192 }); 193 } 194 settings.slideshow && 195 ($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'), 196 $pp_pic_holder.find(".pp_nav .pp_play").click(function () { 197 return e.prettyPhoto.startSlideshow(), !1; 198 })), 199 $pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme), 200 $pp_overlay.css({ opacity: 0, height: e(document).height(), width: e(window).width() }).bind("click", function () { 201 settings.modal || e.prettyPhoto.close(); 202 }), 203 e("a.pp_close").bind("click", function () { 204 return e.prettyPhoto.close(), !1; 205 }), 206 settings.allow_expand && 207 e("a.pp_expand").bind("click", function () { 208 return ( 209 e(this).hasClass("pp_expand") ? (e(this).removeClass("pp_expand").addClass("pp_contract"), (doresize = !1)) : (e(this).removeClass("pp_contract").addClass("pp_expand"), (doresize = !0)), 210 n(function () { 211 e.prettyPhoto.open(); 212 }), 213 !1 214 ); 215 }), 216 $pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () { 217 return e.prettyPhoto.changePage("previous"), e.prettyPhoto.stopSlideshow(), !1; 218 }), 219 $pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () { 220 return e.prettyPhoto.changePage("next"), e.prettyPhoto.stopSlideshow(), !1; 221 }), 222 c(); 223 } 224 a = jQuery.extend( 225 { 226 hook: "rel", 227 animation_speed: "fast", 228 ajaxcallback: function () {}, 229 slideshow: 5e3, 230 autoplay_slideshow: !1, 231 opacity: 0.8, 232 show_title: !0, 233 allow_resize: !0, 234 allow_expand: !0, 235 default_width: 500, 236 default_height: 344, 237 counter_separator_label: "/", 238 theme: "pp_default", 239 horizontal_padding: 20, 240 hideflash: !1, 241 wmode: "opaque", 242 autoplay: !0, 243 modal: !1, 244 deeplinking: !0, 245 overlay_gallery: !0, 246 overlay_gallery_max: 30, 247 keyboard_shortcuts: !0, 248 changepicturecallback: function () {}, 249 callback: function () {}, 250 ie6_fallback: !0, 251 markup: 252 '<div class="pp_pic_holder"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>', 253 gallery_markup: '<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>', 254 image_markup: '<img id="fullResImage" src="{path}" />', 255 flash_markup: 256 '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>', 257 quicktime_markup: 258 '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="https://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="https://www.apple.com/quicktime/download/"></embed></object>', 259 iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>', 260 inline_markup: '<div class="pp_inline">{content}</div>', 261 custom_markup: "", 262 }, 263 a 264 ); 265 var f, 266 v, 267 y, 268 w, 269 b, 270 k, 271 P, 272 x = this, 273 $ = !1, 274 I = e(window).height(), 275 j = e(window).width(); 276 return ( 277 (doresize = !0), 278 (scroll_pos = _()), 279 e(window) 280 .unbind("resize.prettyphoto") 281 .bind("resize.prettyphoto", function () { 282 c(), g(); 283 }), 284 a.keyboard_shortcuts && 285 e(document)
286 .unbind("keydown.prettyphoto") 287 .bind("keydown.prettyphoto", function (t) { 288 if ("undefined" != typeof $pp_pic_holder && $pp_pic_holder.is(":visible")) 289 switch (t.keyCode) { 290 case 37: 291 e.prettyPhoto.changePage("previous"), t.preventDefault(); 292 break; 293 case 39: 294 e.prettyPhoto.changePage("next"), t.preventDefault(); 295 break; 296 case 27: 297 settings.modal || e.prettyPhoto.close(), t.preventDefault(); 298 } 299 }), 300 (e.prettyPhoto.initialize = function () { 301 return ( 302 (settings = a), 303 "pp_default" == settings.theme && (settings.horizontal_padding = 16), 304 (theRel = e(this).attr(settings.hook)), 305 (galleryRegExp = /\[(?:.*)\]/), 306 (isSet = galleryRegExp.exec(theRel) ? !0 : !1), 307 (pp_images = isSet 308 ? jQuery.map(x, function (t) { 309 return -1 != e(t).attr(settings.hook).indexOf(theRel) ? e(t).attr("href") : void 0; 310 }) 311 : e.makeArray(e(this).attr("href"))), 312 (pp_titles = isSet 313 ? jQuery.map(x, function (t) { 314 return -1 != e(t).attr(settings.hook).indexOf(theRel) ? (e(t).find("img").attr("alt") ? e(t).find("img").attr("alt") : "") : void 0; 315 }) 316 : e.makeArray(e(this).find("img").attr("alt"))), 317 (pp_descriptions = isSet 318 ? jQuery.map(x, function (t) { 319 return -1 != e(t).attr(settings.hook).indexOf(theRel) ? (e(t).attr("title") ? e(t).attr("title") : "") : void 0; 320 }) 321 : e.makeArray(e(this).attr("title"))), 322 pp_images.length > settings.overlay_gallery_max && (settings.overlay_gallery = !1), 323 (set_position = jQuery.inArray(e(this).attr("href"), pp_images)), 324 (rel_index = isSet ? set_position : e("a[" + settings.hook + "^='" + theRel + "']").index(e(this))), 325 u(this), 326 settings.allow_resize && 327 e(window).bind("scroll.prettyphoto", function () { 328 c(); 329 }), 330 e.prettyPhoto.open(), 331 !1 332 ); 333 }), 334 (e.prettyPhoto.open = function (t) { 335 return ( 336 "undefined" == typeof settings && 337 ((settings = a), 338 (pp_images = e.makeArray(arguments[0])), 339 (pp_titles = e.makeArray(arguments[1] ? arguments[1] : "")), 340 (pp_descriptions = e.makeArray(arguments[2] ? arguments[2] : "")), 341 (isSet = pp_images.length > 1 ? !0 : !1), 342 (set_position = arguments[3] ? arguments[3] : 0), 343 u(t.target)), 344 settings.hideflash && e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "hidden"), 345 r(e(pp_images).size()), 346 e(".pp_loaderIcon").show(), 347 settings.deeplinking && i(), 348 settings.social_tools && ((facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href))), $pp_pic_holder.find(".pp_social").html(facebook_like_link)), 349 $ppt.is(":hidden") && $ppt.css("opacity", 0).show(), 350 $pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity), 351 $pp_pic_holder.find(".currentTextHolder").text(set_position + 1 + settings.counter_separator_label + e(pp_images).size()), 352 "undefined" != typeof pp_descriptions[set_position] && "" != pp_descriptions[set_position] 353 ? $pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])) 354 : $pp_pic_holder.find(".pp_description").hide(), 355 (movie_width = parseFloat(o("width", pp_images[set_position])) ? o("width", pp_images[set_position]) : settings.default_width.toString()), 356 (movie_height = parseFloat(o("height", pp_images[set_position])) ? o("height", pp_images[set_position]) : settings.default_height.toString()), 357 ($ = !1), 358 -1 != movie_height.indexOf("%") && ((movie_height = parseFloat((e(window).height() * parseFloat(movie_height)) / 100 - 150)), ($ = !0)), 359 -1 != movie_width.indexOf("%") && ((movie_width = parseFloat((e(window).width() * parseFloat(movie_width)) / 100 - 150)), ($ = !0)), 360 $pp_pic_holder.fadeIn(function () { 361 switch (
362 ($ppt.html(settings.show_title && "" != pp_titles[set_position] && "undefined" != typeof pp_titles[set_position] ? unescape(pp_titles[set_position]) : " "), 363 (imgPreloader = ""), 364 (skipInjection = !1), 365 h(pp_images[set_position])) 366 ) { 367 case "image": 368 (imgPreloader = new Image()), 369 (nextImage = new Image()), 370 isSet && set_position < e(pp_images).size() - 1 && (nextImage.src = pp_images[set_position + 1]), 371 (prevImage = new Image()), 372 isSet && pp_images[set_position - 1] && (prevImage.src = pp_images[set_position - 1]), 373 ($pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup.replace(/{path}/g, pp_images[set_position])), 374 (imgPreloader.onload = function () { 375 (f = l(imgPreloader.width, imgPreloader.height)), s(); 376 }), 377 (imgPreloader.onerror = function () { 378 alert("Image cannot be loaded. Make sure the path is correct and image exist."), e.prettyPhoto.close(); 379 }), 380 (imgPreloader.src = pp_images[set_position]); 381 break; 382 case "youtube": 383 (f = l(movie_width, movie_height)), 384 (movie_id = o("v", pp_images[set_position])), 385 "" == movie_id && 386 ((movie_id = pp_images[set_position].split("youtu.be/")), 387 (movie_id = movie_id[1]), 388 movie_id.indexOf("?") > 0 && (movie_id = movie_id.substr(0, movie_id.indexOf("?"))), 389 movie_id.indexOf("&") > 0 && (movie_id = movie_id.substr(0, movie_id.indexOf("&")))), 390 (movie = "https://www.youtube.com/embed/" + movie_id), 391 (movie += o("rel", pp_images[set_position]) ? "?rel=" + o("rel", pp_images[set_position]) : "?rel=1"), 392 settings.autoplay && (movie += "&autoplay=1"), 393 (toInject = settings.iframe_markup 394 .replace(/{width}/g, f.width) 395 .replace(/{height}/g, f.height) 396 .replace(/{wmode}/g, settings.wmode) 397 .replace(/{path}/g, movie)); 398 break; 399 case "vimeo": 400 (f = l(movie_width, movie_height)), (movie_id = pp_images[set_position]); 401 var t = /http(s?):\/\/(www\.)?vimeo.com\/(\d+)/, 402 i = movie_id.match(t); 403 (movie = "https://player.vimeo.com/video/" + i[3] + "?title=0&byline=0&portrait=0"), 404 settings.autoplay && (movie += "&autoplay=1;"), 405 (vimeo_width = f.width + "/embed/?moog_width="
405+ f.width), 406 (toInject = settings.iframe_markup 407 .replace(/{width}/g, vimeo_width) 408 .replace(/{height}/g, f.height) 409 .replace(/{path}/g, movie)); 410 break; 411 case "quicktime": 412 (f = l(movie_width, movie_height)), 413 (f.height += 15), 414 (f.contentHeight += 15), 415 (f.containerHeight += 15), 416 (toInject = settings.quicktime_markup 417 .replace(/{width}/g, f.width) 418 .replace(/{height}/g, f.height) 419 .replace(/{wmode}/g, settings.wmode) 420 .replace(/{path}/g, pp_images[set_position]) 421 .replace(/{autoplay}/g, settings.autoplay)); 422 break; 423 case "flash": 424 (f = l(movie_width, movie_height)), 425 (flash_vars = pp_images[set_position]), 426 (flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length)), 427 (filename = pp_images[set_position]), 428 (filename = filename.substring(0, filename.indexOf("?"))), 429 (toInject = settings.flash_markup 430 .replace(/{width}/g, f.width) 431 .replace(/{height}/g, f.height) 432 .replace(/{wmode}/g, settings.wmode) 433 .replace(/{path}/g, filename + "?" + flash_vars)); 434 break; 435 case "iframe": 436 (f = l(movie_width, movie_height)), 437 (frame_url = pp_images[set_position]), 438 (frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1)), 439 (toInject = settings.iframe_markup 440 .replace(/{width}/g, f.width) 441 .replace(/{height}/g, f.height) 442 .replace(/{path}/g, frame_url)); 443 break; 444 case "ajax": 445 (doresize = !1), 446 (f = l(movie_width, movie_height)), 447 (doresize = !0), 448 (skipInjection = !0), 449 e.get(pp_images[set_position], function (e) { 450 (toInject = settings.inline_markup.replace(/{content}/g, e)), ($pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject), s(); 451 }); 452 break; 453 case "custom": 454 (f = l(movie_width, movie_height)), (toInject = settings.custom_markup); 455 break; 456 case "inline": 457 (myClone = e(pp_images[set_position]) 458 .clone() 459 .append('<br clear="all" />') 460 .css({ width: settings.default_width }) 461 .wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>') 462 .appendTo(e("body")) 463 .show()), 464 (doresize = !1), 465 (f = l(e(myClone).width(), e(myClone).height())), 466 (doresize = !0), 467 e(myClone).remove(), 468 (toInject = settings.inline_markup.replace(/{content}/g, e(pp_images[set_position]).html())); 469 } 470 imgPreloader || skipInjection || (($pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject), s()); 471 }), 472 !1 473 ); 474 }), 475 (e.prettyPhoto.changePage = function (t) { 476 (currentGalleryPage = 0), 477 "previous" == t ? (set_position--, set_position < 0 && (set_position = e(pp_images).size() - 1)) : "next" == t ? (set_position++, set_position > e(pp_images).size() - 1 && (set_position = 0)) : (set_position = t), 478 (rel_index = set_position), 479 doresize || (doresize = !0), 480 settings.allow_expand && e(".pp_contract").removeClass("pp_contract").addClass("pp_expand"), 481 n(function () { 482 e.prettyPhoto.open(); 483 }); 484 }), 485 (e.prettyPhoto.changeGalleryPage = function (e) { 486 "next" == e 487 ? (currentGalleryPage++, currentGalleryPage > totalPage && (currentGalleryPage = 0)) 488 : "previous" == e 489 ? (currentGalleryPage--, currentGalleryPage < 0 && (currentGalleryPage = totalPage)) 490 : (currentGalleryPage = e), 491 (slide_speed = "next" == e || "previous" == e ? settings.animation_speed : 0), 492 (slide_to = currentGalleryPage * itemsPerPage * itemWidth), 493 $pp_gallery.find("ul").animate({ left: -slide_to }, slide_speed); 494 }), 495 (e.prettyPhoto.startSlideshow = function () { 496 "undefined" == typeof P 497 ? ($pp_pic_holder 498 .find(".pp_play") 499 .unbind("click") 500 .removeClass("pp_play") 501 .addClass("pp_pause") 502 .click(function () { 503 return e.prettyPhoto.stopSlideshow(), !1; 504 }), 505 (P = setInterval(e.prettyPhoto.startSlideshow, settings.slideshow))) 506 : e.prettyPhoto.changePage("next"); 507 }), 508 (e.prettyPhoto.stopSlideshow = function () { 509 $pp_pic_holder 510 .find(".pp_pause") 511 .unbind("click") 512 .removeClass("pp_pause") 513 .addClass("pp_play") 514 .click(function () { 515 return e.prettyPhoto.startSlideshow(), !1; 516 }), 517 clearInterval(P), 518 (P = void 0); 519 }), 520 (e.prettyPhoto.close = function () { 521 $pp_overlay.is(":animated") || 522 (e.prettyPhoto.stopSlideshow(), 523 $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden"), 524 e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function () { 525 e(this).remove(); 526 }), 527 $pp_overlay.fadeOut(settings.animation_speed, function () { 528 settings.hideflash && e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "visible"), 529 e(this).remove(), 530 e(window).unbind("scroll.prettyphoto"), 531 p(), 532 settings.callback(), 533 (doresize = !0), 534 (v = !1), 535 delete settings; 536 })); 537 }), 538 !pp_alreadyInitialized && 539 t() && 540 ((pp_alreadyInitialized = !0), 541 (hashIndex = t()), 542 (hashRel = hashIndex), 543 (hashIndex = hashIndex.substring(hashIndex.indexOf("/") + 1, hashIndex.length - 1)), 544 (hashRel = hashRel.substring(0, hashRel.indexOf("/"))), 545 setTimeout(function () { 546 e("a[" + a.hook + "^='" + hashRel + "']:eq(" + hashIndex + ")").trigger("click"); 547 }, 50)), 548 this.unbind("click.prettyphoto").bind("click.prettyphoto", e.prettyPhoto.initialize) 549 ); 550 }); 551})(jQuery); 552var pp_alreadyInitialized = !1;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.