PageSourceSearch

https://vegasindo.com/scripts/yoxview/jquery.yoxview-2.21.js

js vegasindo.com collected 2026-10-09 02:04:39 UTC 27,793 bytes, 1 lines download raw bytes

1!function(Qe){Qe.yoxview||(Qe.yoxview=new function(){var o=o||Yox.getPath(/(.*\/)jquery\.yoxview/i),n={autoHideInfo:!0,autoPlay:!1,backgroundColor:"#000000",backgroundOpacity:.8,buttonsFadeTime:300,cacheBuffer:5,cacheImagesInBackground:!0,controlsInitialFadeTime:1500,controlsInitialDisplayTime:1e3,dataFolder:o+"data/",defaultDimensions:{flash:{width:720,height:560},iframe:{width:1024}},flashVideoPlayer:"jwplayer",imagesFolder:o+"images/",infoBackColor:"#000000",infoBackOpacity:.5,isRTL:!1,lang:"en",langFolder:o+"lang/",loopPlay:!0,playDelay:3e3,popupMargin:20,popupResizeTime:600,renderButtons:!0,renderMenu:!0,showBarsOnOpen:!0,showButtonsOnOpen:!0,showDescription:!0,textLinksSelector:".yoxviewLink",thumbnailsOptions:{thumbnailsClass:"yoxview_thumbnail"},titleAttribute:"title",titleDisplayDuration:2e3,renderInfoPrevNext:!1};this.infoButtons={},this.isOpen=!1,this.yoxviewSkins={};var d,u,p,a,s,h,r,c,f,g,m,y,v,x,w,I,b,l,k,T,B,P,F,O,S,D,C,e,E,L,H,N,_,Y,A,M,R={},i=new Image,z=0,U=0,j={},V={},q=0,W=window!=window.parent,Q=!1,G={wmode:"transparent",width:"100%",height:"100%",allowfullscreen:"true",allowscriptaccess:"true",hasVersion:9},J=!0,K=0,X=30,Z=!1,$=!0,ee=!1,te=!1,ie=[],ne=!1,oe={width:100,height:100},ae="yoxview_mediaPanel",se={vimeo:"http://vimeo.com/api/oembed.json",myspace:"http://vids.myspace.com/index.cfm?fuseaction=oembed"},t=-42,re=[],ce={},le={},de=Qe(Yox.getTopWindow()),ue=!1,pe=new Image,he={},fe={40:"DOWN",35:"END",13:"ENTER",36:"HOME",37:"LEFT",39:"RIGHT",32:"SPACE",38:"UP",72:"h",27:"ESCAPE"};function ge(e){return"a:has(img)"+(null!==e.textLinksSelector?",a"+e.textLinksSelector:"")}function me(e){var t=e.data("yoxview");if(!m||q!=t.viewIndex){t.cacheVars||(t.cacheVars={cachedImagesCount:0,cacheDirectionForward:!0,cacheBufferLastIndex:null,currentCacheImg:0}),m=t.images,K=m.length,q=t.viewIndex;var i=!1,n=!a||a!=t.optionsSet;
1n&&(a=t.optionsSet||0,F=re[a],i=!0),F.onLoadImages?F.onLoadImages({images:m,viewData:t}):(L&&1==K||C&&!L&&0<K)&&(i=!0),i&&function(){C&&(E.remove(),S=O=g=f=T=L=C=void 0,U=0,Qe.yoxview.infoButtons={});Pe()}(),R=t.cacheVars}}function ye(e,t,i){var n=t&&(t.width||t.height)?{width:parseInt(t.width),height:parseInt(t.height)}:i.defaultDimensions[e];return isNaN(n.width)&&(n.width=null),isNaN(n.height)&&(n.height=null),n}this.init=function(e,t){var c,l=Qe.extend(!0,{},n,t);function i(){e.each(function(e,i){i=Qe(i);var o=ie.length;i.data("yoxview",{viewIndex:o,cacheVars:{cachedImagesCount:0,cacheDirectionForward:!0,cacheBufferLastIndex:null,currentCacheImg:0}});var n=i.data("yoxview");c&&(n.optionsSet=c),l.allowedImageUrls=[Yox.Regex.image],l.allowedUrls&&(l.allowedImageUrls=l.allowedImageUrls.concat(l.allowedUrls));var a="A"==i[0].tagName,t=a?i:i.find(ge(l)),s=[],r=0;t.each(function(e,t){var i=Qe(t),n=function(e,t){var i={},n=e.attr("href"),o=e.children("img:first");0==o.length&&(o=e);var i={};for(supportedType in ve){var a=ve[supportedType](e,n,o,t);if(a){Qe.extend(a,{contentType:supportedType,elementId:z++}),i.media=a;break}}return i.media?(i.thumbnailImg=o,i):null}(i,l);n&&(s.push(n),a?i.data("yoxview").imageIndex=r:i.data("yoxview",{imageIndex:r,viewIndex:o}),r++)}),l.images&&(s=s.concat(l.images)),l.dataSource?Yox.dataSources[l.dataSource].getImagesData(l,function(e){s=s.concat(e.images),n.images=s,e.title&&l.thumbnailsOptions&&l.thumbnailsOptions.setHeader&&Qe(l.thumbnailsOptions.headerElement||"<h2>",{html:e.title,class:l.thumbnailsOptions.headerClass}).appendTo(i);var t=e.isGroup?[Qe.extend(e,{media:{title:e.title+" ("+e.images.length+" images)",alt:e.title}})]:e.images;xe(i,l,a?null:t,e.createGroups?function(e){var t=Qe(e.currentTarget).data("yoxview"),i=Qe(e.currentTarget),n=i.data("yoxthumbs");if(t.imagesAreSet)Qe.yoxview.open(t.viewIndex);else{i.css("cursor","wait");var o=Qe.extend({},l);o.dataSourceOptions?Qe.extend(o.dataSourceOptions,n):o.dataSourceOptions=n,Yox.dataSources[l.dataSource].getImagesData(o,function(e){t.images=e.images,t.imagesAreSet=!0,i.css("cursor",""),Qe.yoxview.open(t.viewIndex)})}}:null),e.createGroups?Qe.each(i.yoxthumbs("thumbnails"),function(e,t){t.data("yoxview",{viewIndex:++o}),ie.push(Qe(t))}):Qe.each(i.yoxthumbs("thumbnails"),function(e,t){var i=r+e,n=t.children("img");0==n.length&&(n=t),s[i].thumbnailImg=n,t.data("yoxview",{imageIndex:e,viewIndex:o})}),!Qe.yoxview.firstViewWithImages&&0<e.images.length&&(Qe.yoxview.firstViewWithImages=i,l.cacheImagesInBackground&&Qe.yoxview.startCache())}):(n.images=s,xe(i,l)),ie.push(i),!Qe.yoxview.firstViewWithImages&&n.images&&0!=n.images&&(me(Qe.yoxview.firstViewWithImages=i),l.cacheImagesInBackground&&0!=K&&(Se(),De(0)))})}0==re.length?(re.push(l),c=0):c=t?function(e){for(var t=re.length,i=0;i<t;i++)if(Yox.compare(re[i],e))return i;return re.push(e),t}(l):null,function(e,t){if(he[e])t&&t(he[e]);else{he[e]={};data={Direction:"ltr",Close:"Close",Help:"Help",FirstImage:"To the first image",LastImage:"To the last image",StartStopSlideShow:"Play/Pause slideshow",Pause:"Pause",Play:"Play",Prev:"Prev",PinInfo:"Pin info",UnpinInfo:"Unpin info",Next:"Next",PrevImage:"Previous image",NextImage:"Next image",Loading:"Loading",CloseHelp:"Close help",HelpText:"The gallery can be navigated using the keyboard:<br/><br/>LEFT/RIGHT ARROWS: Prev/Next<br/>SPACEBAR: Next<br/>ENTER: Start/Stop slideshow<br/>ESCAPE: Close gallery<br/>HOME/END: First/Last image<br/>H - This help panel",Slideshow:"Play",OriginalContext:"View in original context"},he[e]=data,t&&t(data)}}(l.lang,function(e){!function(e,t){if(e.skin){var i=e.skin;if(Qe.yoxview.yoxviewSkins[i])t&&t(Qe.yoxview.yoxviewSkins[i]);else{var n=o+"skins/"+i+"/yoxview."+i;Qe.ajax({url:n+".js",dataType:"script",success:function(e){!1!==Qe.yoxview.yoxviewSkins[i].css&&Yox.addStylesheet(top.document,n+".css"),t&&t(Qe.yoxview.yoxviewSkins[i])},error:function(){alert("Error loading skin file "+n+".js")}})}}else t&&t(Qe.yoxview.yoxviewSkins[i])}(l,function(e){e&&e.options&&Qe.extend(l,e.options),Yox.loadDataSource(l,i)})})};var ve={image:function(e,t,i,n){for(var o=null,a=0;a<n.allowedImageUrls.length&&!o;a++)t.match(n.allowedImageUrls[a])&&(o={src:e.attr("href"),title:i.attr(n.titleAttribute),alt:i.attr("alt")});return o},flash:function(e,t,i,n){var o=null,a=t.match(Yox.Regex.flash),s=a?null:t.match(Yox.Regex.flashvideo);if(a||s){var r=Yox.getUrlData(t),c=ye("flash",r.queryFields,n);r.queryFields&&(delete r.queryFields.width,delete r.queryFields.height);var l=Qe("<div>",{class:"yoxview_element",html:"<div class='yoxview_error'>Please install the latest version of the <a href='http://www.adobe.com/go/getflashplayer' target='_blank'>
1Flash player</a> to view content</div>"}),d=s?Yox.flashVideoPlayers[n.flashVideoPlayer](n.flashVideoPlayerPath,r.path,r.queryFields&&r.queryFields.image?r.queryFields.image:"IMG"==i[0].nodeName?i.attr("src"):null,i.attr(n.titleAttribute)):r.queryFields||{};a&&(d.swf=r.path),Qe.extend(d,G),l.flash(d),o={element:l,title:i.attr(n.titleAttribute)},Qe.extend(o,c)}return o},ooembed:function(e,t,i,n){var o=null;for(videoProvider in Yox.Regex.video)if(t.match(Yox.Regex.video[videoProvider])){o={provider:videoProvider,url:t};break}return o},inline:function(e,t,i,n){if(!n.allowInternalLinks)return null;var o=null,a=Yox.getUrlData(t);if(a&&a.anchor){var s=Qe("#"+a.anchor);if(0!=s.length){var r={width:parseInt(s.css("width")),height:parseInt(s.css("height"))};s.css({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"block"}),o={type:"inlineElement",element:s,title:s.attr("title")};var c={horizontal:parseInt(s.css("padding-right"))+parseInt(s.css("padding-left")),vertical:parseInt(s.css("padding-top"))+parseInt(s.css("padding-bottom"))};r.width=isNaN(r.width)?null:r.width+c.horizontal,r.height=isNaN(r.height)?null:r.height+c.vertical,Qe.extend(o,r),0==c.horizontal&&0==c.vertical||(o.padding=c),s.remove()}}return o},iframe:function(e,t,i,n){var o=null,a=e.attr("target");if(a&&"yoxview"==a){var s=Yox.getUrlData(t);if(s&&s.path){var r=ye("iframe",s.queryFields,n);s.queryFields&&(delete s.queryFields.width,delete s.queryFields.height),o={element:Qe("<iframe>",{src:Yox.urlDataToPath(s),class:"yoxview_element"}),title:i.attr("title"),frameborder:"0"},Qe.extend(o,r)}}return o}};function xe(e,t,i,n){var o=function(e){var t=Qe(e.currentTarget).data("yoxview");if(!t||null===t.imageIndex)return!0;e.preventDefault(),Qe.yoxview.open(Qe(e.liveFired||e.currentTarget).data("yoxview").viewIndex,t.imageIndex)};"A"==e[0].tagName?e.bind("click.yoxview",o):i?e.yoxthumbs(Qe.extend({images:i,enableOnlyMedia:!1,onClick:n||function(e){return e.preventDefault(),t.thumbnailsOptions&&t.thumbnailsOptions.onClick?t.thumbnailsOptions.onClick(Qe(e.currentTarget).data("yoxview").imageIndex,Qe(e.currentTarget),Qe(e.liveFired).data("yoxview").viewIndex):Qe.yoxview.open(Qe(e.liveFired||e.currentTarget).data("yoxview").viewIndex,Qe(e.currentTarget).data("yoxview").imageIndex),!1}},t.thumbnailsOptions)):e.delegate(ge(t),"click.yoxview",o)}function we(e){var t=ie[q];if((N="A"==t[0].tagName?t:m[U].thumbnailImg)&&0!=N.length||(N=m[0].thumbnailImg),N){var i=N.attr("src");e&&f&&i&&f.attr("src",i),W&&!s&&window.name&&(s=Qe(top.document).find("[name='"+window.name+"']").offset()),_=N.offset(),Y={width:N.width(),height:N.height(),top:Math.round(_.top-de.scrollTop()+(s?s.top:0)),left:Math.round(_.left+(s?s.left:0))}}}function Ie(e){0==e.css("opacity")&&e.stop().animate({opacity:0}
1,F.buttonsFadeTime,void Qe(e).stop().animate({opacity:.5},F.buttonsFadeTime))}function be(e){B.css("background-position",H.getBackgroundPosition("notifications",e)),B.stop().fadeIn(F.buttonsFadeTime,function(){Qe(this).delay(500).fadeOut(F.buttonsFadeTime)})}function ke(e){if(Qe.yoxview&&Qe.yoxview.isOpen){var t=fe[e.keyCode],i=Qe.yoxview[M[t]];return!i||(e.preventDefault(),i.apply(Qe.yoxview),!1)}return!0}function Te(e,t,i){var n=Qe("<a>",{href:"#",click:function(){return Qe.yoxview.clickBtn(Qe.yoxview[t],i)}}),o=Qe("<span>"+e+"</span>");return o.css("opacity","0").appendTo(n),n.append(H.getSprite("icons",t)),n}function Be(e,t,i){var n=new Image;n.src=F.imagesFolder+t+".png";var o=Qe("<a>",{css:{background:"url("+n.src+") no-repeat "+t+" center",opacity:"0",outline:"0"},class:"yoxview_ctlBtn",href:"#"});return o.css(t,"0"),i?o.css("cursor","default"):(o.click(function(){return this.blur(),Qe.yoxview.clickBtn(e,!0)}),0!=F.buttonsFadeTime&&o.hover(function(){Qe.yoxview.isOpen&&Qe(this).stop().animate({opacity:.6},F.buttonsFadeTime)},function(){Qe(this).stop().animate({opacity:0}
1,F.buttonsFadeTime)})),o}function Pe(){!function(){var e="number"==typeof F.popupMargin?[String(F.popupMargin)]:F.popupMargin.split(" ",4);switch(ce.top=parseInt(e[0]),e.length){case 1:ce.bottom=ce.right=ce.left=ce.top;break;case 2:ce.bottom=ce.top,ce.right=ce.left=parseInt(e[1]);break;case 3:ce.bottom=parseInt(e[2]),ce.right=ce.left=parseInt(e[1]);break;default:Qe.extend(ce,{right:parseInt(e[1]),bottom:parseInt(e[2]),left:parseInt(e[3])})}ce.totalHeight=ce.top+ce.bottom,ce.totalWidth=ce.left+ce.right,F.renderInfoExternally&&Qe.extend(le,ce)}(),A=Ye(),H=new Yox.Sprites({notifications:{width:59,height:59,sprites:["empty","playRTL","play","pause","last","first"]},icons:{width:18,height:18,sprites:["close","help","playpause","link","pin","unpin","play","pause","right","left"]},menu:{height:42,sprites:["back"]}},F.imagesFolder+"sprites.png",F.imagesFolder+"empty.gif"),M={RIGHT:F.isRTL?"prev":"next",DOWN:"next",UP:"prev",LEFT:F.isRTL?"next":"prev",ENTER:"play",HOME:"first",END:"last",SPACE:"next",h:"help",ESCAPE:"close"},j=he[F.lang];var e=F.skin?Qe.yoxview.yoxviewSkins[F.skin]:null;C=Qe("<div>",{id:"yoxview",click:function(e){e.stopPropagation()}}),E=Qe("<div>",{id:"yoxview_popupWrap",click:function(e){e.preventDefault(),Qe.yoxview.clickBtn(Qe.yoxview.close,!0)}}),F.skin&&E.attr("class","yoxview_"+F.skin),0===F.backgroundOpacity?E.css("background","none"):Yox.Support.rgba()&&E.css("background-color",Yox.hex2rgba(F.backgroundColor,F.backgroundOpacity)),E.appendTo(Qe(top.document.getElementsByTagName("body")[0])).append(C),O=Qe("<div>",{class:"yoxview_imgPanel",css:{"z-index":"2"}}),S=Qe("<div>",{class:"yoxview_imgPanel",css:{"z-index":"1",display:"none"}}),f=Qe("<img />",{class:"yoxview_fadeImg",css:{display:"block",width:"100%",height:"100%"}}),g=Qe("<img />",{class:"yoxview_fadeImg",css:{display:"block",width:"100%",height:"100%"}}),O.data("yoxviewPanel",{image:f}).append(f).appendTo(C),S.data("yoxviewPanel",{image:g}),S.append(g).appendTo(C);var t=1==K;if(t&&!m[0].media.title&&(F.renderInfo=!1),!1!==F.renderMenu){var i=Qe("<div>",{class:"yoxview_popupBarPanel yoxview_top"});!1!==F.autoHideMenu&&i.hover(function(){Qe.yoxview.isOpen&&Ue()},function(){Qe.yoxview.isOpen&&ze()}),k=Qe("<div>",{id:"yoxview_menuPanel"}),Yox.Support.rgba()&&F.menuBackgroundColor&&k.css("background",Yox.hex2rgba(F.menuBackgroundColor,F.menuBackgroundOpacity||.8));var n=Te(j.Help,"help",!1);Qe.yoxview.infoButtons.playBtn=Te(j.Slideshow,"play",!1),D=Qe.yoxview.infoButtons.playBtn.children("span"),k.append(Te(j.Close,"close",!0),n,Qe.yoxview.infoButtons.playBtn),t&&(Qe.yoxview.infoButtons.playBtn.css("display","none"),n.css("display","none"),k.css({width:58})),k.find("a:last-child").attr("class","last"),i.append(k).appendTo(C)}!1===F.renderButtons||t&&Qe.support.opacity?p=Qe():(L=Be(Qe.yoxview.prev,F.isRTL?"right":"left",t),T=Be(Qe.yoxview.next,F.isRTL?"left":"right",t),C.append(L,T),p=t&&!Qe.support.opacity?Qe():C.find(".yoxview_ctlBtn")),(d=Qe("<div>",{id:"yoxview_ajaxLoader",class:"yoxview_notification",css:{display:"none"}})).append(Qe("<img>",{src:F.imagesFolder+"popup_ajax_loader.gif",alt:j.Loading,css:{width:60,height:60,"background-image":"url("+F.imagesFolder+"sprites.png)","background-position":H.getBackgroundPosition("notifications","empty")}})).appendTo(C),F.disableNotifications||(B=Qe("<img>",{class:"yoxview_notification"}),C.append(B)),h=Qe("<div>",{id:"yoxview_helpPanel",href:"#",title:j.CloseHelp,css:{background:"url("+F.imagesFolder+"help_panel.png) no-repeat center top",direction:j.Direction,opacity:"0"},click:function(){return Qe.yoxview.clickBtn(Qe.yoxview.help,!1)}});var o=document.createElement("h1");o.innerHTML=j.Help.toUpperCase();var a=document.createElement("p");a.style.fontSize="11px",a.innerHTML=j.HelpText;var s=document.createElement("span");if(s.id="yoxview_closeHelp",h.append(o).append(a).append(s).appendTo(C),!1!==F.renderInfo){if(y=Qe("<div>",{id:"yoxview_infoPanel",click:function(e){e.stopPropagation()}}),0===F.infoBackOpacity?(y.css("background","none"),v=y):Yox.Support.rgba()?(v=y).css("background-color",Yox.hex2rgba(F.infoBackColor,F.infoBackOpacity)):(y.append(Qe("<div>",{id:"yoxview_infoPanelBack",css:{background:F.infoBackColor,opacity:F.infoBackOpacity}})),v=Qe("<div>",{id:"yoxview_infoPanelContent"})),u=Qe("<span>",{id:"yoxview_count"}),b=Qe("<div>",{id:"yoxview_infoText"}),t&&(b.css("margin-left","10px"),u.css("display","none")),v.append(u),!1!==F.renderInfoPin&&(I=H.getSprite("icons",F.autoHideInfo?"pin":"unpin"),Qe("<a>",{class:"yoxviewInfoLink",href:"#",title:F.autoHideInfo?j.PinInfo:j.UnpinInfo,css:{display:"inline"},click:function(e){e.preventDefault(),F.autoHideInfo=!F.autoHideInfo,I.css("background-position",H.getBackgroun
1dPosition("icons",F.autoHideInfo?"pin":"unpin")),this.title=F.autoHideInfo?j.PinInfo:j.UnpinInfo}}).append(I).appendTo(v)),!t&&F.renderInfoPrevNext){var r=Qe("<img>",{src:F.imagesFolder+"right1.png",alt:j.Next,css:{width:30,height:30,"border-radius":4,"margin-top":5,"margin-right":10}});infoNextLink=Qe("<a>",{class:"yoxviewInfoLink",title:j.Next,css:{display:"inline",cursor:"pointer"},click:function(e){e.preventDefault(),Qe.yoxview.next(),this.title=j.Next}}),infoNextLink.append(r).appendTo(v);var c=Qe("<img>",{src:F.imagesFolder+"left1.png",alt:j.Prev,css:{width:30,height:30,"border-radius":4,"margin-top":5}});infoPrevLink=Qe("<a>",{class:"yoxviewInfoLink",title:j.Prev,css:{display:"inline",cursor:"pointer"},click:function(e){e.preventDefault(),Qe.yoxview.prev(),this.title=j.Prev}}),infoPrevLink.append(c).appendTo(v)}if(e&&e.infoButtons){var l=e.infoButtons(F,j,H,E,C);F.infoButtons?Qe.extend(F.infoButtons,l):F.infoButtons=l}if(F.infoButtons)for(infoButton in Qe.extend(Qe.yoxview.infoButtons,F.infoButtons),F.infoButtons)F.infoButtons[infoButton].attr("class","yoxviewInfoLink").css("display","block").appendTo(v);!1!==F.linkToOriginalContext&&(x=Qe("<a>",{class:"yoxviewInfoLink",target:"_blank",title:j.OriginalContext})).append(H.getSprite("icons","link")).appendTo(v),v.append(b),Yox.Support.rgba()||y.append(v),y.appendTo(F.renderInfoExternally?E:C),F.renderInfoExternally||((w=Qe("<div>",{class:"yoxview_popupBarPanel yoxview_bottom"})).hover(function(){Qe.yoxview.isOpen&&!Q&&!1!==F.autoHideInfo&&Me()},function(){Qe.yoxview.isOpen&&!Q&&!1!==F.autoHideInfo&&Re()}),y.wrap(w),w=y.parent())}Yox.Support.rgba()||Qe("<div>",{css:{position:"fixed",height:"100%",width:"100%",top:"0",left:"0",background:F.backgroundColor,"z-index":"1",opacity:F.backgroundOpacity}}).appendTo(E)}function Fe(){R.cachedImagesCount++,R.cachedImagesCount==K?R.cacheComplete=!0:Oe()}function Oe(){F.cacheBuffer&&R.currentCacheImg==R.cacheBufferLastIndex||De(R.currentCacheImg+(R.cacheDirectionForward?1:-1))}function Se(){F.cacheBuffer&&(R.cacheBufferLastIndex=R.cacheDirectionForward?U+F.cacheBuffer:U-F.cacheBuffer,R.cacheBufferLastIndex<0?R.cacheBufferLastIndex+=K:R.cacheBufferLastIndex>=K&&(R.cacheBufferLastIndex-=K))}function De(e){if(!R.cacheComplete){e==K?e=0:e<0&&(e+=K);var t=m[e].media;R.currentCacheImg=e,t&&!t.loaded?t.contentType&&"image"!==t.contentType?qe(t,function(){Fe()}):i.src=t.src:Oe()}}function Ce(e){ee||(ne=!0,clearTimeout(l),d.stop(),l=setTimeout(function(){d.css("opacity","0.6").fadeIn(F.buttonsFadeTime)},F.buttonsFadeTime)),function(e){try{if(!e)throw"Error: Media is unavailable.";"image"!==e.contentType&&e.contentType?e.loaded||"ooembed"!=e.contentType?Ve(Qe.yoxview.currentImage.media):qe(e,function(e){Ve(e)},function(e){We("Error getting data from:<br /><span class='errorUrl'>"+e.data.url+"</span>")}):(Qe.support.opacity&&(pe.src=""),pe.src=e.src)}catch(e){We(e)}}(Qe.yoxview.currentImage.media)}function Ee(e,t){C.stop().animate(e,F.popupResizeTime,t)}function Le(){1!=K&&(ee=!0,D?D.text(j.Pause):Qe.yoxview.infoButtons.playBtn&&Qe.yoxview.infoButtons.playBtn.attr("title",j.Pause),Qe.yoxview.infoButtons.playBtn&&Qe.yoxview.infoButtons.playBtn.find("img").css("background-position",H.getBackgroundPosition("icons","pause")),U<K-1?e=setTimeout(function(){Qe.yoxview.next(!0)},F.playDelay):(F.loopPlay?e=setTimeout(function(){Qe.yoxview.select(0,null)},F.playDelay):He(),F.onEnd&&setTimeout(F.onEnd,F.playDelay)))}function He(){clearTimeout(e),ee=!1,D?D.text(j.Play):Qe.yoxview.infoButtons.playBtn&&Qe.yoxview.infoButtons.playBtn.attr("title",j.Play),Qe.yoxview.infoButtons.playBtn&&Qe.yoxview.infoButtons.playBtn.find("img").css("background-position",H.getBackgroundPosition("icons","play"))}this.open=function(e,t,i){var n=this instanceof jQuery;if(n){e&&"function"==typeof e&&(i=e);var o=this.data("yoxview");e=o.viewIndex,t=o.imageIndex}else"function"==typeof e?(i=e,e=t=0):"function"==typeof t&&(i=t,t=0);return e=e||0,t=t||0,Qe(document).bind("keydown.yoxview",ke),me(ie[e]),C||0==K||Pe(),Qe.yoxview.selectImage(t),E.stop().css({opacity:0,display:"block"}).animate({opacity:1},"slow",function(){E.css("opacity","")}
1),F.cacheImagesInBackground&&De(t),i&&(P=i),!!n&&this},this.selectImage=function(e){Qe.yoxview.currentImage=m[e],U=e,we(!0),N.blur(),O.css({"z-index":"1",width:"100%",height:"100%"}),S.css({display:"none","z-index":"2"}),J=!0,C.css(Y),this.select(e)},this.refresh=function(){(ue=ee)&&He(),Ce(U),ue&&Le()},this.options=function(i,e){if(!i)return this;if(e&&"string"==typeof i){var t=i;(i={})[t]=e}if(this instanceof jQuery){var n=this.data("yoxview");return n&&(Qe.extend(re[n.optionsSet||0],i),this.yoxview("update")),this}Qe.each(re,function(e,t){Qe.extend(t,i)}),Qe.yoxview.update()},this.select=function(e,t,i){if("number"==typeof t&&(i=t,t=void 0),i=i||0,!te){if(e<0){if(e=K-1,F.onEnd)return void F.onEnd()}else if(e==K&&(e=0,F.onEnd))return void F.onEnd();!ee&&t&&Ie(t),Qe.yoxview.currentImage=m[e],Ce(U=e),Se(),F.onSelect&&F.onSelect(e,m[e])}},this.prev=function(e){R.cacheDirectionForward=!1,this.select(U-1,L),ee&&!0!==e&&He()},this.next=function(e){R.cacheDirectionForward=!0,this.select(U+1,T),ee&&!0!==e&&He()},this.first=function(){F.disableNotifications||be("first"),this.select(0),ee&&He()},this.last=function(){F.disableNotifications||be("last"),this.select(K-1),ee&&He()},this.setDefaults=function(e){Qe.extend(!0,n,e)},this.play=function(){this.isOpen&&1!=K&&(R.cacheDirectionForward=!0,ee?(F.disableNotifications||be("pause"),He()):(F.disableNotifications||be("play"),Le()))},this.close=function(){this.isOpen&&(this.closeHelp(),we(!1),Ee(Y,function(){Qe.yoxview.isOpen=!1}),ze(),y&&Re(function(){b.html("")}),Ne.animate({width:Y.width,height:Y.height},F.popupResizeTime,function(){Ne.css("opacity",1)}),E.stop().fadeOut(1e3),ee&&He(),je(),F.onClose&&F.onClose(),Qe(document).unbind("keydown.yoxview"),te=!1)},this.help=function(){this.isOpen&&("none"==h.css("display")?h.css("display","block").stop().animate({opacity:.8},F.buttonsFadeTime):this.closeHelp())},this.closeHelp=function(){"none"!=h.css("display")&&h.stop().animate({opacity:0}
1,F.buttonsFadeTime,function(){h.css("display","none")})},this.clickBtn=function(e,t){return t&&ee&&He(),e.call(this),!1},de.bind("resize.yoxview",function(){A=Ye(),Qe.yoxview.isOpen&&Qe.yoxview.resize()}),Qe(i).load(function(){Qe.extend(m[R.currentCacheImg].media,{width:this.width,height:this.height,loaded:!0}),Fe()}).error(function(){Fe()}),this.startCache=function(){me(this.firstViewWithImages),Se(),De(0)};var Ne=S,_e=O;function Ye(){var e=de.width(),t=de.height(),i={height:t,width:e,usableArea:{height:t-ce.totalHeight,width:e-ce.totalWidth}};return i}function Ae(e){var t=e.width&&e.height?Yox.fitImageSize(e,A.usableArea):{width:e.width?Math.min(e.width,A.usableArea.width):A.usableArea.width,height:e.height?Math.min(e.height,A.usableArea.height):A.usableArea.height};return t.top=ce.top+Math.round((A.usableArea.height-t.height)/2),t.left=ce.left+Math.round((A.usableArea.width-t.width)/2),t}function Me(t){clearTimeout(r);var i=b.outerHeight();i<X&&(i=X),y.height()!==i&&y.stop().animate({height:i},500,function(){if(F.renderInfoExternally){var e=y.position();Qe.extend(ce,le),0===e.top?ce.top+=i:ce.bottom+=i,ce.totalHeight=ce.top+ce.bottom,A=Ye(),Qe.yoxview.resize(!1)}t&&t()})}function Re(e){clearTimeout(r),y.stop().animate({height:0},500,function(){e&&e()})}function ze(e){k&&(clearTimeout(c),k.stop().animate({top:t},500,function(){e&&e()}))}function Ue(e){k&&(clearTimeout(c),k.stop().animate({top:0},500,function(){e&&e()}))}function je(){_e=Ne,Ne=Z?S:O,Z=!Z}function Ve(e){if(500!=e.width){var t="image"===e.contentType||!e.contentType;t&&Q&&w&&w.css("display","block"),clearTimeout(r),je();var i=Ne.data("yoxviewPanel");if(V.width=e.width,V.height=e.height,V.padding=e.padding,y){var n=e.title||"";F.showDescription&&e.description&&(n+=""!=n?"<div id='yoxview_infoTextDescription'>"+e.description+"</div>":e.description),b.html(n),1<K&&u.html(U+1+"/"+K),x&&(Qe.yoxview.currentImage.link?x.attr("href",Qe.yoxview.currentImage.link).css("display","inline"):x.css("display","none"))}var o=Ae(e);t?(currentImageElement=Z?f:g,currentImageElement.attr({src:e.src,title:e.title,alt:e.alt}),i.image=currentImageElement,!i.isImage&&i.element&&(i.element.css("display","none"),i.image.css("display","block"),i.isImage=!0),$||(F.renderButtons&&p.css({height:"100%",width:"50%",top:"0"}),$=!(Q=!1))):(i.element&&i.elementId!=e.elementId&&(i.element.remove(),i.element=void 0),i.element||(e.html?(i.element=Qe("<div>",{class:ae}),C.append(i.element)):(C.append(e.element),i.element=e.element)),e.html&&i.element.html(e.html),Ne=i.element,$&&(w&&(!1!==F.autoHideInfo&&Re(),w.css("display","none"),Q=!0),F.renderButtons&&p.css({width:oe.width,height:oe.height}),$=!1),F.renderButtons&&p.css({top:(o.height-oe.height)/2}),(void 0===i.isImage||i.isImage)&&(i.element.css("display","block"),i.image.css("display","none"),i.isImage=!1));var a={width:o.width,height:o.height};Ne.css(J?{width:"100%",height:"100%"}:a),ne&&(ne=!1,clearTimeout(l),d.stop().fadeOut(F.buttonsFadeTime)),te=!0,Ee(o,function(){if(J&&(Qe.yoxview.isOpen=!0,Ne.css(a),0<F.controlsInitialDisplayTime&&(F.showButtonsOnOpen&&p.animate({opacity:.5},F.controlsInitialFadeTime,function(){0!=F.buttonsFadeTime&&Qe(this).delay(F.controlsInitialDisplayTime).animate({opacity:0}
1,F.controlsInitialFadeTime)}),F.showBarsOnOpen&&(Ue(function(){!1!==F.autoHideMenu&&(c=setTimeout(function(){ze()},F.controlsInitialDisplayTime))}),y&&Me(function(){!1!==F.autoHideInfo&&(r=setTimeout(function(){Re()},F.controlsInitialDisplayTime))}))),F.autoPlay&&Qe.yoxview.play(),F.onOpen&&F.onOpen(),P&&(P(),P=void 0),J=!1),V.padding){var e=C.width(),t=C.height();V.padding&&(e-=V.padding.horizontal,t-=V.padding.vertical),Ne.css({width:e+"px",height:t+"px"})}te=!1}),Ne.css({"z-index":"2",opacity:1}),_e&&_e.css("z-index","1"),J?Ne.css({display:"block",width:"100%",height:"100%"}):Ne.fadeIn(F.popupResizeTime,function(){_e&&_e.css("display","none"),y&&Me(function(){!1!==F.autoHideInfo&&(r=setTimeout(function(){Re()},F.titleDisplayDuration))}),1<K&&(F.cacheImagesInBackground&&!R.cacheComplete&&De(U+(R.cacheDirectionForward?1:-1)),ee&&Le())})}}function qe(t,i,e){var n,o,a,s,r;"ooembed"==t.contentType&&(n=t.provider,o=t.url,a=F.defaultDimensions.video,s=function(e){Qe.extend(t,e,{loaded:!0}),i&&i(t)},r=e,Qe.ajax({url:se[n]||"http://oohembed.com/oohembed/",data:jQuery.extend({url:o,format:"json"},a),dataType:"jsonp",callbackParameter:"callback",success:function(e){var t={title:e.title,width:e.width,height:e.height,type:e.type};"video"===e.type?t.html=e.html.replace(/<embed /,'<embed wmode="transparent" ').replace(/<param/,'<param name="wmode" value="transparent"><param').replace(/width=\"[\d]+\"/gi,'width="100%"').replace(/height=\"[\d]+\"/gi,'height="100%"'):"photo"===e.type&&jQuery.extend(t,{src:e.url,alt:e.title,type:"image"}),s(t)},error:function(e,t){r&&r(e,t)}}))}function We(e){Ve({html:"<span class='yoxview_error'>"+e+"</span>",width:500,height:300,type:"error",title:""})}this.resize=function(t){ee&&(ue=!0,He());var e=Ae(V);Ne.css({width:"100%",height:"100%"}),te=!0,$||p.css({top:Math.round((e.height-oe.height)/2)}),Ee(e,function(){var e={width:C.width(),height:C.height()};V.padding&&(e.width-=V.padding.horizontal,e.height-=V.padding.vertical),Ne.css(e),te=!1,y&&!1!==t&&Me(),ue&&(Le(),ue=!1)})},Qe(pe).load(function(){0!=this.width?Ve(Qe.extend({},Qe.yoxview.currentImage.media,{width:this.width,height:this.height})):We("Image error")}).error(function(){We("Image not found:<br /><span class='errorUrl'>"+this.src+"</span>")}),this.update=function(){var i;if(this instanceof jQuery)return i=re[this.data("yoxview").optionsSet||0],this.yoxview("unload",function(e){e.yoxview(i)}),this;i=re[0],this.unload(),Qe.each(ie,function(e,t){t.yoxview(i)})},this.unload=function(e){var n=this;if(!F)return this;function t(){var t=ge(F);function i(e){e.undelegate(t,"click.yoxview").removeData("yoxview").yoxthumbs("unload","yoxview").find(t).removeData("yoxview")}if(n instanceof jQuery?n.data("yoxview")&&i(n):(jQuery.each(ie,function(e,t){i(t)}),de.unbind(".yoxview"),C&&(E.remove(),C=void 0)),!e)return n;e(n)}F.onBeforeUnload?F.onBeforeUnload(t):t()}}),Qe.fn.yoxview=function(e){if(0!=this.length){if(Qe.yoxview[e])return Qe.yoxview[e].apply(this,Array.prototype.slice.call(arguments,1));"object"!=typeof e&&e?Qe.error("Method "+e+" does not exist on YoxView."):Qe.yoxview.init(this,e)}return this},Qe(Yox.getTopWindow()).unload(function(){Qe.yoxview&&(Qe.yoxview.unload(),delete Qe.yoxview)})}(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.