WP Photo Album Plus - Version 8.1.00.005

Version Description

= 8.0.10 =

  • This version addresses various bug fixes, feature requests and security fixes.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 8.1.00.005
Comparing to
See all releases

Code changes from version 8.1.00.004 to 8.1.00.005

changelog.txt CHANGED
@@ -6,6 +6,7 @@ WP Photo Album Plus Changelog
6
  - Removed ajax method 'Classic' as it used a method that is not allowed.
7
  - Javascript is now always deferred (Removed Advanced settings -> System I -> Item 11: Defer javascript),
8
  in order to use the prescribed method for inline javascript.
 
9
 
10
  = 8.0.10 =
11
 
6
  - Removed ajax method 'Classic' as it used a method that is not allowed.
7
  - Javascript is now always deferred (Removed Advanced settings -> System I -> Item 11: Defer javascript),
8
  in order to use the prescribed method for inline javascript.
9
+ - Drpped all custom style items in Advanced settings -> System -> I. Use wp customized instead.
10
 
11
  = 8.0.10 =
12
 
js/wppa-all.js CHANGED
@@ -1,7 +1,7 @@
1
  // wppa-utils
2
  function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}var wppaMakeLazyVisibleScrollEndTimer;function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}wppaJsUtilsVersion="8.0.04.006";var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&!wppaLazyBusy){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime();if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var i=0;jQuery("*[data-src]").each(function(){t=jQuery(this).attr("data-src"),wppaIsElementInViewport(this)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),i++)}),0<i&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),p=(a=new Date).getTime(),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;var a=jQuery(t[0]).css("visibility");if("hidden"==a||"collapse"==a)return!1;t=jQuery(t[0]).parent()}e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||(wppaIsMobile?0<e.bottom&&0<e.right&&e.left<3*screen.width&&e.top<3*screen.height:0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}function wppaShowCoords(e){e=e.getBoundingClientRect();alert("Top = "+parseInt(e.top)+", Left = "+parseInt(e.left)+", WinH = "+jQuery(window).height()+", WinW = "+jQuery(window).width()+", Scrolltop = "+jQuery(document).scrollTop())}
3
  // wppa
4
- function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips(wppaEasingSlide)}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").hide(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var e=jQuery(this).attr("id").substr(6);wppaUbb(e,"l","hide"),wppaUbb(e,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){wppaAdjustAllFilmstrips(wppaEasingSlide)}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var e=jQuery(this).attr("href");e&&("jpg"!=(e=(e=e.split("."))[e.length-1])&&"jpeg"!=e&&"png"!=e||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}var wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(e){var p=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:p*a})})}wppaWppaVer="8.0.07.017",jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(e){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(p){return jQuery(".wppa-container").each(function(){var e=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p)}),(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(e){return!1}),jQuery("video").bind("contextmenu",function(e){return!1}),jQuery("canvas").bind("contextmenu",function(e){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(e){var p,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+e,t[3]="theimg1-"+e,a=0;a<3;)1==++a&&0!=e||(p=document.getElementById(t[a]))&&"function"==typeof p.pause&&p.pause()}function wppaStopAudio(e){if("number"==typeof e)jQuery("#audio-"+e).pause&&jQuery("#audio-"+e).pause();else{var p=jQuery("audio");if(0<p.length)for(var a=0;a<p.length;)"wppa"==jQuery(p[a]).attr("data-from")&&p[a].pause(),a++}}function wppaMakeFullsizeUrl(e){var p,a;e=(p=(e=e.replace("/thumbs/","/")).split("//"))[1]?(a=p[1].split("/"),p[0]+"//"):(a=p[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(e+="/"),e+=o),t++}return e}function wppaGetContainerWidth(e){var p=document.getElementById("wppa-container-"+e);if(p){var a=0;if(!wppaAutoColumnWidth[e])return p.clientWidth;for(;0==a;)p=p.parentNode,a=jQuery(p).width();return parseInt(a)}}function _wppaDoAutocol(e,p){if(!wppaAutoColumnWidth[e])return!0;var a,t,o=wppaGetContainerWidth(e);if(document.getElementById("wppa-container-"+e)){if(wppaCoverImageResponsive[e]||1<(a=jQuery(".wppa-asym-text-frame-"+e)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+e).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+e).css({width:o})):(wppaAnimate(".wppa-asym-text-frame-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),wppaAnimate(".wppa-cover-box-"+e,{width:o},wppaResponseSpeed,wppaEasingDefault))),1<(a=jQuery(".wppa-cover-box-mcr-"+e)).length){var r=document.getElementById("wppa-albumlist-"+e).clientWidth,n=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,s=n-1,i=parseInt((r+wppaCoverSpacing)/n-wppaCoverSpacing);if(wppaColWidth[e]!=r||wppaMCRWidth[e]!=i){wppaColWidth[e]=r,wppaMCRWidth[e]=i;for(var l=0;l<a.length;){switch(l%n){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case s:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[e]||wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:i-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(a[0]).width(),wppaAnimate(".wppa-cover-box-mcr-"+e,{width:i},wppaResponseSpeed,wppaEasingDefault)}}else 1==a.length&&(wppaCoverImageResponsive[e]||(wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(".wppa-cover-box-mcr-"+e).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+e).length&&(jQuery("#wppa-container-"+e).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+e).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+e).css("width")))&&(i=wppaMinThumbSpace,t=o-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(t/(r+i))),i=parseInt((t-i*r)/(i+1)),jQuery(".thumbnail-frame-"+e).css({marginLeft:i})),jQuery(".thumbnail-frame-comalt-"+e).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+e).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var u,c=1,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");w;)u=w*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+c+"-"+e).css("height",u),c++,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(e),document.getElementById("slide_frame-"+e)&&wppaFormatSlide(e),jQuery("#audio-slide-"+e).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+e).css("width",.7*o),wppaFilmStripLength[e]=o-wppaFilmStripAreaDelta[e],jQuery("#filmwindow-"+e).css("width",wppaFilmStripLength[e]),_wppaAdjustFilmstrip(e,wppaEasingSlide),wppaIsMini[e]||void 0===_wppaSlides[e]||(wppaColWidth[e]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRat),jQuery("#wppa-my-rat-"+e).html(wppaMyRat),jQuery("#counter-"+e).html(_wppaCurIdx[e]+1+" / "+_wppaSlides[e].length)):(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRating),jQuery("#wppa-my-rat-"+e).html(wppaMyRating),jQuery("#counter-"+e).html(wppaPhoto+" "+(_wppaCurIdx[e]+1)+" "+wppaOf+" "+_wppaSlides[e].length))),jQuery(".wppa-sphoto-"+e).css("width",o),jQuery(".wppa-simg-"+e).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+e).css("height",""),jQuery(".wppa-mphoto-"+e).css("width",o+10),jQuery(".wppa-mimg-"+e).css("width",o),jQuery(".wppa-mimg-"+e).css("height",""),jQuery(".smxpdf-"+e).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[e]&&(o/wppaSearchBoxSelItems[e]<125?jQuery(".wppa-searchsel-item-"+e).css("width","100%"):jQuery(".wppa-searchsel-item-"+e).css("width",100/wppaSearchBoxSelItems[e]+"%")),jQuery(".wppa-upload-album-"+e).css("maxWidth",.6*o),wppaSetRealCalendarHeights(e),!0}}function wppaSetRealCalendarHeights(p){var a,t,o,e=jQuery("#wppa-real-calendar-"+p).width();0<e&&(a=!0,t=e*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+p).css({height:t}),e=e/50+2,jQuery("#wppa-real-calendar-"+p).css({fontSize:e}),e=e/4,jQuery(".wppa-real-calendar-head-td-"+p).css({marginTop:e,marginBottom:e}),o=t/2,jQuery(".wppa-realcalimg-"+p).each(function(){var e;0==this.height?a=!1:(e=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+e+"-"+p).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(p)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(e){for(var p=jQuery(".wppa-mas-h-"+e),a=wppaMinThumbSpace,t=0;t<p.length;t++){var o=wppaGetChildI(p[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+e+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(p[t]).css({width:o})}}}function wppaGetChildI(e){for(var p=e.childNodes,a=0;a<p.length;a++){var t=p[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var p=1;p<=wppaMaxOccur;)wppaStartHtml[p]=jQuery("#wppa-container-"+p).html(),p++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(e,p){if(!(wppaColWidth[e]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+e).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+e).css("display","none");jQuery("#wppa-fotomoto-container-"+e).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+e)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(p),wppaFotomotoToolbarIds[e]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+e,p)):setTimeout("wppaFotomotoToolbar( "+e+',"'+p+'" )',200))}function wppaFotomotoHide(e){jQuery("#wppa-fotomoto-container-"+e).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","none")}function wppaStringContainsForbiddenChars(e){for(var p=["?","&","#","/",'"',"'"],a=0;a<p.length;){if(-1!=e.indexOf(p[a]))return!0;a++}return!1}function wppaPushStateSlide(e,p,a){if(!wppaIsMini[e]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:e,type:"slide",slide:p},"---",a)}catch(e){}}function wppaRepairScriptTags(e){if(void 0===e)return"";for(;-1!=e.indexOf("[script");)e=e.replace("[script","<script");for(;-1!=e.indexOf("[/script");)e=e.replace("[/script","</script");return e}function wppaRepairBrTags(e){return void 0===e?"":e.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(e){return void 0===e?"":13<e.length?e.substr(0,10)+"...":e}window.onpopstate=function(e){var p=0;if(wppaCanPushState){if(e.state)switch(p=e.state.occur,e.state.type){case"html":jQuery("#wppa-container-"+p).html(e.state.html);break;case"slide":_wppaGoto(p,e.state.slide)}else if(wppaUpdateAddressLine){p=wppaFirstOccur,jQuery("#wppa-container-"+p).html(wppaStartHtml[p]),(wppaFirstOccur=0)==p&&(a=document.location.href.split("&wppa-occur="),p=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[p].length&&_wppaId[p][o]!=t;)o++;o<_wppaId[p].length&&_wppaGoto(p,o)}}document.getElementById("theslide0-"+p)&&_wppaStop(p)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(e,p){var a,t;document.selection?(e.focus(),sel=document.selection.createRange(),sel.text=p):e.selectionStart||"0"==e.selectionStart?(a=e.selectionStart,t=e.selectionEnd,e.value=e.value.substring(0,a)+p+e.value.substring(t,e.value.length),e.selectionStart=a+p.length,e.selectionEnd=a+p.length):e.value+=p}function wppaGeoInit(e,p,a){var p=new google.maps.LatLng(p,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:p},t=new google.maps.Map(document.getElementById("map-canvas-"+e),a),o=new google.maps.Marker({position:p,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(e){if(void 0!==e){for(var p=(t=(t=String(e).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<p.length;)t+=p[a],++a<p.length&&(t+="||PLUS||");return t}}function wppaUrlToId(e){var p=e.split("/wppa/");return 1==p.length&&(p=e.split("/upload/")),1==p.length?0:p=(p=(p=(p=(p=(p=(p=p[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(e,p){jQuery("#wppa-ss-albumopt-"+e).css("display","none"),jQuery("#wppa-ss-albumcat-"+e).css("display","none"),jQuery("#wppa-ss-albumname-"+e).css("display","none"),jQuery("#wppa-ss-albumtext-"+e).css("display","none"),jQuery("#wppa-ss-photoopt-"+e).css("display","none"),jQuery("#wppa-ss-photoname-"+e).css("display","none"),jQuery("#wppa-ss-photoowner-"+e).css("display","none"),jQuery("#wppa-ss-phototag-"+e).css("display","none"),jQuery("#wppa-ss-phototext-"+e).css("display","none"),jQuery("#wppa-ss-photoexif-"+e).css("display","none"),jQuery("#wppa-ss-photoiptc-"+e).css("display","none"),jQuery("#wppa-ss-exifopts-"+e).css("display","none"),jQuery("#wppa-ss-iptcopts-"+e).css("display","none"),jQuery("#wppa-ss-spinner-"+e).css("display","none"),jQuery("#wppa-ss-button-"+e).css("display","none");var a=jQuery("#wppa-ss-pa-"+e).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+e).css("display",""),t=jQuery("#wppa-ss-albumopt-"+e).val()){case"c":jQuery("#wppa-ss-albumcat-"+e).css("display","");var n=jQuery(".wppa-ss-albumcat-"+e),r="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+e).css("display","");n=jQuery(".wppa-ss-albumtext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+e).css("display",""),t=jQuery("#wppa-ss-photoopt-"+e).val()){case"n":jQuery("#wppa-ss-photoname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+e).css("display","");n=jQuery(".wppa-ss-phototag-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+e).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+e).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+e).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(e,o,"wppa-ss-iptcopts-"+e),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+e).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+e).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(e,o,"wppa-ss-exifopts-"+e),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")))}}p&&(-1==(p=jQuery("#wppa-ss-pageurl-"+e).val()).indexOf("?")?p+="?":p+="&",p+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=p)}function wppaSetIptcExifSize(e,p){e=jQuery(e).length;6<e&&(e=6),e<2&&(e=2),jQuery(p).attr("size",e)}function wppaUpdateSearchRoot(e,p){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(e),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)p?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(p),t++}function wppaSubboxChange(e){jQuery(e).prop("checked")&&jQuery(".wppa-rootbox").each(function(e){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var e=jQuery(".wppa-display-searchstring"),p=0;p<e.length;)jQuery(e[p]).html(""),p++;for(e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).prop("disabled",!0),p++}function wppaEnableSubsearch(){for(var e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).removeAttr("disabled"),p++}function wppaDisplaySelectedFiles(e){for(var p=jQuery("#"+e),a=0,t="";a<p[0].files.length;)t+=p[0].files[a].name+" ",a++;jQuery("#"+e+"-display").val(t)}function wppaIsEmpty(e){return null==e||(void 0===e||(""==e||(0==e||(0==e||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(e,p,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var e=jQuery(this).attr("id").substr(5),p=wppaGetContainerWidth(e)-wppaThumbnailAreaDelta,p=p/parseInt((p+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin));jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+e).css("width",p+"px"),jQuery("#grid-"+e).masonry({itemSelector:".grid-item-"+e,columnWidth:p,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var e=parseInt(wppaGlobalFsIconSize/4),p=e;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(e+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.10.001";function wppaStoreSlideInfo(p,a,e,t,i,w,r,n,o,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){o=wppaRepairScriptTags(o),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFilmThumbTitles[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]='<span class="sdf-'+p+'" >'+wppaRepairBrTags(r)+"</span>",_wppaNames[p][a]='<span class="sdn-'+p+'" >'+n+"</span>",_wppaFilmThumbTitles[p][a]=n,_wppaDsc[p][a]=o,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){wppaSlideInitRunning[p]&&("start"==wppaSlideInitRunning[p]?a=-1:"stopprev"==wppaSlideInitRunning[p]?a=_wppaSlides[p].length-1:"stopnext"==wppaSlideInitRunning[p]&&(a=0),wppaSlideInitRunning[p]=""),_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(n=_wppaRealId[p],_wppaLat[p][n[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][n[_wppaNxtIdx[p]]],_wppaLon[p][n[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,n=_wppaNxtIdx[p],o=(wppaNumbarMax-1)/2;n<o?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-o<n?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=n+o+.5-1,(i=n-o+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(o=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",o,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",o,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,n="#theimg"+e+"-"+p,o="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(n,wppaAnimationSpeed),setTimeout(wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:-l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"none":wppaFadeIn(o,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(n,wppaAnimationSpeed),wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p,wppaEasingSlide),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){wppaSlideInitRunning[p]="start",jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),n=e.naturalWidth;void 0===n&&(n=parseInt(e.style.maxWidth));var o=e.naturalHeight;void 0===o&&(o=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*o/n))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=n||f-d<=o?l<(o+d)/(n+d)?(c=f-d,j=parseInt(c*n/o)):(j=x-d,c=parseInt(j*o/n)):(j=n,c=o),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return t=wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var n,o,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" ></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),o=".pdf"==(n=_wppaHiresUrl[p][e]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(wppaSlideLinkEqual?' onclick="wppaStopAudio();wppaStopShow('+p+");jQuery('#wppa-film-"+e+"-"+p+"').trigger('click');return false;\"":' onclick="wppaStopAudio();wppaStopShow('+p+');"')+' style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+">"+(o?"<iframe "+l+' src="'+n+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if("linear"!=a&&(a=wppaEasingSlide),document.getElementById("wppa-filmstrip-"+p)&&_wppaSlides[p]){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var n=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(n))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):(n=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(n<i?2:i<n-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w}):(i<n-1.5*w||n+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i}),wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var o=0;o<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][o]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+o+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==o?(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]))),o++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery("#wppa-next-pagelink-"+p).trigger("click")):0<e.length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery(e).trigger("click")):_wppaNextSlide(p,_wppaNxtIdx[p]=0)):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopprev",jQuery("#wppa-prev-page-last-item-"+p).trigger("click")):(_wppaNxtIdx[p]+=_wppaSlides[p].length,_wppaNextSlide(p,0)):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSlides[p]&&(_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden")))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
1
  // wppa-utils
2
  function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}var wppaMakeLazyVisibleScrollEndTimer;function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}wppaJsUtilsVersion="8.0.04.006";var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&!wppaLazyBusy){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime();if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var i=0;jQuery("*[data-src]").each(function(){t=jQuery(this).attr("data-src"),wppaIsElementInViewport(this)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),i++)}),0<i&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),p=(a=new Date).getTime(),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;var a=jQuery(t[0]).css("visibility");if("hidden"==a||"collapse"==a)return!1;t=jQuery(t[0]).parent()}e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||(wppaIsMobile?0<e.bottom&&0<e.right&&e.left<3*screen.width&&e.top<3*screen.height:0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}function wppaShowCoords(e){e=e.getBoundingClientRect();alert("Top = "+parseInt(e.top)+", Left = "+parseInt(e.left)+", WinH = "+jQuery(window).height()+", WinW = "+jQuery(window).width()+", Scrolltop = "+jQuery(document).scrollTop())}
3
  // wppa
4
+ function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips(wppaEasingSlide)}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").hide(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var e=jQuery(this).attr("id").substr(6);wppaUbb(e,"l","hide"),wppaUbb(e,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){wppaAdjustAllFilmstrips(wppaEasingSlide)}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var e=jQuery(this).attr("href");e&&("jpg"!=(e=(e=e.split("."))[e.length-1])&&"jpeg"!=e&&"png"!=e||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}var wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(e){var p=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:p*a})})}wppaWppaVer="8.1.00.005",jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(){jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",wppaNieScrollOpts)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(e){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(p){return jQuery(".wppa-container").each(function(){var e=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p)}),(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(e){return!1}),jQuery("video").bind("contextmenu",function(e){return!1}),jQuery("canvas").bind("contextmenu",function(e){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(e){var p,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+e,t[3]="theimg1-"+e,a=0;a<3;)1==++a&&0!=e||(p=document.getElementById(t[a]))&&"function"==typeof p.pause&&p.pause()}function wppaStopAudio(e){if("number"==typeof e)jQuery("#audio-"+e).pause&&jQuery("#audio-"+e).pause();else{var p=jQuery("audio");if(0<p.length)for(var a=0;a<p.length;)"wppa"==jQuery(p[a]).attr("data-from")&&p[a].pause(),a++}}function wppaMakeFullsizeUrl(e){var p,a;e=(p=(e=e.replace("/thumbs/","/")).split("//"))[1]?(a=p[1].split("/"),p[0]+"//"):(a=p[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(e+="/"),e+=o),t++}return e}function wppaGetContainerWidth(e){var p=document.getElementById("wppa-container-"+e);if(p){var a=0;if(!wppaAutoColumnWidth[e])return p.clientWidth;for(;0==a;)p=p.parentNode,a=jQuery(p).width();return parseInt(a)}}function _wppaDoAutocol(e,p){if(!wppaAutoColumnWidth[e])return!0;var a,t,o=wppaGetContainerWidth(e);if(document.getElementById("wppa-container-"+e)){if(wppaCoverImageResponsive[e]||1<(a=jQuery(".wppa-asym-text-frame-"+e)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+e).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+e).css({width:o})):(wppaAnimate(".wppa-asym-text-frame-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),wppaAnimate(".wppa-cover-box-"+e,{width:o},wppaResponseSpeed,wppaEasingDefault))),1<(a=jQuery(".wppa-cover-box-mcr-"+e)).length){var r=document.getElementById("wppa-albumlist-"+e).clientWidth,n=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,s=n-1,i=parseInt((r+wppaCoverSpacing)/n-wppaCoverSpacing);if(wppaColWidth[e]!=r||wppaMCRWidth[e]!=i){wppaColWidth[e]=r,wppaMCRWidth[e]=i;for(var l=0;l<a.length;){switch(l%n){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case s:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[e]||wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:i-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(a[0]).width(),wppaAnimate(".wppa-cover-box-mcr-"+e,{width:i},wppaResponseSpeed,wppaEasingDefault)}}else 1==a.length&&(wppaCoverImageResponsive[e]||(wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(".wppa-cover-box-mcr-"+e).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+e).length&&(jQuery("#wppa-container-"+e).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+e).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+e).css("width")))&&(i=wppaMinThumbSpace,t=o-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(t/(r+i))),i=parseInt((t-i*r)/(i+1)),jQuery(".thumbnail-frame-"+e).css({marginLeft:i})),jQuery(".thumbnail-frame-comalt-"+e).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+e).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var u,c=1,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");w;)u=w*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+c+"-"+e).css("height",u),c++,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(e),document.getElementById("slide_frame-"+e)&&wppaFormatSlide(e),jQuery("#audio-slide-"+e).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+e).css("width",.7*o),wppaFilmStripLength[e]=o-wppaFilmStripAreaDelta[e],jQuery("#filmwindow-"+e).css("width",wppaFilmStripLength[e]),_wppaAdjustFilmstrip(e,wppaEasingSlide),wppaIsMini[e]||void 0===_wppaSlides[e]||(wppaColWidth[e]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRat),jQuery("#wppa-my-rat-"+e).html(wppaMyRat),jQuery("#counter-"+e).html(_wppaCurIdx[e]+1+" / "+_wppaSlides[e].length)):(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRating),jQuery("#wppa-my-rat-"+e).html(wppaMyRating),jQuery("#counter-"+e).html(wppaPhoto+" "+(_wppaCurIdx[e]+1)+" "+wppaOf+" "+_wppaSlides[e].length))),jQuery(".wppa-sphoto-"+e).css("width",o),jQuery(".wppa-simg-"+e).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+e).css("height",""),jQuery(".wppa-mphoto-"+e).css("width",o+10),jQuery(".wppa-mimg-"+e).css("width",o),jQuery(".wppa-mimg-"+e).css("height",""),jQuery(".smxpdf-"+e).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[e]&&(o/wppaSearchBoxSelItems[e]<125?jQuery(".wppa-searchsel-item-"+e).css("width","100%"):jQuery(".wppa-searchsel-item-"+e).css("width",100/wppaSearchBoxSelItems[e]+"%")),jQuery(".wppa-upload-album-"+e).css("maxWidth",.6*o),wppaSetRealCalendarHeights(e),!0}}function wppaSetRealCalendarHeights(p){var a,t,o,e=jQuery("#wppa-real-calendar-"+p).width();0<e&&(a=!0,t=e*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+p).css({height:t}),e=e/50+2,jQuery("#wppa-real-calendar-"+p).css({fontSize:e}),e=e/4,jQuery(".wppa-real-calendar-head-td-"+p).css({marginTop:e,marginBottom:e}),o=t/2,jQuery(".wppa-realcalimg-"+p).each(function(){var e;0==this.height?a=!1:(e=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+e+"-"+p).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(p)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(e){for(var p=jQuery(".wppa-mas-h-"+e),a=wppaMinThumbSpace,t=0;t<p.length;t++){var o=wppaGetChildI(p[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+e+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(p[t]).css({width:o})}}}function wppaGetChildI(e){for(var p=e.childNodes,a=0;a<p.length;a++){var t=p[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var p=1;p<=wppaMaxOccur;)wppaStartHtml[p]=jQuery("#wppa-container-"+p).html(),p++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(e,p){if(!(wppaColWidth[e]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+e).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+e).css("display","none");jQuery("#wppa-fotomoto-container-"+e).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+e)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(p),wppaFotomotoToolbarIds[e]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+e,p)):setTimeout("wppaFotomotoToolbar( "+e+',"'+p+'" )',200))}function wppaFotomotoHide(e){jQuery("#wppa-fotomoto-container-"+e).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","none")}function wppaStringContainsForbiddenChars(e){for(var p=["?","&","#","/",'"',"'"],a=0;a<p.length;){if(-1!=e.indexOf(p[a]))return!0;a++}return!1}function wppaPushStateSlide(e,p,a){if(!wppaIsMini[e]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:e,type:"slide",slide:p},"---",a)}catch(e){}}function wppaRepairScriptTags(e){if(void 0===e)return"";for(;-1!=e.indexOf("[script");)e=e.replace("[script","<script");for(;-1!=e.indexOf("[/script");)e=e.replace("[/script","</script");return e}function wppaRepairBrTags(e){return void 0===e?"":e.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(e){return void 0===e?"":13<e.length?e.substr(0,10)+"...":e}window.onpopstate=function(e){var p=0;if(wppaCanPushState){if(e.state)switch(p=e.state.occur,e.state.type){case"html":jQuery("#wppa-container-"+p).html(e.state.html);break;case"slide":_wppaGoto(p,e.state.slide)}else if(wppaUpdateAddressLine){p=wppaFirstOccur,jQuery("#wppa-container-"+p).html(wppaStartHtml[p]),(wppaFirstOccur=0)==p&&(a=document.location.href.split("&wppa-occur="),p=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[p].length&&_wppaId[p][o]!=t;)o++;o<_wppaId[p].length&&_wppaGoto(p,o)}}document.getElementById("theslide0-"+p)&&_wppaStop(p)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(e,p){var a,t;document.selection?(e.focus(),sel=document.selection.createRange(),sel.text=p):e.selectionStart||"0"==e.selectionStart?(a=e.selectionStart,t=e.selectionEnd,e.value=e.value.substring(0,a)+p+e.value.substring(t,e.value.length),e.selectionStart=a+p.length,e.selectionEnd=a+p.length):e.value+=p}function wppaGeoInit(e,p,a){var p=new google.maps.LatLng(p,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:p},t=new google.maps.Map(document.getElementById("map-canvas-"+e),a),o=new google.maps.Marker({position:p,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(e){if(void 0!==e){for(var p=(t=(t=String(e).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<p.length;)t+=p[a],++a<p.length&&(t+="||PLUS||");return t}}function wppaUrlToId(e){var p=e.split("/wppa/");return 1==p.length&&(p=e.split("/upload/")),1==p.length?0:p=(p=(p=(p=(p=(p=(p=p[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(e,p){jQuery("#wppa-ss-albumopt-"+e).css("display","none"),jQuery("#wppa-ss-albumcat-"+e).css("display","none"),jQuery("#wppa-ss-albumname-"+e).css("display","none"),jQuery("#wppa-ss-albumtext-"+e).css("display","none"),jQuery("#wppa-ss-photoopt-"+e).css("display","none"),jQuery("#wppa-ss-photoname-"+e).css("display","none"),jQuery("#wppa-ss-photoowner-"+e).css("display","none"),jQuery("#wppa-ss-phototag-"+e).css("display","none"),jQuery("#wppa-ss-phototext-"+e).css("display","none"),jQuery("#wppa-ss-photoexif-"+e).css("display","none"),jQuery("#wppa-ss-photoiptc-"+e).css("display","none"),jQuery("#wppa-ss-exifopts-"+e).css("display","none"),jQuery("#wppa-ss-iptcopts-"+e).css("display","none"),jQuery("#wppa-ss-spinner-"+e).css("display","none"),jQuery("#wppa-ss-button-"+e).css("display","none");var a=jQuery("#wppa-ss-pa-"+e).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+e).css("display",""),t=jQuery("#wppa-ss-albumopt-"+e).val()){case"c":jQuery("#wppa-ss-albumcat-"+e).css("display","");var n=jQuery(".wppa-ss-albumcat-"+e),r="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+e).css("display","");n=jQuery(".wppa-ss-albumtext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+e).css("display",""),t=jQuery("#wppa-ss-photoopt-"+e).val()){case"n":jQuery("#wppa-ss-photoname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+e).css("display","");n=jQuery(".wppa-ss-phototag-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+e).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+e).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+e).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(e,o,"wppa-ss-iptcopts-"+e),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+e).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+e).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(e,o,"wppa-ss-exifopts-"+e),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")))}}p&&(-1==(p=jQuery("#wppa-ss-pageurl-"+e).val()).indexOf("?")?p+="?":p+="&",p+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=p)}function wppaSetIptcExifSize(e,p){e=jQuery(e).length;6<e&&(e=6),e<2&&(e=2),jQuery(p).attr("size",e)}function wppaUpdateSearchRoot(e,p){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(e),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)p?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(p),t++}function wppaSubboxChange(e){jQuery(e).prop("checked")&&jQuery(".wppa-rootbox").each(function(e){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var e=jQuery(".wppa-display-searchstring"),p=0;p<e.length;)jQuery(e[p]).html(""),p++;for(e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).prop("disabled",!0),p++}function wppaEnableSubsearch(){for(var e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).removeAttr("disabled"),p++}function wppaDisplaySelectedFiles(e){for(var p=jQuery("#"+e),a=0,t="";a<p[0].files.length;)t+=p[0].files[a].name+" ",a++;jQuery("#"+e+"-display").val(t)}function wppaIsEmpty(e){return null==e||(void 0===e||(""==e||(0==e||(0==e||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(e,p,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var e=jQuery(this).attr("id").substr(5),p=wppaGetContainerWidth(e)-wppaThumbnailAreaDelta,p=p/parseInt((p+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin));jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+e).css("width",p+"px"),jQuery("#grid-"+e).masonry({itemSelector:".grid-item-"+e,columnWidth:p,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var e=parseInt(wppaGlobalFsIconSize/4),p=e;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(e+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){jQuery(".wppa-ss-button").each(function(){mocc=jQuery(this).attr("data-mocc"),wppaSuperSearchSelect(mocc)})}),jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.10.001";function wppaStoreSlideInfo(p,a,e,t,i,w,r,n,o,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){o=wppaRepairScriptTags(o),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFilmThumbTitles[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]='<span class="sdf-'+p+'" >'+wppaRepairBrTags(r)+"</span>",_wppaNames[p][a]='<span class="sdn-'+p+'" >'+n+"</span>",_wppaFilmThumbTitles[p][a]=n,_wppaDsc[p][a]=o,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){wppaSlideInitRunning[p]&&("start"==wppaSlideInitRunning[p]?a=-1:"stopprev"==wppaSlideInitRunning[p]?a=_wppaSlides[p].length-1:"stopnext"==wppaSlideInitRunning[p]&&(a=0),wppaSlideInitRunning[p]=""),_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(n=_wppaRealId[p],_wppaLat[p][n[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][n[_wppaNxtIdx[p]]],_wppaLon[p][n[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,n=_wppaNxtIdx[p],o=(wppaNumbarMax-1)/2;n<o?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-o<n?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=n+o+.5-1,(i=n-o+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(o=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",o,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",o,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,n="#theimg"+e+"-"+p,o="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(n,wppaAnimationSpeed),setTimeout(wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:-l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"none":wppaFadeIn(o,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(n,wppaAnimationSpeed),wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p,wppaEasingSlide),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){wppaSlideInitRunning[p]="start",jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),n=e.naturalWidth;void 0===n&&(n=parseInt(e.style.maxWidth));var o=e.naturalHeight;void 0===o&&(o=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*o/n))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=n||f-d<=o?l<(o+d)/(n+d)?(c=f-d,j=parseInt(c*n/o)):(j=x-d,c=parseInt(j*o/n)):(j=n,c=o),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return t=wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var n,o,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" ></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),o=".pdf"==(n=_wppaHiresUrl[p][e]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(wppaSlideLinkEqual?' onclick="wppaStopAudio();wppaStopShow('+p+");jQuery('#wppa-film-"+e+"-"+p+"').trigger('click');return false;\"":' onclick="wppaStopAudio();wppaStopShow('+p+');"')+' style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+">"+(o?"<iframe "+l+' src="'+n+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if("linear"!=a&&(a=wppaEasingSlide),document.getElementById("wppa-filmstrip-"+p)&&_wppaSlides[p]){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var n=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(n))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):(n=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(n<i?2:i<n-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w}):(i<n-1.5*w||n+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i}),wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var o=0;o<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][o]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+o+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==o?(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]))),o++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery("#wppa-next-pagelink-"+p).trigger("click")):0<e.length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery(e).trigger("click")):_wppaNextSlide(p,_wppaNxtIdx[p]=0)):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopprev",jQuery("#wppa-prev-page-last-item-"+p).trigger("click")):(_wppaNxtIdx[p]+=_wppaSlides[p].length,_wppaNextSlide(p,0)):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSlides[p]&&(_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden")))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
js/wppa-gutenberg-wppa.js CHANGED
@@ -1,7 +1,7 @@
1
  /* wppa-gutenberg-wppa.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
- * Version 7.5.10
5
  */
6
 
7
  // Global vars
@@ -671,6 +671,7 @@ function wppaGutenbergGalleryEvaluate() {
671
 
672
  if ( shortcodeOk ) {
673
  result = shortcode.replace( /#/g, '@' );
 
674
  }
675
  else {
676
  result = '';
1
  /* wppa-gutenberg-wppa.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
+ * Version 8.1.00.005
5
  */
6
 
7
  // Global vars
671
 
672
  if ( shortcodeOk ) {
673
  result = shortcode.replace( /#/g, '@' );
674
+ result = shortcode.replace( /"/g, '4711' );
675
  }
676
  else {
677
  result = '';
js/wppa.js CHANGED
@@ -3,7 +3,7 @@
3
  // contains common vars and functions
4
  //
5
 
6
- wppaWppaVer = '8.0.07.017';
7
 
8
  // Tabby click function
9
  function wppaTabbyClick(){
@@ -186,6 +186,11 @@ function wppaSizeAutoDiv() {
186
  });
187
  }
188
 
 
 
 
 
 
189
  var wppaLastAllAutocols = 0;
190
  var wppaLastAllAutocolsTimer = 0;
191
  // Do the auto cols
@@ -974,23 +979,32 @@ function wppaUrlToId( url ) {
974
  return temp;
975
  }
976
 
 
 
 
 
 
 
 
 
 
977
  // Opens/closes selection boxes in supersearch html
978
  function wppaSuperSearchSelect( mocc, go ) {
979
 
980
  // Init
981
  jQuery( '#wppa-ss-albumopt-'+mocc ).css('display', 'none');
982
- jQuery( '#wppa-ss-albumcat-'+mocc ).css('display', 'none');
983
- jQuery( '#wppa-ss-albumname-'+mocc ).css('display', 'none');
984
- jQuery( '#wppa-ss-albumtext-'+mocc ).css('display', 'none');
985
- jQuery( '#wppa-ss-photoopt-'+mocc ).css('display', 'none');
986
- jQuery( '#wppa-ss-photoname-'+mocc ).css('display', 'none');
987
- jQuery( '#wppa-ss-photoowner-'+mocc ).css('display', 'none');
988
- jQuery( '#wppa-ss-phototag-'+mocc ).css('display', 'none');
989
- jQuery( '#wppa-ss-phototext-'+mocc ).css('display', 'none');
990
- jQuery( '#wppa-ss-photoexif-'+mocc ).css('display', 'none');
991
- jQuery( '#wppa-ss-photoiptc-'+mocc ).css('display', 'none');
992
- jQuery( '#wppa-ss-exifopts-'+mocc ).css('display', 'none');
993
- jQuery( '#wppa-ss-iptcopts-'+mocc ).css('display', 'none');
994
 
995
  jQuery( '#wppa-ss-spinner-'+mocc ).css('display', 'none');
996
  jQuery( '#wppa-ss-button-'+mocc ).css('display', 'none');
3
  // contains common vars and functions
4
  //
5
 
6
+ wppaWppaVer = '8.1.00.005';
7
 
8
  // Tabby click function
9
  function wppaTabbyClick(){
186
  });
187
  }
188
 
189
+ // Add nicescroller to thumbarea
190
+ jQuery(document).ready(function(){
191
+ jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",wppaNieScrollOpts);
192
+ });
193
+
194
  var wppaLastAllAutocols = 0;
195
  var wppaLastAllAutocolsTimer = 0;
196
  // Do the auto cols
979
  return temp;
980
  }
981
 
982
+ // Init supersearch
983
+ jQuery(document).ready(function () {
984
+ jQuery('.wppa-ss-button').each(function(){
985
+ mocc = jQuery(this).attr('data-mocc');
986
+ wppaSuperSearchSelect(mocc);
987
+ });
988
+ });
989
+
990
+
991
  // Opens/closes selection boxes in supersearch html
992
  function wppaSuperSearchSelect( mocc, go ) {
993
 
994
  // Init
995
  jQuery( '#wppa-ss-albumopt-'+mocc ).css('display', 'none');
996
+ jQuery( '#wppa-ss-albumcat-'+mocc ).css('display', 'none');
997
+ jQuery( '#wppa-ss-albumname-'+mocc ).css('display', 'none');
998
+ jQuery( '#wppa-ss-albumtext-'+mocc ).css('display', 'none');
999
+ jQuery( '#wppa-ss-photoopt-'+mocc ).css('display', 'none');
1000
+ jQuery( '#wppa-ss-photoname-'+mocc ).css('display', 'none');
1001
+ jQuery( '#wppa-ss-photoowner-'+mocc ).css('display', 'none');
1002
+ jQuery( '#wppa-ss-phototag-'+mocc ).css('display', 'none');
1003
+ jQuery( '#wppa-ss-phototext-'+mocc ).css('display', 'none');
1004
+ jQuery( '#wppa-ss-photoexif-'+mocc ).css('display', 'none');
1005
+ jQuery( '#wppa-ss-photoiptc-'+mocc ).css('display', 'none');
1006
+ jQuery( '#wppa-ss-exifopts-'+mocc ).css('display', 'none');
1007
+ jQuery( '#wppa-ss-iptcopts-'+mocc ).css('display', 'none');
1008
 
1009
  jQuery( '#wppa-ss-spinner-'+mocc ).css('display', 'none');
1010
  jQuery( '#wppa-ss-button-'+mocc ).css('display', 'none');
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips(wppaEasingSlide)}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").hide(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var e=jQuery(this).attr("id").substr(6);wppaUbb(e,"l","hide"),wppaUbb(e,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){wppaAdjustAllFilmstrips(wppaEasingSlide)}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var e=jQuery(this).attr("href");e&&("jpg"!=(e=(e=e.split("."))[e.length-1])&&"jpeg"!=e&&"png"!=e||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}var wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(e){var p=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:p*a})})}wppaWppaVer="8.0.07.017",jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(e){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(p){return jQuery(".wppa-container").each(function(){var e=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p)}),(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(e){return!1}),jQuery("video").bind("contextmenu",function(e){return!1}),jQuery("canvas").bind("contextmenu",function(e){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(e){var p,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+e,t[3]="theimg1-"+e,a=0;a<3;)1==++a&&0!=e||(p=document.getElementById(t[a]))&&"function"==typeof p.pause&&p.pause()}function wppaStopAudio(e){if("number"==typeof e)jQuery("#audio-"+e).pause&&jQuery("#audio-"+e).pause();else{var p=jQuery("audio");if(0<p.length)for(var a=0;a<p.length;)"wppa"==jQuery(p[a]).attr("data-from")&&p[a].pause(),a++}}function wppaMakeFullsizeUrl(e){var p,a;e=(p=(e=e.replace("/thumbs/","/")).split("//"))[1]?(a=p[1].split("/"),p[0]+"//"):(a=p[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(e+="/"),e+=o),t++}return e}function wppaGetContainerWidth(e){var p=document.getElementById("wppa-container-"+e);if(p){var a=0;if(!wppaAutoColumnWidth[e])return p.clientWidth;for(;0==a;)p=p.parentNode,a=jQuery(p).width();return parseInt(a)}}function _wppaDoAutocol(e,p){if(!wppaAutoColumnWidth[e])return!0;var a,t,o=wppaGetContainerWidth(e);if(document.getElementById("wppa-container-"+e)){if(wppaCoverImageResponsive[e]||1<(a=jQuery(".wppa-asym-text-frame-"+e)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+e).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+e).css({width:o})):(wppaAnimate(".wppa-asym-text-frame-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),wppaAnimate(".wppa-cover-box-"+e,{width:o},wppaResponseSpeed,wppaEasingDefault))),1<(a=jQuery(".wppa-cover-box-mcr-"+e)).length){var r=document.getElementById("wppa-albumlist-"+e).clientWidth,n=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,s=n-1,i=parseInt((r+wppaCoverSpacing)/n-wppaCoverSpacing);if(wppaColWidth[e]!=r||wppaMCRWidth[e]!=i){wppaColWidth[e]=r,wppaMCRWidth[e]=i;for(var l=0;l<a.length;){switch(l%n){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case s:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[e]||wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:i-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(a[0]).width(),wppaAnimate(".wppa-cover-box-mcr-"+e,{width:i},wppaResponseSpeed,wppaEasingDefault)}}else 1==a.length&&(wppaCoverImageResponsive[e]||(wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(".wppa-cover-box-mcr-"+e).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+e).length&&(jQuery("#wppa-container-"+e).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+e).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+e).css("width")))&&(i=wppaMinThumbSpace,t=o-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(t/(r+i))),i=parseInt((t-i*r)/(i+1)),jQuery(".thumbnail-frame-"+e).css({marginLeft:i})),jQuery(".thumbnail-frame-comalt-"+e).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+e).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var u,c=1,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");w;)u=w*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+c+"-"+e).css("height",u),c++,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(e),document.getElementById("slide_frame-"+e)&&wppaFormatSlide(e),jQuery("#audio-slide-"+e).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+e).css("width",.7*o),wppaFilmStripLength[e]=o-wppaFilmStripAreaDelta[e],jQuery("#filmwindow-"+e).css("width",wppaFilmStripLength[e]),_wppaAdjustFilmstrip(e,wppaEasingSlide),wppaIsMini[e]||void 0===_wppaSlides[e]||(wppaColWidth[e]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRat),jQuery("#wppa-my-rat-"+e).html(wppaMyRat),jQuery("#counter-"+e).html(_wppaCurIdx[e]+1+" / "+_wppaSlides[e].length)):(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRating),jQuery("#wppa-my-rat-"+e).html(wppaMyRating),jQuery("#counter-"+e).html(wppaPhoto+" "+(_wppaCurIdx[e]+1)+" "+wppaOf+" "+_wppaSlides[e].length))),jQuery(".wppa-sphoto-"+e).css("width",o),jQuery(".wppa-simg-"+e).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+e).css("height",""),jQuery(".wppa-mphoto-"+e).css("width",o+10),jQuery(".wppa-mimg-"+e).css("width",o),jQuery(".wppa-mimg-"+e).css("height",""),jQuery(".smxpdf-"+e).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[e]&&(o/wppaSearchBoxSelItems[e]<125?jQuery(".wppa-searchsel-item-"+e).css("width","100%"):jQuery(".wppa-searchsel-item-"+e).css("width",100/wppaSearchBoxSelItems[e]+"%")),jQuery(".wppa-upload-album-"+e).css("maxWidth",.6*o),wppaSetRealCalendarHeights(e),!0}}function wppaSetRealCalendarHeights(p){var a,t,o,e=jQuery("#wppa-real-calendar-"+p).width();0<e&&(a=!0,t=e*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+p).css({height:t}),e=e/50+2,jQuery("#wppa-real-calendar-"+p).css({fontSize:e}),e=e/4,jQuery(".wppa-real-calendar-head-td-"+p).css({marginTop:e,marginBottom:e}),o=t/2,jQuery(".wppa-realcalimg-"+p).each(function(){var e;0==this.height?a=!1:(e=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+e+"-"+p).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(p)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(e){for(var p=jQuery(".wppa-mas-h-"+e),a=wppaMinThumbSpace,t=0;t<p.length;t++){var o=wppaGetChildI(p[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+e+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(p[t]).css({width:o})}}}function wppaGetChildI(e){for(var p=e.childNodes,a=0;a<p.length;a++){var t=p[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var p=1;p<=wppaMaxOccur;)wppaStartHtml[p]=jQuery("#wppa-container-"+p).html(),p++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(e,p){if(!(wppaColWidth[e]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+e).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+e).css("display","none");jQuery("#wppa-fotomoto-container-"+e).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+e)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(p),wppaFotomotoToolbarIds[e]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+e,p)):setTimeout("wppaFotomotoToolbar( "+e+',"'+p+'" )',200))}function wppaFotomotoHide(e){jQuery("#wppa-fotomoto-container-"+e).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","none")}function wppaStringContainsForbiddenChars(e){for(var p=["?","&","#","/",'"',"'"],a=0;a<p.length;){if(-1!=e.indexOf(p[a]))return!0;a++}return!1}function wppaPushStateSlide(e,p,a){if(!wppaIsMini[e]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:e,type:"slide",slide:p},"---",a)}catch(e){}}function wppaRepairScriptTags(e){if(void 0===e)return"";for(;-1!=e.indexOf("[script");)e=e.replace("[script","<script");for(;-1!=e.indexOf("[/script");)e=e.replace("[/script","</script");return e}function wppaRepairBrTags(e){return void 0===e?"":e.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(e){return void 0===e?"":13<e.length?e.substr(0,10)+"...":e}window.onpopstate=function(e){var p=0;if(wppaCanPushState){if(e.state)switch(p=e.state.occur,e.state.type){case"html":jQuery("#wppa-container-"+p).html(e.state.html);break;case"slide":_wppaGoto(p,e.state.slide)}else if(wppaUpdateAddressLine){p=wppaFirstOccur,jQuery("#wppa-container-"+p).html(wppaStartHtml[p]),(wppaFirstOccur=0)==p&&(a=document.location.href.split("&wppa-occur="),p=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[p].length&&_wppaId[p][o]!=t;)o++;o<_wppaId[p].length&&_wppaGoto(p,o)}}document.getElementById("theslide0-"+p)&&_wppaStop(p)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(e,p){var a,t;document.selection?(e.focus(),sel=document.selection.createRange(),sel.text=p):e.selectionStart||"0"==e.selectionStart?(a=e.selectionStart,t=e.selectionEnd,e.value=e.value.substring(0,a)+p+e.value.substring(t,e.value.length),e.selectionStart=a+p.length,e.selectionEnd=a+p.length):e.value+=p}function wppaGeoInit(e,p,a){var p=new google.maps.LatLng(p,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:p},t=new google.maps.Map(document.getElementById("map-canvas-"+e),a),o=new google.maps.Marker({position:p,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(e){if(void 0!==e){for(var p=(t=(t=String(e).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<p.length;)t+=p[a],++a<p.length&&(t+="||PLUS||");return t}}function wppaUrlToId(e){var p=e.split("/wppa/");return 1==p.length&&(p=e.split("/upload/")),1==p.length?0:p=(p=(p=(p=(p=(p=(p=p[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(e,p){jQuery("#wppa-ss-albumopt-"+e).css("display","none"),jQuery("#wppa-ss-albumcat-"+e).css("display","none"),jQuery("#wppa-ss-albumname-"+e).css("display","none"),jQuery("#wppa-ss-albumtext-"+e).css("display","none"),jQuery("#wppa-ss-photoopt-"+e).css("display","none"),jQuery("#wppa-ss-photoname-"+e).css("display","none"),jQuery("#wppa-ss-photoowner-"+e).css("display","none"),jQuery("#wppa-ss-phototag-"+e).css("display","none"),jQuery("#wppa-ss-phototext-"+e).css("display","none"),jQuery("#wppa-ss-photoexif-"+e).css("display","none"),jQuery("#wppa-ss-photoiptc-"+e).css("display","none"),jQuery("#wppa-ss-exifopts-"+e).css("display","none"),jQuery("#wppa-ss-iptcopts-"+e).css("display","none"),jQuery("#wppa-ss-spinner-"+e).css("display","none"),jQuery("#wppa-ss-button-"+e).css("display","none");var a=jQuery("#wppa-ss-pa-"+e).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+e).css("display",""),t=jQuery("#wppa-ss-albumopt-"+e).val()){case"c":jQuery("#wppa-ss-albumcat-"+e).css("display","");var n=jQuery(".wppa-ss-albumcat-"+e),r="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+e).css("display","");n=jQuery(".wppa-ss-albumtext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+e).css("display",""),t=jQuery("#wppa-ss-photoopt-"+e).val()){case"n":jQuery("#wppa-ss-photoname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+e).css("display","");n=jQuery(".wppa-ss-phototag-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+e).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+e).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+e).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(e,o,"wppa-ss-iptcopts-"+e),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+e).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+e).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(e,o,"wppa-ss-exifopts-"+e),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")))}}p&&(-1==(p=jQuery("#wppa-ss-pageurl-"+e).val()).indexOf("?")?p+="?":p+="&",p+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=p)}function wppaSetIptcExifSize(e,p){e=jQuery(e).length;6<e&&(e=6),e<2&&(e=2),jQuery(p).attr("size",e)}function wppaUpdateSearchRoot(e,p){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(e),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)p?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(p),t++}function wppaSubboxChange(e){jQuery(e).prop("checked")&&jQuery(".wppa-rootbox").each(function(e){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var e=jQuery(".wppa-display-searchstring"),p=0;p<e.length;)jQuery(e[p]).html(""),p++;for(e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).prop("disabled",!0),p++}function wppaEnableSubsearch(){for(var e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).removeAttr("disabled"),p++}function wppaDisplaySelectedFiles(e){for(var p=jQuery("#"+e),a=0,t="";a<p[0].files.length;)t+=p[0].files[a].name+" ",a++;jQuery("#"+e+"-display").val(t)}function wppaIsEmpty(e){return null==e||(void 0===e||(""==e||(0==e||(0==e||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(e,p,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var e=jQuery(this).attr("id").substr(5),p=wppaGetContainerWidth(e)-wppaThumbnailAreaDelta,p=p/parseInt((p+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin));jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+e).css("width",p+"px"),jQuery("#grid-"+e).masonry({itemSelector:".grid-item-"+e,columnWidth:p,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var e=parseInt(wppaGlobalFsIconSize/4),p=e;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(e+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
1
+ function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips(wppaEasingSlide)}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").hide(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var e=jQuery(this).attr("id").substr(6);wppaUbb(e,"l","hide"),wppaUbb(e,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){wppaAdjustAllFilmstrips(wppaEasingSlide)}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var e=jQuery(this).attr("href");e&&("jpg"!=(e=(e=e.split("."))[e.length-1])&&"jpeg"!=e&&"png"!=e||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}var wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(e){var p=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:p*a})})}wppaWppaVer="8.1.00.005",jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(){jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",wppaNieScrollOpts)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(e){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(p){return jQuery(".wppa-container").each(function(){var e=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p)}),(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(e){return!1}),jQuery("video").bind("contextmenu",function(e){return!1}),jQuery("canvas").bind("contextmenu",function(e){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(e){var p,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+e,t[3]="theimg1-"+e,a=0;a<3;)1==++a&&0!=e||(p=document.getElementById(t[a]))&&"function"==typeof p.pause&&p.pause()}function wppaStopAudio(e){if("number"==typeof e)jQuery("#audio-"+e).pause&&jQuery("#audio-"+e).pause();else{var p=jQuery("audio");if(0<p.length)for(var a=0;a<p.length;)"wppa"==jQuery(p[a]).attr("data-from")&&p[a].pause(),a++}}function wppaMakeFullsizeUrl(e){var p,a;e=(p=(e=e.replace("/thumbs/","/")).split("//"))[1]?(a=p[1].split("/"),p[0]+"//"):(a=p[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(e+="/"),e+=o),t++}return e}function wppaGetContainerWidth(e){var p=document.getElementById("wppa-container-"+e);if(p){var a=0;if(!wppaAutoColumnWidth[e])return p.clientWidth;for(;0==a;)p=p.parentNode,a=jQuery(p).width();return parseInt(a)}}function _wppaDoAutocol(e,p){if(!wppaAutoColumnWidth[e])return!0;var a,t,o=wppaGetContainerWidth(e);if(document.getElementById("wppa-container-"+e)){if(wppaCoverImageResponsive[e]||1<(a=jQuery(".wppa-asym-text-frame-"+e)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+e).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+e).css({width:o})):(wppaAnimate(".wppa-asym-text-frame-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),wppaAnimate(".wppa-cover-box-"+e,{width:o},wppaResponseSpeed,wppaEasingDefault))),1<(a=jQuery(".wppa-cover-box-mcr-"+e)).length){var r=document.getElementById("wppa-albumlist-"+e).clientWidth,n=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,s=n-1,i=parseInt((r+wppaCoverSpacing)/n-wppaCoverSpacing);if(wppaColWidth[e]!=r||wppaMCRWidth[e]!=i){wppaColWidth[e]=r,wppaMCRWidth[e]=i;for(var l=0;l<a.length;){switch(l%n){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case s:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[e]||wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:i-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(a[0]).width(),wppaAnimate(".wppa-cover-box-mcr-"+e,{width:i},wppaResponseSpeed,wppaEasingDefault)}}else 1==a.length&&(wppaCoverImageResponsive[e]||(wppaAnimate(".wppa-asym-text-frame-mcr-"+e,{width:o-wppaTextFrameDelta},wppaResponseSpeed,wppaEasingDefault),jQuery(".wppa-cover-box-mcr-"+e).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+e).length&&(jQuery("#wppa-container-"+e).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+e).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+e).css("width")))&&(i=wppaMinThumbSpace,t=o-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(t/(r+i))),i=parseInt((t-i*r)/(i+1)),jQuery(".thumbnail-frame-"+e).css({marginLeft:i})),jQuery(".thumbnail-frame-comalt-"+e).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+e).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var u,c=1,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");w;)u=w*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+c+"-"+e).css("height",u),c++,w=jQuery("#wppa-mas-h-"+c+"-"+e).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(e),document.getElementById("slide_frame-"+e)&&wppaFormatSlide(e),jQuery("#audio-slide-"+e).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+e).css("width",.7*o),wppaFilmStripLength[e]=o-wppaFilmStripAreaDelta[e],jQuery("#filmwindow-"+e).css("width",wppaFilmStripLength[e]),_wppaAdjustFilmstrip(e,wppaEasingSlide),wppaIsMini[e]||void 0===_wppaSlides[e]||(wppaColWidth[e]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRat),jQuery("#wppa-my-rat-"+e).html(wppaMyRat),jQuery("#counter-"+e).html(_wppaCurIdx[e]+1+" / "+_wppaSlides[e].length)):(jQuery("#wppa-avg-rat-"+e).html(wppaAvgRating),jQuery("#wppa-my-rat-"+e).html(wppaMyRating),jQuery("#counter-"+e).html(wppaPhoto+" "+(_wppaCurIdx[e]+1)+" "+wppaOf+" "+_wppaSlides[e].length))),jQuery(".wppa-sphoto-"+e).css("width",o),jQuery(".wppa-simg-"+e).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+e).css("height",""),jQuery(".wppa-mphoto-"+e).css("width",o+10),jQuery(".wppa-mimg-"+e).css("width",o),jQuery(".wppa-mimg-"+e).css("height",""),jQuery(".smxpdf-"+e).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[e]&&(o/wppaSearchBoxSelItems[e]<125?jQuery(".wppa-searchsel-item-"+e).css("width","100%"):jQuery(".wppa-searchsel-item-"+e).css("width",100/wppaSearchBoxSelItems[e]+"%")),jQuery(".wppa-upload-album-"+e).css("maxWidth",.6*o),wppaSetRealCalendarHeights(e),!0}}function wppaSetRealCalendarHeights(p){var a,t,o,e=jQuery("#wppa-real-calendar-"+p).width();0<e&&(a=!0,t=e*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+p).css({height:t}),e=e/50+2,jQuery("#wppa-real-calendar-"+p).css({fontSize:e}),e=e/4,jQuery(".wppa-real-calendar-head-td-"+p).css({marginTop:e,marginBottom:e}),o=t/2,jQuery(".wppa-realcalimg-"+p).each(function(){var e;0==this.height?a=!1:(e=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+e+"-"+p).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(p)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(e){for(var p=jQuery(".wppa-mas-h-"+e),a=wppaMinThumbSpace,t=0;t<p.length;t++){var o=wppaGetChildI(p[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+e+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(p[t]).css({width:o})}}}function wppaGetChildI(e){for(var p=e.childNodes,a=0;a<p.length;a++){var t=p[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var p=1;p<=wppaMaxOccur;)wppaStartHtml[p]=jQuery("#wppa-container-"+p).html(),p++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(e,p){if(!(wppaColWidth[e]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+e).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+e).css("display","none");jQuery("#wppa-fotomoto-container-"+e).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+e)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(p),wppaFotomotoToolbarIds[e]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+e,p)):setTimeout("wppaFotomotoToolbar( "+e+',"'+p+'" )',200))}function wppaFotomotoHide(e){jQuery("#wppa-fotomoto-container-"+e).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+e).css("display","none")}function wppaStringContainsForbiddenChars(e){for(var p=["?","&","#","/",'"',"'"],a=0;a<p.length;){if(-1!=e.indexOf(p[a]))return!0;a++}return!1}function wppaPushStateSlide(e,p,a){if(!wppaIsMini[e]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:e,type:"slide",slide:p},"---",a)}catch(e){}}function wppaRepairScriptTags(e){if(void 0===e)return"";for(;-1!=e.indexOf("[script");)e=e.replace("[script","<script");for(;-1!=e.indexOf("[/script");)e=e.replace("[/script","</script");return e}function wppaRepairBrTags(e){return void 0===e?"":e.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(e){return void 0===e?"":13<e.length?e.substr(0,10)+"...":e}window.onpopstate=function(e){var p=0;if(wppaCanPushState){if(e.state)switch(p=e.state.occur,e.state.type){case"html":jQuery("#wppa-container-"+p).html(e.state.html);break;case"slide":_wppaGoto(p,e.state.slide)}else if(wppaUpdateAddressLine){p=wppaFirstOccur,jQuery("#wppa-container-"+p).html(wppaStartHtml[p]),(wppaFirstOccur=0)==p&&(a=document.location.href.split("&wppa-occur="),p=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[p].length&&_wppaId[p][o]!=t;)o++;o<_wppaId[p].length&&_wppaGoto(p,o)}}document.getElementById("theslide0-"+p)&&_wppaStop(p)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(e,p){var a,t;document.selection?(e.focus(),sel=document.selection.createRange(),sel.text=p):e.selectionStart||"0"==e.selectionStart?(a=e.selectionStart,t=e.selectionEnd,e.value=e.value.substring(0,a)+p+e.value.substring(t,e.value.length),e.selectionStart=a+p.length,e.selectionEnd=a+p.length):e.value+=p}function wppaGeoInit(e,p,a){var p=new google.maps.LatLng(p,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:p},t=new google.maps.Map(document.getElementById("map-canvas-"+e),a),o=new google.maps.Marker({position:p,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(e){if(void 0!==e){for(var p=(t=(t=String(e).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<p.length;)t+=p[a],++a<p.length&&(t+="||PLUS||");return t}}function wppaUrlToId(e){var p=e.split("/wppa/");return 1==p.length&&(p=e.split("/upload/")),1==p.length?0:p=(p=(p=(p=(p=(p=(p=p[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(e,p){jQuery("#wppa-ss-albumopt-"+e).css("display","none"),jQuery("#wppa-ss-albumcat-"+e).css("display","none"),jQuery("#wppa-ss-albumname-"+e).css("display","none"),jQuery("#wppa-ss-albumtext-"+e).css("display","none"),jQuery("#wppa-ss-photoopt-"+e).css("display","none"),jQuery("#wppa-ss-photoname-"+e).css("display","none"),jQuery("#wppa-ss-photoowner-"+e).css("display","none"),jQuery("#wppa-ss-phototag-"+e).css("display","none"),jQuery("#wppa-ss-phototext-"+e).css("display","none"),jQuery("#wppa-ss-photoexif-"+e).css("display","none"),jQuery("#wppa-ss-photoiptc-"+e).css("display","none"),jQuery("#wppa-ss-exifopts-"+e).css("display","none"),jQuery("#wppa-ss-iptcopts-"+e).css("display","none"),jQuery("#wppa-ss-spinner-"+e).css("display","none"),jQuery("#wppa-ss-button-"+e).css("display","none");var a=jQuery("#wppa-ss-pa-"+e).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+e).css("display",""),t=jQuery("#wppa-ss-albumopt-"+e).val()){case"c":jQuery("#wppa-ss-albumcat-"+e).css("display","");var n=jQuery(".wppa-ss-albumcat-"+e),r="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+e).css("display","");n=jQuery(".wppa-ss-albumtext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+e).css("display",""),t=jQuery("#wppa-ss-photoopt-"+e).val()){case"n":jQuery("#wppa-ss-photoname-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+e).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+e).val())&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+e).css("display","");n=jQuery(".wppa-ss-phototag-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+e).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+e);for(r="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(r+="."+jQuery(n[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+e).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+e).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+e).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(e,o,"wppa-ss-iptcopts-"+e),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+e).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+e).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+e).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(e,o,"wppa-ss-exifopts-"+e),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+e).val())&&""!=r&&jQuery("#wppa-ss-button-"+e).css("display","")))}}p&&(-1==(p=jQuery("#wppa-ss-pageurl-"+e).val()).indexOf("?")?p+="?":p+="&",p+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=p)}function wppaSetIptcExifSize(e,p){e=jQuery(e).length;6<e&&(e=6),e<2&&(e=2),jQuery(p).attr("size",e)}function wppaUpdateSearchRoot(e,p){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(e),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)p?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(p),t++}function wppaSubboxChange(e){jQuery(e).prop("checked")&&jQuery(".wppa-rootbox").each(function(e){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var e=jQuery(".wppa-display-searchstring"),p=0;p<e.length;)jQuery(e[p]).html(""),p++;for(e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).prop("disabled",!0),p++}function wppaEnableSubsearch(){for(var e=jQuery(".wppa-search-sub-box"),p=0;p<e.length;)jQuery(e[p]).removeAttr("disabled"),p++}function wppaDisplaySelectedFiles(e){for(var p=jQuery("#"+e),a=0,t="";a<p[0].files.length;)t+=p[0].files[a].name+" ",a++;jQuery("#"+e+"-display").val(t)}function wppaIsEmpty(e){return null==e||(void 0===e||(""==e||(0==e||(0==e||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(e,p,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var e=jQuery(this).attr("id").substr(5),p=wppaGetContainerWidth(e)-wppaThumbnailAreaDelta,p=p/parseInt((p+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin));jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+e).css("width",p+"px"),jQuery("#grid-"+e).masonry({itemSelector:".grid-item-"+e,columnWidth:p,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var e=parseInt(wppaGlobalFsIconSize/4),p=e;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(e+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+e+"px;right:"+p+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){jQuery(".wppa-ss-button").each(function(){mocc=jQuery(this).attr("data-mocc"),wppaSuperSearchSelect(mocc)})}),jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
theme/wppa-style.css CHANGED
@@ -645,3 +645,17 @@ display:none;
645
  padding-right: 2% !important;
646
  }
647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
645
  padding-right: 2% !important;
646
  }
647
 
648
+ /* Grid box */
649
+ .wppa-grid {
650
+ border:none;
651
+ margin:0 !important;
652
+ padding:0 !important;
653
+ }
654
+ .wppa-grid tr {
655
+ border:none;
656
+ }
657
+ .wppa-grid td {
658
+ border:none;
659
+ padding:6px;
660
+ vertical-align:middle;
661
+ }
wppa-admin-styles.css CHANGED
@@ -1,7 +1,7 @@
1
  /* admin-styles.css
2
  *
3
  * wp-photo-album-plus
4
- * version 7.3.05
5
  */
6
  #files_list, #files_list2
7
  {
@@ -285,3 +285,190 @@ border:1px solid black;
285
  /*.wppa-links table { border-top:1px solid #ccc; margin:0; padding:0; }*/
286
  .wppa-links td { margin:0 !important; padding:0 10px !important; }
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* admin-styles.css
2
  *
3
  * wp-photo-album-plus
4
+ * version 8.1.00.004
5
  */
6
  #files_list, #files_list2
7
  {
285
  /*.wppa-links table { border-top:1px solid #ccc; margin:0; padding:0; }*/
286
  .wppa-links td { margin:0 !important; padding:0 10px !important; }
287
 
288
+ /* Album admin used styles */
289
+ .sortable-placeholder-albums {
290
+ width: 100%;
291
+ height: 60px;
292
+ margin: 5px;
293
+ border: 1px dotted #cccccc;
294
+ border-radius:3px;
295
+ float: left;
296
+ }
297
+ .ui-state-default-albums {
298
+ position: relative;
299
+ width: 100%;
300
+ height: 60px;
301
+ margin: 5px;
302
+ border: 1px solid #cccccc;
303
+ border-radius:3px;
304
+ float: left;
305
+ }
306
+ .ui-state-default-albums td {
307
+ padding:0;
308
+ line-height:12px;
309
+ text-align:center;
310
+ }
311
+ #src-alb{
312
+ color:transparent;
313
+ }
314
+ /* Comment admin */
315
+ .column-photo {
316
+ width:180px;
317
+ }
318
+ .column-user, .column-email, .column-timestamp {
319
+ width:180px;
320
+ }
321
+ .column-status {
322
+ width:100px;
323
+ }
324
+ /* Maintenance popup */
325
+ #wppa-maintenance-list h2 {
326
+ margin-top:0;
327
+ }
328
+ #wppa-maintenance-list div {
329
+ background-color:#f1f1f1; border:1px solid #ddd;
330
+ }
331
+ #wppa-maintenance-list td, #wppa-maintenance-list th {
332
+ border-right: 1px solid darkgray;
333
+ }
334
+ /* Photo admin */
335
+ .cropper-drag-box{
336
+ background-color:transparent;
337
+ }
338
+ /* Photo admin sequence */
339
+ .sortable-placeholder {
340
+ position: relative !important;
341
+ width: 180px;
342
+ height: 180px;
343
+ margin: 5px;
344
+ border: 1px solid #cccccc;
345
+ border-radius:3px;
346
+ float: left;
347
+ }
348
+ .ui-state-default {
349
+ position: relative;
350
+ width: 180px;
351
+ height: 180px;
352
+ margin: 5px;
353
+ border-radius:3px;
354
+ float: left;
355
+ }
356
+ .wppa-publish {
357
+ border: 1px solid;
358
+ background-color: rgb( 255, 255, 224 );
359
+ border-color: rgb( 230, 219, 85 );
360
+ }
361
+ .wppa-featured {
362
+ border: 1px solid;
363
+ background-color: rgb( 224, 255, 224 );
364
+ border-color: rgb( 85, 238, 85 );
365
+ }
366
+ .wppa-pending, .wppa-scheduled, .wppa-private {
367
+ border: 1px solid;
368
+ background-color: rgb( 255, 235, 232 );
369
+ border-color: rgb( 204, 0, 0 );
370
+ }
371
+ .wppa-bronze {
372
+ border: 1px solid;
373
+ background-color: rgb( 221, 221, 187 );
374
+ border-color: rgb( 204, 204, 170 );
375
+ }
376
+ .wppa-silver {
377
+ border: 1px solid;
378
+ background-color: rgb( 255, 255, 255 );
379
+ border-color: rgb( 238, 238, 238 );
380
+ }
381
+ .wppa-gold {
382
+ border: 1px solid;
383
+ background-color: rgb( 238, 238, 204 );
384
+ border-color: rgb( 221, 221, 187 );
385
+ }
386
+
387
+ /* Settigs page */
388
+
389
+ .wppa-master-tabs {
390
+ position:relative;
391
+ top:24px;
392
+ }
393
+ .wppa-setting-tabs {
394
+ position:relative;
395
+ top:24px;
396
+ }
397
+ .wppa-setting-tabs li {
398
+ border-color: darkgrey;
399
+ border-width: 1px;
400
+ float: left;
401
+ background-color: white;
402
+ padding: 8px 10px;
403
+ font-size: 22px;
404
+ color: darkgrey;
405
+ border-style: solid;
406
+ text-align: center;
407
+ margin: 0 4px 0 0;
408
+ border-top-left-radius: 8px;
409
+ border-top-right-radius: 8px;
410
+ cursor: pointer;
411
+ }
412
+ .wppa-master-tabs li {
413
+ border-color: darkgrey;
414
+ border-width: 1px;
415
+ float: left;
416
+ background-color: white;
417
+ padding: 8px 10px;
418
+ font-size: 22px;
419
+ color: darkgrey;
420
+ border-style: solid;
421
+ text-align: center;
422
+ margin: 0 4px 6px 0;
423
+ border-radius: 8px;
424
+ cursor: pointer;
425
+ }
426
+ #wppa-setting-tab-99 {
427
+ float: right;
428
+ }
429
+ .wppa-tabdesc h3 {
430
+ margin: 0 0 9px 0;
431
+ padding: 6px 0 0 0;
432
+ }
433
+ .wppa-master-tabs .active {
434
+ color: black;
435
+ background-color:#dddddd;
436
+ }
437
+ .wppa-setting-tabs .active {
438
+ color: black;
439
+ border-bottom-color: white;
440
+ background-color:#dddddd;
441
+ }
442
+ #wppa-setting-content {
443
+ clear:both;
444
+ background-color: white;
445
+ border-left:1px solid black;
446
+ border-right:1px solid black;
447
+ border-bottom:1px solid black;
448
+ position:relative;
449
+ top:24px;
450
+ border-color:darkgrey;
451
+ margin-bottom:12px;
452
+ }
453
+ .wppa-colorbox {
454
+ height: 28px !important;
455
+ }
456
+ .wppa-doit-button {
457
+ float:left;
458
+ border-radius:3px;
459
+ font-size: 11px !important;
460
+ margin: 0 4px;
461
+ padding: 0 6px;
462
+ border: 1px solid darkgrey !important;
463
+ }
464
+
465
+ #wppa-cloudinary-table table, #wppa-cloudinary-table tbody, #wppa-cloudinary-table tr, #wppa-cloudinary-table td {
466
+ margin:0;
467
+ padding:0;
468
+ border:none;
469
+ font-size:9px;
470
+ line-height: 11px;
471
+ }
472
+ #wppa-cloudinary-table td {
473
+ height:11px;
474
+ }
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -84,6 +84,13 @@ add_action( 'admin_init', 'wppa_admin_styles' );
84
 
85
  function wppa_admin_styles() {
86
  global $wppa_api_version;
 
 
 
 
 
 
 
87
  wp_register_style( 'wppa_admin_style', WPPA_URL.'/wppa-admin-styles.css', '', $wppa_api_version );
88
  wp_enqueue_style( 'wppa_admin_style' );
89
 
@@ -95,6 +102,45 @@ global $wppa_api_version;
95
  // Standard frontend styles
96
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $wppa_api_version);
97
  wp_enqueue_style('wppa_style');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  }
100
 
@@ -136,6 +182,7 @@ global $wppa_api_version;
136
  wp_enqueue_script( 'wppa-jquery-sortable', WPPA_URL . '/js/sortable.min.js', $depts );
137
  }
138
 
 
139
  add_action( 'admin_head', 'wppa_inject_css' );
140
 
141
  function wppa_inject_css() {
@@ -143,6 +190,7 @@ global $wppa_api_version;
143
 
144
  echo wppa_create_wppa_dynamic_css();
145
  }
 
146
 
147
  /* ADMIN PAGE PHP's */
148
 
@@ -316,24 +364,28 @@ function wppa_block_categories( $categories, $post ) {
316
  add_filter( 'block_categories_all', 'wppa_block_categories', 10, 2 );
317
 
318
  // Fix Gutenberg bug
319
- function wppa_fix_gutenberg_shortcodes( $post ) {
320
  global $wpdb;
321
 
322
  // Get the post
323
- $post_content = $wpdb->get_var( $wpdb->prepare( "SELECT post_content FROM $wpdb->posts WHERE ID = %d", $post ) );
 
 
324
 
325
  // Fix
326
  $new_content = str_replace( array( 'wp:wppa/gutenberg-photo', 'wp:wppa/gutenberg-wppa' ), 'wp:shortcode', $post_content );
 
327
 
328
  // Update if fixed
329
  if ( $post_content != $new_content ) {
330
- $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_content = %s WHERE ID = %d", $new_content, $post ) );
331
- }
332
 
333
- // If wppa content, clear wppa cache
334
- if ( strpos( $post_content, '[wppa' ) !== false ||
335
- strpos( $post_content, '[photo' ) !== false ) {
336
- wppa_clear_cache( ['page' => $post] );
 
 
 
337
  }
338
  }
339
  add_action( 'save_post', 'wppa_fix_gutenberg_shortcodes' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
84
 
85
  function wppa_admin_styles() {
86
  global $wppa_api_version;
87
+
88
+ // Load styles only when on a wppa page
89
+ // $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
90
+ // if ( substr( $page, 0, 4 ) !== 'wppa' ) {
91
+ // return;
92
+ // }
93
+
94
  wp_register_style( 'wppa_admin_style', WPPA_URL.'/wppa-admin-styles.css', '', $wppa_api_version );
95
  wp_enqueue_style( 'wppa_admin_style' );
96
 
102
  // Standard frontend styles
103
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $wppa_api_version);
104
  wp_enqueue_style('wppa_style');
105
+ wp_add_inline_style( 'wppa_style', wppa_create_wppa_dynamic_css() );
106
+
107
+ $the_css = '
108
+ #TB_ajaxContent {
109
+ box-sizing:border-box; width:100% !important;
110
+ }
111
+ #wppagallery-table select {
112
+ max-width:540px;
113
+ }
114
+ #wppagallery-table option {
115
+ color: #070;
116
+ }
117
+ #wppagallery-table tr, #wppagallery-table th, #wppagallery-table td {
118
+ padding: 2px; 0;
119
+ }
120
+
121
+ .wppa-bar {
122
+ background-color: #7f7;
123
+ width:0%;
124
+ height:18px;
125
+ border-radius: 3px;
126
+ line-height: 18px;
127
+ margin: 0;
128
+ }
129
+ .wppa-percent {
130
+ position:relative;
131
+ display:inline-block;
132
+ top:-19px;
133
+ font-size: 12px;
134
+ line-height: 18px;
135
+ margin: 0;
136
+ }
137
+ .wppa-message {
138
+ clear: both;
139
+ }
140
+ #wppaphoto-table tr, #wppaphoto-table th, #wppaphoto-table td {
141
+ padding: 2px; 0;
142
+ }';
143
+ wp_add_inline_style( 'wppa_style', $the_css );
144
 
145
  }
146
 
182
  wp_enqueue_script( 'wppa-jquery-sortable', WPPA_URL . '/js/sortable.min.js', $depts );
183
  }
184
 
185
+ /*
186
  add_action( 'admin_head', 'wppa_inject_css' );
187
 
188
  function wppa_inject_css() {
190
 
191
  echo wppa_create_wppa_dynamic_css();
192
  }
193
+ */
194
 
195
  /* ADMIN PAGE PHP's */
196
 
364
  add_filter( 'block_categories_all', 'wppa_block_categories', 10, 2 );
365
 
366
  // Fix Gutenberg bug
367
+ function wppa_fix_gutenberg_shortcodes( $id ) {
368
  global $wpdb;
369
 
370
  // Get the post
371
+ $post = get_post( $id, ARRAY_A );
372
+
373
+ $post_content = $post['post_content']; //$wpdb->get_var( $wpdb->prepare( "SELECT post_content FROM $wpdb->posts WHERE ID = %d", $post ) );
374
 
375
  // Fix
376
  $new_content = str_replace( array( 'wp:wppa/gutenberg-photo', 'wp:wppa/gutenberg-wppa' ), 'wp:shortcode', $post_content );
377
+ $new_content = str_replace( '4711', '"', $new_content );
378
 
379
  // Update if fixed
380
  if ( $post_content != $new_content ) {
 
 
381
 
382
+ $post['post_content'] = $new_content;
383
+ $iret = wp_insert_post( $post );
384
+
385
+ // If successfull, clear cache for this post
386
+ if ( $iret == $post ) {
387
+ wppa_clear_cache( ['page' => $id] );
388
+ }
389
  }
390
  }
391
  add_action( 'save_post', 'wppa_fix_gutenberg_shortcodes' );
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -3338,34 +3338,6 @@ global $wpdb;
3338
  '</table>';
3339
 
3340
 
3341
-
3342
- ?>
3343
- <style>
3344
- .sortable-placeholder-albums {
3345
- width: 100%;
3346
- height: 60px;
3347
- margin: 5px;
3348
- border: 1px dotted #cccccc;
3349
- border-radius:3px;
3350
- float: left;
3351
- }
3352
- .ui-state-default-albums {
3353
- position: relative;
3354
- width: 100%;
3355
- height: 60px;
3356
- margin: 5px;
3357
- border: 1px solid #cccccc;
3358
- border-radius:3px;
3359
- float: left;
3360
- }
3361
- .ui-state-default-albums td {
3362
- padding:0;
3363
- line-height:12px;
3364
- text-align:center;
3365
- }
3366
- </style>
3367
-
3368
- <?php
3369
  $the_js = '
3370
  jQuery( function() {
3371
  jQuery( "#sortable-albums" ).sortable( {
@@ -3625,11 +3597,6 @@ function _wppa_search() {
3625
  update_option( 'wppa_search_page', 'wppa_search' );
3626
 
3627
  echo '
3628
- <style>
3629
- #src-alb{
3630
- color:transparent;
3631
- }
3632
- </style>
3633
  <div class="wrap" >
3634
  <img src="' . esc_attr( WPPA_URL . '/img/magnifier-large.png' ) . '" />
3635
  <h1 style="display:inline;" >' . __( 'Search photos', 'wp-photo-album-plus' ) . '</h1>
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
3338
  '</table>';
3339
 
3340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3341
  $the_js = '
3342
  jQuery( function() {
3343
  jQuery( "#sortable-albums" ).sortable( {
3597
  update_option( 'wppa_search_page', 'wppa_search' );
3598
 
3599
  echo '
 
 
 
 
 
3600
  <div class="wrap" >
3601
  <img src="' . esc_attr( WPPA_URL . '/img/magnifier-large.png' ) . '" />
3602
  <h1 style="display:inline;" >' . __( 'Search photos', 'wp-photo-album-plus' ) . '</h1>
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.1.00.003
7
  *
8
  */
9
 
@@ -78,11 +78,6 @@ function wppa_thumb_area( $action ) {
78
  // Nicescroller
79
  if ( $nice ) {
80
  $result .= '
81
- <script>
82
- jQuery(document).ready(function(){
83
- jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
84
- });
85
- </script>
86
  </div>'; // close .wppa-nicewrap div
87
  }
88
 
@@ -140,11 +135,6 @@ function wppa_contest_box() {
140
  // Nicescroller
141
  if ( $nice ) {
142
  $result .= '
143
- <script>
144
- jQuery(document).ready(function(){
145
- jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
146
- });
147
- </script>
148
  </div>'; // close .wppa-nicewrap div
149
  }
150
 
@@ -1375,16 +1365,15 @@ global $photos_used;
1375
  <input
1376
  type="button"
1377
  id="wppa-ss-button-' . $mocc . '"
 
 
1378
  value="' . __( 'Submit', 'wp-photo-album-plus' ) . '"
1379
- style="vertical-align:top;margin:2px;"
1380
  onclick="wppaSuperSearchSelect(' . $mocc . ' , true)"
1381
  />';
1382
 
1383
  $result .= '
1384
- </form>
1385
- <script>
1386
- jQuery(document).ready(function(){wppaSuperSearchSelect(' . $mocc . ')});
1387
- </script>';
1388
 
1389
  return $result; // wppa_compress_html( $result );
1390
  }
@@ -6604,11 +6593,6 @@ function wppa_grid_box() {
6604
  // Nicescroller
6605
  if ( $nice ) {
6606
  $result .= '
6607
- <script>
6608
- jQuery(document).ready(function(){
6609
- jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
6610
- });
6611
- </script>
6612
  </div>'; // close .wppa-nicewrap div
6613
  }
6614
 
@@ -6627,25 +6611,7 @@ function wppa_get_grid_box_html( $photos ) {
6627
  $cols = wppa( 'gridcols' );
6628
  $size = 100 / $cols . '%';
6629
  $mocc = wppa( 'mocc' );
6630
-
6631
- // Local styles
6632
- $result = '
6633
- <style>
6634
- .wppa-grid {
6635
- border:none;
6636
- margin:0 !important;
6637
- padding:0 !important;
6638
- }
6639
- .wppa-grid tr {
6640
- border:none;
6641
- }
6642
- .wppa-grid-' . $mocc . ' td {
6643
- border:none;
6644
- padding:6px;
6645
- vertical-align:middle;
6646
- width:' . $size . ';
6647
- }
6648
- </style>';
6649
 
6650
  // Open table
6651
  $result .= '
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
78
  // Nicescroller
79
  if ( $nice ) {
80
  $result .= '
 
 
 
 
 
81
  </div>'; // close .wppa-nicewrap div
82
  }
83
 
135
  // Nicescroller
136
  if ( $nice ) {
137
  $result .= '
 
 
 
 
 
138
  </div>'; // close .wppa-nicewrap div
139
  }
140
 
1365
  <input
1366
  type="button"
1367
  id="wppa-ss-button-' . $mocc . '"
1368
+ data-mocc="' . $mocc . '"
1369
+ class="wppa-ss-button"
1370
  value="' . __( 'Submit', 'wp-photo-album-plus' ) . '"
1371
+ style="vertical-align:top;margin:2px;display:none;"
1372
  onclick="wppaSuperSearchSelect(' . $mocc . ' , true)"
1373
  />';
1374
 
1375
  $result .= '
1376
+ </form>';
 
 
 
1377
 
1378
  return $result; // wppa_compress_html( $result );
1379
  }
6593
  // Nicescroller
6594
  if ( $nice ) {
6595
  $result .= '
 
 
 
 
 
6596
  </div>'; // close .wppa-nicewrap div
6597
  }
6598
 
6611
  $cols = wppa( 'gridcols' );
6612
  $size = 100 / $cols . '%';
6613
  $mocc = wppa( 'mocc' );
6614
+ $result = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6615
 
6616
  // Open table
6617
  $result .= '
wppa-comment-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all comments
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -353,17 +353,6 @@ function _wppa_comment_admin() {
353
  // Open page
354
  echo
355
  '<div class="wrap">
356
- <style type="text/css" >
357
- .column-photo {
358
- width:180px;
359
- }
360
- .column-user, .column-email, .column-timestamp {
361
- width:180px;
362
- }
363
- .column-status {
364
- width:100px;
365
- }
366
- </style>
367
  <h1>' .
368
  ( $moderating ? __( 'Photo Albums -> Moderate Comment', 'wp-photo-album-plus' ) :
369
  __( 'Photo Albums -> Comment admin', 'wp-photo-album-plus' ) ) .
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all comments
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
353
  // Open page
354
  echo
355
  '<div class="wrap">
 
 
 
 
 
 
 
 
 
 
 
356
  <h1>' .
357
  ( $moderating ? __( 'Photo Albums -> Moderate Comment', 'wp-photo-album-plus' ) :
358
  __( 'Photo Albums -> Comment admin', 'wp-photo-album-plus' ) ) .
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -483,13 +483,13 @@ horizrailenabled:false,";
483
  'wppa_auto_page_type' => 'photo',
484
  'wppa_auto_page_links' => 'bottom',
485
  // 'wppa_defer_javascript' => 'yes',
486
- 'wppa_custom_style' => '',
487
- 'wppa_custom_style_chrome' => '',
488
- 'wppa_custom_style_firefox' => '',
489
- 'wppa_custom_style_safari' => '',
490
- 'wppa_custom_style_edge' => '',
491
- 'wppa_custom_style_ie' => '',
492
- 'wppa_custom_style_opera' => '',
493
  'wppa_use_custom_style_file' => 'no',
494
  'wppa_enable_pdf' => 'yes', // IV-A30
495
  'wppa_use_custom_theme_file' => 'no',
@@ -1150,7 +1150,6 @@ horizrailenabled:false,";
1150
  'wppa_gpx_shortcode' => '[map style="width: auto; height:300px; margin:0; " marker="yes" lat="w#lat" lon="w#lon"]',
1151
  'wppa_geo_zoom' => '10',
1152
  'wppa_fotomoto_on' => 'no',
1153
- 'wppa_fotomoto_fontsize' => '',
1154
  'wppa_fotomoto_hide_when_running' => 'no',
1155
  'wppa_fotomoto_min_width' => '400',
1156
  'wppa_image_magick' => '',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
483
  'wppa_auto_page_type' => 'photo',
484
  'wppa_auto_page_links' => 'bottom',
485
  // 'wppa_defer_javascript' => 'yes',
486
+ // 'wppa_custom_style' => '',
487
+ // 'wppa_custom_style_chrome' => '',
488
+ // 'wppa_custom_style_firefox' => '',
489
+ // 'wppa_custom_style_safari' => '',
490
+ // 'wppa_custom_style_edge' => '',
491
+ // 'wppa_custom_style_ie' => '',
492
+ // 'wppa_custom_style_opera' => '',
493
  'wppa_use_custom_style_file' => 'no',
494
  'wppa_enable_pdf' => 'yes', // IV-A30
495
  'wppa_use_custom_theme_file' => 'no',
1150
  'wppa_gpx_shortcode' => '[map style="width: auto; height:300px; margin:0; " marker="yes" lat="w#lat" lon="w#lon"]',
1151
  'wppa_geo_zoom' => '10',
1152
  'wppa_fotomoto_on' => 'no',
 
1153
  'wppa_fotomoto_hide_when_running' => 'no',
1154
  'wppa_fotomoto_min_width' => '400',
1155
  'wppa_image_magick' => '',
wppa-items.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions to retrieve album and photo items
6
- * Version 7.7.02.005
7
  *
8
  */
9
 
@@ -339,7 +339,7 @@ function wppa_get_photo_desc( $id, $xargs = array() ) {
339
  // To prevent recursive rendering of scripts or shortcodes:
340
  $desc = str_replace( array( '%%wppa%%', '[wppa', '[/wppa]' ), array( '%-wppa-%', '{wppa', '{/wppa}' ), $desc );
341
 
342
- // Geo
343
  if ( $thumb['location'] && ! wppa_in_widget() && strpos( wppa_opt( 'custom_content' ), 'w#location' ) !== false && $args['dogeo'] ) {
344
  wppa_do_geo( $id, $thumb['location'] );
345
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions to retrieve album and photo items
6
+ * Version 8.1.00.004
7
  *
8
  */
9
 
339
  // To prevent recursive rendering of scripts or shortcodes:
340
  $desc = str_replace( array( '%%wppa%%', '[wppa', '[/wppa]' ), array( '%-wppa-%', '{wppa', '{/wppa}' ), $desc );
341
 
342
+ // Geo. This is only in a slideshow
343
  if ( $thumb['location'] && ! wppa_in_widget() && strpos( wppa_opt( 'custom_content' ), 'w#location' ) !== false && $args['dogeo'] ) {
344
  wppa_do_geo( $id, $thumb['location'] );
345
  }
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -1288,18 +1288,7 @@ global $wppa_log_file;
1288
  '<div' .
1289
  ' id="wppa-maintenance-list"' .
1290
  ( strpos( $_SERVER['REQUEST_URI'], 'page=wppa_log' ) !== false || wppa_get( 'raw' ) ? '' : ' style="max-height:500px; overflow:hidden;width:100%;"' ) .
1291
- ' >' .
1292
- '<style type="text/css" >' .
1293
- '#wppa-maintenance-list h2 {' .
1294
- 'margin-top:0;' .
1295
- '}' .
1296
- '#wppa-maintenance-list div {' .
1297
- 'background-color:#f1f1f1; border:1px solid #ddd;' .
1298
- '}' .
1299
- '#wppa-maintenance-list td, #wppa-maintenance-list th {' .
1300
- 'border-right: 1px solid darkgray;' .
1301
- '}' .
1302
- '</style>';
1303
 
1304
  // Open nicescroller wrapper
1305
  $result .= '<div class="wppa-nicewrap" >';
@@ -1735,8 +1724,9 @@ function wppa_log_page() {
1735
  ' onclick="wppaAjaxUpdateOptionValue(\'errorlog_purge\', 0);jQuery(\'#wppa-maintenance-list\').fadeOut(2000);"' .
1736
  ' type="button" >' .
1737
  '</h1>' .
 
1738
  wp_nonce_field('wppa-nonce', 'wppa-nonce') .
1739
- '<style type="text/css" >h2 { display:none; }</style>' .
1740
  '&nbsp;<img' .
1741
  ' id="wppa-spinner"' .
1742
  ' src="' . wppa_get_imgdir( 'spinner.gif' ) . '"' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
1288
  '<div' .
1289
  ' id="wppa-maintenance-list"' .
1290
  ( strpos( $_SERVER['REQUEST_URI'], 'page=wppa_log' ) !== false || wppa_get( 'raw' ) ? '' : ' style="max-height:500px; overflow:hidden;width:100%;"' ) .
1291
+ ' >';
 
 
 
 
 
 
 
 
 
 
 
1292
 
1293
  // Open nicescroller wrapper
1294
  $result .= '<div class="wppa-nicewrap" >';
1724
  ' onclick="wppaAjaxUpdateOptionValue(\'errorlog_purge\', 0);jQuery(\'#wppa-maintenance-list\').fadeOut(2000);"' .
1725
  ' type="button" >' .
1726
  '</h1>' .
1727
+
1728
  wp_nonce_field('wppa-nonce', 'wppa-nonce') .
1729
+
1730
  '&nbsp;<img' .
1731
  ' id="wppa-spinner"' .
1732
  ' src="' . wppa_get_imgdir( 'spinner.gif' ) . '"' .
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 8.0.07.001
7
  *
8
  */
9
 
@@ -32,6 +32,7 @@ global $wppa_api_version;
32
  if ( is_file($userstyle) ) {
33
  wp_register_style('wppa_style', get_theme_root_uri() . '/' . wppa_get_option('stylesheet') . '/wppa-style.css', array(), $wppa_api_version);
34
  wp_enqueue_style('wppa_style');
 
35
  return;
36
  }
37
 
@@ -40,6 +41,7 @@ global $wppa_api_version;
40
  if ( is_file($userstyle) ) {
41
  wp_register_style('wppa_style', get_theme_root_uri() . '/' . wppa_get_option('template') . '/wppa-style.css', array(), $wppa_api_version);
42
  wp_enqueue_style('wppa_style');
 
43
  return;
44
  }
45
  }
@@ -54,7 +56,47 @@ global $wppa_api_version;
54
  }
55
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $ver);
56
  wp_enqueue_style('wppa_style');
 
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
 
60
  /* SEO META TAGS AND SM SHARE DATA */
@@ -398,72 +440,7 @@ global $wppa_lang;
398
  global $wppa_api_version;
399
 
400
  // dynamic css
401
- echo wppa_create_wppa_dynamic_css();
402
-
403
- // Inline styles?
404
- if ( wppa_opt( 'custom_style' ) ) {
405
- echo '
406
- <!-- WPPA+ Custom styles -->
407
- <style type="text/css" >';
408
- echo wppa_opt( 'custom_style' ) . '
409
- </style>';
410
- }
411
-
412
- // Browser dependant css
413
- if ( wppa_is_edge() ) {
414
- if ( wppa_opt( 'custom_style_edge' ) ) {
415
- echo '
416
- <!-- WPPA+ Custom styles Edge -->
417
- <style type="text/css" >
418
- ' . wppa_opt( 'custom_style_edge' ) . '
419
- </style>';
420
- }
421
- }
422
- elseif ( wppa_is_chrome() ) {
423
- if ( wppa_opt( 'custom_style_chrome' ) ) {
424
- echo '
425
- <!-- WPPA+ Custom styles Chrome -->
426
- <style type="text/css" >
427
- ' . wppa_opt( 'custom_style_chrome' ) . '
428
- </style>';
429
- }
430
- }
431
- elseif ( wppa_is_firefox() ) {
432
- if ( wppa_opt( 'custom_style_firefox' ) ) {
433
- echo '
434
- <!-- WPPA+ Custom styles Firefox -->
435
- <style type="text/css" >
436
- ' . wppa_opt( 'custom_style_firefox' ) . '
437
- </style>';
438
- }
439
- }
440
- elseif ( wppa_is_safari() ) {
441
- if ( wppa_opt( 'custom_style_safari' ) ) {
442
- echo '
443
- <!-- WPPA+ Custom styles Safari -->
444
- <style type="text/css" >
445
- ' . wppa_opt( 'custom_style_safari' ) . '
446
- </style>';
447
- }
448
- }
449
- elseif ( wppa_is_ie() ) {
450
- if ( wppa_opt( 'custom_style_ie' ) ) {
451
- echo '
452
- <!-- WPPA+ Custom styles IE -->
453
- <style type="text/css" >
454
- ' . wppa_opt( 'custom_style_ie' ) . '
455
- </style>';
456
- }
457
- }
458
- elseif ( wppa_is_opera() ) {
459
- if ( wppa_opt( 'custom_style_opera' ) ) {
460
- echo '
461
- <!-- WPPA+ Custom styles Opera -->
462
- <style type="text/css" >
463
- ' . wppa_opt( 'custom_style_opera' ) . '
464
- </style>';
465
- }
466
- }
467
 
468
  // Pinterest js
469
  if ( ( wppa_switch( 'share_on') || wppa_switch( 'share_on_widget') ) && wppa_switch( 'share_pinterest') ) {
@@ -477,7 +454,6 @@ global $wppa_api_version;
477
 
478
  echo '
479
  <script type="text/javascript" >
480
- wppaDebug = true;
481
  </script>';
482
  }
483
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 8.1.00.004
7
  *
8
  */
9
 
32
  if ( is_file($userstyle) ) {
33
  wp_register_style('wppa_style', get_theme_root_uri() . '/' . wppa_get_option('stylesheet') . '/wppa-style.css', array(), $wppa_api_version);
34
  wp_enqueue_style('wppa_style');
35
+ wp_add_inline_style( 'wppa_style', wppa_create_wppa_dynamic_css() );
36
  return;
37
  }
38
 
41
  if ( is_file($userstyle) ) {
42
  wp_register_style('wppa_style', get_theme_root_uri() . '/' . wppa_get_option('template') . '/wppa-style.css', array(), $wppa_api_version);
43
  wp_enqueue_style('wppa_style');
44
+ wp_add_inline_style( 'wppa_style', wppa_create_wppa_dynamic_css() );
45
  return;
46
  }
47
  }
56
  }
57
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $ver);
58
  wp_enqueue_style('wppa_style');
59
+ wp_add_inline_style( 'wppa_style', wppa_create_wppa_dynamic_css() );
60
 
61
+ $the_css = '
62
+ #wppaphoto-table {
63
+ box-sizing:border-box; width:100% !important;
64
+ }
65
+ .wppa-bar {
66
+ background-color: #7f7;
67
+ width:0%;
68
+ height:18px;
69
+ border-radius: 3px;
70
+ line-height: 18px;
71
+ margin: 0;
72
+ }
73
+ .wppa-percent {
74
+ position:relative;
75
+ display:inline-block;
76
+ top:-19px;
77
+ font-size: 12px;
78
+ line-height: 18px;
79
+ margin: 0;
80
+ }
81
+ .wppa-message {
82
+ clear: both;
83
+ }
84
+ #wppaphoto-table tr, #wppaphoto-table th, #wppaphoto-table td {
85
+ padding: 2px; 0;
86
+ }
87
+ #wppaphoto-table th {
88
+ width:200px;
89
+ }
90
+ #wppaphoto-table input {
91
+ padding:4px;
92
+ }
93
+ #wppaphoto-table th, #wppaphoto-table td {
94
+ border:none;
95
+ }
96
+ #wppaphoto-shortcode-preview-container {
97
+ width:500px !important;
98
+ }';
99
+ wp_add_inline_style( 'wppa_style', $the_css );
100
  }
101
 
102
  /* SEO META TAGS AND SM SHARE DATA */
440
  global $wppa_api_version;
441
 
442
  // dynamic css
443
+ // echo wppa_create_wppa_dynamic_css();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
 
445
  // Pinterest js
446
  if ( ( wppa_switch( 'share_on') || wppa_switch( 'share_on_widget') ) && wppa_switch( 'share_pinterest') ) {
454
 
455
  echo '
456
  <script type="text/javascript" >
 
457
  </script>';
458
  }
459
 
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -1902,9 +1902,6 @@ function wppaToggleExif( id, count ) {
1902
  });';
1903
  wp_add_inline_script( 'wppa-admin', $the_js );
1904
 
1905
- echo
1906
- '<style>.cropper-drag-box{background-color:transparent;}img{max-width:100%}</style>';
1907
-
1908
  echo
1909
  '</div>' .
1910
  '</td>' .
@@ -3081,54 +3078,6 @@ global $wpdb;
3081
 
3082
  if ( $photos ) {
3083
  ?>
3084
- <style>
3085
- .sortable-placeholder {
3086
- width: <?php echo $size ?>px;
3087
- height: <?php echo $size ?>px;
3088
- margin: 5px;
3089
- border: 1px solid #cccccc;
3090
- border-radius:3px;
3091
- float: left;
3092
- }
3093
- .ui-state-default {
3094
- position: relative;
3095
- width: <?php echo $size ?>px;
3096
- height: <?php echo $size ?>px;
3097
- margin: 5px;
3098
- border-radius:3px;
3099
- float: left;
3100
- }
3101
- .wppa-publish {
3102
- border: 1px solid;
3103
- background-color: rgb( 255, 255, 224 );
3104
- border-color: rgb( 230, 219, 85 );
3105
- }
3106
- .wppa-featured {
3107
- border: 1px solid;
3108
- background-color: rgb( 224, 255, 224 );
3109
- border-color: rgb( 85, 238, 85 );
3110
- }
3111
- .wppa-pending, .wppa-scheduled, .wppa-private {
3112
- border: 1px solid;
3113
- background-color: rgb( 255, 235, 232 );
3114
- border-color: rgb( 204, 0, 0 );
3115
- }
3116
- .wppa-bronze {
3117
- border: 1px solid;
3118
- background-color: rgb( 221, 221, 187 );
3119
- border-color: rgb( 204, 204, 170 );
3120
- }
3121
- .wppa-silver {
3122
- border: 1px solid;
3123
- background-color: rgb( 255, 255, 255 );
3124
- border-color: rgb( 238, 238, 238 );
3125
- }
3126
- .wppa-gold {
3127
- border: 1px solid;
3128
- background-color: rgb( 238, 238, 204 );
3129
- border-color: rgb( 221, 221, 187 );
3130
- }
3131
- </style>
3132
  <script>
3133
  jQuery( function() {
3134
  jQuery( "#sortable" ).sortable( {
@@ -3194,7 +3143,7 @@ global $wpdb;
3194
  }
3195
  </script>
3196
  <?php if ( ! $is_p_order ) wppa_warning_message( __( 'Setting photo sequence order has only effect if the photo order method is set to <b>Order#</b>' , 'wp-photo-album-plus') ) ?>
3197
- <div class="widefat" style="border-color:#cccccc" >
3198
  <div id="sortable">
3199
  <?php foreach ( $photos as $photo ) {
3200
  if ( wppa_is_video( $photo['id'] ) ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
1902
  });';
1903
  wp_add_inline_script( 'wppa-admin', $the_js );
1904
 
 
 
 
1905
  echo
1906
  '</div>' .
1907
  '</td>' .
3078
 
3079
  if ( $photos ) {
3080
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3081
  <script>
3082
  jQuery( function() {
3083
  jQuery( "#sortable" ).sortable( {
3143
  }
3144
  </script>
3145
  <?php if ( ! $is_p_order ) wppa_warning_message( __( 'Setting photo sequence order has only effect if the photo order method is set to <b>Order#</b>' , 'wp-photo-album-plus') ) ?>
3146
+ <div class="widefat wppa-photo-admin-sortable" style="border-color:#cccccc" >
3147
  <div id="sortable">
3148
  <?php foreach ( $photos as $photo ) {
3149
  if ( wppa_is_video( $photo['id'] ) ) {
wppa-scripts.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
- * Version 8.1.00.004
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
@@ -14,514 +14,517 @@ global $wppa_lang;
14
  global $wppa_session;
15
  global $wpdb;
16
 
17
- /* wppa-utils.js */
18
- $result = '
19
- wppaDebugCounter = 0,';
20
-
21
- /* wppa.js */
22
- $result .= '
23
- wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime),
24
- wppaOvlActivePanorama = 0,';
25
-
26
- /* Global and slideshow vars */
27
- $result .= '
28
- wppaFullValign = [],
29
- wppaFullHalign = [],
30
- wppaFullFrameDelta = [],
31
- wppaAutoColumnWidth = [],
32
- wppaAutoColumnFrac = [],
33
- wppaFadeInAfterFadeOut = false,
34
- wppaPreambule = [],
35
- wppaThumbnailPitch = [],
36
- wppaFilmStripLength = [],
37
- wppaFilmStripMargin = [],
38
- wppaFilmStripAreaDelta = [],
39
- wppaIsMini = [],
40
- wppaPortraitOnly = [],
41
- wppaLightBox = [],
42
- wppaSlideInitRunning = [],
43
- wppaSlidePause = [],
44
- wppaSlideBlank = [],
45
- wppaFilmPageSize = [],
46
- wppaAspectRatio = [],
47
- wppaFullSize = [],
48
- wppaLightboxSingle = [],
49
- wppaSiteUrl = "' . site_url() . '",
50
- wppaMasonryCols = [],
51
- wppaVideoPlaying = [],
52
- wppaAudioPlaying = [],
53
- wppaHis = 0,
54
- wppaStartHtml = [],
55
- wppaCanAjaxRender = false,
56
- wppaCanPushState = false,
57
- wppaMaxOccur = 0,
58
- wppaFirstOccur = 0,
59
- wppaUsePhotoNamesInUrls = false,
60
- wppaShareHideWhenRunning = false,
61
- wppaCommentRequiredAfterVote = true,
62
- wppaTopMoc = 0,
63
- wppaColWidth = [],
64
- wppaMCRWidth = [],
65
- wppaFotomotoHideWhenRunning = false,
66
- wppaFotomotoMinWidth = 400,
67
- wppaPhotoView = [],
68
- wppaBackgroundColorImage = "",
69
- wppaPopupLinkType = "",
70
- wppaPopupOnclick = [],
71
- wppaThumbTargetBlank = false,
72
- wppaRel = "rel",
73
- wppaEditPhotoWidth = "960",
74
- wppaThemeStyles = "",
75
- wppaStickyHeaderHeight = 0,
76
- wppaModalBgColor = "#ffffff",
77
- wppaBoxRadius = 0,
78
- wppaUploadEdit = "none",
79
- wppaPageArg = "",
80
- wppaCoverImageResponsive = [],
81
- wppaSearchBoxSelItems = [],
82
- wppaSlideWrap = [],
83
- wppaHideRightClick = false,
84
- wppaGeoZoom = 10,
85
- wppaAreaMaxFrac = 1.0,
86
- wppaNiceScroll = false,
87
- wppaIconSizeNormal = "default",
88
- wppaIconSizeStars = 24,
89
- wppaFilmInit = [],
90
- wppaResizeEndDelay = 200,
91
- wppaScrollEndDelay = 200,
92
- wppaArtmonkeyFileNotSource = false,
93
- wppaRequestInfoDialogText = "Please specify your question",
94
- wppaGlobalFsIconSize = 32,
95
- wppaFsFillcolor = "#999999",
96
- wppaFsBgcolor = "transparent",
97
- wppaSlideLinkEqual = ' . ( wppa_opt( 'slideshow_linktype' ) == 'same' ? 'true' : 'false' ) . ',
98
- _wppaId = [],
99
- _wppaRealId = [],
100
- _wppaAvg = [],
101
- _wppaDisc = [],
102
- _wppaMyr = [],
103
- _wppaVRU = [],
104
- _wppaLinkUrl = [],
105
- _wppaLinkTitle = [],
106
- _wppaLinkTarget = [],
107
- _wppaCommentHtml = [],
108
- _wppaIptcHtml = [],
109
- _wppaExifHtml = [],
110
- _wppaToTheSame = false,
111
- _wppaSlides = [],
112
- _wppaNames = [],
113
- _wppaFilmThumbTitles = [],
114
- _wppaFullNames = [],
115
- _wppaDsc = [],
116
- _wppaOgDsc = [],
117
- _wppaCurIdx = [],
118
- _wppaNxtIdx = [],
119
- _wppaTimeOut = [],
120
- _wppaSSRuns = [],
121
- _wppaFg = [],
122
- _wppaTP = [],
123
- _wppaIsBusy = [],
124
- _wppaFirst = [],
125
- _wppaVoteInProgress = false,
126
- _wppaTextDelay = ' . wppa_opt( 'animation_speed' ) . ',
127
- _wppaUrl = [],
128
- _wppaSkipRated = [],
129
- _wppaLbTitle = [],
130
- _wppaStateCount = 0,
131
- _wppaDidGoto = [],
132
- _wppaShareUrl = [],
133
- _wppaShareHtml = [],
134
- _wppaFilmNoMove = [],
135
- _wppaHiresUrl = [],
136
- _wppaIsVideo = [],
137
- _wppaVideoHtml = [],
138
- _wppaAudioHtml = [],
139
- _wppaVideoNatWidth = [],
140
- _wppaVideoNatHeight = [],
141
- _wppaWaitTexts = [],
142
- _wppaImageAlt = [],
143
- _wppaLastIdx = [],
144
- _wppaStopping = [],
145
- _wppaFilename = [],
146
- __wppaOverruleRun = false,
147
- wppaOvlIdx = 0,
148
- wppaOvlFirst = true,
149
- wppaOvlKbHandler = "",
150
- wppaOvlSizeHandler = "",
151
- wppaOvlPadTop = 5,
152
- wppaOvlRunning = false,
153
- wppaOvlVideoPlaying = false,
154
- wppaOvlAudioPlaying = false,
155
- wppaOvlShowLegenda = true,
156
- wppaOvlShowStartStop = true,
157
- wppaOvlRadius = 0,
158
- wppaOvlBorderWidth = 16,
159
- wppaOvlOpen = false,
160
- wppaOvlClosing = false,
161
- wppaThumbSize = 100,
162
- wppaTfMargin = 4,
163
- wppaZoomData = [],
164
- wppaSphericData = [],
165
- wppaOvlTxtHeight = 36,
166
- wppaOvlOpacity = 0.8,
167
- wppaOvlOnclickType = "none",
168
- wppaOvlTheme = "black",
169
- wppaOvlAnimSpeed = 300,
170
- wppaOvlSlideSpeed = 3000,
171
- wppaOvlFontFamily = "Helvetica",
172
- wppaOvlFontSize = "10",
173
- wppaOvlFontColor = "",
174
- wppaOvlFontWeight = "bold",
175
- wppaOvlLineHeight = "12",
176
- wppaOvlShowCounter = true,
177
- wppaOvlIsVideo = false,
178
- wppaShowLegenda = "",
179
- wppaOvlFsPhotoId = 0,
180
- wppaPhotoId = 0,
181
- wppaOvlVideoStart = false,
182
- wppaOvlAudioStart = false,
183
- wppaLastIptc = "",
184
- wppaLastExif = "",
185
- wppaIsIpad = false,
186
- wppaSvgFillcolor = "gray",
187
- wppaSvgBgcolor = "transparent",
188
- wppaSvgCornerStyle = "light",
189
- wppaCoverSpacing = 8,
190
- wppaEasingSlide = "' . wppa_opt( 'easing_slide' ) . '",
191
- wppaEasingLightbox = "' . wppa_opt( 'easing_lightbox' ) . '",
192
- wppaEasingPopup = "' . wppa_opt( 'easing_popup' ) . '",
193
- wppaEasingDefault = "swing",';
194
-
195
- /* wppa-ajax-front.js */
196
- $result .= '
197
- wppaRenderAdd = false,
198
- wppaWaitForCounter = 0,';
199
-
200
- /* wppa-lightbox.js */
201
- $result .= '
202
- wppaIsVideo = false,
203
- wppaHasAudio = false,
204
- wppaOvlIsPdf = false,
205
- wppaOvlImgs = [],
206
- wppaKbHandlerInstalled = false,
207
- wppaOvlCurIdx = 0,
208
- wppaOvlSvgInverse = false,
209
- wppaOvlHasPanoramas = false,
210
- wppaGlobalOvlPanoramaId = 0,
211
- wppaOvlBrowseOnClick = false,
212
- wppaOvlGlobal = false,
213
- wppaWppaOverlayActivated = false,
214
- wppaOvlTimer = 0,
215
- wppaSavedContainerWidth = 0,
216
- wppaSavedContainerHeight = 0,';
217
-
218
- /* wppa-touch.js */
219
- $result .= '
220
- wppaTriggerElementID = null,
221
- wppaFingerCount = 0,
222
- wppaStartX = 0,
223
- wppaStartY = 0,
224
- wppaCurX = 0,
225
- wppaCurY = 0,
226
- wppaDeltaX = 0,
227
- wppaDeltaY = 0,
228
- wppaHorzDiff = 0,
229
- wppaVertDiff = 0,
230
- wppaMinLength = 72,
231
- wppaSwipeLength = 0,
232
- wppaSwipeAngle = null,
233
- wppaSwipeDirection = null,
234
- wppaSwipeOnLightbox = false,
235
- wppaSwipeMocc = 0,
236
- wppaMobileTimeStart = 0,';
237
-
238
- /* admin-scripts.js */
239
- $result .= '
240
- wppa_moveup_url = "#",
241
- wppa_import = "' . esc_js( __( 'Import', 'wp-photo-album-plus' ) ) . '",
242
- wppa_update = "' . esc_js( __( 'Update', 'wp-photo-album-plus' ) ) . '",
243
- wppaUploadToThisAlbum = "' . esc_js( __( 'Upload to this album', 'wp-photo-album-plus' ) ) . '",
244
- wppaCloseText = "' . esc_js( __( 'Close!', 'wp-photo-album-plus' ) ) . '",
245
- wppaCropper = [],';
246
-
247
- // Find ajax url
248
- $can_ajax = 'true';
249
- switch ( wppa_opt( 'ajax_method' ) ) {
250
- case 'normal':
251
- if ( is_admin() ) $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
252
- else $ajax_url = site_url() . '/wppaajax';
253
- break;
254
- case 'wppaajax':
255
- $ajax_url = site_url() . '/wppaajax';
256
- break;
257
- case 'admin':
258
- $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
259
- break;
260
- case 'extern':
261
- if ( is_admin() ) $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
262
- else $ajax_url = WPPA_URL . '/wppa-ajax-front.php';
263
- break;
264
- case 'none':
265
- $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
266
- $can_ajax = 'false'; // works on frontend only
267
- break;
268
- }
269
-
270
- /* Language and config specific inits */
271
- $result .= '
272
- wppaImageDirectory = "' . wppa_get_imgdir() . '",
273
- wppaWppaUrl = "' . wppa_get_wppa_url() . '",
274
- wppaIncludeUrl = "' . trim( includes_url(), '/' ) . '",
275
- wppaAjaxUrl = "' . $ajax_url . '",
276
- wppaUploadUrl = "' . WPPA_UPLOAD_URL . '",
277
- wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ',
278
- wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ',
279
- wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '",
280
- wppaAudioHeight = ' . wppa_get_audio_control_height() . ',
281
- wppaFilmThumbTitle = "' . ( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __( 'Double click to start/stop slideshow running', 'wp-photo-album-plus' ) ) . '",
282
- wppaClickToView = "' . ( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __( 'Click to view', 'wp-photo-album-plus' ) ) . '",
283
- wppaLang = "' . $wppa_lang . '",
284
- wppaVoteForMe = "' . __( wppa_opt( 'vote_button_text' ), 'wp-photo-album-plus' ) . '",
285
- wppaVotedForMe = "' . __( wppa_opt( 'voted_button_text' ), 'wp-photo-album-plus' ) . '",
286
- wppaDownLoad = "' . __( 'Download', 'wp-photo-album-plus' ) . '",
287
- wppaSlideShow = "' . __( 'Slideshow', 'wp-photo-album-plus' ) . '",
288
- wppaPhoto = "' . __( 'Photo', 'wp-photo-album-plus' ) . '",
289
- wppaOf = "' . __( 'of', 'wp-photo-album-plus' ) . '",
290
- wppaNextPhoto = "' . __( 'Next photo', 'wp-photo-album-plus' ) . '",
291
- wppaPreviousPhoto = "' . __( 'Previous photo', 'wp-photo-album-plus' ) . '",
292
- wppaNextP = "' . __( 'Next', 'wp-photo-album-plus' ) . '",
293
- wppaPrevP = "' . __( 'Prev.', 'wp-photo-album-plus' ) . '",
294
- wppaAvgRating = "' . __( 'Average&nbsp;rating', 'wp-photo-album-plus' ) . '",
295
- wppaMyRating = "' . __( 'My&nbsp;rating', 'wp-photo-album-plus' ) . '",
296
- wppaAvgRat = "' . __( 'Avg.', 'wp-photo-album-plus' ) . '",
297
- wppaMyRat = "' . __( 'Mine', 'wp-photo-album-plus' ) . '",
298
- wppaDislikeMsg = "' . __( 'You marked this image as inappropriate.', 'wp-photo-album-plus' ) . '",
299
- wppaStart = "' . __( 'Start', 'wp-photo-album-plus' ) . '",
300
- wppaStop = "' . __( 'Stop', 'wp-photo-album-plus' ) . '",
301
- wppaPleaseName = "' . __( 'Please enter your name', 'wp-photo-album-plus' ) . '",
302
- wppaPleaseEmail = "' . __( 'Please enter a valid email address', 'wp-photo-album-plus' ) . '",
303
- wppaPleaseComment = "' . __( 'Please enter a comment', 'wp-photo-album-plus' ) . '",
304
- wppaProcessing = "' . __( 'Processing...', 'wp-photo-album-plus' ) . '",
305
- wppaDone = "' . __( 'Done!', 'wp-photo-album-plus' ) . '",
306
- wppaUploadFailed = "' . __( 'Upload failed', 'wp-photo-album-plus' ) . '",
307
- wppaServerError = "' . __( 'Server error.', 'wp-photo-album-plus' ) . '",
308
- wppaGlobalFsIconSize = "'.wppa_opt( 'nav_icon_size_global_fs' ) . '",
309
- wppaFsFillcolor = "'.wppa_opt( 'fs_svg_color' ) . '",
310
- wppaFsBgcolor = "'.wppa_opt( 'fs_svg_bg_color' ) . '",
311
- wppaFsPolicy = "' . ( is_admin() ? 'none' : wppa_opt( 'fs_policy' ) ) . '",
312
- wppaNiceScroll = ' . ( wppa_switch( 'nicescroll' ) && ! wppa_is_mobile() ? 'true' : 'false' ) . ',
313
- wppaVersion = "'.$wppa_api_version.'",
314
- wppaDebug = '.( wppa_switch( 'allow_debug' ) ? 'true' : 'false' ) . ',
315
- wppaBackgroundColorImage = "'.wppa_opt( 'bgcolor_img' ) . '",
316
- wppaPopupLinkType = "'.wppa_opt( 'thumb_linktype' ) . '",
317
- wppaAnimationType = "'.wppa_opt( 'animation_type' ) . '",
318
- wppaAnimationSpeed = '.wppa_opt( 'animation_speed' ) . ',
319
- wppaThumbnailAreaDelta = '.wppa_get_thumbnail_area_delta() . ',
320
- wppaTextFrameDelta = '.wppa_get_textframe_delta() . ',
321
- wppaBoxDelta = '.wppa_get_box_delta() . ',
322
- wppaSlideShowTimeOut = '.wppa_opt( 'slideshow_timeout' ) . ',
323
- wppaFilmShowGlue = '.( wppa_switch( 'film_show_glue' ) ? 'true' : 'false' ) . ',
324
- wppaMiniTreshold = '.( wppa_opt( 'mini_treshold' ) ? wppa_opt( 'mini_treshold' ) : '0' ) . ',
325
- wppaRatingOnce = '.( wppa_switch( 'rating_change' ) || wppa_switch( 'rating_multi' ) ? 'false' : 'true' ) . ',
326
- wppaHideWhenEmpty = '.( wppa_switch( 'hide_when_empty' ) ? 'true' : 'false' ) . ',
327
- wppaBGcolorNumbar = "'.wppa_opt( 'bgcolor_numbar' ) . '",
328
- wppaBcolorNumbar = "'.wppa_opt( 'bcolor_numbar' ) . '",
329
- wppaBGcolorNumbarActive = "'.wppa_opt( 'bgcolor_numbar_active' ) . '",
330
- wppaBcolorNumbarActive = "'.wppa_opt( 'bcolor_numbar_active' ) . '",
331
- wppaFontFamilyNumbar = "'.wppa_opt( 'fontfamily_numbar' ) . '",
332
- wppaFontSizeNumbar = "'.wppa_opt( 'fontsize_numbar' ) . 'px",
333
- wppaFontColorNumbar = "'.wppa_opt( 'fontcolor_numbar' ) . '",
334
- wppaFontWeightNumbar = "'.wppa_opt( 'fontweight_numbar' ) . '",
335
- wppaFontFamilyNumbarActive = "'.wppa_opt( 'fontfamily_numbar_active' ) . '",
336
- wppaFontSizeNumbarActive = "'.wppa_opt( 'fontsize_numbar_active' ) . 'px",
337
- wppaFontColorNumbarActive = "'.wppa_opt( 'fontcolor_numbar_active' ) . '",
338
- wppaFontWeightNumbarActive = "'.wppa_opt( 'fontweight_numbar_active' ) . '",
339
- wppaNumbarMax = "'.wppa_opt( 'numbar_max' ) . '",
340
- wppaNextOnCallback = '.( wppa_switch( 'next_on_callback' ) ? 'true' : 'false' ) . ',
341
- wppaStarOpacity = '.str_replace(',', '.',( wppa_opt( 'star_opacity' )/'100' )) . ',
342
- wppaEmailRequired = "'.wppa_opt( 'comment_email_required' ) . '",
343
- wppaSlideBorderWidth = '.wppa_fbw().',
344
- wppaAllowAjax = '.$can_ajax.',
345
- wppaUsePhotoNamesInUrls = '.( wppa_switch( 'use_photo_names_in_urls' ) ? 'true' : 'false' ) . ',
346
- wppaThumbTargetBlank = '.( wppa_switch( 'thumb_blank' ) ? 'true' : 'false' ) . ',
347
- wppaRatingMax = '.wppa_opt( 'rating_max' ) . ',
348
- wppaRatingDisplayType = "'.wppa_opt( 'rating_display_type' ) . '",
349
- wppaRatingPrec = '.wppa_opt( 'rating_prec' ) . ',
350
- wppaStretch = '.( wppa_switch( 'enlarge' ) ? 'true' : 'false' ) . ',
351
- wppaMinThumbSpace = '.wppa_opt( 'tn_margin' ) . ',
352
- wppaThumbSpaceAuto = '.( wppa_switch( 'thumb_auto' ) ? 'true' : 'false' ) . ',
353
- wppaMagnifierCursor = "'.wppa_opt( 'magnifier' ) . '",
354
- wppaArtMonkyLink = "'.wppa_opt( 'art_monkey_link' ) . '",
355
- wppaAutoOpenComments = '.( wppa_switch( 'auto_open_comments' ) ? 'true' : 'false' ) . ',
356
- wppaUpdateAddressLine = '.( wppa_switch( 'update_addressline' ) ? 'true' : 'false' ) . ',
357
- wppaSlideSwipe = '.( wppa_switch( 'slide_swipe' ) ? 'true' : 'false' ) . ',
358
- wppaMaxCoverWidth = '.wppa_opt( 'max_cover_width' ) . ',
359
- wppaSlideToFullpopup = '.( wppa_opt( 'slideshow_linktype' ) == 'fullpopup' ? 'true' : 'false' ) . ',
360
- wppaComAltSize = '.wppa_opt( 'comten_alt_thumbsize' ) . ',
361
- wppaBumpViewCount = '.( wppa_switch( 'track_viewcounts' ) ? 'true' : 'false' ) . ',
362
- wppaBumpClickCount = '.( wppa_switch( 'track_clickcounts' ) ? 'true' : 'false' ) . ',
363
- wppaShareHideWhenRunning = '.( wppa_switch( 'share_hide_when_running' ) ? 'true' : 'false' ) . ',
364
- wppaFotomoto = '.( wppa_switch( 'fotomoto_on' ) ? 'true' : 'false' ) . ',
365
- wppaArtMonkeyButton = '.( wppa_opt( 'art_monkey_display' ) == 'button' ? 'true' : 'false' ) . ',
366
- wppaFotomotoHideWhenRunning = '.( wppa_switch( 'fotomoto_hide_when_running' ) ? 'true' : 'false' ) . ',
367
- wppaCommentRequiredAfterVote = '.( wppa_switch( 'vote_needs_comment' ) ? 'true' : 'false' ) . ',
368
- wppaFotomotoMinWidth = '.wppa_opt( 'fotomoto_min_width' ) . ',
369
- wppaShortQargs = '.( wppa_switch( 'use_short_qargs' ) ? 'true' : 'false' ) . ',
370
- wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ) . ',
371
- wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ) . ',
372
- wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ) . ',
373
- wppaRel = "data-rel",
374
- wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ) . ',
375
- wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ) . ',
376
- wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit' ) == 'new' ? 500 : 960) . '",
377
- wppaThemeStyles = "'.(wppa_switch( 'upload_edit_theme_css' ) ? get_stylesheet_uri() : '' ) . '",
378
- wppaStickyHeaderHeight = '.wppa_opt( 'sticky_header_size' ) . ',
379
- wppaRenderModal = ' . ( wppa_switch( 'ajax_render_modal' ) ? 'true' : 'false' ) . ',
380
- wppaModalQuitImg = "url(' . wppa_get_imgdir( 'smallcross-' . wppa_opt( 'ovl_theme' ) . '.gif' ) . ' )",
381
- wppaBoxRadius = "' . wppa_opt( 'bradius' ) . '",
382
- wppaModalBgColor = "' . wppa_opt( 'bgcolor_modal' ) . '",
383
- wppaUploadEdit = "' . wppa_opt( 'upload_edit' ) . '",
384
- wppaSvgFillcolor = "' . wppa_opt( 'svg_color' ) . '",
385
- wppaSvgBgcolor = "' . wppa_opt( 'svg_bg_color' ) . '",
386
- wppaOvlSvgFillcolor = "' . wppa_opt( 'ovl_svg_color' ) . '",
387
- wppaOvlSvgBgcolor = "' . wppa_opt( 'ovl_svg_bg_color' ) . '",
388
- wppaSvgCornerStyle = "' . wppa_opt( 'icon_corner_style' ) . '",
389
- wppaHideRightClick = ' . ( wppa_switch( 'no_rightclick' ) ? 'true' : 'false' ) . ',
390
- wppaGeoZoom = ' . wppa_opt( 'geo_zoom' ) . ',
391
- wppaLazyLoad = ' . ( wppa_lazy() ? 'true' : 'false' ) . ',
392
- wppaAreaMaxFrac = ' . ( wppa_opt( 'area_size' ) < 1 ? wppa_opt( 'area_size' ) : 1.0 ) . ',
393
- wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '",
394
- wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '",
395
- wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ',
396
- wppaExtendedResizeCount = ' . wppa_opt( 'extended_resize_count' ) . ',
397
- wppaExtendedResizeDelay = ' . wppa_opt( 'extended_resize_delay' ) . ',
398
- wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ',
399
- wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ',
400
- wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ',
401
- wppaAjaxScroll = ' . ( wppa_switch( 'ajax_scroll' ) && ! is_admin() ? 'true' : 'false' ) . ',
402
- wppaThumbSize = ' . wppa_opt( 'thumbsize' ) . ',
403
- wppaTfMargin = ' . wppa_opt( 'tn_margin' ) . ',
404
- wppaArtmonkeyFileNotSource = ' . ( wppa_opt( 'art_monkey_link' ) == 'file' &&
405
- wppa_opt( 'art_monkey_display' ) == 'text' &&
406
- ! wppa_switch( 'artmonkey_use_source' ) ? 'true' : 'false' ) . ',
407
- wppaRequestInfoDialogText = "' . wppa_opt( 'request_info_text' ) . '",
408
- wppaThumbAspect = ' . wppa_thumb_asp() . ',';
409
-
410
- /* Lightbox vars */
411
- $fontsize_lightbox = wppa_opt( 'fontsize_lightbox' ) ? wppa_opt( 'fontsize_lightbox' ) : '10';
412
- $d = wppa_switch( 'ovl_show_counter') ? 1 : 0;
413
- $ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
414
- $lb_global = '';
415
- if ( wppa_switch( 'lightbox_global' ) && ! is_admin() ) {
416
- if ( wppa_switch( 'lightbox_global_set' ) ) {
417
- $lb_global = 'wppa[single]';
418
- }
419
- else {
420
- $lb_global = 'wppa';
421
- }
422
- }
423
-
424
- $result .= '
425
- wppaOvlTxtHeight = "'.$ovlh.'",
426
- wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).',
427
- wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'",
428
- wppaOvlTheme = "'.wppa_opt( 'ovl_theme' ).'",
429
- wppaOvlAnimSpeed = '.wppa_opt( 'ovl_anim' ).',
430
- wppaOvlSlideSpeed = '.wppa_opt( 'ovl_slide' ).',
431
- wppaVer4WindowWidth = 800,
432
- wppaVer4WindowHeight = 600,
433
- wppaOvlShowCounter = '.( wppa_switch( 'ovl_show_counter') ? 'true' : 'false' ).',
434
- '.( wppa_opt( 'fontfamily_lightbox' ) ? 'wppaOvlFontFamily = "'.wppa_opt( 'fontfamily_lightbox' ).'",' : '').'
435
- wppaOvlFontSize = "'.$fontsize_lightbox.'",
436
- '.( wppa_opt( 'fontcolor_lightbox' ) ? 'wppaOvlFontColor = "'.wppa_opt( 'fontcolor_lightbox' ).'",' : '').'
437
- '.( wppa_opt( 'fontweight_lightbox' ) ? 'wppaOvlFontWeight = "'.wppa_opt( 'fontweight_lightbox' ).'",' : '').'
438
- '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'",' : '').'
439
- wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).',
440
- wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).',
441
- wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).',
442
- wppaIsMobile = '.( wppa_is_mobile() ? 'true' : 'false' ).',
443
- wppaIsIpad = '.( wppa_is_ipad() ? 'true' : 'false' ).',
444
- wppaOvlIconSize = "'.wppa_opt( 'nav_icon_size_lightbox' ).'px",
445
- wppaOvlBrowseOnClick = '.( wppa_switch( 'ovl_browse_on_click' ) ? 'true' : 'false' ).',
446
- wppaOvlGlobal = ' . ( $lb_global ? '"' . $lb_global . '"' : 'false' ) . ',
447
- wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/",
448
- wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/",
449
- wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/",
450
- wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/",
451
- wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'",
452
- wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'",
453
- wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'",
454
- wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'",
455
- wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'",
456
- wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";';
457
-
458
- // Tinymce photo
459
- if ( wppa_switch( 'photo_shortcode_enabled' ) ) {
460
- $id = $wpdb->get_var( "SELECT id FROM $wpdb->wppa_photos
461
- WHERE ext <> 'xxx'
462
- AND panorama = 0
463
- ORDER BY timestamp DESC
464
- LIMIT 1" );
465
-
466
- // Fake we are in a widget, to prevent wppa_get_picture_html() from bumping viewcount
467
- wppa( 'in_widget', true );
468
-
469
- $result .= '
470
- wppaShortcodeTemplate = "' . esc_js( wppa_get_picture_html( array( 'id' => $id, 'type' => 'sphoto' ) ) ) . '";
471
- wppaShortcodeTemplateId = "' . $id . '.' . wppa_get_photo_item( $id, 'ext' ) . '";';
472
-
473
- // Reset faked widget
474
- wppa( 'in_widget', false );
475
- }
476
-
477
- // The photo views cache
478
- if ( isset( $wppa_session['photo'] ) ) {
479
- foreach ( array_keys( $wppa_session['photo'] ) as $p ) {
480
- $result .= '
481
- wppaPhotoView[' . $p . '] = true;';
482
- }
483
- }
484
-
485
- // Format
486
- $result = wppa_compress_js( $result );
487
- $result = '
 
 
 
488
  <!-- wppa js inits -->
489
  <script>
490
  ' . $result . '
491
  </script>
492
  <!-- End wppa js inits -->
493
  ';
494
- echo $result;
495
  }
496
  add_action( 'wp_head', 'wppa_initialize_javascript', 2 );
497
  add_action( 'admin_head', 'wppa_initialize_javascript', 2 );
498
 
499
  function wppa_thumb_asp() {
500
 
501
- $aspect = 1;
502
- if ( wppa_opt( 'thumb_aspect' ) != '0:0:none' ) {
503
- $t = explode( ':', wppa_opt( 'thumb_aspect' ) );
504
- $aspect = $t[0] / $t[1];
505
- }
506
- elseif ( wppa_opt( 'resize_to' ) != '-1' && wppa_opt( 'resize_to' ) != '0' ) {
507
- $t = explode( 'x', wppa_opt( 'resize_to' ) );
508
- $aspect = $t[1] / $t[0];
509
- }
510
- else {
511
- $aspect = wppa_opt( 'maxheight' ) / wppa_opt( 'fullsize' );
512
- }
513
- return $aspect;
514
  }
515
 
516
  function wppa_fbw() {
517
 
518
- if ( is_numeric( wppa_opt( 'fullimage_border_width' ) ) ) {
519
- $fbw = wppa_opt( 'fullimage_border_width' ) + '1';
520
- }
521
- else {
522
- $fbw = '0';
523
- }
524
- return $fbw;
525
  }
526
 
527
  /* LOAD JAVASCRIPT */
@@ -533,84 +536,84 @@ global $wppa_api_version;
533
  global $wppa_lang;
534
  global $wppa_opt;
535
 
536
- $footer = wppa_is_defer();
537
-
538
- // WPPA+ Javascript files.
539
- // All wppa+ js files come in 2 flavours: the normal version and a minified version.
540
- // If the minified version is available, it will be loaded, else the normal version.
541
- // If you want to debug js, just delete the minified version; this will cause the normal
542
- // - readable - version to be loaded.
543
-
544
- // The js dependancies
545
- $js_depts = array( 'jquery',
546
- 'jquery-form',
547
- 'jquery-masonry',
548
- 'jquery-ui-dialog',
549
- );
550
-
551
- // First see if an 'all' file is present. This is to save http requests
552
- $all_file = dirname( __FILE__ ) . '/js/wppa-all.js';
553
- if ( wppa_is_file( $all_file ) ) {
554
- $js_ver = date( "ymd-Gis", filemtime( $all_file ) );
555
- wp_enqueue_script( 'wppa', WPPA_URL . '/js/wppa-all.js', $js_depts, $js_ver, $footer );
556
- }
557
-
558
- // No all file, do them one by one
559
- else {
560
- $js_files = array(
561
- 'wppa-utils',
562
- 'wppa',
563
- 'wppa-slideshow',
564
- 'wppa-ajax-front',
565
- 'wppa-lightbox',
566
- 'wppa-popup',
567
- 'wppa-touch',
568
- 'wppa-zoom',
569
- 'wppa-spheric',
570
- );
571
-
572
- foreach ( array_keys( $js_files ) as $idx ) {
573
- if ( is_file( dirname( __FILE__ ) . '/js/' . $js_files[$idx] . '.min.js' ) ) {
574
- $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.min.js' ) );
575
- wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.min.js', $js_depts, $js_ver, $footer );
576
- }
577
- else {
578
- $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.js' ) );
579
- wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.js', $js_depts, $js_ver, $footer );
580
- }
581
- }
582
- }
583
-
584
- // google maps
585
- if ( wppa_switch( 'save_gpx' ) && strpos( wppa_opt( 'custom_content' ), 'w#location' ) !== false ) {
586
- $key = wppa_opt( 'map_apikey' );
587
- wp_enqueue_script( 'wppa-geo',
588
- 'https://maps.googleapis.com/maps/api/js?' . ( $key ? 'key=' . $key : 'v=3.exp' ),
589
- '',
590
- $wppa_api_version,
591
- $footer );
592
- }
593
-
594
- // Nicescroller
595
- if ( ! wppa_is_mobile() && ( wppa_switch( 'nicescroll' ) || wppa_switch( 'nicescroll_window' ) || wppa_switch( 'load_nicescroller' ) ) ) {
596
- $nice_url = WPPA_URL . '/vendor/nicescroll/jquery.nicescroll.min.js';
597
- wp_enqueue_script( 'nicescrollr-inc-nicescroll-min-js', $nice_url, $js_depts, $wppa_api_version, $footer );
598
- $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
599
- wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
600
- }
601
-
602
- // Easing we need, borrow it from nicescroller if not already loaded
603
- else {
604
- $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
605
- wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
606
- }
607
-
608
- // Panorama
609
- if ( wppa_switch( 'enable_panorama' ) ) {
610
- $three_url = WPPA_URL . '/vendor/three/three.min.js';
611
- $ver = '122';
612
- wp_enqueue_script( 'wppa-three-min-js', $three_url, $js_depts, $wppa_api_version, $footer );
613
- }
614
 
615
  }
616
 
@@ -620,42 +623,42 @@ function wppa_js( $txt ) {
620
  global $wppa_js_page_data;
621
  global $wppa_script_open;
622
 
623
- // Validate input
624
- if ( wppa_switch( 'allow_debug' ) ) {
625
- $i = 0;
626
- $arr = array( '[' => 0, ']' => 0, '(' => 0, ')' => 0, '{' => 0, '}' => 0 );
627
- $t = array_keys( $arr );
628
- while ( $i < strlen( $txt ) ) {
629
- $c = substr( $txt, $i, 1 );
630
- if ( in_array( $c, $t ) ) $arr[$c]++;
631
- $i++;
632
- }
633
- for ( $i = 0; $i < 6; $i += 2 ) {
634
- if ( $arr[$t[$i]] != $arr[$t[$i + 1]] ) {
635
- wppa_log( 'err', 'Unmatched ' . $t[$i] . ' - ' . $t[$i + 1] . ' in ' . $txt . ' (wppa_js)', true );
636
- }
637
- }
638
- if ( substr( $txt, -1 ) != ';' ) {
639
- wppa_log( 'err', 'Missing ; in ' . $txt . ' (wppa_js)', true );
640
- $txt .= ';';
641
- }
642
- }
643
-
644
- // Do it
645
- if ( ! wppa_is_defer() || wppa_is_caching() ) {
646
- wppa_out( '
647
  <script>' . $txt . '</script>' );
648
- return;
649
- }
650
-
651
- if ( ! $wppa_script_open ) {
652
- $wppa_js_page_data = $txt;
653
- $wppa_script_open = true;
654
- }
655
- else {
656
- $wppa_js_page_data .= '
657
  ' . $txt;
658
- }
659
  }
660
 
661
  // Output page specific script in the footer.
@@ -666,41 +669,41 @@ function wppa_print_psjs() {
666
  global $wppa_js_page_data;
667
  global $wppa_script_open;
668
 
669
- if ( $wppa_js_page_data ) {
670
- echo '
671
  <!-- WPPA Page specific js -->
672
  <script>' . wppa_compress_js( $wppa_js_page_data ) . '
673
  </script>
674
  <!-- End WPPA Page specific js -->
675
  ';
676
 
677
- $wppa_js_page_data = '';
678
- $wppa_script_open = false;
679
- }
680
  }
681
 
682
  // Compress javascript
683
  function wppa_compress_js( $txt ) {
684
 
685
- $result = $txt;
686
- $result = str_replace( "\t", "", $result );
687
- $result = str_replace( "\r\n", "", $result );
688
- $result = str_replace( " = ", "=", $result );
689
- $result = str_replace( "; ", ";", $result );
690
- $result = str_replace( "/*", "\r\n/*", $result );
691
 
692
- return $result;
693
  }
694
 
695
  // Decide if we do defer js
696
  function wppa_is_defer() {
697
 
698
- return true;
699
 
700
- if ( is_admin() ) return true;
701
- if ( ! wppa_switch( 'defer_javascript' ) ) return false;
702
- if ( wppa( 'ajax' ) ) return false;
703
- if ( wppa( 'cron' ) ) return false;
704
- if ( wppa( 'is_slide' ) || wppa( 'is_slideonly' ) || wppa( 'is_filmonly' ) ) return false;
705
- return true;
706
  }
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
+ * Version 8.1.00.005
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
14
  global $wppa_session;
15
  global $wpdb;
16
 
17
+ /* wppa-utils.js */
18
+ $result = '
19
+ wppaDebugCounter = 0,';
20
+
21
+ /* wppa.js */
22
+ $result .= '
23
+ wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime),
24
+ wppaOvlActivePanorama = 0,';
25
+
26
+ /* Global and slideshow vars */
27
+ $result .= '
28
+ wppaFullValign = [],
29
+ wppaFullHalign = [],
30
+ wppaFullFrameDelta = [],
31
+ wppaAutoColumnWidth = [],
32
+ wppaAutoColumnFrac = [],
33
+ wppaFadeInAfterFadeOut = false,
34
+ wppaPreambule = [],
35
+ wppaThumbnailPitch = [],
36
+ wppaFilmStripLength = [],
37
+ wppaFilmStripMargin = [],
38
+ wppaFilmStripAreaDelta = [],
39
+ wppaIsMini = [],
40
+ wppaPortraitOnly = [],
41
+ wppaLightBox = [],
42
+ wppaSlideInitRunning = [],
43
+ wppaSlidePause = [],
44
+ wppaSlideBlank = [],
45
+ wppaFilmPageSize = [],
46
+ wppaAspectRatio = [],
47
+ wppaFullSize = [],
48
+ wppaLightboxSingle = [],
49
+ wppaSiteUrl = "' . site_url() . '",
50
+ wppaMasonryCols = [],
51
+ wppaVideoPlaying = [],
52
+ wppaAudioPlaying = [],
53
+ wppaHis = 0,
54
+ wppaStartHtml = [],
55
+ wppaCanAjaxRender = false,
56
+ wppaCanPushState = false,
57
+ wppaMaxOccur = 0,
58
+ wppaFirstOccur = 0,
59
+ wppaUsePhotoNamesInUrls = false,
60
+ wppaShareHideWhenRunning = false,
61
+ wppaCommentRequiredAfterVote = true,
62
+ wppaTopMoc = 0,
63
+ wppaColWidth = [],
64
+ wppaMCRWidth = [],
65
+ wppaFotomotoHideWhenRunning = false,
66
+ wppaFotomotoMinWidth = 400,
67
+ wppaPhotoView = [],
68
+ wppaBackgroundColorImage = "",
69
+ wppaPopupLinkType = "",
70
+ wppaPopupOnclick = [],
71
+ wppaThumbTargetBlank = false,
72
+ wppaRel = "rel",
73
+ wppaEditPhotoWidth = "960",
74
+ wppaThemeStyles = "",
75
+ wppaStickyHeaderHeight = 0,
76
+ wppaModalBgColor = "#ffffff",
77
+ wppaBoxRadius = 0,
78
+ wppaUploadEdit = "none",
79
+ wppaPageArg = "",
80
+ wppaCoverImageResponsive = [],
81
+ wppaSearchBoxSelItems = [],
82
+ wppaSlideWrap = [],
83
+ wppaHideRightClick = false,
84
+ wppaGeoZoom = 10,
85
+ wppaAreaMaxFrac = 1.0,
86
+ wppaNiceScroll = false,
87
+ wppaIconSizeNormal = "default",
88
+ wppaIconSizeStars = 24,
89
+ wppaFilmInit = [],
90
+ wppaResizeEndDelay = 200,
91
+ wppaScrollEndDelay = 200,
92
+ wppaArtmonkeyFileNotSource = false,
93
+ wppaRequestInfoDialogText = "Please specify your question",
94
+ wppaGlobalFsIconSize = 32,
95
+ wppaFsFillcolor = "#999999",
96
+ wppaFsBgcolor = "transparent",
97
+ wppaSlideLinkEqual = ' . ( wppa_opt( 'slideshow_linktype' ) == 'same' ? 'true' : 'false' ) . ',
98
+ _wppaId = [],
99
+ _wppaRealId = [],
100
+ _wppaAvg = [],
101
+ _wppaDisc = [],
102
+ _wppaMyr = [],
103
+ _wppaVRU = [],
104
+ _wppaLinkUrl = [],
105
+ _wppaLinkTitle = [],
106
+ _wppaLinkTarget = [],
107
+ _wppaCommentHtml = [],
108
+ _wppaIptcHtml = [],
109
+ _wppaExifHtml = [],
110
+ _wppaToTheSame = false,
111
+ _wppaSlides = [],
112
+ _wppaNames = [],
113
+ _wppaFilmThumbTitles = [],
114
+ _wppaFullNames = [],
115
+ _wppaDsc = [],
116
+ _wppaOgDsc = [],
117
+ _wppaCurIdx = [],
118
+ _wppaNxtIdx = [],
119
+ _wppaTimeOut = [],
120
+ _wppaSSRuns = [],
121
+ _wppaFg = [],
122
+ _wppaTP = [],
123
+ _wppaIsBusy = [],
124
+ _wppaFirst = [],
125
+ _wppaVoteInProgress = false,
126
+ _wppaTextDelay = ' . wppa_opt( 'animation_speed' ) . ',
127
+ _wppaUrl = [],
128
+ _wppaSkipRated = [],
129
+ _wppaLbTitle = [],
130
+ _wppaStateCount = 0,
131
+ _wppaDidGoto = [],
132
+ _wppaShareUrl = [],
133
+ _wppaShareHtml = [],
134
+ _wppaFilmNoMove = [],
135
+ _wppaHiresUrl = [],
136
+ _wppaIsVideo = [],
137
+ _wppaVideoHtml = [],
138
+ _wppaAudioHtml = [],
139
+ _wppaVideoNatWidth = [],
140
+ _wppaVideoNatHeight = [],
141
+ _wppaWaitTexts = [],
142
+ _wppaImageAlt = [],
143
+ _wppaLastIdx = [],
144
+ _wppaStopping = [],
145
+ _wppaFilename = [],
146
+ _wppaLat = [],
147
+ _wppaLon = [],
148
+ __wppaOverruleRun = false,
149
+ wppaOvlIdx = 0,
150
+ wppaOvlFirst = true,
151
+ wppaOvlKbHandler = "",
152
+ wppaOvlSizeHandler = "",
153
+ wppaOvlPadTop = 5,
154
+ wppaOvlRunning = false,
155
+ wppaOvlVideoPlaying = false,
156
+ wppaOvlAudioPlaying = false,
157
+ wppaOvlShowLegenda = true,
158
+ wppaOvlShowStartStop = true,
159
+ wppaOvlRadius = 0,
160
+ wppaOvlBorderWidth = 16,
161
+ wppaOvlOpen = false,
162
+ wppaOvlClosing = false,
163
+ wppaThumbSize = 100,
164
+ wppaTfMargin = 4,
165
+ wppaZoomData = [],
166
+ wppaSphericData = [],
167
+ wppaOvlTxtHeight = 36,
168
+ wppaOvlOpacity = 0.8,
169
+ wppaOvlOnclickType = "none",
170
+ wppaOvlTheme = "black",
171
+ wppaOvlAnimSpeed = 300,
172
+ wppaOvlSlideSpeed = 3000,
173
+ wppaOvlFontFamily = "Helvetica",
174
+ wppaOvlFontSize = "10",
175
+ wppaOvlFontColor = "",
176
+ wppaOvlFontWeight = "bold",
177
+ wppaOvlLineHeight = "12",
178
+ wppaOvlShowCounter = true,
179
+ wppaOvlIsVideo = false,
180
+ wppaShowLegenda = "",
181
+ wppaOvlFsPhotoId = 0,
182
+ wppaPhotoId = 0,
183
+ wppaOvlVideoStart = false,
184
+ wppaOvlAudioStart = false,
185
+ wppaLastIptc = "",
186
+ wppaLastExif = "",
187
+ wppaIsIpad = false,
188
+ wppaSvgFillcolor = "gray",
189
+ wppaSvgBgcolor = "transparent",
190
+ wppaSvgCornerStyle = "light",
191
+ wppaCoverSpacing = 8,
192
+ wppaEasingSlide = "' . wppa_opt( 'easing_slide' ) . '",
193
+ wppaEasingLightbox = "' . wppa_opt( 'easing_lightbox' ) . '",
194
+ wppaEasingPopup = "' . wppa_opt( 'easing_popup' ) . '",
195
+ wppaEasingDefault = "swing",';
196
+
197
+ /* wppa-ajax-front.js */
198
+ $result .= '
199
+ wppaRenderAdd = false,
200
+ wppaWaitForCounter = 0,';
201
+
202
+ /* wppa-lightbox.js */
203
+ $result .= '
204
+ wppaIsVideo = false,
205
+ wppaHasAudio = false,
206
+ wppaOvlIsPdf = false,
207
+ wppaOvlImgs = [],
208
+ wppaKbHandlerInstalled = false,
209
+ wppaOvlCurIdx = 0,
210
+ wppaOvlSvgInverse = false,
211
+ wppaOvlHasPanoramas = false,
212
+ wppaGlobalOvlPanoramaId = 0,
213
+ wppaOvlBrowseOnClick = false,
214
+ wppaOvlGlobal = false,
215
+ wppaWppaOverlayActivated = false,
216
+ wppaOvlTimer = 0,
217
+ wppaSavedContainerWidth = 0,
218
+ wppaSavedContainerHeight = 0,';
219
+
220
+ /* wppa-touch.js */
221
+ $result .= '
222
+ wppaTriggerElementID = null,
223
+ wppaFingerCount = 0,
224
+ wppaStartX = 0,
225
+ wppaStartY = 0,
226
+ wppaCurX = 0,
227
+ wppaCurY = 0,
228
+ wppaDeltaX = 0,
229
+ wppaDeltaY = 0,
230
+ wppaHorzDiff = 0,
231
+ wppaVertDiff = 0,
232
+ wppaMinLength = 72,
233
+ wppaSwipeLength = 0,
234
+ wppaSwipeAngle = null,
235
+ wppaSwipeDirection = null,
236
+ wppaSwipeOnLightbox = false,
237
+ wppaSwipeMocc = 0,
238
+ wppaMobileTimeStart = 0,';
239
+
240
+ /* admin-scripts.js */
241
+ $result .= '
242
+ wppa_moveup_url = "#",
243
+ wppa_import = "' . esc_js( __( 'Import', 'wp-photo-album-plus' ) ) . '",
244
+ wppa_update = "' . esc_js( __( 'Update', 'wp-photo-album-plus' ) ) . '",
245
+ wppaUploadToThisAlbum = "' . esc_js( __( 'Upload to this album', 'wp-photo-album-plus' ) ) . '",
246
+ wppaCloseText = "' . esc_js( __( 'Close!', 'wp-photo-album-plus' ) ) . '",
247
+ wppaCropper = [],';
248
+
249
+ // Find ajax url
250
+ $can_ajax = 'true';
251
+ switch ( wppa_opt( 'ajax_method' ) ) {
252
+ case 'normal':
253
+ if ( is_admin() ) $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
254
+ else $ajax_url = site_url() . '/wppaajax';
255
+ break;
256
+ case 'wppaajax':
257
+ $ajax_url = site_url() . '/wppaajax';
258
+ break;
259
+ case 'admin':
260
+ $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
261
+ break;
262
+ case 'extern':
263
+ if ( is_admin() ) $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
264
+ else $ajax_url = WPPA_URL . '/wppa-ajax-front.php';
265
+ break;
266
+ case 'none':
267
+ $ajax_url = site_url() . '/wp-admin/admin-ajax.php';
268
+ $can_ajax = 'false'; // works on frontend only
269
+ break;
270
+ }
271
+
272
+ /* Language and config specific inits */
273
+ $result .= '
274
+ wppaImageDirectory = "' . wppa_get_imgdir() . '",
275
+ wppaWppaUrl = "' . wppa_get_wppa_url() . '",
276
+ wppaIncludeUrl = "' . trim( includes_url(), '/' ) . '",
277
+ wppaAjaxUrl = "' . $ajax_url . '",
278
+ wppaUploadUrl = "' . WPPA_UPLOAD_URL . '",
279
+ wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ',
280
+ wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ',
281
+ wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '",
282
+ wppaAudioHeight = ' . wppa_get_audio_control_height() . ',
283
+ wppaFilmThumbTitle = "' . ( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __( 'Double click to start/stop slideshow running', 'wp-photo-album-plus' ) ) . '",
284
+ wppaClickToView = "' . ( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __( 'Click to view', 'wp-photo-album-plus' ) ) . '",
285
+ wppaLang = "' . $wppa_lang . '",
286
+ wppaVoteForMe = "' . __( wppa_opt( 'vote_button_text' ), 'wp-photo-album-plus' ) . '",
287
+ wppaVotedForMe = "' . __( wppa_opt( 'voted_button_text' ), 'wp-photo-album-plus' ) . '",
288
+ wppaDownLoad = "' . __( 'Download', 'wp-photo-album-plus' ) . '",
289
+ wppaSlideShow = "' . __( 'Slideshow', 'wp-photo-album-plus' ) . '",
290
+ wppaPhoto = "' . __( 'Photo', 'wp-photo-album-plus' ) . '",
291
+ wppaOf = "' . __( 'of', 'wp-photo-album-plus' ) . '",
292
+ wppaNextPhoto = "' . __( 'Next photo', 'wp-photo-album-plus' ) . '",
293
+ wppaPreviousPhoto = "' . __( 'Previous photo', 'wp-photo-album-plus' ) . '",
294
+ wppaNextP = "' . __( 'Next', 'wp-photo-album-plus' ) . '",
295
+ wppaPrevP = "' . __( 'Prev.', 'wp-photo-album-plus' ) . '",
296
+ wppaAvgRating = "' . __( 'Average&nbsp;rating', 'wp-photo-album-plus' ) . '",
297
+ wppaMyRating = "' . __( 'My&nbsp;rating', 'wp-photo-album-plus' ) . '",
298
+ wppaAvgRat = "' . __( 'Avg.', 'wp-photo-album-plus' ) . '",
299
+ wppaMyRat = "' . __( 'Mine', 'wp-photo-album-plus' ) . '",
300
+ wppaDislikeMsg = "' . __( 'You marked this image as inappropriate.', 'wp-photo-album-plus' ) . '",
301
+ wppaStart = "' . __( 'Start', 'wp-photo-album-plus' ) . '",
302
+ wppaStop = "' . __( 'Stop', 'wp-photo-album-plus' ) . '",
303
+ wppaPleaseName = "' . __( 'Please enter your name', 'wp-photo-album-plus' ) . '",
304
+ wppaPleaseEmail = "' . __( 'Please enter a valid email address', 'wp-photo-album-plus' ) . '",
305
+ wppaPleaseComment = "' . __( 'Please enter a comment', 'wp-photo-album-plus' ) . '",
306
+ wppaProcessing = "' . __( 'Processing...', 'wp-photo-album-plus' ) . '",
307
+ wppaDone = "' . __( 'Done!', 'wp-photo-album-plus' ) . '",
308
+ wppaUploadFailed = "' . __( 'Upload failed', 'wp-photo-album-plus' ) . '",
309
+ wppaServerError = "' . __( 'Server error.', 'wp-photo-album-plus' ) . '",
310
+ wppaGlobalFsIconSize = "'.wppa_opt( 'nav_icon_size_global_fs' ) . '",
311
+ wppaFsFillcolor = "'.wppa_opt( 'fs_svg_color' ) . '",
312
+ wppaFsBgcolor = "'.wppa_opt( 'fs_svg_bg_color' ) . '",
313
+ wppaFsPolicy = "' . ( is_admin() ? 'none' : wppa_opt( 'fs_policy' ) ) . '",
314
+ wppaNiceScroll = ' . ( wppa_switch( 'nicescroll' ) && ! wppa_is_mobile() ? 'true' : 'false' ) . ',
315
+ wppaNieScrollOpts = {' . wppa_opt( 'nicescroll_opts' ) . '},
316
+ wppaVersion = "'.$wppa_api_version.'",
317
+ wppaDebug = '.( wppa_switch( 'allow_debug' ) ? 'true' : 'false' ) . ',
318
+ wppaBackgroundColorImage = "'.wppa_opt( 'bgcolor_img' ) . '",
319
+ wppaPopupLinkType = "'.wppa_opt( 'thumb_linktype' ) . '",
320
+ wppaAnimationType = "'.wppa_opt( 'animation_type' ) . '",
321
+ wppaAnimationSpeed = '.wppa_opt( 'animation_speed' ) . ',
322
+ wppaThumbnailAreaDelta = '.wppa_get_thumbnail_area_delta() . ',
323
+ wppaTextFrameDelta = '.wppa_get_textframe_delta() . ',
324
+ wppaBoxDelta = '.wppa_get_box_delta() . ',
325
+ wppaSlideShowTimeOut = '.wppa_opt( 'slideshow_timeout' ) . ',
326
+ wppaFilmShowGlue = '.( wppa_switch( 'film_show_glue' ) ? 'true' : 'false' ) . ',
327
+ wppaMiniTreshold = '.( wppa_opt( 'mini_treshold' ) ? wppa_opt( 'mini_treshold' ) : '0' ) . ',
328
+ wppaRatingOnce = '.( wppa_switch( 'rating_change' ) || wppa_switch( 'rating_multi' ) ? 'false' : 'true' ) . ',
329
+ wppaHideWhenEmpty = '.( wppa_switch( 'hide_when_empty' ) ? 'true' : 'false' ) . ',
330
+ wppaBGcolorNumbar = "'.wppa_opt( 'bgcolor_numbar' ) . '",
331
+ wppaBcolorNumbar = "'.wppa_opt( 'bcolor_numbar' ) . '",
332
+ wppaBGcolorNumbarActive = "'.wppa_opt( 'bgcolor_numbar_active' ) . '",
333
+ wppaBcolorNumbarActive = "'.wppa_opt( 'bcolor_numbar_active' ) . '",
334
+ wppaFontFamilyNumbar = "'.wppa_opt( 'fontfamily_numbar' ) . '",
335
+ wppaFontSizeNumbar = "'.wppa_opt( 'fontsize_numbar' ) . 'px",
336
+ wppaFontColorNumbar = "'.wppa_opt( 'fontcolor_numbar' ) . '",
337
+ wppaFontWeightNumbar = "'.wppa_opt( 'fontweight_numbar' ) . '",
338
+ wppaFontFamilyNumbarActive = "'.wppa_opt( 'fontfamily_numbar_active' ) . '",
339
+ wppaFontSizeNumbarActive = "'.wppa_opt( 'fontsize_numbar_active' ) . 'px",
340
+ wppaFontColorNumbarActive = "'.wppa_opt( 'fontcolor_numbar_active' ) . '",
341
+ wppaFontWeightNumbarActive = "'.wppa_opt( 'fontweight_numbar_active' ) . '",
342
+ wppaNumbarMax = "'.wppa_opt( 'numbar_max' ) . '",
343
+ wppaNextOnCallback = '.( wppa_switch( 'next_on_callback' ) ? 'true' : 'false' ) . ',
344
+ wppaStarOpacity = '.str_replace(',', '.',( wppa_opt( 'star_opacity' )/'100' )) . ',
345
+ wppaEmailRequired = "'.wppa_opt( 'comment_email_required' ) . '",
346
+ wppaSlideBorderWidth = '.wppa_fbw().',
347
+ wppaAllowAjax = '.$can_ajax.',
348
+ wppaUsePhotoNamesInUrls = '.( wppa_switch( 'use_photo_names_in_urls' ) ? 'true' : 'false' ) . ',
349
+ wppaThumbTargetBlank = '.( wppa_switch( 'thumb_blank' ) ? 'true' : 'false' ) . ',
350
+ wppaRatingMax = '.wppa_opt( 'rating_max' ) . ',
351
+ wppaRatingDisplayType = "'.wppa_opt( 'rating_display_type' ) . '",
352
+ wppaRatingPrec = '.wppa_opt( 'rating_prec' ) . ',
353
+ wppaStretch = '.( wppa_switch( 'enlarge' ) ? 'true' : 'false' ) . ',
354
+ wppaMinThumbSpace = '.wppa_opt( 'tn_margin' ) . ',
355
+ wppaThumbSpaceAuto = '.( wppa_switch( 'thumb_auto' ) ? 'true' : 'false' ) . ',
356
+ wppaMagnifierCursor = "'.wppa_opt( 'magnifier' ) . '",
357
+ wppaArtMonkyLink = "'.wppa_opt( 'art_monkey_link' ) . '",
358
+ wppaAutoOpenComments = '.( wppa_switch( 'auto_open_comments' ) ? 'true' : 'false' ) . ',
359
+ wppaUpdateAddressLine = '.( wppa_switch( 'update_addressline' ) ? 'true' : 'false' ) . ',
360
+ wppaSlideSwipe = '.( wppa_switch( 'slide_swipe' ) ? 'true' : 'false' ) . ',
361
+ wppaMaxCoverWidth = '.wppa_opt( 'max_cover_width' ) . ',
362
+ wppaSlideToFullpopup = '.( wppa_opt( 'slideshow_linktype' ) == 'fullpopup' ? 'true' : 'false' ) . ',
363
+ wppaComAltSize = '.wppa_opt( 'comten_alt_thumbsize' ) . ',
364
+ wppaBumpViewCount = '.( wppa_switch( 'track_viewcounts' ) ? 'true' : 'false' ) . ',
365
+ wppaBumpClickCount = '.( wppa_switch( 'track_clickcounts' ) ? 'true' : 'false' ) . ',
366
+ wppaShareHideWhenRunning = '.( wppa_switch( 'share_hide_when_running' ) ? 'true' : 'false' ) . ',
367
+ wppaFotomoto = '.( wppa_switch( 'fotomoto_on' ) ? 'true' : 'false' ) . ',
368
+ wppaArtMonkeyButton = '.( wppa_opt( 'art_monkey_display' ) == 'button' ? 'true' : 'false' ) . ',
369
+ wppaFotomotoHideWhenRunning = '.( wppa_switch( 'fotomoto_hide_when_running' ) ? 'true' : 'false' ) . ',
370
+ wppaCommentRequiredAfterVote = '.( wppa_switch( 'vote_needs_comment' ) ? 'true' : 'false' ) . ',
371
+ wppaFotomotoMinWidth = '.wppa_opt( 'fotomoto_min_width' ) . ',
372
+ wppaShortQargs = '.( wppa_switch( 'use_short_qargs' ) ? 'true' : 'false' ) . ',
373
+ wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ) . ',
374
+ wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ) . ',
375
+ wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ) . ',
376
+ wppaRel = "data-rel",
377
+ wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ) . ',
378
+ wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ) . ',
379
+ wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit' ) == 'new' ? 500 : 960) . '",
380
+ wppaThemeStyles = "'.(wppa_switch( 'upload_edit_theme_css' ) ? get_stylesheet_uri() : '' ) . '",
381
+ wppaStickyHeaderHeight = '.wppa_opt( 'sticky_header_size' ) . ',
382
+ wppaRenderModal = ' . ( wppa_switch( 'ajax_render_modal' ) ? 'true' : 'false' ) . ',
383
+ wppaModalQuitImg = "url(' . wppa_get_imgdir( 'smallcross-' . wppa_opt( 'ovl_theme' ) . '.gif' ) . ' )",
384
+ wppaBoxRadius = "' . wppa_opt( 'bradius' ) . '",
385
+ wppaModalBgColor = "' . wppa_opt( 'bgcolor_modal' ) . '",
386
+ wppaUploadEdit = "' . wppa_opt( 'upload_edit' ) . '",
387
+ wppaSvgFillcolor = "' . wppa_opt( 'svg_color' ) . '",
388
+ wppaSvgBgcolor = "' . wppa_opt( 'svg_bg_color' ) . '",
389
+ wppaOvlSvgFillcolor = "' . wppa_opt( 'ovl_svg_color' ) . '",
390
+ wppaOvlSvgBgcolor = "' . wppa_opt( 'ovl_svg_bg_color' ) . '",
391
+ wppaSvgCornerStyle = "' . wppa_opt( 'icon_corner_style' ) . '",
392
+ wppaHideRightClick = ' . ( wppa_switch( 'no_rightclick' ) ? 'true' : 'false' ) . ',
393
+ wppaGeoZoom = ' . wppa_opt( 'geo_zoom' ) . ',
394
+ wppaLazyLoad = ' . ( wppa_lazy() ? 'true' : 'false' ) . ',
395
+ wppaAreaMaxFrac = ' . ( wppa_opt( 'area_size' ) < 1 ? wppa_opt( 'area_size' ) : 1.0 ) . ',
396
+ wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '",
397
+ wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '",
398
+ wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ',
399
+ wppaExtendedResizeCount = ' . wppa_opt( 'extended_resize_count' ) . ',
400
+ wppaExtendedResizeDelay = ' . wppa_opt( 'extended_resize_delay' ) . ',
401
+ wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ',
402
+ wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ',
403
+ wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ',
404
+ wppaAjaxScroll = ' . ( wppa_switch( 'ajax_scroll' ) && ! is_admin() ? 'true' : 'false' ) . ',
405
+ wppaThumbSize = ' . wppa_opt( 'thumbsize' ) . ',
406
+ wppaTfMargin = ' . wppa_opt( 'tn_margin' ) . ',
407
+ wppaArtmonkeyFileNotSource = ' . ( wppa_opt( 'art_monkey_link' ) == 'file' &&
408
+ wppa_opt( 'art_monkey_display' ) == 'text' &&
409
+ ! wppa_switch( 'artmonkey_use_source' ) ? 'true' : 'false' ) . ',
410
+ wppaRequestInfoDialogText = "' . wppa_opt( 'request_info_text' ) . '",
411
+ wppaThumbAspect = ' . wppa_thumb_asp() . ',';
412
+
413
+ /* Lightbox vars */
414
+ $fontsize_lightbox = wppa_opt( 'fontsize_lightbox' ) ? wppa_opt( 'fontsize_lightbox' ) : '10';
415
+ $d = wppa_switch( 'ovl_show_counter') ? 1 : 0;
416
+ $ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
417
+ $lb_global = '';
418
+ if ( wppa_switch( 'lightbox_global' ) && ! is_admin() ) {
419
+ if ( wppa_switch( 'lightbox_global_set' ) ) {
420
+ $lb_global = 'wppa[single]';
421
+ }
422
+ else {
423
+ $lb_global = 'wppa';
424
+ }
425
+ }
426
+
427
+ $result .= '
428
+ wppaOvlTxtHeight = "'.$ovlh.'",
429
+ wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).',
430
+ wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'",
431
+ wppaOvlTheme = "'.wppa_opt( 'ovl_theme' ).'",
432
+ wppaOvlAnimSpeed = '.wppa_opt( 'ovl_anim' ).',
433
+ wppaOvlSlideSpeed = '.wppa_opt( 'ovl_slide' ).',
434
+ wppaVer4WindowWidth = 800,
435
+ wppaVer4WindowHeight = 600,
436
+ wppaOvlShowCounter = '.( wppa_switch( 'ovl_show_counter') ? 'true' : 'false' ).',
437
+ '.( wppa_opt( 'fontfamily_lightbox' ) ? 'wppaOvlFontFamily = "'.wppa_opt( 'fontfamily_lightbox' ).'",' : '').'
438
+ wppaOvlFontSize = "'.$fontsize_lightbox.'",
439
+ '.( wppa_opt( 'fontcolor_lightbox' ) ? 'wppaOvlFontColor = "'.wppa_opt( 'fontcolor_lightbox' ).'",' : '').'
440
+ '.( wppa_opt( 'fontweight_lightbox' ) ? 'wppaOvlFontWeight = "'.wppa_opt( 'fontweight_lightbox' ).'",' : '').'
441
+ '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'",' : '').'
442
+ wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).',
443
+ wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).',
444
+ wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).',
445
+ wppaIsMobile = '.( wppa_is_mobile() ? 'true' : 'false' ).',
446
+ wppaIsIpad = '.( wppa_is_ipad() ? 'true' : 'false' ).',
447
+ wppaOvlIconSize = "'.wppa_opt( 'nav_icon_size_lightbox' ).'px",
448
+ wppaOvlBrowseOnClick = '.( wppa_switch( 'ovl_browse_on_click' ) ? 'true' : 'false' ).',
449
+ wppaOvlGlobal = ' . ( $lb_global ? '"' . $lb_global . '"' : 'false' ) . ',
450
+ wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/",
451
+ wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/",
452
+ wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/",
453
+ wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/",
454
+ wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'",
455
+ wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'",
456
+ wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'",
457
+ wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'",
458
+ wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'",
459
+ wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";';
460
+
461
+ // Tinymce photo
462
+ if ( wppa_switch( 'photo_shortcode_enabled' ) ) {
463
+ $id = $wpdb->get_var( "SELECT id FROM $wpdb->wppa_photos
464
+ WHERE ext <> 'xxx'
465
+ AND panorama = 0
466
+ ORDER BY timestamp DESC
467
+ LIMIT 1" );
468
+
469
+ // Fake we are in a widget, to prevent wppa_get_picture_html() from bumping viewcount
470
+ wppa( 'in_widget', true );
471
+
472
+ $result .= '
473
+ wppaShortcodeTemplate = "' . esc_js( wppa_get_picture_html( array( 'id' => $id, 'type' => 'sphoto' ) ) ) . '";
474
+ wppaShortcodeTemplateId = "' . $id . '.' . wppa_get_photo_item( $id, 'ext' ) . '";';
475
+
476
+ // Reset faked widget
477
+ wppa( 'in_widget', false );
478
+ }
479
+
480
+ // The photo views cache
481
+ if ( isset( $wppa_session['photo'] ) ) {
482
+ foreach ( array_keys( $wppa_session['photo'] ) as $p ) {
483
+ $result .= '
484
+ wppaPhotoView[' . $p . '] = true;';
485
+ }
486
+ }
487
+
488
+ // Format
489
+ $result = wppa_compress_js( $result );
490
+ $result = '
491
  <!-- wppa js inits -->
492
  <script>
493
  ' . $result . '
494
  </script>
495
  <!-- End wppa js inits -->
496
  ';
497
+ echo $result;
498
  }
499
  add_action( 'wp_head', 'wppa_initialize_javascript', 2 );
500
  add_action( 'admin_head', 'wppa_initialize_javascript', 2 );
501
 
502
  function wppa_thumb_asp() {
503
 
504
+ $aspect = 1;
505
+ if ( wppa_opt( 'thumb_aspect' ) != '0:0:none' ) {
506
+ $t = explode( ':', wppa_opt( 'thumb_aspect' ) );
507
+ $aspect = $t[0] / $t[1];
508
+ }
509
+ elseif ( wppa_opt( 'resize_to' ) != '-1' && wppa_opt( 'resize_to' ) != '0' ) {
510
+ $t = explode( 'x', wppa_opt( 'resize_to' ) );
511
+ $aspect = $t[1] / $t[0];
512
+ }
513
+ else {
514
+ $aspect = wppa_opt( 'maxheight' ) / wppa_opt( 'fullsize' );
515
+ }
516
+ return $aspect;
517
  }
518
 
519
  function wppa_fbw() {
520
 
521
+ if ( is_numeric( wppa_opt( 'fullimage_border_width' ) ) ) {
522
+ $fbw = wppa_opt( 'fullimage_border_width' ) + '1';
523
+ }
524
+ else {
525
+ $fbw = '0';
526
+ }
527
+ return $fbw;
528
  }
529
 
530
  /* LOAD JAVASCRIPT */
536
  global $wppa_lang;
537
  global $wppa_opt;
538
 
539
+ $footer = wppa_is_defer();
540
+
541
+ // WPPA+ Javascript files.
542
+ // All wppa+ js files come in 2 flavours: the normal version and a minified version.
543
+ // If the minified version is available, it will be loaded, else the normal version.
544
+ // If you want to debug js, just delete the minified version; this will cause the normal
545
+ // - readable - version to be loaded.
546
+
547
+ // The js dependancies
548
+ $js_depts = array( 'jquery',
549
+ 'jquery-form',
550
+ 'jquery-masonry',
551
+ 'jquery-ui-dialog',
552
+ );
553
+
554
+ // First see if an 'all' file is present. This is to save http requests
555
+ $all_file = dirname( __FILE__ ) . '/js/wppa-all.js';
556
+ if ( wppa_is_file( $all_file ) ) {
557
+ $js_ver = date( "ymd-Gis", filemtime( $all_file ) );
558
+ wp_enqueue_script( 'wppa', WPPA_URL . '/js/wppa-all.js', $js_depts, $js_ver, $footer );
559
+ }
560
+
561
+ // No all file, do them one by one
562
+ else {
563
+ $js_files = array(
564
+ 'wppa-utils',
565
+ 'wppa',
566
+ 'wppa-slideshow',
567
+ 'wppa-ajax-front',
568
+ 'wppa-lightbox',
569
+ 'wppa-popup',
570
+ 'wppa-touch',
571
+ 'wppa-zoom',
572
+ 'wppa-spheric',
573
+ );
574
+
575
+ foreach ( array_keys( $js_files ) as $idx ) {
576
+ if ( is_file( dirname( __FILE__ ) . '/js/' . $js_files[$idx] . '.min.js' ) ) {
577
+ $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.min.js' ) );
578
+ wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.min.js', $js_depts, $js_ver, $footer );
579
+ }
580
+ else {
581
+ $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.js' ) );
582
+ wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.js', $js_depts, $js_ver, $footer );
583
+ }
584
+ }
585
+ }
586
+
587
+ // google maps
588
+ if ( wppa_switch( 'save_gpx' ) && strpos( wppa_opt( 'custom_content' ), 'w#location' ) !== false ) {
589
+ $key = wppa_opt( 'map_apikey' );
590
+ wp_enqueue_script( 'wppa-geo',
591
+ 'https://maps.googleapis.com/maps/api/js?' . ( $key ? 'key=' . $key : 'v=3.exp' ),
592
+ '',
593
+ $wppa_api_version,
594
+ $footer );
595
+ }
596
+
597
+ // Nicescroller
598
+ if ( ! wppa_is_mobile() && ( wppa_switch( 'nicescroll' ) || wppa_switch( 'nicescroll_window' ) || wppa_switch( 'load_nicescroller' ) ) ) {
599
+ $nice_url = WPPA_URL . '/vendor/nicescroll/jquery.nicescroll.min.js';
600
+ wp_enqueue_script( 'nicescrollr-inc-nicescroll-min-js', $nice_url, $js_depts, $wppa_api_version, $footer );
601
+ $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
602
+ wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
603
+ }
604
+
605
+ // Easing we need, borrow it from nicescroller if not already loaded
606
+ else {
607
+ $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
608
+ wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
609
+ }
610
+
611
+ // Panorama
612
+ if ( wppa_switch( 'enable_panorama' ) ) {
613
+ $three_url = WPPA_URL . '/vendor/three/three.min.js';
614
+ $ver = '122';
615
+ wp_enqueue_script( 'wppa-three-min-js', $three_url, $js_depts, $wppa_api_version, $footer );
616
+ }
617
 
618
  }
619
 
623
  global $wppa_js_page_data;
624
  global $wppa_script_open;
625
 
626
+ // Validate input
627
+ if ( wppa_switch( 'allow_debug' ) ) {
628
+ $i = 0;
629
+ $arr = array( '[' => 0, ']' => 0, '(' => 0, ')' => 0, '{' => 0, '}' => 0 );
630
+ $t = array_keys( $arr );
631
+ while ( $i < strlen( $txt ) ) {
632
+ $c = substr( $txt, $i, 1 );
633
+ if ( in_array( $c, $t ) ) $arr[$c]++;
634
+ $i++;
635
+ }
636
+ for ( $i = 0; $i < 6; $i += 2 ) {
637
+ if ( $arr[$t[$i]] != $arr[$t[$i + 1]] ) {
638
+ wppa_log( 'err', 'Unmatched ' . $t[$i] . ' - ' . $t[$i + 1] . ' in ' . $txt . ' (wppa_js)', true );
639
+ }
640
+ }
641
+ if ( substr( $txt, -1 ) != ';' ) {
642
+ wppa_log( 'err', 'Missing ; in ' . $txt . ' (wppa_js)', true );
643
+ $txt .= ';';
644
+ }
645
+ }
646
+
647
+ // Do it
648
+ if ( ! wppa_is_defer() || wppa_is_caching() ) {
649
+ wppa_out( '
650
  <script>' . $txt . '</script>' );
651
+ return;
652
+ }
653
+
654
+ if ( ! $wppa_script_open ) {
655
+ $wppa_js_page_data = $txt;
656
+ $wppa_script_open = true;
657
+ }
658
+ else {
659
+ $wppa_js_page_data .= '
660
  ' . $txt;
661
+ }
662
  }
663
 
664
  // Output page specific script in the footer.
669
  global $wppa_js_page_data;
670
  global $wppa_script_open;
671
 
672
+ if ( $wppa_js_page_data ) {
673
+ echo '
674
  <!-- WPPA Page specific js -->
675
  <script>' . wppa_compress_js( $wppa_js_page_data ) . '
676
  </script>
677
  <!-- End WPPA Page specific js -->
678
  ';
679
 
680
+ $wppa_js_page_data = '';
681
+ $wppa_script_open = false;
682
+ }
683
  }
684
 
685
  // Compress javascript
686
  function wppa_compress_js( $txt ) {
687
 
688
+ $result = $txt;
689
+ $result = str_replace( "\t", "", $result );
690
+ $result = str_replace( "\r\n", "", $result );
691
+ $result = str_replace( " = ", "=", $result );
692
+ $result = str_replace( "; ", ";", $result );
693
+ $result = str_replace( "/*", "\r\n/*", $result );
694
 
695
+ return $result;
696
  }
697
 
698
  // Decide if we do defer js
699
  function wppa_is_defer() {
700
 
701
+ return true;
702
 
703
+ if ( is_admin() ) return true;
704
+ if ( ! wppa_switch( 'defer_javascript' ) ) return false;
705
+ if ( wppa( 'ajax' ) ) return false;
706
+ if ( wppa( 'cron' ) ) return false;
707
+ if ( wppa( 'is_slide' ) || wppa( 'is_slideonly' ) || wppa( 'is_filmonly' ) ) return false;
708
+ return true;
709
  }
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.1.00.003
7
  *
8
  */
9
 
@@ -459,88 +459,6 @@ global $wppa_subtab_names;
459
  // The nonce field
460
  wp_nonce_field( 'wppa-nonce', 'wppa-nonce' );
461
 
462
- // The css
463
- {
464
- echo '
465
- <style>
466
- .wppa-master-tabs {
467
- position:relative;
468
- top:24px;
469
- }
470
- .wppa-setting-tabs {
471
- position:relative;
472
- top:24px;
473
- }
474
- .wppa-setting-tabs li {
475
- border-color: darkgrey;
476
- border-width: 1px;
477
- float: left;
478
- background-color: white;
479
- padding: 8px 10px;
480
- font-size: 22px;
481
- color: darkgrey;
482
- border-style: solid;
483
- text-align: center;
484
- margin: 0 4px 0 0;
485
- border-top-left-radius: 8px;
486
- border-top-right-radius: 8px;
487
- cursor: pointer;
488
- }
489
- .wppa-master-tabs li {
490
- border-color: darkgrey;
491
- border-width: 1px;
492
- float: left;
493
- background-color: white;
494
- padding: 8px 10px;
495
- font-size: 22px;
496
- color: darkgrey;
497
- border-style: solid;
498
- text-align: center;
499
- margin: 0 4px 6px 0;
500
- border-radius: 8px;
501
- cursor: pointer;
502
- }
503
- #wppa-setting-tab-99 {
504
- float: right;
505
- }
506
- .wppa-tabdesc h3 {
507
- margin: 0 0 9px 0;
508
- padding: 6px 0 0 0;
509
- }
510
- .wppa-master-tabs .active {
511
- color: black;
512
- background-color:#dddddd;
513
- }
514
- .wppa-setting-tabs .active {
515
- color: black;
516
- border-bottom-color: white;
517
- background-color:#dddddd;
518
- }
519
- #wppa-setting-content {
520
- clear:both;
521
- background-color: white;
522
- border-left:1px solid black;
523
- border-right:1px solid black;
524
- border-bottom:1px solid black;
525
- position:relative;
526
- top:24px;
527
- border-color:darkgrey;
528
- margin-bottom:12px;
529
- }
530
- .wppa-colorbox {
531
- height: 28px !important;
532
- }
533
- .wppa-doit-button {
534
- float:left;
535
- border-radius:3px;
536
- font-size: 11px !important;
537
- margin: 0 4px;
538
- padding: 0 6px;
539
- border: 1px solid darkgrey !important;
540
- }
541
- </style>';
542
- }
543
-
544
  // Any tab set? else default general
545
  $tab = wppa_get( 'tab', 'general' );
546
  $subtab = wppa_get( 'subtab', '0' );
@@ -6568,6 +6486,7 @@ global $wppa_subtab_names;
6568
  global $wppa_setting_error;
6569
  $wppa_setting_error = true;
6570
 
 
6571
  $name = __('Custom style', 'wp-photo-album-plus');
6572
  $desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
6573
  $help = __('Please move custom css to the wp customizer. WPPA Custom css will be discontinued in a near future revision.', 'wp-photo-album-plus');
@@ -6616,7 +6535,7 @@ global $wppa_subtab_names;
6616
  $slug = 'wppa_custom_style_opera';
6617
  $html = wppa_textarea($slug, $name);
6618
  wppa_setting_new($slug, '19', $name, $desc, $html, $help, wppa_opt( 'custom_style_opera' ) != '' );
6619
-
6620
  $wppa_setting_error = false;
6621
 
6622
  $name = __('Use customized style file', 'wp-photo-album-plus');
@@ -10229,8 +10148,7 @@ global $wppa_subtab_names;
10229
  if ( function_exists( 'wppa_get_cloudinary_usage' ) && wppa_opt( 'cdn_cloud_name' ) ) {
10230
  $data = wppa_get_cloudinary_usage();
10231
  if ( is_array( $data ) ) {
10232
- $desc = '<style type="text/css" scoped>table, tbody, tr, td { margin:0; padding:0; border:none; font-size: 9px; line-height: 11px; } td { height:11px; }</style>';
10233
- $desc .= '<table style="margin:0;padding:0;border:none:" ><tbody>';
10234
  foreach ( array_keys( $data ) as $i ) {
10235
  $item = $data[$i];
10236
  if ( is_array( $item ) ) {
@@ -10286,13 +10204,6 @@ global $wppa_subtab_names;
10286
 
10287
  if ( wppa_switch( 'fotomoto_on' ) ) {
10288
 
10289
- $name = __('Fotomoto fontsize', 'wp-photo-album-plus');
10290
- $desc = __('Fontsize for the Fotomoto toolbar.', 'wp-photo-album-plus');
10291
- $help = __('If you set it here, it overrules a possible setting for font-size in .FotomotoToolbarClass on the Fotomoto dashboard.', 'wp-photo-album-plus');
10292
- $slug = 'wppa_fotomoto_fontsize';
10293
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
10294
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
10295
-
10296
  $name = __('Hide when running', 'wp-photo-album-plus');
10297
  $desc = __('Hide toolbar on running slideshows', 'wp-photo-album-plus');
10298
  $help = __('The Fotomoto toolbar will re-appear when the slideshow stops.', 'wp-photo-album-plus');
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
459
  // The nonce field
460
  wp_nonce_field( 'wppa-nonce', 'wppa-nonce' );
461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  // Any tab set? else default general
463
  $tab = wppa_get( 'tab', 'general' );
464
  $subtab = wppa_get( 'subtab', '0' );
6486
  global $wppa_setting_error;
6487
  $wppa_setting_error = true;
6488
 
6489
+ /*
6490
  $name = __('Custom style', 'wp-photo-album-plus');
6491
  $desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
6492
  $help = __('Please move custom css to the wp customizer. WPPA Custom css will be discontinued in a near future revision.', 'wp-photo-album-plus');
6535
  $slug = 'wppa_custom_style_opera';
6536
  $html = wppa_textarea($slug, $name);
6537
  wppa_setting_new($slug, '19', $name, $desc, $html, $help, wppa_opt( 'custom_style_opera' ) != '' );
6538
+ */
6539
  $wppa_setting_error = false;
6540
 
6541
  $name = __('Use customized style file', 'wp-photo-album-plus');
10148
  if ( function_exists( 'wppa_get_cloudinary_usage' ) && wppa_opt( 'cdn_cloud_name' ) ) {
10149
  $data = wppa_get_cloudinary_usage();
10150
  if ( is_array( $data ) ) {
10151
+ $desc .= '<table id="wppa-cloudinary-table" ><tbody>';
 
10152
  foreach ( array_keys( $data ) as $i ) {
10153
  $item = $data[$i];
10154
  if ( is_array( $item ) ) {
10204
 
10205
  if ( wppa_switch( 'fotomoto_on' ) ) {
10206
 
 
 
 
 
 
 
 
10207
  $name = __('Hide when running', 'wp-photo-album-plus');
10208
  $desc = __('Hide toolbar on running slideshows', 'wp-photo-album-plus');
10209
  $help = __('The Fotomoto toolbar will re-appear when the slideshow stops.', 'wp-photo-album-plus');
wppa-slideshow.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains all the slideshow high level functions
6
  *
7
- * Version 8.1.00.004
8
  *
9
  */
10
 
@@ -731,13 +731,7 @@ function wppa_slide_custom( $opt = '' ) {
731
  $f_on_this = ! wppa( 'in_widget' ) && fotomoto_page_enabled( wppa_get_the_ID() );
732
  }
733
  if ( wppa_switch( 'fotomoto_on' ) && $f_on_this ) {
734
- $fontsize = wppa_opt( 'fotomoto_fontsize' );
735
- if ( $fontsize ) {
736
- $s = '<style>.FotomotoToolbarClass{font-size:' . wppa_opt( 'fotomoto_fontsize' ) . 'px !important;}</style>';
737
- }
738
- else $s = '';
739
  $content = str_replace( 'w#fotomoto',
740
- $s .
741
  '<div' .
742
  ' id="wppa-fotomoto-container-'.wppa( 'mocc' ).'"' .
743
  ' class="wppa-fotomoto-container"' .
4
  *
5
  * Contains all the slideshow high level functions
6
  *
7
+ * Version 8.1.00.005
8
  *
9
  */
10
 
731
  $f_on_this = ! wppa( 'in_widget' ) && fotomoto_page_enabled( wppa_get_the_ID() );
732
  }
733
  if ( wppa_switch( 'fotomoto_on' ) && $f_on_this ) {
 
 
 
 
 
734
  $content = str_replace( 'w#fotomoto',
 
735
  '<div' .
736
  ' id="wppa-fotomoto-container-'.wppa( 'mocc' ).'"' .
737
  ' class="wppa-fotomoto-container"' .
wppa-styles.php CHANGED
@@ -3,7 +3,7 @@
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
- /* Version 8.0.07.007
7
  /*
8
  */
9
 
@@ -12,9 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
12
  // Create dynamic css
13
  function wppa_create_wppa_dynamic_css() {
14
 
15
- $result = '
16
- <!-- WPPA+ dynamic css -->
17
- <style type="text/css" >
18
  .wppa-box { ' .
19
  ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px; ' : '' ) .
20
  ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px; ' : '' ) .
@@ -77,19 +75,11 @@ function wppa_create_wppa_dynamic_css() {
77
 
78
  // Add miscellaneous styles
79
  if ( ! wppa_switch( 'show_pname' ) ) {
80
- $result .= '
81
  .bc-pname { display:none; }';
82
  }
83
 
84
- // Add custom style
85
- $result .= wppa_opt( 'custom_style' );
86
-
87
- $result .= '
88
- </style>
89
- <!-- END WPPA+ dynamic css -->
90
- ';
91
-
92
- return $result;
93
 
94
  }
95
 
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
+ /* Version 8.1.00.005
7
  /*
8
  */
9
 
12
  // Create dynamic css
13
  function wppa_create_wppa_dynamic_css() {
14
 
15
+ $the_style = '
 
 
16
  .wppa-box { ' .
17
  ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px; ' : '' ) .
18
  ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px; ' : '' ) .
75
 
76
  // Add miscellaneous styles
77
  if ( ! wppa_switch( 'show_pname' ) ) {
78
+ $the_style .= '
79
  .bc-pname { display:none; }';
80
  }
81
 
82
+ return $the_style;
 
 
 
 
 
 
 
 
83
 
84
  }
85
 
wppa-tinymce-common.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-common.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.4.02
6
  *
7
  */
8
 
@@ -21,80 +21,6 @@ global $wpdb;
21
  $result =
22
  '<div id="wppaphoto-form" title="' . esc_attr( __( 'Insert photo', 'wp-photo-album-plus' ) ) . '" >';
23
 
24
- // Front/back end dependant css
25
- if ( $front ) {
26
- $result .= '
27
- <style>
28
- #wppaphoto-table {
29
- box-sizing:border-box; width:100% !important;
30
- }
31
- .wppa-bar {
32
- background-color: #7f7;
33
- width:0%;
34
- height:18px;
35
- border-radius: 3px;
36
- line-height: 18px;
37
- margin: 0;
38
- }
39
- .wppa-percent {
40
- position:relative;
41
- display:inline-block;
42
- top:-19px;
43
- font-size: 12px;
44
- line-height: 18px;
45
- margin: 0;
46
- }
47
- .wppa-message {
48
- clear: both;
49
- }
50
- #wppaphoto-table tr, #wppaphoto-table th, #wppaphoto-table td {
51
- padding: 2px; 0;
52
- }
53
- #wppaphoto-table th {
54
- width:200px;
55
- }
56
- #wppaphoto-table input {
57
- padding:4px;
58
- }
59
- #wppaphoto-table th, #wppaphoto-table td {
60
- border:none;
61
- }
62
- #wppaphoto-shortcode-preview-container {
63
- width:500px !important;
64
- }
65
- </style>';
66
- }
67
- else {
68
- $result .= '
69
- <style>
70
- #TB_ajaxContent {
71
- box-sizing:border-box; width:100% !important;
72
- }
73
- .wppa-bar {
74
- background-color: #7f7;
75
- width:0%;
76
- height:18px;
77
- border-radius: 3px;
78
- line-height: 18px;
79
- margin: 0;
80
- }
81
- .wppa-percent {
82
- position:relative;
83
- display:inline-block;
84
- top:-19px;
85
- font-size: 12px;
86
- line-height: 18px;
87
- margin: 0;
88
- }
89
- .wppa-message {
90
- clear: both;
91
- }
92
- #wppaphoto-table tr, #wppaphoto-table th, #wppaphoto-table td {
93
- padding: 2px; 0;
94
- }
95
- </style>';
96
- }
97
-
98
  // Open table
99
  $result .=
100
  '
@@ -118,8 +44,8 @@ global $wpdb;
118
  '<small class="wppamyphoto-photo" >'.
119
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
120
  sprintf( __('You can select one of your photos from a maximum of %d most recently added', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
121
- '</small>'.
122
- '</td>'.
123
  '</tr>' .
124
 
125
  // Photo selection max 100 of all photos
2
  /* wppa-tinymce-common.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.1.00.004
6
  *
7
  */
8
 
21
  $result =
22
  '<div id="wppaphoto-form" title="' . esc_attr( __( 'Insert photo', 'wp-photo-album-plus' ) ) . '" >';
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  // Open table
25
  $result .=
26
  '
44
  '<small class="wppamyphoto-photo" >'.
45
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
46
  sprintf( __('You can select one of your photos from a maximum of %d most recently added', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
47
+ '</small>' .
48
+ '</td>' .
49
  '</tr>' .
50
 
51
  // Photo selection max 100 of all photos
wppa-tinymce-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 8.0.00.011
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
@@ -89,23 +89,7 @@ global $wpdb;
89
 
90
  // Make the html
91
  $result =
92
- '<style>
93
- #TB_ajaxContent {
94
- box-sizing:border-box; width:100% !important;
95
- }
96
- #wppagallery-table select {
97
- max-width:540px;
98
- }
99
- #wppagallery-table option {
100
- color: #070;
101
- }
102
- </style>'.
103
  '<div id="wppagallery-form" title="' . esc_attr( __( 'Insert gallery', 'wp-photo-album-plus' ) ) . '" >'.
104
- '<style type="text/css">'.
105
- '#wppagallery-table tr, #wppagallery-table th, #wppagallery-table td {'.
106
- 'padding: 2px; 0;'.
107
- '}'.
108
- '</style>'.
109
  '<table id="wppagallery-table" class="form-table">'.
110
 
111
  // Top type selection
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.1.00.004
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
89
 
90
  // Make the html
91
  $result =
 
 
 
 
 
 
 
 
 
 
 
92
  '<div id="wppagallery-form" title="' . esc_attr( __( 'Insert gallery', 'wp-photo-album-plus' ) ) . '" >'.
 
 
 
 
 
93
  '<table id="wppagallery-table" class="form-table">'.
94
 
95
  // Top type selection
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 8.1.00.001
7
  *
8
  */
9
 
@@ -317,18 +317,19 @@ global $wppa;
317
  case 'wppa-plus-embedded':
318
  if ( $wppa['geo'] == '' ) { // First
319
  $wppa['geo'] = '
320
- <div id="map-canvas-' . wppa( 'mocc' ).'" style="height:' . wppa_opt( 'map_height' ) . 'px; width:100%; padding:0; margin:0; font-size: 10px;" ></div>
321
- <script>
322
- if ( typeof ( _wppaLat ) == "undefined" ) { var _wppaLat = new Array(); var _wppaLon = new Array(); }
323
- if ( typeof ( _wppaRealId ) == "undefined" ) { var _wppaRealId = new Array(); }
324
- _wppaLat[' . wppa( 'mocc' ) . '] = new Array(); _wppaLon[' . wppa( 'mocc' ) . '] = new Array();
325
- </script>';
326
  } // End first
327
- $wppa['geo'] .= '
328
- <script>
329
- _wppaLat[' . wppa( 'mocc' ) . '][' . $id . '] = ' . $lat . ';
330
- _wppaLon[' . wppa( 'mocc' ) . '][' . $id.'] = ' . $lon . ';
331
- </script>';
 
332
  break; // End native
333
  case 'none':
334
  break;
@@ -4946,7 +4947,6 @@ function wppa_compress_html( $txt ) {
4946
  $result = str_replace( " ", " ", $result );
4947
  $result = str_replace( '> <', '><', $result );
4948
  $result = str_replace( '<ul></ul>', '', $result );
4949
- $result = str_replace( '</script><script>', '', $result );
4950
  $result = str_replace( '<!--', "\n<!--", $result );
4951
 
4952
  return $result;
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 8.1.00.005
7
  *
8
  */
9
 
317
  case 'wppa-plus-embedded':
318
  if ( $wppa['geo'] == '' ) { // First
319
  $wppa['geo'] = '
320
+ <div id="map-canvas-' . wppa( 'mocc' ).'"
321
+ style="height:' . wppa_opt( 'map_height' ) . 'px; width:100%; padding:0; margin:0; font-size: 10px;" >
322
+ </div>';
323
+ $the_js = '
324
+ _wppaLat[' . wppa( 'mocc' ) . '] = [];
325
+ _wppaLon[' . wppa( 'mocc' ) . '] = [];';
326
  } // End first
327
+
328
+ $the_js .= '
329
+ _wppaLat[' . wppa( 'mocc' ) . '][' . $id . '] = ' . $lat . ';
330
+ _wppaLon[' . wppa( 'mocc' ) . '][' . $id . '] = ' . $lon . ';';
331
+
332
+ wppa_js( $the_js );
333
  break; // End native
334
  case 'none':
335
  break;
4947
  $result = str_replace( " ", " ", $result );
4948
  $result = str_replace( '> <', '><', $result );
4949
  $result = str_replace( '<ul></ul>', '', $result );
 
4950
  $result = str_replace( '<!--', "\n<!--", $result );
4951
 
4952
  return $result;
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 8.1.00.004
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.1.00.004'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 8.1.00.005
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.1.00.005'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30