1/* 2 * Multimedia - Perspective Carousel v2.0 3 * 4 * Copyright 2013-2021 LambertGroup 5 * 6 */ 7 8 var multimedia_perspective_carousel_api_videoImages=[]; 9 (function(e){function G(a,b,c){c=b.elementsHorizontalSpacing/(b.contentHolderUnitOrigWidth+2*b.border)*c.aspectOrig;var l=a*(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width);b=2*b.elementsVerticalSpacing/(b.origWidth/b.width);for(var m=0,h=1;h<=a;h++)m+=h;return c*(l-b*m)}function O(a,b){if(b.responsive){var c="";if(-1!=a.css("font-size").lastIndexOf("px")){var l=a.css("font-size").substr(0,a.css("font-size").lastIndexOf("px"));c+="font-size:"+l/(b.origWidth/b.width)+"px;"}else-1!= 10 a.css("font-size").lastIndexOf("em")&&(l=a.css("font-size").substr(0,a.css("font-size").lastIndexOf("em")),c+="font-size:"+l/(b.origWidth/b.width)+"em;");-1!=a.css("line-height").lastIndexOf("px")?(l=a.css("line-height").substr(0,a.css("line-height").lastIndexOf("px")),c+="line-height:"+l/(b.origWidth/b.width)+"px;"):-1!=a.css("line-height").lastIndexOf("em")&&(l=a.css("line-height").substr(0,a.css("line-height").lastIndexOf("em")),c+="line-height:"+l/(b.origWidth/b.width)+"em;");a.wrapInner('<div class="newFS" style="'+ 11 c+'" />')}}function M(a,b){var c=(new Date).getTime();a.mouseOverBanner||a.effectIsRunning||!b.showCircleTimer||a.isPrettyPhoto||(a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height),a.ctx.beginPath(),a.ctx.globalAlpha=b.behindCircleAlpha/100,a.ctx.arc(b.circleRadius+2*b.circleLineWidth,b.circleRadius+2*b.circleLineWidth,b.circleRadius,0,2*Math.PI,!1),a.ctx.lineWidth=b.circleLineWidth+2,a.ctx.strokeStyle=b.behindCircleColor,a.ctx.stroke(),a.ctx.beginPath(),a.ctx.globalAlpha=b.circleAlpha/100,a.ctx.arc(b.circleRadius+ 12 2*b.circleLineWidth,b.circleRadius+2*b.circleLineWidth,b.circleRadius,0,(a.timeElapsed+c-a.arcInitialTime)/1E3*2/b.autoPlay*Math.PI,!1),a.ctx.lineWidth=b.circleLineWidth,a.ctx.strokeStyle=b.circleColor,a.ctx.stroke())}function C(a,b,c,l,m,h,q,y,g){b.showCircleTimer&&e(".mycanvas",h).css({display:"none"});e(l[c.current_img_no]).removeClass("bottomNavButtonON");c.current_img_no=J(c.current_img_no,a,q);c.curIcon="empty.png";e(m[c.current_img_no]).attr("data-link")?c.curIcon="link.png":e(m[c.current_img_no]).attr("data-large-image")? 13 c.curIcon="image.png":e(m[c.current_img_no]).attr("data-video-youtube")||e(m[c.current_img_no]).attr("data-video-vimeo")||e(m[c.current_img_no]).attr("data-video-selfhosted")?c.curIcon="video.png":e(m[c.current_img_no]).attr("data-audio")&&(c.curIcon="audio.png");var f="block";"empty.png"==c.curIcon&&(f="none");y.css({background:"url("+b.absUrl+"skins/"+b.skin+"/"+c.curIcon+")",display:f});e(l[c.current_img_no]).addClass("bottomNavButtonON");c.currentZ_index=100;c.currentImg=e("#contentHolderUnit_"+ 14 c.current_img_no,h);var k=parseInt(b.contentHolderUnitOrigWidth/(b.origWidth/b.width),10);var r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width),10);var u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2,10);var v=parseInt(b.height-(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width),10);H(c.currentImg,u,v,k,r,1,!1,a,c,b,g,m,q,y,l,h,!0);n=c.current_img_no;for(f=1;f<=Math.floor(b.numberOfVisibleItems/ 15 2);f++){c.currentZ_index--;n=J(n,-1,q);c.currentImg=e("#contentHolderUnit_"+n,h);c.currentImg.css("z-index",c.currentZ_index);if(f==Math.floor(b.numberOfVisibleItems/2))if(1===a){k=J(n,-1,q);var w=e("#contentHolderUnit_"+k,h);r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-2*(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10);k=parseInt(r*c.aspectOrig,10);u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2-G(f+1,b,c),10);v=parseInt(b.height- 16 (b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10);H(w,u,v,k,r,0,!1,a,c,b,g,m,q,y,l,h,!1)}else r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-2*(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10),parseInt(r*c.aspectOrig,10),K(c.currentImg,f+1,b,c),u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2-G(f+1,b,c),10),v=parseInt(b.height- 17 (b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10),c.currentImg.css({left:u+"px",to
17p:v+"px",opacity:0});c.currentImg.css("display","block");r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-2*f*b.elementsVerticalSpacing/(b.origWidth/b.width),10);k=parseInt(r*c.aspectOrig,10);u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2-G(f,b,c),10); 18 v=parseInt(b.height-(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+f*b.elementsVerticalSpacing/(b.origWidth/b.width),10);H(c.currentImg,u,v,k,r,1,!1,a,c,b,g,m,q,y,l,h,!1)}var n=c.current_img_no;for(f=1;f<=Math.floor(b.numberOfVisibleItems/2);f++)c.currentZ_index--,n=J(n,1,q),c.currentImg=e("#contentHolderUnit_"+n,h),c.currentImg.css("z-index",c.currentZ_index),f==Math.floor(b.numberOfVisibleItems/2)&&(1===a?(K(c.currentImg,f+1,b,c),c.currentImg.css({left:parseInt((b.width- 19 (b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2+((b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width)+G(f+1,b,c)-c.currentImg.width()),10)+"px",top:parseInt(b.height-(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10)+"px",opacity:0})):(k=J(n,1,q),w=e("#contentHolderUnit_"+k,h),r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-2*(f+1)*b.elementsVerticalSpacing/ 20 (b.origWidth/b.width),10),k=parseInt(r*c.aspectOrig,10),u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2+((b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width)+G(f+1,b,c)-k),10),v=parseInt(b.height-(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+(f+1)*b.elementsVerticalSpacing/(b.origWidth/b.width),10),H(w,u,v,k,r,0,!1,a,c,b,m,q,l,h,!1),H(w,u,v,k,r,0,!1,a,c,b,g,m,q,y,l,h,!1))),c.currentImg.css("display", 21 "block"),r=parseInt(b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-2*f*b.elementsVerticalSpacing/(b.origWidth/b.width),10),k=parseInt(r*c.aspectOrig,10),u=parseInt((b.width-(b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width))/2+((b.contentHolderUnitOrigWidth+2*b.border)/(b.origWidth/b.width)+G(f,b,c)-(k+2*b.border)),10)+1,v=parseInt(b.height-(b.contentHolderUnitOrigHeight+2*b.border)/(b.origWidth/b.width)-b.verticalAdjustment/(b.origWidth/b.width)+f*b.elementsVerticalSpacing/(b.origWidth/ 22 b.width),10),f==Math.floor(b.numberOfVisibleItems/2)?H(c.currentImg,u,v,k,r,1,!0,a,c,b,g,m,q,y,l,h,!1):H(c.currentImg,u,v,k,r,1,!1,a,c,b,g,m,q,y,l,h,!1)}function K(a,b,c,l){b=parseInt(c.contentHolderUnitOrigHeight/(c.origWidth/c.width)-c.elementsVerticalSpacing/(c.origWidth/c.width)*b*2,10);l=parseInt(b*l.aspectOrig,10);a.css({height:b+"px",width:l+"px"});c.resizeImages&&(a=a.find("img:first"),a.is("img")&&a.css({height:b+"px",width:l+"px"}))}function H(a,b,c,l,m,h,q,y,g,f,k,r,u,v,w,n,z){g.slideIsRunning= 23 !0;
230==z&&""!=f.activeItemClass&&a.removeClass(f.activeItemClass);k.html(e(r[g.current_img_no]).attr("data-title"));f.responsive&&O(k,f);0===h?a.css("z-index",g.currentZ_index-1):a.css("z-index",g.currentZ_index);a.css("display","block");a.animate({left:b+"px",top:c+"px",width:l+"px",height:m+"px",opacity:h},1E3*f.animationTime,f.easing,function(){1==z&&""!=f.activeItemClass&&a.addClass(f.activeItemClass);if(q){g.slideIsRunning=!1;g.arcInitialTime=(new Date).getTime();g.timeElapsed=0;if(f.showCircleTimer){clearInterval(g.intervalID); 24 g.ctx.clearRect(0,0,g.canvas.width,g.canvas.height);g.ctx.beginPath();g.ctx.globalAlpha=f.behindCircleAlpha/100;g.ctx.arc(f.circleRadius+2*f.circleLineWidth,f.circleRadius+2*f.circleLineWidth,f.circleRadius,0,2*Math.PI,!1);g.ctx.lineWidth=f.circleLineWidth+2;g.ctx.strokeStyle=f.behindCircleColor;g.ctx.stroke();g.ctx.beginPath();g.ctx.globalAlpha=f.circleAlpha/100;g.ctx.arc(f.circleRadius+2*f.circleLineWidth,f.circleRadius+2*f.circleLineWidth,f.circleRadius,0,0,!1);g.ctx.lineWidth=f.circleLineWidth; 25 g.ctx.strokeStyle=f.circleColor;g.ctx.stroke();g.intervalID=setInterval(function(){M(g,f)},125);var t=e("#contentHolderUnit_"+g.current_img_no,n).css("left"),d=e("#contentHolderUnit_"+g.current_img_no,n).css("top");e(".mycanvas",n).css({display:"block",left:parseInt(t.substr(0,t.lastIndexOf("px")),10)+parseInt(f.circleLeftPositionCorrection/(f.origWidth/f.width),10)+"px",top:parseInt(d.substr(0,d.lastIndexOf("px")),10)+parseInt(f.circleTopPositionCorrection/(f.origWidth/f.width),10)+"px"})}if(0<f.autoPlay&& 26 1<u&&!g.mouseOverBanner&&!g.fastForwardRunning||g.current_img_no!=g.img_no_where_to_stop&&g.fastForwardRunning)clearTimeout(g.timeoutID),g.timeoutID=setTimeout(function(){C(y,f,g,w,r,n,u,v,k)},1E3*f.autoPlay);g.current_img_no==g.img_no_where_to_stop&&g.fastForwardRunning&&(g.fastForwardRunning=!1,f.animationTime=g.animationTimeOrig,f.autoPlay=g.autoPlayOrig)}});f.resizeImages&&(b=a.find("img:first"),b.is("img")&&b.animate({width:l+"px",height:m+"px"},1E3*f.animationTime,f.easing,function(){}))}function J(a, 27 b,c){return a+b>=c?0:0>a+b?c-1:a+b}function P(a,b,c,l,m,h,q,y,g){-1===c.current_img_no-a?C(1,b,c,l,m,h,q,y,g):1===c.current_img_no-a?C(-1,b,c,l,m,h,q,y,g):(c.fastForwardRunning=!0,b.animationTime=.4,b.autoPlay=.1,c.img_no_where_to_stop=a,c.current_img_no<a?a-c.current_img_no<q-a+c.current_img_no?C(1,b,c,l,m,h,q,y,g):C(-1,b,c,l,m,h,q,y,g):c.current_img_no>a&&(c.current_img_no-a<q-c.current_img_no+a?C(-1,b,c,l,m,h,q,y,g):C(1,b,c,l,m,h,q,y,g)))}function T(a,b,c,l,m,h,q,y,g,f,k,r,u,v,w,n,z){z=e("body").css("overflow"); 28 e("body").css("overflow","hidden");v.css("display","none");var t=m.parent().parent().parent().width();m=m.parent().parent().parent().height();b.responsiveRelativeToBrowser&&(t=e(window).width(),m=e(window).height());b.width100Proc&&(b.width=t);b.height100Proc&&(b.height=m);b.origWidth>t||b.width100Proc?b.width=t:b.width100Proc||(b.width=b.origWidth);b.height100Proc||(b.height=b.width/a.bannerRatio);b.width=parseInt(b.width,10);b.height=parseInt(b.height,10);q.width(b.width);q.height(b.height);n.width(b.width); 29 n.height(b.height);h.css("margin-top",parseInt((b.height-y.height())/2+b.nextPrevMarginTop/(b.origWidth/b.width),10)+"px");g.css("left",parseInt((q.width()-g.width())/2,10)+"px");f.css("left",parseInt(g.css("left").substring(0,g.css("left").length-2),10)-f.width()+"px");k.css("left",parseInt(g.css("left").substring(0,g.css("left").length-2),10)+g.width()+parseInt(r.css("padding-left").substring(0,r.css("padding-left").length-2),10)+"px");v.css({left:parseInt((b.width-v.width())/2,10)+"px",top:parseInt(b.height- 30 b.contentHolderUnitOrigHeight/(b.origWidth/b.width),10)+parseInt((b.contentHolderUnitOrigHeight/(b.origWidth/b.width)-v.height())/2-parseInt(b.verticalAdjustment/(b.origWidth/b.width),10)-b.border,10)+"px","margin-top":b.playMovieMarginTop/(b.origWidth/b.width)});w.css("top",parseInt(b.elementOrigTop/(b.origWidth/b.width),10));clearTimeout(a.timeoutID);clearInterval(a.intervalID);a.timeoutID=setTimeout(function(){C(1,b,a,u,l,q,c,v,w)},.1);e("a[rel^='no_relation']").prettyPhotoCarouselMultimedia({theme:"light_rounded", 31 show_title:!1,deeplinking:!1,social_tools:"",callback:function(){jQuery.multimedia_perspective_carousel.continueAutoplay()}});e("body").css("overflow",z)}function Q(a,b,c){if(void 0!=e(c[a.current_img_no]).attr("data-link")&&""!=e(c[a.current_img_no]).attr("data-link")||void 0!=e(c[a.current_img_no]).attr("data-large-image")&&""!=e(c[a.current_img_no]).attr("data-large-image")||void 0!=e(c[a.current_img_no]).attr("data-video-youtube")&&""!=e(c[a.current_img_no]).attr("data-video-youtube")||void 0!= 32 e(c[a.current_img_no]).attr("data-video-vimeo")&&""!=e(c[a.current_img_no]).attr("data-video-vimeo")||void 0!=e(c[a.current_img_no]).attr("data-video-selfhosted")&&""!=e(c[a.current_img_no]).attr("data-video-selfhosted")||void 0!=e(c[a.current_img_no]).attr("data-audio")&&""!=e(c[a.current_img_no]).attr("data-audio"))a.effectIsRunning||F||(a.isPrettyPhoto=!1,void 0!=e(c[a.current_img_no]).attr("data-link")&&""!=e(c[a.current_img_no]).attr("data-link")?(b=b.target,void 0!=e(c[a.current_img_no]).attr("data-target")&& 33 ""!=e(c[a.current_img_no]).attr("data-target")&&(b=e(c[a.current_img_no]).attr("data-target")),"_blank"==b?window.open(e(c[a.current_img_no]).attr("data-link")):window.location=e(c[a.current_img_no]).attr("data-link")):(a.isPrettyPhoto=!0,e.prettyPhotoCarouselMultimedia.open(a.api_images,a.api_i,a.api_titles),e.prettyPhotoCarouselMultimedia.changePage(a.api_i.indexOf(a.current_img_no+1)))),a.isPrettyPhoto&&clearTimeout(a.timeoutID)}function R(){var a=-1;"Microsoft Internet Explorer"==navigator.appName&& 34 null!=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1));return parseInt(a,10)}var F=!1;e.multimedia_perspective_carousel={version:"1.0"};e.fn.multimedia_perspective_carousel=function(a){a=e.extend({},e.fn.multimedia_perspective_carousel.defaults,a);return this.each(function(){var b=e(this);a.imageWidth-=2*a.border;a.imageHeight-=2*a.border;var c=b.parent().width(),l=b.parent().height();a.responsiveRelativeToBrowser&&(c=e(window).width(),l=e(window).height());a.origWidth= 35 a.width;a.width100Proc&&(a.width=c);a.origHeight=a.height;a.height100Proc&&(a.height=l);a.responsive&&(a.origWidth!=c||a.width100Proc)&&(a.width=a.origWidth>c||a.width100Proc?c:a.origWidth,a.height100Proc||(a.height=a.width/(a.origWidth/a.origHeight)));a.width=parseInt(a.width,10);a.height=parseInt(a.height,10);c=e("<div></div>").addClass("multimedia_perspective_carousel").addClass(a.skin);var m=e('<div class="bannerControls"> <div class="leftNav"></div> <div class="rightNav"></div> </div> <div class="contentHolder"></div> <div class="elementTitle"></div>\t<div class="iconOver"></div> <canvas class="mycanvas"></canvas>'); 36 b.wrap(c);b.after(m);var h=b.parent(".multimedia_perspective_carousel");m=e(".bannerControls",h);var q=e(".contentHolder",h);c=e('<div class="bottomNavLeft"></div>');l=e('<div class="bottomNav"></div>');var y=e('<div class="bottomNavRight"></div>');b.after(c);b.after(l);b.after(y);a.showAllControllers||m.css("display","none");var g=e(".leftNav",h),f=e(".rightNav",h);g.css("display","none");f.css("display","none");a.showNavArrows&&a.showOnInitNavArrows&&(g.css("display","block"),f.css("display","block")); 37 var k=e(".bottomNav",h),r=e(".bottomNavLeft",h),u=e(".bottomNavRight",h),v;k.css("display","block");r.css("display","block");u.css("display","block");
37k.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});r.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});u.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});a.showBottomNav||(k.css("display","none"),r.css("display","none"),u.css("display","none"));a.showOnInitBottomNav||(k.css("left","-5000px"),r.css("left","-5000px"),u.css("left","-5000px")); 38 var w=e(".elementTitle",h);w.css("color",a.titleColor);a.showElementTitle||w.css("display","none");a.elementOrigTop=parseInt(w.css("top").substr(0,w.css("top").lastIndexOf("px")),10);w.css("top",parseInt(a.elementOrigTop/(a.origWidth/a.width),10));c=R();var n=e(".iconOver",h),z=-1,t=0,d={current_img_no:0,currentImg:0,currentZ_index:101,slideIsRunning:!1,mouseOverBanner:!1,fastForwardRunning:!1,isPrettyPhoto:!1,img_no_where_to_stop:0,aspectOrig:0,animationTimeOrig:a.animationTime,autoPlayOrig:a.autoPlay, 39 curIcon:"empty.png",timeoutID:"",intervalID:"",arcInitialTime:(new Date).getTime(),timeElapsed:0,windowWidth:0,canvas:"",ctx:"",bannerRatio:a.origWidth/a.origHeight,thisCarouselId:e(this).attr("id"),api_images:[],api_titles:[],api_i:[]};d.canvas=e(".mycanvas",h)[0];d.canvas.width=2*a.circleRadius+4*a.circleLineWidth;d.canvas.height=2*a.circleRadius+4*a.circleLineWidth;-1!=c&&9>c&&(a.showCircleTimer=!1);a.showCircleTimer&&(d.ctx=d.canvas.getContext("2d"));h.width(a.width);h.height(a.height);q.width(a.width); 40 q.height(a.height);m.css("margin-top",parseInt((a.height-g.height())/2,10)+a.nextPrevMarginTop/(a.origWidth/a.width)+"px");a.centerPlugin&&h.css({margin:"0 auto"});var x=b.find("ul:first").children();a.numberOfVisibleItems>b.find("ul:first li").length&&(a.numberOfVisibleItems=b.find("ul:first li").length);a.numberOfVisibleItems%2||a.numberOfVisibleItems--;var D,L=0,S=0;x.each(function(){d.currentImg=e(this);d.currentImg.is("li")||(d.currentImg=d.currentImg.find("li:first"));if(d.currentImg.is("li")){t++; 41 A=e('<div class="contentHolderUnit" xrel="'+(t-1)+'" id="contentHolderUnit_'+(t-1)+'" rel="lightBoxLBG'+d.thisCarouselId+'[lbg_pp_gal]">'+d.currentImg.html()+"</div>");q.append(A);A.css({display:"none",width:a.imageWidth+"px",height:a.imageHeight+"px"});if(void 0!=d.currentImg.attr("data-large-image")&&""!=d.currentImg.attr("data-large-image")||void 0!=d.currentImg.attr("data-video-youtube")&&""!=d.currentImg.attr("data-video-youtube")||void 0!=d.currentImg.attr("data-video-vimeo")&&""!=d.currentImg.attr("data-video-vimeo")|| 42 void 0!=d.currentImg.attr("data-video-selfhosted")&&""!=d.currentImg.attr("data-video-selfhosted")||void 0!=d.currentImg.attr("data-audio")&&""!=d.currentImg.attr("data-audio"))z++,void 0!=d.currentImg.attr("data-large-image")&&""!=d.currentImg.attr("data-large-image")&&(d.api_images[z]=d.currentImg.attr("data-large-image")),void 0!=d.currentImg.attr("data-video-youtube")&&""!=d.currentImg.attr("data-video-youtube")&&(d.api_images[z]="https://www.youtube.com/watch?v="+d.currentImg.attr("data-video-youtube"), 43 multimedia_perspective_carousel_api_videoImages[d.api_images[z]]=e("img",d.currentImg).attr("src")),void 0!=d.currentImg.attr("data-video-vimeo")&&""!=d.currentImg.attr("data-video-vimeo")&&(d.api_images[z]="https://vimeo.com/"+d.currentImg.attr("data-video-vimeo"),multimedia_perspective_carousel_api_videoImages[d.api_images[z]]=e("img",d.currentImg).attr("src")),void 0!=d.currentImg.attr("data-video-selfhosted")&&""!=d.currentImg.attr("data-video-selfhosted")&&(d.api_images[z]=d.currentImg.attr("data-video-selfhosted")+ 44 ".mp4",multimedia_perspective_carousel_api_videoImages[d.api_images[z]]=e("img",d.currentImg).attr("src")),void 0!=d.currentImg.attr("data-audio")&&""!=d.currentImg.attr("data-audio")&&(d.api_images[z]=d.currentImg.attr("data-audio")+".mp3",multimedia_perspective_carousel_api_videoImages[d.api_images[z]]=e("img",d.currentImg).attr("src")),d.api_titles[z]="<strong>"+d.currentImg.attr("data-title")+"</strong><br>",d.api_i[z]=t;0===a.contentHolderUnitOrigWidth&&(a.contentHolderUnitOrigWidth=A.width(), 45 a.contentHolderUnitOrigHeight=A.height(),d.aspectOrig=a.contentHolderUnitOrigWidth/a.contentHolderUnitOrigHeight);K(A,0,a,d);A.css({left:parseInt((a.width-(A.width()+2*a.border))/2,10)+"px",top:parseInt(a.height-(a.contentHolderUnitOrigHeight+2*a.border)/(a.origWidth/a.width)-a.verticalAdjustment/(a.origWidth/a.width),10)+"px","border-color":a.borderColorOFF,"border-width":a.border});1==t?(A.css({left:parseInt((a.width-(A.width()+2*a.border))/2,10)+"px",top:parseInt(a.height-(a.contentHolderUnitOrigHeight+ 46 2*a.border)/(a.origWidth/a.width)-a.verticalAdjustment/(a.origWidth/a.width),10)+"px","z-index":d.currentZ_index,display:"block"}
46),""!=a.activeItemClass&&A.addClass(a.activeItemClass)):t<=Math.ceil(a.numberOfVisibleItems/2)&&(d.currentZ_index--,K(A,t-1,a,d),A.css({left:parseInt((a.width-(a.contentHolderUnitOrigWidth+2*a.border)/(a.origWidth/a.width))/2+((a.contentHolderUnitOrigWidth+2*a.border)/(a.origWidth/a.width)+G(t-1,a,d)-(A.width()+2*a.border)),10)+1+"px",top:parseInt(a.height-(a.contentHolderUnitOrigHeight+ 47 2*a.border)/(a.origWidth/a.width),10)-a.verticalAdjustment/(a.origWidth/a.width)+(t-1)*a.elementsVerticalSpacing/(a.origWidth/a.width)+"px","z-index":d.currentZ_index,display:"block"}));D=e('<div class="bottomNavButtonOFF" rel="'+(t-1)+'"></div>');k.append(D);L+=parseInt(D.css("padding-left").substring(0,D.css("padding-left").length-2),10)+D.width();S=parseInt((k.height()-parseInt(D.css("height").substring(0,D.css("height").length-2)))/2,10);D.css("margin-top",S+"px")}});e("a[rel^='no_relation']").prettyPhotoCarouselMultimedia({theme:"light_rounded", 48 show_title:!1,deeplinking:!1,social_tools:"",callback:function(){jQuery.multimedia_perspective_carousel.continueAutoplay()}});e.multimedia_perspective_carousel.getVideoImageForShare=function(p){return multimedia_perspective_carousel_api_videoImages[p]};d.curIcon="empty.png";e(x[d.current_img_no]).attr("data-link")?d.curIcon="link.png":e(x[d.current_img_no]).attr("data-large-image")?d.curIcon="image.png":e(x[d.current_img_no]).attr("data-video-youtube")||e(x[d.current_img_no]).attr("data-video-vimeo")|| 49 e(x[d.current_img_no]).attr("data-video-selfhosted")?d.curIcon="video.png":e(x[d.current_img_no]).attr("data-audio")&&(d.curIcon="audio.png");c="block";"empty.png"==d.curIcon&&(c="none");n.css({background:"url("+a.absUrl+"skins/"+a.skin+"/"+d.curIcon+")",left:parseInt((a.width-n.width())/2,10)+"px",top:parseInt(a.height-(a.contentHolderUnitOrigHeight+2*a.border)/(a.origWidth/a.width),10)+parseInt(((a.contentHolderUnitOrigHeight+2*a.border)/(a.origWidth/a.width)-n.height())/2,10)-parseInt(a.verticalAdjustment/ 50 (a.origWidth/a.width),10)+"px","margin-top":a.playMovieMarginTop/(a.origWidth/a.width),display:c});a.showCircleTimer&&(c=e("#contentHolderUnit_"+d.current_img_no,h).css("left"),l=e("#contentHolderUnit_"+d.current_img_no,h).css("top"),e(".mycanvas",h).css({left:parseInt(c.substr(0,c.lastIndexOf("px")),10)+parseInt(a.circleLeftPositionCorrection/(a.origWidth/a.width),10)+"px",top:parseInt(l.substr(0,l.lastIndexOf("px")),10)+parseInt(a.circleTopPositionCorrection/(a.origWidth/a.width),10)+"px"}));d.currentZ_index= 51 100;for(c=1;c<=Math.floor(a.numberOfVisibleItems/2);c++)d.currentZ_index--,K(e("#contentHolderUnit_"+(t-c),h),c,a,d),e("#contentHolderUnit_"+(t-c),h).css({left:parseInt((a.width-(a.contentHolderUnitOrigWidth+2*a.border)/(a.origWidth/a.width))/2-G(c,a,d),10)+"px",top:parseInt(a.height-(a.contentHolderUnitOrigHeight+2*a.border)/(a.origWidth/a.width)-a.verticalAdjustment/(a.origWidth/a.width)+c*a.elementsVerticalSpacing/(a.origWidth/a.width),10)+"px","z-index":d.currentZ_index,display:"block"});w.html(e(x[0]).attr("data-title")); 52 a.responsive&&O(w,a);k.width(L);a.showOnInitBottomNav&&(k.css("left",parseInt((h.width()-L)/2,10)+"px"),r.css("left",parseInt(k.css("left").substring(0,k.css("left").length-2),10)-r.width()+"px"),u.css("left",parseInt(k.css("left").substring(0,k.css("left").length-2),10)+k.width()+parseInt(D.css("padding-left").substring(0,D.css("padding-left").length-2),10)+"px"));d.current_img_no=0;d.currentImg=e(x[d.current_img_no]);h.on("mouseenter",function(){if(!d.isPrettyPhoto){d.mouseOverBanner=!0;clearTimeout(d.timeoutID); 53 var p=(new Date).getTime();d.timeElapsed+=p-d.arcInitialTime;a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","block"),f.css("display","block"));a.autoHideBottomNav&&a.showBottomNav&&(k.css({display:"block",left:parseInt((h.width()-L)/2,10)+"px"}),r.css({display:"block",left:parseInt(k.css("left").substring(0,k.css("left").length-2),10)-r.width()+"px"}),u.css({display:"block",left:parseInt(k.css("left").substring(0,k.css("left").length-2),10)+k.width()+parseInt(D.css("padding-left").substring(0, 54 D.css("padding-left").length-2),10)+"px"}))}});h.on("mouseleave",function(){if(!d.isPrettyPhoto){d.mouseOverBanner=!1;var p=(new Date).getTime();a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","none"),f.css("display","none"));a.autoHideBottomNav&&a.showBottomNav&&(k.css("display","none"),r.css("display","none"),u.css("display","none"));0<a.autoPlay&&1<t&&!d.fastForwardRunning&&!d.isPrettyPhoto&&(clearTimeout(d.timeoutID),d.arcInitialTime=(new Date).getTime(),p=parseInt(1E3*a.autoPlay-(d.timeElapsed+ 55 p-d.arcInitialTime),10),d.timeoutID=setTimeout(function(){C(1,a,d,B,x,h,t,n,w)},p))}});e.multimedia_perspective_carousel.continueAutoplay=function(p){d.isPrettyPhoto=!1;h.mouseleave()};var A=e(".contentHolderUnit",h);A.on("mouseover",function(){e(this).attr("xrel")==d.current_img_no&&n.css("display","block");e(this).css({"border-color":a.borderColorON})});A.on("mouseout",function(){e(this).attr("xrel")==d.current_img_no&&n.css("display","none");e(this).css({"border-color":a.borderColorOFF})});A.on("click", 56 function(){if(!d.slideIsRunning&&!d.fastForwardRunning){var p=e(this).attr("xrel");p!=d.current_img_no?(e(B[d.current_img_no]).removeClass("bottomNavButtonON"),P(parseInt(p,10),a,d,B,x,h,t,n,w)):Q(d,a,x)}});n.on("mouseover",function(){n.css("display","block")});n.on("click",function(){Q(d,a,x)});g.on("mousedown",function(){F=!0;d.slideIsRunning||d.fastForwardRunning||(d.isPrettyPhoto=!1,clearTimeout(d.timeoutID),C(-1,a,d,B,x,h,t,n,w))});g.on("mouseup",function(){F=!1});f.on("mousedown",function(){F= 57 !0;d.slideIsRunning||d.fastForwardRunning||(d.isPrettyPhoto=!1,clearTimeout(d.timeoutID),C(1,a,d,B,x,h,t,n,w))});f.on("mouseup",function(){F=!1});var B=e(".bottomNavButtonOFF",h);B.on("mousedown",function(){F=!0;if(!d.slideIsRunning&&!d.fastForwardRunning){var p=e(this).attr("rel");p!=d.current_img_no&&(d.isPrettyPhoto=!1,e(B[d.current_img_no]).removeClass("bottomNavButtonON"),a.showPreviewThumbs&&v.remove(),P(parseInt(p,10),a,d,B,x,h,t,n,w))}});B.on("mouseup",function(){F=!1});B.on("mouseenter", 58 function(){var p=e(this),E=p.attr("rel");a.showPreviewThumbs&&(v=e('<div class="bottomOverThumb"></div>'),p.append(v),E=e(x[E]).attr("data-bottom-thumb"),v.html('<img src="'+E+'">'));p.addClass("bottomNavButtonON")});B.on("mouseleave",function(){var p=e(this),E=p.attr("rel");a.showPreviewThumbs&&v.remove();d.current_img_no!=E&&p.removeClass("bottomNavButtonON")});a.enableTouchScreen&&q.swipe({swipe:function(p,E,I,U,V,W){d.effectIsRunning||C("right"==E?-1:1,a,d,B,x,h,t,n,w)}});document.body.addEventListener("keydown", 59 function(p){switch(p.which){case 37:g.mousedown();F=!1;break;case 39:f.mousedown(),F=!1}});var N=!1;e(window).on("resize",function(){var p=String(navigator.userAgent).toLowerCase();if(!d.isPrettyPhoto||"undefined"==String(e(x[d.current_img_no]).attr("data-video-selfhosted"))||-1!=p.indexOf("android")||-1!=p.indexOf("ipad")||-1!=p.indexOf("iphone")||-1!=p.indexOf("ipod")||-1!=p.indexOf("webos")){var E=R(),I=!0;-1!=E&&9==E&&0==d.windowWidth&&(I=!1);d.windowWidth==e(window).width()?(I=!1,a.windowCurOrientation== 60 window.orientation||-1==p.indexOf("android")&&-1==p.indexOf("ipad")&&-1==p.indexOf("iphone")&&-1==p.indexOf("ipod")&&-1==p.indexOf("webos")||(a.windowCurOrientation=window.orientation,I=!0)):d.windowWidth=e(window).width();a.responsive&&I?(!1!==N&&clearTimeout(N),d.isPrettyPhoto&&e.prettyPhotoCarouselMultimedia.close(),N=setTimeout(function(){T(d,a,t,x,b,m,h,g,k,r,u,D,B,n,w,q,A)},300)):I&&d.isPrettyPhoto&&e.prettyPhotoCarouselMultimedia.close()}});e(B[d.current_img_no]).addClass("bottomNavButtonON"); 61 c=h.find("img:first");
61if(c[0].complete)e(".myloader",h).css("display","none"),0<a.autoPlay&&1<t&&(a.showCircleTimer&&(d.arcInitialTime=(new Date).getTime(),d.timeElapsed=0,d.intervalID=setInterval(function(){M(d,a)},125)),d.timeoutID=setTimeout(function(){C(1,a,d,B,x,h,t,n,w)},1E3*a.autoPlay));else c.on("load",function(){e(".myloader",h).css("display","none");0<a.autoPlay&&1<t&&(a.showCircleTimer&&(d.arcInitialTime=(new Date).getTime(),d.timeElapsed=0,d.intervalID=setInterval(function(){M(d,a)},125)), 62 d.timeoutID=setTimeout(function(){C(1,a,d,B,x,h,t,n,w)},1E3*a.autoPlay))})})};e.fn.multimedia_perspective_carousel.defaults={skin:"white",width:960,height:384,width100Proc:!1,height100Proc:!1,autoPlay:4,numberOfVisibleItems:3,elementsHorizontalSpacing:120,elementsVerticalSpacing:20,verticalAdjustment:0,animationTime:.8,easing:"easeOutQuad",resizeImages:!0,target:"_blank",showElementTitle:!0,showAllControllers:!0,showNavArrows:!0,showOnInitNavArrows:!0,autoHideNavArrows:!0,showBottomNav:!0,showOnInitBottomNav:!0, 63 autoHideBottomNav:!0,showPreviewThumbs:!0,nextPrevMarginTop:0,playMovieMarginTop:0,enableTouchScreen:!0,absUrl:"",titleColor:"#000000",imageWidth:452,imageHeight:302,border:0,borderColorOFF:"transparent",borderColorON:"#FF0000",showCircleTimer:!0,showCircleTimerIE8IE7:!1,circleRadius:10,circleLineWidth:4,circleColor:"#FF0000",circleAlpha:100,behindCircleColor:"#000000",behindCircleAlpha:50,circleLeftPositionCorrection:3,circleTopPositionCorrection:3,responsive:!0,responsiveRelativeToBrowser:!1,centerPlugin:!1, 64 bottomNavMarginBottom:0,activeItemClass:"",getYouTubeData:!0,origWidth:0,origHeight:0,contentHolderUnitOrigWidth:0,contentHolderUnitOrigHeight:0,elementOrigTop:0,origthumbsHolder_MarginTop:0,windowOrientationScreenSize0:0,windowOrientationScreenSize90:0,windowOrientationScreenSize_90:0,windowCurOrientation:0}})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.