1
if(void 0===window.ulb&&(window.ulb={}
2
),!$.browser){var browserObject={msie:!1,version:0}
3
,ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>=0){var version=parseInt(ua.substring(msie+5,ua.indexOf(".",msie)));browserObject.msie=!0,browserObject.version=version}
4
$.browser=browserObject}
5
!function(e,t,n){var o,a=n(e),r=n(t),s=n.fancybox=function(){s.open.apply(this,arguments)}
6
,l=!1,c=void 0!==t.createTouch;n.extend(s,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,depthOfRecur:0,autoSize:!0,autoResize:!c,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,fixed:!(n.browser.msie&&6>=n.browser.version||c),scrolling:"auto",wrapCSS:"fancybox-default",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}
7
}
8
,keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]}
9
,tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div>',image:'<img class="fancybox-image" src="{href}
10
" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}
11
" frameborder="0" hspace="0"'+(n.browser.msie?' allowtransparency="true"':"")+"></iframe>",swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}
12
" /><embed src="{href}
13
" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>',error:'<p class="fancybox-error">'+ulb.error+"</p>",closeBtn:'<div title="'+ulb.closeBtn+'" class="fancybox-item fancybox-close"></div>',next:'<a title="'+ulb.next+'" href="javascript://" class="fancybox-nav fancybox-next"><span></span></a>',prev:'<a title="'+ulb.prev+'" href="javascript://" class="fancybox-nav fancybox-prev"><span></span></a>'}
14
,openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:.8,css:{cursor:"pointer"}
15
,closeClick:!0}
16
,title:{type:"float"}
17
}
18
}
19
,group:{}
20
,opts:{}
21
,coming:null,current:null,isOpen:!1,isOpened:!1,wrap:null,outer:null,inner:null,player:{timer:null,isActive:!1}
22
,ajaxLoad:null,imgPreload:null,transitions:{}
23
,helpers:{}
24
,open:function(e,t){s.close(!0),e&&!n.isArray(e)&&(e=e instanceof n?n(e).get():[e]),s.isActive=!0,s.opts=n.extend(!0,{}
25
,s.defaults,t),n.isPlainObject(t)&&void 0!==t.keys&&(s.opts.keys=!!t.keys&&n.extend({}
26
,s.defaults.keys,t.keys)),s.group=e,s._start(s.opts.index||0)}
27
,cancel:function(){s.coming&&!1===s.trigger("onCancel")||(s.coming=null,s.hideLoading(),s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onabort=s.imgPreload.onerror=null))}
28
,close:function(e){s.cancel(),s.current&&!1!==s.trigger("beforeClose")&&(s.unbindEvents(),!s.isOpen||e&&!0===e[0]?(n(".fancybox-wrap").stop().trigger("onReset").remove(),s._afterZoomOut()):(s.isOpen=s.isOpened=!1,n(".fancybox-item, .fancybox-nav").remove(),s.wrap.stop(!0).removeClass("fancybox-opened"),s.inner.css("overflow","hidden"),s.transitions[s.current.closeMethod]()))}
29
,play:function(e){var t=function(){clearTimeout(s.player.timer)}
30
,i=function(){t(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))}
31
,o=function(){t(),n("body").unbind(".player"),s.player.isActive=!1,s.trigger("onPlayEnd")}
32
;s.player.isActive||e&&!1===e[0]?o():s.current&&(s.current.loop||s.current.index<s.group.length-1)&&(s.player.isActive=!0,n("body").bind({"afterShow.player onUpdate.player":i,"onCancel.player beforeClose.player":o,"beforeLoad.player":t}
33
),i(),s.trigger("onPlayStart"))}
34
,next:function(){if("undefined"==typeof getPhotoVars||o||(o=getPhotoVars()),o&&s.current){s.current.index=0;for(var e=0;e<s.group.length&&(m1=s.group[e].href.match(/\/(?:[0-9]+\.[a-z]+)$/i),m2=s.current.href.match(/\/\d+\.[^\?]+/i),m1[0]!=m2[0]);e++)s.current.index++}
35
s.current&&s.jumpto(+s.current.index+1,1)}
36
,prev:function(){if("undefined"==typeof getPhotoVars||o||(o=getPhotoVars()),o&&s.current){s.current.index=0;for(var e=0;e<s.group.length&&(m1=s.group[e].href.match(/\/(?:[0-9]+\.[a-z]+)$/i),m2=s.current.href.match(/\/\d+\.[^\?]+/i),m1[0]!=m2[0]);e++)s.current.index++}
37
s.current&&s.jumpto(+s.current.index-1,-1)}
38
,jumpto:function(e,t){if("undefined"==typeof getPhotoVars||o||(o=getPhotoVars()),o){var n=s.current.href.split("?");if(c=checkPhotoPosition(o.photoUrls,n[0])){var a,r=pages=0;if($.each(o.photoUrls,(function(e){for(var t in e)r++;pages++}
39
)),1==c[0]?a=res=void 0===o.photoUrls[parseInt(c[1])+1]?1:parseInt(c[1])+1:-1==c[0]&&(a=res=c[1]-1<1?Math.max.apply(Math,Object.keys(o.photoUrls)):parseInt(c[1])-1),1!=pages&&(null==o.photoUrls[a]||r!=s.group.length)){url=o.pageUrlMask.replace(/\%[pa]/gi,(function(e){return"%p"==e?a:"%a"==e?1:void 0}
40
));var l=e;function p(){var n=$(s.group[0]).clone()[0];s.group=new Array,i=0,$.each(o.photoUrls,(function(o,a){a&&$.each(a,(function(o,a){var r=$(n).clone()[0];$(r).attr("data-url","/photo/0-0-"+a[0]),r.href=a[1],s.group.push(r),s.current.href==r.pathname&&(e=l=i+t),i++}
...
</html>