k&&(l=k,m=(l-h)/q+h),m>n&&(m=n,l=(m-h)*q+h),lk||r>n)for(;(l>k||r>n)&&l>p&&r>t;)m-=10,f.aspectRatio?(l=Math.round((m-h)*q+h),l
t&&mg.w||r>g.h)&&l>p&&m>t&&(f.canShrink=!0);b=r-h;
a.innerSpace=b-e.height();a.outerSpace=b-c.height()},_getPosition:function(b){var c=a.current,d=a.getViewport(),f=c.margin,g=a.wrap.width()+f[1]+f[3],k=a.wrap.height()+f[0]+f[2],h={position:"absolute",top:f[0]+d.y,left:f[3]+d.x};c.fixed&&(!b||!1===b[0])&&k<=d.h&&g<=d.w&&(h={position:"fixed",top:f[0],left:f[3]});h.top=Math.ceil(Math.max(h.top,h.top+(d.h-k)*c.topRatio))+"px";h.left=Math.ceil(Math.max(h.left,h.left+.5*(d.w-g)))+"px";return h},_afterZoomIn:function(){var b=a.current,c=b.scrolling;a.isOpen=
a.isOpened=!0;a.wrap.addClass("fancybox-opened").css("overflow","visible");a.update();a.inner.css("overflow","yes"===c?"scroll":"no"===c?"hidden":c);(b.closeClick||b.nextClick)&&a.inner.css("cursor","pointer").bind("click.fb",b.nextClick?a.next:a.close);b.closeBtn&&d(b.tpl.closeBtn).appendTo(a.outer).bind("click.fb",a.close);b.arrows&&1c.end&&(d=1-d),f-=a.innerSpace*d,g-=a.outerSpace*d),a.inner[c.prop](f),a.outer[c.prop](g)},
zoomIn:function(){var b=a.wrap,c=a.current,e,f;e=c.dim;"elastic"===c.openEffect?(f=d.extend({},e,a._getPosition(!0)),delete f.position,e=this.getOrigPosition(),c.openOpacity&&(e.opacity=0,f.opacity=1),a.outer.add(a.inner).width("auto").height("auto"),b.css(e).show(),b.animate(f,{duration:c.openSpeed,easing:c.openEasing,step:this.step,complete:a._afterZoomIn})):(b.css(d.extend({},e,a._getPosition())),"fade"===c.openEffect?b.fadeIn(c.openSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},zoomOut:function(){var b=
a.wrap,c=a.current,d;"elastic"===c.closeEffect?("fixed"===b.css("position")&&b.css(a._getPosition(!0)),d=this.getOrigPosition(),c.closeOpacity&&(d.opacity=0),b.animate(d,{duration:c.closeSpeed,easing:c.closeEasing,step:this.step,complete:a._afterZoomOut})):b.fadeOut("fade"===c.closeEffect?c.closeSpeed:0,a._afterZoomOut)},changeIn:function(){var b=a.wrap,c=a.current,d;"elastic"===c.nextEffect?(d=a._getPosition(!0),d.opacity=0,d.top=parseInt(d.top,10)-200+"px",b.css(d).show().animate({opacity:1,top:"+=200px"},
{duration:c.nextSpeed,easing:c.nextEasing,complete:a._afterZoomIn})):(b.css(a._getPosition()),"fade"===c.nextEffect?b.hide().fadeIn(c.nextSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},changeOut:function(){var b=a.wrap,c=a.current,e=function(){d(this).trigger("onReset").remove()};b.removeClass("fancybox-opened");"elastic"===c.prevEffect?b.animate({opacity:0,top:"+=200px"},{duration:c.prevSpeed,easing:c.prevEasing,complete:e}):b.fadeOut("fade"===c.prevEffect?c.prevSpeed:0,e)}};a.helpers.overlay=
{overlay:null,update:function(){var a,c;this.overlay.width(0).height(0);d.browser.msie?(a=Math.max(k.documentElement.scrollWidth,k.body.scrollWidth),c=Math.max(k.documentElement.offsetWidth,k.body.offsetWidth),a=a').css(b.css).appendTo("body"),this.update(),b.closeClick&&
this.overlay.bind("click.fb",a.close),p.bind("resize.fb",d.proxy(this.update,this)),this.overlay.fadeTo(b.speedIn,b.opacity))},onUpdate:function(){this.update()},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||0,function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c;if(c=a.current.title)c=d(''+c+"
").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner(''),
a.current.margin[2]+=Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.outer)}};d.fn.fancybox=function(b){var c=d(this),e=this.selector||"",f,g=function(g){var h=this,k="rel",m=h[k],n=f;g.ctrlKey||g.altKey||g.shiftKey||g.metaKey||(g.preventDefault(),m||(k="data-fancybox-group",m=d(h).attr("data-fancybox-group")),m&&""!==m&&"nofollow"!==m&&(h=e.length?d(e):c,h=h.filter("["+k+'="'+m+'"]'),n=h.index(this)),b.index=n,a.open(h,b))};b=b||{};f=
b.index||0;e?u.undelegate(e,"click.fb-start").delegate(e,"click.fb-start",g):c.unbind("click.fb-start").bind("click.fb-start",g);return this}})(window,document,jQuery);
(function(r){var k=r.fancybox;k.helpers.buttons={tpl:'',
list:null,buttons:{},update:function(){var d=this.buttons.toggle.removeClass("btnDisabled btnToggleOn");k.current.canShrink?d.addClass("btnToggleOn"):k.current.canExpand||d.addClass("btnDisabled")},beforeLoad:function(d){1>k.group.length?(k.coming.helpers.buttons=!1,k.coming.closeBtn=!0):k.coming.margin["bottom"===d.position?2:0]+=30},onPlayStart:function(){this.list&&this.buttons.play.attr("title","Pause slideshow").addClass("btnPlayOn")},onPlayEnd:function(){this.list&&this.buttons.play.attr("title",
"Start slideshow").removeClass("btnPlayOn")},afterShow:function(d){this.list||(this.list=r(d.tpl||this.tpl).addClass(d.position||"top").appendTo("body"),this.buttons={prev:this.list.find(".btnPrev").click(k.prev),next:this.list.find(".btnNext").click(k.next),play:this.list.find(".btnPlay").click(k.play),toggle:this.list.find(".btnToggle").click(k.toggle)});d=this.buttons;0$.browser.version&&"BackCompat"==document.compatMode&&(fixedFlag=!1,openEf="fade");
$(document).ready(function(){$(".ulightbox").fancybox({padding:3,preload:5,openEffect:openEf,closeEffect:"elastic",nextEffect:"fade",prevEffect:"fade",openEasing:"linear",nextEasing:"linear",prevEasing:"linear",fixed:fixedFlag,helpers:{title:null,overlay:{opacity:.1,speedIn:0,speedOut:0},buttons:{}}});$(".uphoto .ulightbox").fancybox({padding:3,preload:5,openEffect:openEf,closeEffect:"elastic",nextEffect:"fade",prevEffect:"fade",openEasing:"linear",nextEasing:"linear",prevEasing:"linear",fixed:fixedFlag,
beforeShow:function(){var r=$(this.element).data("url");r&&(this.title=''+ulb.photoPage+"");var k=$(this.element).attr("data-title"),d=$(this.element).attr("data-alt");setTimeout(function(){k&&$(".fancybox-image").attr("title",k);d&&$(".fancybox-image").attr("alt",d)},0)},helpers:{title:{type:"float"},overlay:{opacity:.1,speedIn:0,speedOut:0},buttons:{}}});$(window).scroll(function(){$.browser.msie&&10>$.browser.version&&"BackCompat"==document.compatMode&&
$.fancybox.reposition()})});function _bldCont1(r,k){for(var d="allEntImgs"+r,p=[],u=0,a=window[d].length;u$.browser.version&&"BackCompat"==document.compatMode&&$("#videocontent").width($("#videocontent_obj").children().width());$("#videocontent").width($(".vep-videocontent").children().width());$.browser.opera&&($(".vep-videocontent").width($(".vep-videocontent").children().width()),$(".vep-videocontent").height($(".vep-videocontent").children().height()));$.fancybox({href:"#videocontent",fitToView:!1,width:"70%",height:"70%",autoSize:!0,closeClick:!1,openEffect:"none",
closeEffect:"none",padding:3,fixed:fixedFlag,afterClose:function(){setTimeout($(".vep-videocontent").html(""),100)},helpers:{title:null,overlay:{opacity:.8,speedIn:0,speedOut:0},buttons:{}}})};