PageSourceSearch

https://www.cevreciyiz.com/assets/js/ilightbox.min.js

js cevreciyiz.com collected 2026-10-02 13:14:24 UTC 71,813 bytes, 150 lines download raw bytes

1/**
2 * jQuery iLightBox - Revolutionary Lightbox Plugin
3 * http://www.ilightbox.net/
4 * 
5 * @version: 2.1.1 - June 13, 2013
6 * 
7 * @author: Hemn Chawroka
8 *          [email protected]
9 *          http://www.iprodev.com/
10 * 
11 */
12(function(g,r,I){function O(a){var b=[];g("*",a).each(function(){var a="";"none"!=g(this).css("background-image")?a=g(this).css("background-image"):"undefined"!=typeof g(this).attr("src")&&"img"==this.nodeName.toLowerCase()&&(a=g(this).attr("src"));if(-1==a.indexOf("gradient"))for(var a=a.replace(/url\(\"/g,""),a=a.replace(/url\(/g,""),a=a.replace(/\"\)/g,""),a=a.replace(/\)/g,""),a=a.split(","),d=0;d<a.length;d++)if(0<a[d].length&&-1==g.inArray(a[d],b)){var e="";"Explorer"==E.browser&&9>E.version&&
13(e="?"+Math.floor(3E3*Math.random()));b.push(a[d]+e)}});return b}function P(a,b){var c=a.replace(/^.*[\/\\]/g,"");"string"==typeof b&&c.substr(c.length-b.length)==b&&(c=c.substr(0,c.length-b.length));return c}function W(a,b){var c="",d="",e=0,f={},h=0,j=0,g=h=!1,l=!1;if(!a)return!1;b||(b="PATHINFO_ALL");var m={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(d in m)m.PATHINFO_ALL|=m[d];if("number"!==typeof b){b=[].concat(b);for(j=0;j<b.length;j++)m[b[j]]&&
14(e|=m[b[j]]);b=e}d=function(a){a+="";var b=a.lastIndexOf(".")+1;return!b?!1:b!==a.length?a.substr(b):""};b&m.PATHINFO_DIRNAME&&(e=a.replace(/\\/g,"/").replace(/\/[^\/]*\/?$/,""),f.dirname=e===a?".":e);b&m.PATHINFO_BASENAME&&(!1===h&&(h=P(a)),f.basename=h);b&m.PATHINFO_EXTENSION&&(!1===h&&(h=P(a)),!1===g&&(g=d(h)),!1!==g&&(f.extension=g));b&m.PATHINFO_FILENAME&&(!1===h&&(h=P(a)),!1===g&&(g=d(h)),!1===l&&(l=h.slice(0,h.length-(g?g.length+1:!1===g?0:1))),f.filename=l);h=0;for(c in f)h++;return 1==h?
15f[c]:f}function X(a){a=W(a,"PATHINFO_EXTENSION");a=g.isPlainObject(a)?null:a.toLowerCase();return type=0<=Q.image.indexOf(a)?"image":0<=Q.flash.indexOf(a)?"flash":0<=Q.video.indexOf(a)?"video":"iframe"}function R(a){return(a=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/))?{href:a[0]||"",protocol:a[1]||"",authority:a[2]||"",host:a[3]||"",hostname:a[4]||"",port:a[5]||"",pathname:a[6]||"",search:a[7]||"",
16hash:a[8]||""}:null}function J(a,b){b=R(b||"");a=R(a||"");var c;if(!b||!a)c=null;else{c=(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority);var d;d=b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname;var e=[];d.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?e.pop():e.push(a)});
17d=e.join("").replace(/^\//,"/"===d.charAt(0)?"/":"");c=c+d+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash}return c}function ba(a,b,c){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var d=0,e=0,f=0,h={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},d=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return!a.length?[-8]:a.split(".")};a=d(a);b=d(b);e=Math.max(a.length,b.length);for(d=0;d<e;d++)if(a[d]!=
18b[d])if(a[d]=!a[d]?0:isNaN(a[d])?h[a[d]]||-7:parseInt(a[d],10),b[d]=!b[d]?0:isNaN(b[d])?h[b[d]]||-7:parseInt(b[d],10),a[d]<b[d]){f=-1;break}else if(a[d]>b[d]){f=1;break}if(!c)return f;switch(c){case ">":case "gt":return 0<f;case ">=":case "ge":return 0<=f;case "<=":case "le":return 0>=f;case "==":case "=":case "eq":return 0===f;case "<>":case "!=":case "ne":return 0!==f;case "":case "<":case "lt":return 0>f;default:return null}}function K(){var a=0,b=0;if("number"==typeof r.pageYOffset)b=r.pageYOffset,
19a=r.pageXOffset;else if(document.body&&(document.body.scrollLeft||document.body.scrollTop))b=document.body.scrollTop,a=document.body.scrollLeft;else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop))b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft;return{x:a,y:b}}function Y(a,b,c){var d;d=t[a+b];null==d&&(d=t[b]);return null!=d?(0==b.indexOf(a)&&null==c&&(c=b.substring(a.length)),null==c&&(c=b),c+'="'+d+'" '):""}function w(a,
20b){if(0==a.indexOf("emb#"))return"";0==a.indexOf("obj#")&&null==b&&(b=a.substring(4));return Y("obj#",a,b)}function C(a,b){if(0==a.indexOf("obj#"))return"";0==a.indexOf("emb#")&&null==b&&(b=a.substring(4));return Y("emb#",a,b)}function Z(a,b){var c,d="",e=b?" />":">";-1==a.indexOf("emb#")&&(c=t["obj#"+a],null==c&&(c=t[a]),0==a.indexOf("obj#")&&(a=a.substring(4)),null!=c&&(d='  <param name="'+a+'" value="'+c+'"'+e+"\n"));return d}function ca(){for(var a=0;a<arguments.length;a++){var b=arguments[a];
21delete t[b];delete t["emb#"+b];delete t["obj#"+b]}}function da(){var a;a="QT_GenerateOBJECTText";var b=arguments;if(4>b.length||0!=b.length%2)b=ea,b=b.replace("%%",a),alert(b),a="";else{t=[];t.src=b[0];t.width=b[1];t.height=b[2];t.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";t.pluginspage="http://www.apple.com/quicktime/download/";a=b[3];if(null==a||""==a)a="6,0,2,0";
21t.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+a;for(var c,d=4;d<b.length;d+=2)c=b[d].toLowerCase(),a=b[d+
221],"name"==c||"id"==c?t.name=a:t[c]=a;b="<object "+w("classid")+w("width")+w("height")+w("codebase")+w("name","id")+w("tabindex")+w("hspace")+w("vspace")+w("border")+w("align")+w("class")+w("title")+w("accesskey")+w("noexternaldata")+">\n"+Z("src",!1);d="  <embed "+C("src")+C("width")+C("height")+C("pluginspage")+C("name")+C("align")+C("tabindex");ca("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");
23for(c in t)a=t[c],null!=a&&(d+=C(c),b+=Z(c,!1));a=b+d+"> </embed>\n</object>"}return a}function F(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var Q={flash:"swf",image:"bmp gif jpeg jpg png tiff tif jfif jpe",iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt",video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v"},y=g(r),A=g(document),$=function(a,b,c,d){var e=this;e.options=b;e.selector=a.selector||a;e.context=a.context;e.instant=d;1>c.length?
24e.attachItems():e.items=c;e.vars={total:e.items.length,start:0,current:null,next:null,prev:null,BODY:g("body"),loadRequests:0,overlay:g('<div class="ilightbox-overlay"></div>'),loader:g('<div class="ilightbox-loader"><div></div></div>'),toolbar:g('<div class="ilightbox-toolbar"></div>'),innerToolbar:g('<div class="ilightbox-inner-toolbar"></div>'),title:g('<div class="ilightbox-title"></div>'),closeButton:g('<a class="ilightbox-close" title="'+e.options.text.close+'"></a>'),fullScreenButton:g('<a class="ilightbox-fullscreen" title="'+
25e.options.text.enterFullscreen+'"></a>'),holder:g('<div class="ilightbox-holder" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:g('<div class="ilightbox-holder ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:g('<div class="ilightbox-holder ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),thumbnails:g('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),
26thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isInFullScreen:!1,isSwipe:!1,supportTouch:!!("ontouchstart"in r)};e.normalizeItems();e.availPlugins();e.options.startFrom=0<e.options.startFrom&&e.options.startFrom>=e.vars.total?e.vars.total-1:e.options.startFrom;e.options.startFrom=e.options.randomStart?Math.floor(Math.random()*e.vars.total):e.options.startFrom;e.vars.start=e.options.startFrom;d?e.instantCall():e.patchItemsEvents();e.options.linkId&&(e.hashChangeHandler(),y.iLightBoxHashChange(function(){e.hashChangeHandler()}));
27e.vars.supportTouch&&(a=/(click|mouseenter|mouseleave|mouseover|mouseout)/ig,e.options.caption.show=e.options.caption.show.replace(a,"itap"),e.options.caption.hide=e.options.caption.hide.replace(a,"itap"),e.options.social.show=e.options.social.show.replace(a,"itap"),e.options.social.hide=e.options.social.hide.replace(a,"itap"))};$.prototype={showLoader:function(){this.vars.loadRequests+=1;"horizontal"==this.options.path.toLowerCase()?this.vars.loader.stop().animate({top:"-30px"},this.options.show.speed,
28"easeOutCirc"):this.vars.loader.stop().animate({left:"-30px"},this.options.show.speed,"easeOutCirc")},hideLoader:function(){this.vars.loadRequests-=1;this.vars.loadRequests=0>this.vars.loadRequests?0:this.vars.loadRequests;"horizontal"==this.options.path.toLowerCase()?0>=this.vars.loadRequests&&this.vars.loader.stop().animate({top:"-192px"},this.options.show.speed,"easeInCirc"):0>=this.vars.loadRequests&&this.vars.loader.stop().animate({left:"-192px"},this.options.show.speed,"easeInCirc")},createUI:function(){var a=
29this;a.ui={currentElement:a.vars.holder,nextElement:a.vars.nextPhoto,prevElement:a.vars.prevPhoto,currentItem:a.vars.current,nextItem:a.vars.next,prevItem:a.vars.prev,hide:function(){a.closeAction()},refresh:function(){0<arguments.length?a.repositionPhoto(!0):a.repositionPhoto()},fullscreen:function(){a.fullScreenAction()}}},attachItems:function(){var a=this,b=[],c=[];g(a.selector,a.context).each(function(){var d=g(this),e=d.attr(a.options.attr)||null,f=d.data("options")&&eval("({"+d.data("options")+
30"})")||{},h=d.data("caption"),j=d.data("title"),k=d.data("type")||X(e);
30c.push({URL:e,caption:h,title:j,type:k,options:f});a.instant||b.push(d)});a.items=c;a.itemsObject=b},normalizeItems:function(){var a=this,b=[];g.each(a.items,function(c,d){"string"==typeof d&&(d={url:d});var e=d.url||d.URL||null,f=d.options||{},h=d.caption||null,j=d.title||null,k=d.type?d.type.toLowerCase():X(e),l="object"!=typeof e?W(e,"PATHINFO_EXTENSION"):"";f.thumbnail=f.thumbnail||("image"==k?e:null);f.skin=f.skin||a.options.skin;
31f.width=f.width||null;f.height=f.height||null;f.mousewheel="undefined"!=typeof f.mousewheel?f.mousewheel:!0;f.swipe="undefined"!=typeof f.swipe?f.swipe:!0;f.social="undefined"!=typeof f.social?f.social:a.options.social.buttons&&g.extend({},{},a.options.social.buttons);"video"==k&&(f.html5video="undefined"!=typeof f.html5video?f.html5video:{},f.html5video.webm=f.html5video.webm||f.html5video.WEBM||null,f.html5video.controls="undefined"!=typeof f.html5video.controls?f.html5video.controls:"controls",
32f.html5video.preload=f.html5video.preload||"metadata",f.html5video.autoplay="undefined"!=typeof f.html5video.autoplay?f.html5video.autoplay:!1);if(!f.width||!f.height)"video"==k?(f.width=1280,f.height=720):"iframe"==k?(f.width="100%",f.height="90%"):"flash"==k&&(f.width=1280,f.height=720);delete d.url;d.URL=e;d.caption=h;d.title=j;d.type=k;d.options=f;d.ext=l;b.push(d)});a.items=b},instantCall:function(){var a=this.vars.start;this.vars.current=a;this.vars.next=this.items[a+1]?a+1:null;this.vars.prev=
33this.items[a-1]?a-1:null;this.addContents();this.patchEvents()},addContents:function(){var a=this,b=a.vars,c=a.options,d=c.path.toLowerCase();b.overlay.addClass(c.skin).hide().css({opacity:c.overlay.opacity});c.linkId&&b.overlay.attr("linkid",c.linkId);c.controls.toolbar&&(b.toolbar.addClass(c.skin).append(b.closeButton),c.controls.fullscreen&&b.toolbar.append(b.fullScreenButton));b.BODY.addClass("ilightbox-noscroll").append(b.overlay).append(b.loader).append(b.holder).append(b.nextPhoto).append(b.prevPhoto);
34c.innerToolbar||b.BODY.append(b.toolbar);c.controls.thumbnail&&1<b.total&&(b.BODY.append(b.thumbnails),b.thumbnails.addClass(c.skin).addClass("ilightbox-"+d),g("div.ilightbox-thumbnails-grid",b.thumbnails).empty(),b.thumbs=!0);var e="horizontal"==c.path.toLowerCase()?{left:parseInt(y.width()/2-b.loader.outerWidth()/2)}:{top:parseInt(y.height()/2-b.loader.outerHeight()/2)};b.loader.addClass(c.skin).css(e);"horizontal"==d&&b.loader.addClass("horizontal");c.show.effect?setTimeout(function(){a.generateBoxes()},
35c.show.speed):a.generateBoxes();c.show.effect?(b.overlay.stop().fadeIn(c.show.speed),b.toolbar.stop().fadeIn(c.show.speed)):(b.overlay.show(),b.toolbar.show());var f=b.total;c.smartRecognition&&1<b.total&&g.each(a.items,function(c){var d=a.items[c];a.ogpRecognition(d,function(c){c&&g.extend(!0,d,{type:c.type,options:{html5video:c.html5video,width:"image"==c.type?0:c.width||d.width,height:"image"==c.type?0:c.height||d.height,thumbnail:d.options.thumbnail||c.thumbnail}});f--;0==f&&(b.dontGenerateThumbs=
36!1,a.generateThumbnails())})});a.createUI();c.linkId&&(b.hashLock=!0,r.location.hash=c.linkId+"/"+b.current,setTimeout(function(){b.hashLock=!1},55));"function"==typeof a.options.callback.onOpen&&a.options.callback.onOpen.call(a)},loadContent:function(a,b,c){var d=this,e,f;d.createUI();a.speed=c||d.options.effects.loadedFadeSpeed;"current"==b&&(d.vars.lockWheel=a.options.mousewheel?!1:!0,d.vars.lockSwipe=a.options.swipe?!1:!0);switch(b){case "current":e=d.vars.holder;f=d.vars.current;break;case "next":e=
37d.vars.nextPhoto;f=d.vars.next;break;case "prev":e=d.vars.prevPhoto,f=d.vars.prev}e.removeAttr("style class").addClass("ilightbox-holder").addClass(a.options.skin);g("div.ilightbox-inner-toolbar",e).remove();if(a.title||d.options.innerToolbar){c=d.vars.innerToolbar.clone();if(a.title&&d.options.show.title){var h=d.vars.title.clone();h.empty().html(a.title);c.append(h)}d.options.innerToolbar&&c.append(1<d.vars.total?d.vars.toolbar.clone():d.vars.toolbar);e.prepend(c)}d.options.smartRecognition||a.options.smartRecognition?
38d.ogpRecognition(a,function(c){var h=a,l=g.extend({},a,{});c&&(a=g.extend(!0,a,{type:c.type,options:{html5video:c.html5video,width:"image"==c.type?0:c.width||a.width,height:"image"==c.type?0:c.height||a.height,thumbnail:a.options.thumbnail||c.thumbnail}}),h=g.extend({},a,{URL:c.source}),a.options.smartRecognition&&!l.options.thumbnail&&(d.vars.dontGenerateThumbs=!1,d.generateThumbnails()));d.loadSwitcher(h,e,f,b)}):d.loadSwitcher(a,e,f,b)},loadSwitcher:function(a,b,c,d){var e=this,f=e.options,h={element:b,
39position:c};switch(a.type){case "image":"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(a.URL,function(j){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);
39b.data({naturalWidth:j?j.width:400,naturalHeight:j?j.height:200});g("div.ilightbox-container",b).empty().append(j?'<img src="'+
40a.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+f.errors.loadImage+"</span>");"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);e.configureHolder(a,d,b)});break;case "video":b.data({naturalWidth:a.options.width,naturalHeight:a.options.height});e.addContent(b,a);"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,
41h);e.configureHolder(a,d,b);break;case "iframe":e.showLoader();b.data({naturalWidth:a.options.width,naturalHeight:a.options.height});var j=e.addContent(b,a);"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);j.bind("load",function(){"function"==typeof f.callback.onAfterLoad&&
42f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.hideLoader();e.configureHolder(a,d,b);j.unbind("load")});break;case "inline":var j=g(a.URL),k=e.addContent(b,a),l=O(b);b.data({naturalWidth:e.items[c].options.width||j.outerWidth(),naturalHeight:e.items[c].options.height||j.outerHeight()});k.children().eq(0).show();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,
43h);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(l,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.configureHolder(a,d,b)});break;case "flash":j=e.addContent(b,a);b.data({naturalWidth:e.items[c].options.width||j.outerWidth(),naturalHeight:e.items[c].options.height||
44j.outerHeight()});"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);e.configureHolder(a,d,b);break;case "ajax":var m=a.options.ajax||{};"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.showLoader();g.ajax({url:a.URL||f.ajaxSetup.url,data:m.data||null,dataType:m.dataType||"html",type:m.type||f.ajaxSetup.type,
45cache:m.cache||f.ajaxSetup.cache,crossDomain:m.crossDomain||f.ajaxSetup.crossDomain,global:m.global||f.ajaxSetup.global,ifModified:m.ifModified||f.ajaxSetup.ifModified,username:m.username||f.ajaxSetup.username,password:m.password||f.ajaxSetup.password,beforeSend:m.beforeSend||f.ajaxSetup.beforeSend,complete:m.complete||f.ajaxSetup.complete,success:function(j,k,n){e.hideLoader();var l=g(j),p=g("div.ilightbox-container",b),r=e.items[c].options.width||parseInt(l.attr("width")),fa=e.items[c].options.height||
46parseInt(l.attr("height")),t=l.attr("width")&&l.attr("height")?{overflow:"hidden"}:{};p.empty().append(g('<div class="ilightbox-wrapper"></div>').css(t).html(l));b.show().data({naturalWidth:r||p.outerWidth(),naturalHeight:fa||p.outerHeight()}).hide();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);l=O(b);e.loadImage(l,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,
47c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.configureHolder(a,d,b)});f.ajaxSetup.success(j,k,n);"function"==typeof m.success&&m.success(j,k,n)},error:function(j,k,l){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);
47e.hideLoader();g("div.ilightbox-container",b).empty().append('<span class="ilightbox-alert">'+f.errors.loadContents+"</span>");e.configureHolder(a,
48d,b);f.ajaxSetup.error(j,k,l);"function"==typeof m.error&&m.error(j,k,l)}});break;case "html":k=a.URL;container=g("div.ilightbox-container",b);k[0].nodeName?j=k.clone():(k=g(k),j=k.selector?g("<div>"+k+"</div>"):k);var p=e.items[c].options.width||parseInt(j.attr("width")),n=e.items[c].options.height||parseInt(j.attr("height"));e.addContent(b,a);j.appendTo(document.documentElement).hide();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&
49a.options.onRender.call(e,h);l=O(b);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(l,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);b.show().data({naturalWidth:p||container.outerWidth(),naturalHeight:n||container.outerHeight()}).hide();j.remove();e.configureHolder(a,
50d,b)})}},configureHolder:function(a,b,c){var d=this,e=d.vars,f=d.options;"current"!=b&&("next"==b?c.addClass("ilightbox-next"):c.addClass("ilightbox-prev"));if("current"==b)var h=e.current;else if("next"==b)var j=f.styles.nextOpacity,h=e.next;else j=f.styles.prevOpacity,h=e.prev;var k={element:c,position:h};d.items[h].options.width=d.items[h].options.width||0;d.items[h].options.height=d.items[h].options.height||0;"current"==b?f.show.effect?c.fadeIn(a.speed,function(){if(a.caption){d.setCaption(a,
51c);var b=g("div.ilightbox-caption",c),e=parseInt(100*(b.outerHeight()/c.outerHeight()));f.caption.start&50>=e&&b.fadeIn(f.effects.fadeSpeed)}if(b=a.options.social)d.setSocial(b,a.URL,c),f.social.start&&g("div.ilightbox-social",c).fadeIn(f.effects.fadeSpeed);d.generateThumbnails();"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h);"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)}):(c.show(),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,
52d.ui,h),"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)):f.show.effect?c.fadeTo(a.speed,j,function(){"next"==b?e.nextLock=!1:e.prevLock=!1;d.generateThumbnails();"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h);"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)}):(c.css({opacity:j}).show(),"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h),"function"==typeof a.options.onShow&&
53a.options.onShow.call(d,k));setTimeout(function(){d.repositionPhoto()},0)},generateBoxes:function(){var a=this.vars,b=this.options;b.infinite&&3<=a.total?(a.current==a.total-1&&(a.next=0),0==a.current&&(a.prev=a.total-1)):b.infinite=!1;this.loadContent(this.items[a.current],"current",b.show.speed);this.items[a.next]&&this.loadContent(this.items[a.next],"next",b.show.speed);this.items[a.prev]&&this.loadContent(this.items[a.prev],"prev",b.show.speed)},generateThumbnails:function(){var a=this,b=a.vars,
54c=a.options,d=null;if(b.thumbs&&!a.vars.dontGenerateThumbs){var e=b.thumbnails,f=g("div.ilightbox-thumbnails-container",e),h=g("div.ilightbox-thumbnails-grid",f),j=0;h.removeAttr("style").empty();g.each(a.items,function(k,l){var m=b.current==k?"ilightbox-active":"",p=b.current==k?c.thumbnails.activeOpacity:c.thumbnails.normalOpacity,n=l.options.thumbnail,u=g('<div class="ilightbox-thumbnail"></div>'),q=g('<div class="ilightbox-thumbnail-icon"></div>');u.css({opacity:0}).addClass(m);("video"==l.type||
55"flash"==l.type)&&"undefined"==typeof l.options.icon?(q.addClass("ilightbox-thumbnail-video"),u.append(q)):l.options.icon&&(q.addClass("ilightbox-thumbnail-"+l.options.icon),u.append(q));n&&a.loadImage(n,function(b){j++;b?u.data({naturalWidth:b.width,naturalHeight:b.height}).append('<img src="'+n+'" border="0" />'):u.data({naturalWidth:c.thumbnails.maxWidth,naturalHeight:c.thumbnails.maxHeight});clearTimeout(d);d=setTimeout(function(){a.positionThumbnails(e,f,h)},20);setTimeout(function(){u.fadeTo(c.effects.loadedFadeSpeed,
56p)},20*j)});h.append(u)});a.vars.dontGenerateThumbs=!0}},positionThumbnails:function(a,b,c){var d=this,e=d.vars,f=d.options,h=f.path.toLowerCase();a||(a=e.thumbnails);
56b||(b=g("div.ilightbox-thumbnails-container",a));c||(c=g("div.ilightbox-thumbnails-grid",b));var j=g(".ilightbox-thumbnail",c),e="horizontal"==h?y.width()-f.styles.pageOffsetX:j.eq(0).outerWidth()-f.styles.pageOffsetX,k="horizontal"==h?j.eq(0).outerHeight()-f.styles.pageOffsetY:y.height()-f.styles.pageOffsetY,l="horizontal"==h?0:e,m=
57"horizontal"==h?k:0,p=g(".ilightbox-active",c),n={};3>arguments.length&&(j.css({opacity:f.thumbnails.normalOpacity}),p.css({opacity:f.thumbnails.activeOpacity}));j.each(function(){var a=g(this),b=a.data(),c="horizontal"==h?0:f.thumbnails.maxWidth;height="horizontal"==h?f.thumbnails.maxHeight:0;dims=d.getNewDimenstions(c,height,b.naturalWidth,b.naturalHeight,!0);a.css({width:dims.width,height:dims.height});"horizontal"==h&&a.css({"float":"left"});"horizontal"==h?l+=a.outerWidth():m+=a.outerHeight()});
58n={width:l,height:m};c.css(n);var n={},j=c.offset(),u=p.length?p.offset():{top:parseInt(k/2),left:parseInt(e/2)};j.top-=A.scrollTop();j.left-=A.scrollLeft();u.top=u.top-j.top-A.scrollTop();u.left=u.left-j.left-A.scrollLeft();"horizontal"==h?(n.top=0,n.left=parseInt(e/2-u.left-p.outerWidth()/2)):(n.top=parseInt(k/2-u.top-p.outerHeight()/2),n.left=0);3>arguments.length?c.stop().animate(n,f.effects.repositionSpeed,"easeOutCirc"):c.css(n)},loadImage:function(a,b){g.isArray(a)||(a=[a]);var c=this,d=a.length;
590<d?(c.showLoader(),g.each(a,function(e){var f=new Image;f.onload=function(){d-=1;0==d&&(c.hideLoader(),b(f))};f.onerror=f.onabort=function(){d-=1;0==d&&(c.hideLoader(),b(!1))};f.src=a[e]})):b(!1)},patchItemsEvents:function(){var a=this,b=a.vars,c=b.supportTouch?"itap.iLightBox":"click.iLightBox",d=b.supportTouch?"click.iLightBox":"itap.iLightBox";g.each(a.itemsObject,function(e,f){f.on(c,function(){b.current=e;b.next=a.items[e+1]?e+1:null;b.prev=a.items[e-1]?e-1:null;a.addContents();a.patchEvents();
60return!1}).on(d,function(){return!1})})},dispatchItemsEvents:function(){g.each(this.itemsObject,function(a,b){b.off(".iLightBox")})},refresh:function(){this.dispatchItemsEvents();this.attachItems();this.normalizeItems();this.patchItemsEvents()},patchEvents:function(){var a=this,b=a.vars,c=a.options,d=c.path.toLowerCase(),e=g(".ilightbox-holder"),f=s.fullScreenEventName+".iLightBox",h=b.supportTouch?"itap.iLightBox":"click.iLightBox",j=b.supportTouch?"touchstart.iLightBox":"mousedown.iLightBox",k=
61b.supportTouch?"touchend.iLightBox":"mouseup.iLightBox",l=b.supportTouch?"touchmove.iLightBox":"mousemove.iLightBox",m=verticalDistanceThreshold=100;y.bind("resize.iLightBox",function(){a.repositionPhoto(null);b.supportTouch&&(clearTimeout(b.setTime),b.setTime=setTimeout(function(){var a=K().y;r.scrollTo(0,a-30);r.scrollTo(0,a+30);r.scrollTo(0,a)},2E3));b.thumbs&&a.positionThumbnails()}).bind("keydown.iLightBox",function(d){if(c.controls.keyboard)switch(d.keyCode){case 13:d.shiftKey&&c.keyboard.shift_enter&&
62a.fullScreenAction();break;case 27:c.keyboard.esc&&a.closeAction();break;case 37:c.keyboard.left&&!b.lockKey&&a.moveTo("prev");break;case 38:c.keyboard.up&&!b.lockKey&&a.moveTo("prev");break;case 39:c.keyboard.right&&!b.lockKey&&a.moveTo("next");break;case 40:c.keyboard.down&&!b.lockKey&&a.moveTo("next")}});s.supportsFullScreen&&y.bind(f,function(){a.doFullscreen()});var f=[c.caption.show+".iLightBox",c.caption.hide+".iLightBox",c.social.show+".iLightBox",c.social.hide+".iLightBox"].filter(function(a,
63b,c){return c.lastIndexOf(a)===b}),p="";g.each(f,function(a,b){0!=a&&(p+=" ");p+=b});A.on(h,".ilightbox-overlay",function(){c.overlay.blur&&a.closeAction()}).on(h,".ilightbox-next",function(){a.moveTo("next")}).on(h,".ilightbox-prev",function(){a.moveTo("prev")}).on(h,".ilightbox-thumbnail",function(){var c=g(this),c=g(".ilightbox-thumbnail",b.thumbnails).index(c);c!=b.current&&a.goTo(c)}).on(p,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){var d=g("div.ilightbox-caption",b.holder),
64e=g("div.ilightbox-social",b.holder),f=c.effects.fadeSpeed;b.nextLock||b.prevLock?(a.type==c.caption.show&&!d.is(":visible")?d.fadeIn(f):a.type==c.caption.hide&&d.is(":visible")&&d.fadeOut(f),a.type==c.social.show&&!e.is(":visible")?e.fadeIn(f):a.type==c.social.hide&&e.is(":visible")&&e.fadeOut(f)):(a.type==c.caption.show&&!d.is(":visible")?d.stop().fadeIn(f):a.type==c.caption.hide&&d.is(":visible")&&d.stop().fadeOut(f),a.type==c.social.show&&!e.is(":visible")?e.stop().fadeIn(f):a.type==c.social.hide&&
65e.is(":visible")&&e.stop().fadeOut(f))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(a){b.lockWheel="mouseenter"
65==a.type?!0:!1}).on(h,".ilightbox-toolbar a",function(){g(this).hasClass("ilightbox-fullscreen")?a.fullScreenAction():a.closeAction()}).on(l,".ilightbox-overlay, .ilightbox-thumbnails-container",function(a){a.preventDefault()});h=g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");if(c.controls.mousewheel)h.on("mousewheel.iLightBox",function(c,
66d){b.lockWheel||(c.preventDefault(),0>d?a.moveTo("next"):0<d&&a.moveTo("prev"))});if(c.controls.swipe)e.on(j,function(f){function h(a){if(v){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;x={time:(new Date).getTime(),coords:[b.pageX-r,b.pageY-p]};e.each(function(){var a=g(this),b=a.data("offset")||{top:a.offset().top-p,left:a.offset().left-r},c=b.top,b=b.left,e=[v.coords[0]-x.coords[0],v.coords[1]-x.coords[1]];"horizontal"==d?a.stop().css({left:b-e[0]}):a.stop().css({top:c-e[1]})});a.preventDefault()}}
67function j(){e.each(function(){var a=g(this),b=a.data("offset")||{top:a.offset().top-p,left:a.offset().left-r},c=b.top,b=b.left;a.stop().animate({top:c,left:b},500,"easeOutCirc")})}if(!b.nextLock&&!b.prevLock&&1!=b.total&&!b.lockSwipe){b.BODY.addClass("ilightbox-closedhand");f=f.originalEvent.touches?f.originalEvent.touches[0]:f;var p=A.scrollTop(),r=A.scrollLeft(),v={time:(new Date).getTime(),coords:[f.pageX-r,f.pageY-p]},x;e.bind(l,h);A.one(k,function(){e.unbind(l,h);b.BODY.removeClass("ilightbox-closedhand");
68v&&x&&("horizontal"==d&&1E3>x.time-v.time&&Math.abs(v.coords[0]-x.coords[0])>m&&Math.abs(v.coords[1]-x.coords[1])<verticalDistanceThreshold?v.coords[0]>x.coords[0]?b.current==b.total-1&&!c.infinite?j():(b.isSwipe=!0,a.moveTo("next")):0==b.current&&!c.infinite?j():(b.isSwipe=!0,a.moveTo("prev")):"vertical"==d&&1E3>x.time-v.time&&Math.abs(v.coords[1]-x.coords[1])>m&&Math.abs(v.coords[0]-x.coords[0])<verticalDistanceThreshold?v.coords[1]>x.coords[1]?b.current==b.total-1&&!c.infinite?j():(b.isSwipe=!0,
69a.moveTo("next")):0==b.current&&!c.infinite?j():(b.isSwipe=!0,a.moveTo("prev")):j());v=x=I})}})},goTo:function(a){var b=this,c=b.vars,d=b.options,e=a-c.current;d.infinite&&(a==c.total-1&&0==c.current&&(e=-1),c.current==c.total-1&&0==a&&(e=1));if(1==e)b.moveTo("next");else if(-1==e)b.moveTo("prev");else{if(c.nextLock||c.prevLock)return!1;"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui);d.linkId&&(c.hashLock=!0,r.location.hash=d.linkId+"/"+a);b.items[a]&&(b.items[a].options.mousewheel?
70b.vars.lockWheel=!1:c.lockWheel=!0,c.lockSwipe=b.items[a].options.swipe?!1:!0);g.each([c.holder,c.nextPhoto,c.prevPhoto],function(a,b){b.fadeOut(d.effects.loadedFadeSpeed)});c.current=a;c.next=a+1;c.prev=a-1;b.createUI();setTimeout(function(){b.generateBoxes()},d.effects.loadedFadeSpeed+50);g(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(a).addClass("ilightbox-active");b.positionThumbnails();d.linkId&&setTimeout(function(){c.hashLock=!1},55);"function"==typeof d.callback.onAfterChange&&
71d.callback.onAfterChange.call(b,b.ui)}},moveTo:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=d.effects.switchSpeed;if(c.nextLock||c.prevLock)return!1;var h="next"==a?c.next:c.prev;d.linkId&&(c.hashLock=!0,r.location.hash=d.linkId+"/"+h);if("next"==a){if(!b.items[h])return!1;var j=c.nextPhoto,k=c.holder,l=c.prevPhoto,m="ilightbox-prev",p="ilightbox-next"}else if("prev"==a){if(!b.items[h])return!1;j=c.prevPhoto;k=c.holder;l=c.nextPhoto;m="ilightbox-next";p="ilightbox-prev"}"function"==
72typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui);"next"==a?c.nextLock=!0:c.prevLock=!0;var n=g("div.ilightbox-caption",k),u=g("div.ilightbox-social",k);n.length&&n.stop().fadeOut(f,function(){g(this).remove()});u.length&&u.stop().fadeOut(f,function(){g(this).remove()});b.items[h].caption&&(b.setCaption(b.items[h],j),n=g("div.ilightbox-caption",j),u=parseInt(100*(n.outerHeight()/j.outerHeight())),d.caption.start&&50>=u&&n.fadeIn(f));if(n=b.items[h].options.social)b.setSocial(n,
73b.items[h].URL,j),d.social.start&&g("div.ilightbox-social",j).fadeIn(d.effects.fadeSpeed);g.each([j,k,l],function(a,b){b.removeClass("ilightbox-next ilightbox-prev")});var q=j.data("offset"),n=y.width()-d.styles.pageOffsetX,u=y.height()-d.styles.pageOffsetY,t=q.newDims.width,s=q.newDims.height,v=q.thumbsOffset,q=q.diff,x=
73parseInt(u/2-s/2-q.H-v.H/2),q=parseInt(n/2-t/2-q.W-v.W/2);j.animate({top:x,left:q,opacity:1},f,c.isSwipe?"easeOutCirc":"easeInOutCirc");g("div.ilightbox-container",j).animate({width:t,
74height:s},f,c.isSwipe?"easeOutCirc":"easeInOutCirc");var s=k.data("offset"),w=s.object,q=s.diff,t=s.newDims.width,s=s.newDims.height,t=parseInt(t*("next"==a?d.styles.prevScale:d.styles.nextScale)),s=parseInt(s*("next"==a?d.styles.prevScale:d.styles.nextScale)),x="horizontal"==e?parseInt(u/2-w.offsetY-s/2-q.H-v.H/2):parseInt(u-w.offsetX-q.H-v.H/2);"prev"==a?q="horizontal"==e?parseInt(n-w.offsetX-q.W-v.W/2):parseInt(n/2-t/2-q.W-w.offsetY-v.W/2):(x="horizontal"==e?x:parseInt(w.offsetX-q.H-s-v.H/2),q=
75"horizontal"==e?parseInt(w.offsetX-q.W-t-v.W/2):parseInt(n/2-w.offsetY-t/2-q.W-v.W/2));g("div.ilightbox-container",k).animate({width:t,height:s},f,c.isSwipe?"easeOutCirc":"easeInOutCirc");k.addClass(m).animate({top:x,left:q,opacity:d.styles.prevOpacity},f,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){g(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(h).addClass("ilightbox-active");b.positionThumbnails();b.items[h]&&(c.lockWheel=b.items[h].options.mousewheel?!1:!0,c.lockSwipe=
76b.items[h].options.swipe?!1:!0);c.isSwipe=!1;"next"==a?(c.nextPhoto=l,c.prevPhoto=k,c.holder=j,c.nextPhoto.hide(),c.next+=1,c.prev=c.current,c.current+=1,d.infinite&&(c.current>c.total-1&&(c.current=0),c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.next]?b.loadContent(b.items[c.next],"next"):c.nextLock=!1):(c.prevPhoto=l,c.nextPhoto=k,c.holder=j,c.prevPhoto.hide(),c.next=c.current,c.current=c.prev,c.prev=c.current-1,d.infinite&&(c.current==c.total-1&&(c.next=
770),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.prev]?b.loadContent(b.items[c.prev],"prev"):c.prevLock=!1);d.linkId&&setTimeout(function(){c.hashLock=!1},55);b.repositionPhoto();"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)});x="horizontal"==e?l.css("top"):"next"==a?parseInt(-(u/2)-l.outerHeight()):parseInt(2*x);q="horizontal"==e?"next"==a?parseInt(-(n/2)-l.outerWidth()):parseInt(2*q):l.css("left");l.animate({top:x,left:q,opacity:d.styles.nextOpacity},
78f,c.isSwipe?"easeOutCirc":"easeInOutCirc").addClass(p)},setCaption:function(a,b){var c=g('<div class="ilightbox-caption"></div>');a.caption&&(c.html(a.caption),g("div.ilightbox-container",b).append(c))},normalizeSocial:function(a,b){var c=r.location.href;g.each(a,function(d,e){var f,h;switch(d.toLowerCase()){case "facebook":f="http://www.facebook.com/share.php?v=4&src=bm&u={URL}";h="Share on Facebook";break;case "twitter":f="http://twitter.com/home?status={URL}";h="Share on Twitter";break;case "googleplus":f=
79"https://plus.google.com/share?url={URL}";h="Share on Google+";break;case "delicious":f="http://delicious.com/post?url={URL}";h="Share on Delicious";break;case "digg":f="http://digg.com/submit?phase=2&url={URL}";h="Share on Digg";break;case "reddit":f="http://reddit.com/submit?url={URL}",h="Share on reddit"}a[d]={URL:e.URL&&J(c,e.URL)||b&&J(c,b),source:e.source||f||e.URL&&J(c,e.URL)||b&&J(c,b),text:h||e.text||"Share on "+d,width:"undefined"!=typeof e.width&&!isNaN(e.width)?parseInt(e.width):640,height:e.height||
80360}});return a},setSocial:function(a,b,c){var d=g('<div class="ilightbox-social"></div>'),e="<ul>";a=this.normalizeSocial(a,b);g.each(a,function(a,b){a.toLowerCase();var c=b.source.replace("{URL}",encodeURIComponent(b.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+"));e+='<li class="'+a+'"><a href="'+c+'" onclick="javascript:window.open(this.href'+(0>=b.width||0>=b.height?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+
81b.height+",width="+b.width+",left=40,top=40'")+');return false;" title="'+b.text+'" target="_blank"></a></li>'});e+="</ul>";d.html(e);g("div.ilightbox-container",c).append(d)},fullScreenAction:function(){s.supportsFullScreen?s.isFullScreen()?s.cancelFullScreen(document.documentElement):s.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var a=this.vars,b=this.options;if(b.fullAlone){var c=a.holder,d=this.items[a.current],e=y.width(),f=y.height(),h=[c,a.nextPhoto,
82a.prevPhoto,a.overlay,a.toolbar,a.thumbnails,a.loader],j=[a.nextPhoto,a.prevPhoto,a.loader,a.thumbnails];if(a.isInFullScreen)a.isInFullScreen=a.lockKey=a.lockWheel=a.lockSwipe=!1,a.overlay.css({opacity:this.options.overlay.opacity}),g.each(j,function(a,b){b.show()}),a.fullScreenButton.attr("title",b.text.enterFullscreen),c.data({naturalWi
82dth:c.data("naturalWidthOld"),naturalHeight:c.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),g.each(h,function(a,b){b.removeClass("ilightbox-fullscreen")}),
83"function"==typeof b.callback.onExitFullScreen&&b.callback.onExitFullScreen.call(this,this.ui);else{a.isInFullScreen=a.lockKey=a.lockWheel=a.lockSwipe=!0;a.overlay.css({opacity:1});g.each(j,function(a,b){b.hide()});a.fullScreenButton.attr("title",b.text.exitFullscreen);if(-1!=b.fullStretchTypes.indexOf(d.type))c.data({naturalWidthOld:c.data("naturalWidth"),naturalHeightOld:c.data("naturalHeight"),naturalWidth:e,naturalHeight:f});else{var a=d.options.fullViewPort||b.fullViewPort||"",d=f,j=c.data("naturalWidth"),
84k=c.data("naturalHeight");"fill"==a.toLowerCase()?(d=e/j*k,d<f&&(e=f/k*j,d=f)):"fit"==a.toLowerCase()?(f=this.getNewDimenstions(e,d,j,k,!0),e=f.width,d=f.height):"stretch"!=a.toLowerCase()&&(f=this.getNewDimenstions(e,d,j,k,j>e||k>d?!0:!1),e=f.width,d=f.height);c.data({naturalWidthOld:c.data("naturalWidth"),naturalHeightOld:c.data("naturalHeight"),naturalWidth:e,naturalHeight:d})}g.each(h,function(a,b){b.addClass("ilightbox-fullscreen")});"function"==typeof b.callback.onEnterFullScreen&&b.callback.onEnterFullScreen.call(this,
85this.ui)}}else a.isInFullScreen=a.isInFullScreen?!1:!0;this.repositionPhoto(!0)},closeAction:function(){var a=this.vars,b=this.options;y.unbind(".iLightBox");a.isInFullScreen&&s.cancelFullScreen(document.documentElement);A.off(".iLightBox");g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox");b.hide.effect?a.overlay.stop().fadeOut(b.hide.speed,function(){a.overlay.remove();a.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(a.overlay.remove(),a.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));
86g.each([a.toolbar,a.holder,a.nextPhoto,a.prevPhoto,a.loader,a.thumbnails],function(a,b){b.removeAttr("style").remove()});a.dontGenerateThumbs=a.isInFullScreen=!1;if(b.linkId){a.hashLock=!0;var c=K();r.location.hash="";r.scrollTo(c.x,c.y);setTimeout(function(){a.hashLock=!1},55)}"function"==typeof b.callback.onHide&&b.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var a=this.vars,b=this.options,c=b.path.toLowerCase(),d=a.isInFullScreen&&b.fullAlone?0:"horizontal"==c?0:a.thumbnails.outerWidth(),
87e=a.isInFullScreen&&b.fullAlone?0:"horizontal"==c?a.thumbnails.outerHeight():0,f=a.isInFullScreen&&b.fullAlone?y.width():y.width()-b.styles.pageOffsetX,h=a.isInFullScreen&&b.fullAlone?y.height():y.height()-b.styles.pageOffsetY,j="horizontal"==c?parseInt(this.items[a.next]||this.items[a.prev]?2*(b.styles.nextOffsetX+b.styles.prevOffsetX):30>=f/10?30:f/10):parseInt(30>=f/10?30:f/10)+d,k="horizontal"==c?parseInt(30>=h/10?30:h/10)+e:parseInt(this.items[a.next]||this.items[a.prev]?2*(b.styles.nextOffsetX+
88b.styles.prevOffsetX):30>=h/10?30:h/10),d={type:"current",width:f,height:h,item:this.items[a.current],offsetW:j,offsetH:k,thumbsOffsetW:d,thumbsOffsetH:e,animate:arguments.length,holder:a.holder};this.repositionEl(d);this.items[a.next]&&(d=g.extend(d,{type:"next",item:this.items[a.next],offsetX:b.styles.nextOffsetX,offsetY:b.styles.nextOffsetY,holder:a.nextPhoto}),this.repositionEl(d));this.items[a.prev]&&(d=g.extend(d,{type:"prev",item:this.items[a.prev],offsetX:b.styles.prevOffsetX,offsetY:b.styles.prevOffsetY,
89holder:a.prevPhoto}),this.repositionEl(d));b="horizontal"==c?{left:parseInt(f/2-a.loader.outerWidth()/2)}:{top:parseInt(h/2-a.loader.outerHeight()/2)};a.loader.css(b)},repositionEl:function(a){var b=this.vars,c=this.options,d=c.path.toLowerCase(),e="current"==a.type?b.isInFullScreen&&c.fullAlone?a.width:a.width-a.offsetW:a.width-a.offsetW,f="current"==a.type?b.isInFullScreen&&c.fullAlone?a.height:a.height-a.offsetH:a.height-a.offsetH,h=a.item,j=a.item.options,k=a.holder,l=a.offsetX||0,m=a.offsetY||
900,p=a.thumbsOffsetW,n=a.thumbsOffsetH;"current"==a.type?("number"==typeof j.width&&j.width&&(e=b.isInFullScreen&&c.fullAlone&&(-1!=c.fullStretchTypes.indexOf(h.type)||j.fullViewPort||c.fullViewPort)?e:j.width>e?e:j.width),"number"==typeof j.height&&j.height&&(f=b.isInFullScreen&&c.fullAlone&&(-1!=c.fullStretchTypes.indexOf(h.type)||j.fullViewPort||c.fullViewPort)?f:j.height>f?f:j.height)):("number"==typeof j.width&&j.width&&(e=j.width>e?e:j.width),"number"==typeof j.height&&j.height&&(f=j.height>
91f?f:j.height));f=parseInt(f-g(".ilightbox-inner-toolbar",k).outerHeight());"string"==typeof j.width&&-1!=j.width.indexOf("%")?(b=parseInt(j.width.replace("%","")),b=parseInt(a.width/100*b)):b=k.data("naturalWi
91dth");"string"==typeof j.height&&-1!=j.height.indexOf("%")?(h=parseInt(j.height.replace("%","")),h=parseInt(a.height/100*h)):h=k.data("naturalHeight");f="string"==typeof j.width&&-1!=j.width.indexOf("%")||"string"==typeof j.height&&-1!=j.height.indexOf("%")?{width:b,height:h}:this.getNewDimenstions(e,
92f,b,h);e=g.extend({},f,{});"prev"==a.type||"next"==a.type?(b=parseInt(f.width*("next"==a.type?c.styles.nextScale:c.styles.prevScale)),h=parseInt(f.height*("next"==a.type?c.styles.nextScale:c.styles.prevScale))):(b=f.width,h=f.height);f=parseInt((parseInt(k.css("padding-left").replace("px",""))+parseInt(k.css("padding-right").replace("px",""))+parseInt(k.css("border-left-width").replace("px",""))+parseInt(k.css("border-right-width").replace("px","")))/2);j=parseInt((parseInt(k.css("padding-top").replace("px",
93""))+parseInt(k.css("padding-bottom").replace("px",""))+parseInt(k.css("border-top-width").replace("px",""))+parseInt(k.css("border-bottom-width").replace("px",""))+g(".ilightbox-inner-toolbar",k).outerHeight())/2);switch(a.type){case "current":var u=parseInt(a.height/2-h/2-j-n/2),q=parseInt(a.width/2-b/2-f-p/2);break;case "next":u="horizontal"==d?parseInt(a.height/2-m-h/2-j-n/2):parseInt(a.height-l-j-n/2);q="horizontal"==d?parseInt(a.width-l-f-p/2):parseInt(a.width/2-b/2-f-m-p/2);break;case "prev":u=
94"horizontal"==d?parseInt(a.height/2-m-h/2-j-n/2):parseInt(l-j-h-n/2),q="horizontal"==d?parseInt(l-f-b-p/2):parseInt(a.width/2-m-b/2-f-p/2)}k.data("offset",{top:u,left:q,newDims:e,diff:{W:f,H:j},thumbsOffset:{W:p,H:n},object:a});0<a.animate&&c.effects.reposition?(k.stop().animate({top:u,left:q},c.effects.repositionSpeed,"easeOutCirc"),g("div.ilightbox-container",k).stop().animate({width:b,height:h},c.effects.repositionSpeed,"easeOutCirc"),g("div.ilightbox-inner-toolbar",k).stop().animate({width:b},
95c.effects.repositionSpeed,"easeOutCirc",function(){g(this).css("overflow","visible")})):(k.css({top:u,left:q}),g("div.ilightbox-container",k).css({width:b,height:h}),g("div.ilightbox-inner-toolbar",k).css({width:b}))},getNewDimenstions:function(a,b,c,d,e){factor=a?b?Math.min(a/c,b/d):a/c:b/d;e||(factor>this.options.maxScale?factor=this.options.maxScale:factor<this.options.minScale&&(factor=this.options.minScale));a=this.options.keepAspectRatio?Math.round(c*factor):a;b=this.options.keepAspectRatio?
96Math.round(d*factor):b;return{width:a,height:b,ratio:factor}},setOption:function(a){this.options=g.extend(!0,this.options,a||{});this.refresh()},availPlugins:function(){var a=document.createElement("video");this.plugins={flash:0<=parseInt(L.getVersion("Shockwave"))||0<=parseInt(L.getVersion("Flash"))?!0:!1,quicktime:0<=parseInt(L.getVersion("QuickTime"))?!0:!1,html5H264:!(!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")),html5WebM:!(!a.canPlayType||!a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/no/,
97"")),html5Vorbis:!(!a.canPlayType||!a.canPlayType('video/ogg; codecs="theora, vorbis"').replace(/no/,"")),html5QuickTime:!(!a.canPlayType||!a.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(a,b){var c;switch(b.type){case "video":c=!1;var d,e=b.options.html5video;e.webm&&this.plugins.html5WebM?(b.ext="webm",b.URL=e.webm||b.URL):e.ogg&&this.plugins.html5Vorbis?(b.ext="ogv",b.URL=e.ogg||b.URL):e.h264&&this.plugins.html5H264&&(b.ext="mp4",b.URL=e.h264||b.URL);if(this.plugins.html5H264&&
98("mp4"==b.ext||"m4v"==b.ext))c=!0,d="video/mp4";else if(this.plugins.html5WebM&&"webm"==b.ext)c=!0,d="video/webm";else if(this.plugins.html5Vorbis&&"ogv"==b.ext)c=!0,d="video/ogg";else if(this.plugins.html5QuickTime&&("mov"==b.ext||"qt"==b.ext))c=!0,d="video/quicktime";c?c=g("<video />",{width:"100%",height:"100%",preload:e.preload,autoplay:e.autoplay,poster:e.poster,controls:e.controls}).append(g("<source />",{src:b.URL,type:d})):this.plugins.quicktime?(c=g("<object />",{type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download"}).attr({data:b.URL,
99width:"100%",height:"100%"}).append(g("<param />",{name:"src",value:b.URL})).append(g("<param />",{name:"autoplay",value:"false"})).append(g("<param />",{name:"loop",value:"false"})).append(g("<param />",{name:"scale",value:"tofit"})),"Explorer"==E.browser&&(c=da(b.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):c=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.apple.com/quicktime/download").replace("{type}",
100"QuickTime")});break;case "flash":if(this.plugins.flash){var f="",h=0;b.options.flashvars?g.each(b.options.flashvars,function(a,b){0!=h&&(f+="&");f+=a+"="+encodeURIComponent(b);h++}):f=null;c=g("<embed />").attr({type:"application/x-shockwave-flash",src:b.URL,width:"number"==typeof b.options.width&&b.options.width&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?
101b.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:f,fullscreen:"yes"})}else c=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.adobe.com/go/getflash").replace("{type}","Adobe Flash player")});break;case "iframe":c=g("<iframe />").attr({width:"number"==typeof b.options.width&&b.options.width&&"1"==
102this.options.minScale&&"1"==this.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.height:"100%",src:b.URL,frameborder:0,webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case "inline":c=g('<div class="ilightbox-wrapper"></div>').html(g(b.URL).clone(!0));break;case "html":d=b.URL,d[0].nodeName||(d=g(b.URL),d=d.selector?g("<div>"+d+"</div>"):d),c=g('<div class="ilightbox-wrapper"></div>').html(d)}g("div.ilightbox-container",
103a).empty().html(c);return c},ogpRecognition:function(a,b){var c=this,d=a.URL,e={length:!1};c.showLoader();var f=function(a){c.hideLoader();if(200==a.status){a=a.results;var d=a.type,f=a.source;e.source=f.src;e.width=f.width&&parseInt(f.width)||0;e.height=f.height&&parseInt(f.height)||0;e.type=d;e.thumbnail=f.thumbnail||a.images[0];e.html5video=a.html5video||{};e.length=!0;"application/x-shockwave-flash"==f.type?e.type="flash":-1!=f.type.indexOf("video/")?e.type="video":-1!=f.type.indexOf("/html")?
104e.type="iframe":-1!=f.type.indexOf("image/")&&(e.type="image")}else if("undefined"!=typeof a.response)throw a.response;b(e.length?e:!1)},d="http://ilightbox.net/getSource/?url="+encodeURIComponent(d).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");g.ajax({url:d,dataType:"json",cache:!0}).success(function(a){f(a)}).error(function(){f(!1)})},hashChangeHandler:function(a){var b=this.vars,c=this.options;a=R(a||r.location.href).hash;var d=a.indexOf("#"+
105c.linkId+"/"),e=a.split("/");b.hashLock||"#"+c.linkId!=e[0]&&1<a.length||(-1!=d?(b=e[1]||0,this.items[b]?(a=g(".ilightbox-overlay"),a.length&&a.attr("linkid")==c.linkId?this.goTo(b):this.itemsObject[b].trigger("click")):(a=g(".ilightbox-overlay"),a.length&&this.closeAction())):(a=g(".ilightbox-overlay"),a.length&&this.closeAction()))}};g.fn.iLightBox=function(){var a=arguments,b=g.isPlainObject(a[0])?a[0]:a[1],c=g.isArray(a[0])||"string"==typeof a[0]?a[0]:a[1];b||(b={});var b=g.extend(!0,{attr:"href",
106path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:0.2,innerToolbar:!1,smartRecognition:!1,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:0.85},controls:{toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0}
106,keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},
107social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:0.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)"},
108errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(){},cache:!1,complete:function(){},crossDomain:!1,error:function(){},success:function(){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},b),d=g.isArray(c)||"string"==typeof c?!0:
109!1,c=g.isArray(c)?c:[];"string"==typeof a[0]&&(c[0]=a[0]);if(ba(g.fn.jquery,"1.8",">=")){var e=new $(g(this),b,c,d);return{close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(a){e.goTo(a)},refresh:function(){e.refresh()},reposition:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(a){e.setOption(a)},destroy:function(){e.closeAction();e.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+";
110};g.iLightBox=function(a,b){return g.fn.iLightBox(a,b)};g.extend(g.easing,{easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c}});g(document);g.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(a,b){g.fn[b]=function(a){return a?this.bind(b,
111a):this.trigger(b)};g.attrFn&&(g.attrFn[b]=!0)});g.event.special.itap={setup:function(){var a=this,b=g(this),c,d;b.bind("touchstart.iTap",function(){c=K();b.one("touchend.iTap",function(b){d=K();b=g.event.fix(b||r.event);b.type="itap";c&&d&&(c.x==d.x&&c.y==d.y)&&(g.event.dispatch||g.event.handle).call(a,b);c=d=I})})},teardown:function(){g(this).unbind("touchstart.iTap")}};var s={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",
112prefix:""},z=["webkit","moz","o","ms","khtml"];if("undefined"!=typeof document.cancelFullScreen)s.supportsFullScreen=!0;else for(var B=0,ga=z.length;B<ga;B++)if(s.prefix=z[B],"undefined"!=typeof document[s.prefix+"CancelFullScreen"]){s.supportsFullScreen=!0;break}s.supportsFullScreen&&(s.fullScreenEventName=s.prefix+"fullscreenchange",s.isFullScreen=function(){switch(this.prefix){case "":return document.fullScreen;case "webkit":return document.webkitIsFullScreen;default:return document[this.prefix+
113"FullScreen"]}},s.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},s.cancelFullScreen=function(){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()});var E={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||
114"an unknown OS"},searchString:function(a){for(var b=0;b<a.length;b++){var c=a[b].string,d=a[b].prop;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c){if(-1!=c.indexOf(a[b].subString))return a[b].identity}else if(d)return a[b].identity}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(-1!=b)return parseFloat(a.substring(b+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,
115subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:r.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",
116identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,
117subString:"Linux",identity:"Linux"}]};E.init();var L={version:"0.7.9",name:"PluginDetect",handler:function(a,b,c){return function(){a(b,c)}},openTag:"<",isDefined:function(a){return"undefined"!=typeof a},isArray:function(a){return/array/i.test(Object.prototype.toString.call(a))},isFunc:function(a){return"function"==typeof a},isString:function(a){return"string"==typeof a},isNum:function(a){return"number"==typeof a},isStrNum:function(a){return"string"==typeof a&&/\d/.test(a)},getNumRegx:/[\d][\d\.\_,-]*/,
118splitNumRegx:/[\.\_,-]/g,getNum:function(a,b){var c=this.isStrNum(a)?(this.isDefined(b)?RegExp(b):this.getNumRegx).exec(a):null;return c?c[0]:null},compareNums:function(a,b,c){var d=parseInt;if(this.isStrNum(a)&&this.isStrNum(b)){if(this.isDefined(c)&&c.compareNums)return c.compareNums(a,b);a=a.split(this.splitNumRegx);b=b.split(this.splitNumRegx);for(c=0;c<Math.min(a.length,b.length);c++){if(d(a[c],10)>d(b[c],10))return 1;if(d(a[c],10)<d(b[c],10))return-1}}return 0},formatNum:function(a,b){var c,
119d;if(!this.isStrNum(a))return null;this.isNum(b)||(b=4);b--;d=a.replace(/\s/g,"").split(this.splitNumRegx).concat(["0","0","0","0"]);for(c=0;4>c;c++)if(/^(0+)(.+)$/.test(d[c])&&(d[c]=RegExp.$2),c>b||!/\d/.test(d[c]))d[c]="0";return d.slice(0,4).join(",")},$$hasMimeType:function(a){return function(b){if(!a.isIE&&b){var c,d,e=a.isArray(b)?b:a.isString(b)?[b]:[];for(d=0;d<e.length;d++)if(a.isString(e[d])&&/[^\s]/.test(e[d])&&(c=(b=navigator.mimeTypes[e[d]])?b.enabledPlugin:0)&&(c.name||c.description))return b}return null}},
120findNavPlugin:function(a,b,c){a=RegExp(a,"i");b=!this.isDefined(b)||b?/\d/:0;c=c?RegExp(c,"i"):0;var d=navigator.plugins,e,f,h;for(e=0;e<d.length;
120e++)if(h=d[e].description||"",f=d[e].name||"",a.test(h)&&(!b||b.test(RegExp.leftContext+RegExp.rightContext))||a.test(f)&&(!b||b.test(RegExp.leftContext+RegExp.rightContext)))if(!c||!c.test(h)&&!c.test(f))return d[e];return null},getMimeEnabledPlugin:function(a,b,c){var d;b=RegExp(b,"i");c=c?RegExp(c,"i"):0;var e,f,h=this.isString(a)?[a]:a;for(f=0;f<h.length;f++)if((d=
121this.hasMimeType(h[f]))&&(d=d.enabledPlugin))if(e=d.description||"",a=d.name||"",b.test(e)||b.test(a))if(!c||!c.test(e)&&!c.test(a))return d;return 0},getPluginFileVersion:function(a,b){var c,d,e,f,h=-1;if(2<this.OS||!a||!a.version||!(c=this.getNum(a.version)))return b;if(!b)return c;c=this.formatNum(c);b=this.formatNum(b);d=b.split(this.splitNumRegx);e=c.split(this.splitNumRegx);for(f=0;f<d.length;f++)if(-1<h&&f>h&&"0"!=d[f]||e[f]!=d[f]&&(-1==h&&(h=f),"0"!=d[f]))return b;return c},AXO:r.ActiveXObject,
122getAXO:function(a){var b=null;try{b=new this.AXO(a)}catch(c){}return b},convertFuncs:function(a){var b,c,d=/^[\$][\$]/;for(b in a)if(d.test(b))try{c=b.slice(2),0<c.length&&!a[c]&&(a[c]=a[b](a),delete a[b])}catch(e){}},initObj:function(a,b,c){var d;if(a){if(1==a[b[0]]||c)for(d=0;d<b.length;d+=2)a[b[d]]=b[d+1];for(d in a)(c=a[d])&&1==c[b[0]]&&this.initObj(c,b)}},initScript:function(){var a=navigator,b,c=document,d=a.userAgent||"",e=a.vendor||"",f=a.platform||"",a=a.product||"";this.initObj(this,["$",
123this]);for(b in this.Plugins)this.Plugins[b]&&this.initObj(this.Plugins[b],["$",this,"$$",this.Plugins[b]],1);this.convertFuncs(this);this.OS=100;if(f){var h=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(b=h.length-2;0<=b;b-=2)if(h[b]&&RegExp(h[b],"i").test(f)){this.OS=h[b+1];break}}this.head=c.getElementsByTagName("head")[0]||c.getElementsByTagName("body")[0]||c.body||null;this.verIE=(this.isIE=(new Function("return/*@cc_on!@*/!1"))())&&
124/MSIE\s*(\d+\.?\d*)/i.test(d)?parseFloat(RegExp.$1,10):null;this.docModeIE=this.verIEfull=null;if(this.isIE){b=document.createElement("div");try{b.style.behavior="url(#default#clientcaps)",this.verIEfull=b.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(g){}b=parseFloat(this.verIEfull||"0",10);this.docModeIE=c.documentMode||(/back/i.test(c.compatMode||"")?5:b)||this.verIE;this.verIE=b||this.docModeIE}this.ActiveXEnabled=!1;if(this.isIE){c="Msxml2.XMLHTTP Msxml2.DOMDocument Microsoft.XMLDOM ShockwaveFlash.ShockwaveFlash TDCCtl.TDCCtl Shell.UIHelper Scripting.Dictionary wmplayer.ocx".split(" ");
125for(b=0;b<c.length;b++)if(this.getAXO(c[b])){this.ActiveXEnabled=!0;break}}this.verGecko=(this.isGecko=/Gecko/i.test(a)&&/Gecko\s*\/\s*\d/i.test(d))?this.formatNum
125(/rv\s*\:\s*([\.\,\d]+)/i.test(d)?RegExp.$1:"0.9"):null;this.verChrome=(this.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(d))?this.formatNum(RegExp.$1):null;this.verSafari=(this.isSafari=(/Apple/i.test(e)||!e&&!this.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(d))&&/Version\s*\/\s*(\d[\d\.]*)/i.test(d)?this.formatNum(RegExp.$1):null;this.verOpera=
126(this.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(d))&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(d)||1)?parseFloat(RegExp.$1,10):null;this.addWinEvent("load",this.handler(this.runWLfuncs,this))},init:function(a){var b,c={status:-3,plugin:0};if(!this.isString(a))return c;if(1==a.length)return this.getVersionDelimiter=a,c;a=a.toLowerCase().replace(/\s/g,"");b=this.Plugins[a];if(!b||!b.getVersion)return c;c.plugin=b;this.isDefined(b.installed)||(b.installed=null,b.version=null,b.version0=null,b.getVersionDone=
127null,b.pluginName=a);this.garbage=!1;if(this.isIE&&!this.ActiveXEnabled&&"java"!==a)return c.status=-2,c;c.status=1;return c},fPush:function(a,b){this.isArray(b)&&(this.isFunc(a)||this.isArray(a)&&0<a.length&&this.isFunc(a[0]))&&b.push(a)},callArray:function(a){var b;if(this.isArray(a))for(b=0;b<a.length&&null!==a[b];b++)this.call(a[b]),a[b]=null},call:function(a){var b=this.isArray(a)?a.length:-1;if(0<b&&this.isFunc(a[0]))a[0](this,1<b?a[1]:0,2<b?a[2]:0,3<b?a[3]:0);else this.isFunc(a)&&a(this)},
128getVersionDelimiter:",",$$getVersion:function(a){return function(b,c,d){b=a.init(b);if(0>b.status)return null;b=b.plugin;1!=b.getVersionDone&&(b.getVersion(null,c,d),null===b.getVersionDone&&(b.getVersionDone=1));a.cleanup();return c=(c=b.version||b.version0)?c.replace(a.splitNumRegx,a.getVersionDelimiter):c}},cleanup:function(){this.garbage&&this.isDefined(r.CollectGarbage)&&r.CollectGarbage()},isActiveXObject:function(a,b){var c=!1,d='<object width="1" height="1" style="display:none" '+a.getCodeBaseVersion(b)+
129">"+a.HTML+this.openTag+"/object>";if(!this.head)return c;this.head.insertBefore(document.createElement("object"),this.head.firstChild);this.head.firstChild.outerHTML=d;try{this.head.firstChild.classid=a.classID}catch(e){}try{this.head.firstChild.object&&(c=!0)}catch(f){}try{c&&4>this.head.firstChild.readyState&&(this.garbage=!0)}catch(h){}this.head.removeChild(this.head.firstChild);return c},codebaseSearch:function(a,b){var c=this;if(!c.ActiveXEnabled||!a)return null;a.BIfuncs&&(a.BIfuncs.length&&
130null!==a.BIfuncs[a.BIfuncs.length-1])&&c.callArray(a.BIfuncs);var d,e=a.SEARCH;if(c.isStrNum(b)){if(e.match&&e.min&&0>=c.compareNums(b,e.min))return!0;if(e.match&&e.max&&0<=c.compareNums(b,e.max))return!1;if((d=c.isActiveXObject(a,b))&&(!e.min||0<c.compareNums(b,e.min)))e.min=b;if(!d&&(!e.max||0>c.compareNums(b,e.max)))e.max=b;return d}var f=[0,0,0,0],h=[].concat(e.digits),g=e.min?1:0,k,l,m=function(b,d){var e=[].concat(f);e[b]=d;return c.isActiveXObject(a,e.join(","))};if(e.max){d=e.max.split(c.splitNumRegx);
131for(k=0;k<d.length;k++)d[k]=parseInt(d[k],10);d[0]<h[0]&&(h[0]=d[0])}if(e.min){l=e.min.split(c.splitNumRegx);for(k=0;k<l.length;k++)l[k]=parseInt(l[k],10);l[0]>f[0]&&(f[0]=l[0])}if(l&&d)for(k=1;k<l.length&&l[k-1]==d[k-1];k++)d[k]<h[k]&&(h[k]=d[k]),l[k]>f[k]&&(f[k]=l[k]);if(e.max)for(k=1;k<h.length;k++)if(0<d[k]&&0==h[k]&&h[k-1]<e.digits[k-1]){h[k-1]+=1;break}for(k=0;k<h.length;k++){l={};for(e=0;20>e&&!(1>h[k]-f[k]);e++){d=Math.round((h[k]+f[k])/2);if(l["a"+d])break;l["a"+d]=1;m(k,d)?(f[k]=d,g=1):
132h[k]=d}h[k]=f[k];!g&&m(k,f[k])&&(g=1);if(!g)break}return g?f.join(","):null},addWinEvent:function(a,b){var c=r,d;this.isFunc(b)&&(c.addEventListener?c.addEventListener(a,b,!1):c.attachEvent?c.attachEvent("on"+a,b):(d=c["on"+a],c["on"+a]=this.winHandler(b,d)))},winHandler:function(a,b){return function(){a();"function"==typeof b&&b()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){a.winLoaded=!0;a.callArray(a.WLfuncs0);a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv)a.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(a){return function(b){a.winLoaded?
133a.call(b):a.fPush(b,a.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var a,b,c,d;if(this.div&&this.div.childNodes)for(a=this.div.childNodes.length-1;0<=a;a--){if((c=this.div.childNodes[a])&&c.childNodes)for(b=c.childNodes.length-1;0<=b;b--){d=c.childNodes[b];try{c.removeChild(d)}catch(e){}}if(c)try{this.div.removeChild(c)}catch(f){}}if(!this.div&&(a=document.getElementById(this.divID)))this.div=a;if(this.div&&this.div.parentNode){try{this.div.parentNode.removeChild(this.div)}catch(h){}this.div=
134null}},DONEfuncs:[],onDoneEmptyDiv:function(){var a,b;if(this.winLoaded&&(!this.WLfuncs||!(this.WLfuncs.length&&null!==this.WLfuncs[this.WLfuncs.length-1]))){for(a in this)if((b=this[a])&&b.funcs&&(3==b.OTF||b.funcs.length&&null!==b.funcs[b.funcs.length-1]))return;for(a=0;a<this.DONEfuncs.length;a++)this.callArray(this.DONEfuncs);
134this.emptyDiv()}},getWidth:function(a){return a&&(a=a.scrollWidth||a.offsetWidth,this.isNum(a))?a:-1},getTagStatus:function(a,b,c,d){var e=a.span,f=this.getWidth(e);c=c.span;
135var h=this.getWidth(c);b=b.span;var g=this.getWidth(b);if(!e||!c||!b||!this.getDOMobj(a))return-2;if(h<g||0>f||0>h||0>g||g<=this.pluginSize||1>this.pluginSize)return 0;if(f>=g)return-1;try{if(f==this.pluginSize&&(!this.isIE||4==this.getDOMobj(a).readyState))if(!a.winLoaded&&this.winLoaded||a.winLoaded&&this.isNum(d)&&(this.isNum(a.count)||(a.count=d),10<=d-a.count))return 1}catch(k){}return 0},getDOMobj:function(a,b){var c=a?a.span:0,d=c&&c.firstChild?1:0;try{d&&b&&this.div.focus()}catch(e){}return d?
136c.firstChild:null},setStyle:function(a,b){var c=a.style,d;if(c&&b)for(d=0;d<b.length;d+=2)try{c[b[d]]=b[d+1]}catch(e){}},insertDivInBody:function(a,b){var c=null,d=b?r.top.document:r.document,e=d.getElementsByTagName("body")[0]||d.body;if(!e)try{d.write('<div id="pd33993399">.'+this.openTag+"/div>"),c=d.getElementById("pd33993399")}catch(f){}if(e=d.getElementsByTagName("body")[0]||d.body)e.insertBefore(a,e.firstChild),c&&e.removeChild(c)},insertHTML:function(a,b,c,d){var e=document,f,g=e.createElement("span"),
137j,k="outlineStyle none borderStyle none padding 0px margin 0px visibility visible".split(" ");this.isDefined(d)||(d="");if(this.isString(a)&&/[^\s]/.test(a)){a=a.toLowerCase().replace(/\s/g,"");f=this.openTag+a+' width="'+this.pluginSize+'" height="'+this.pluginSize+'" ';f+='style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ';for(j=0;j<b.length;j+=2)/[^\s]/.test(b[j+1])&&(f+=b[j]+'="'+b[j+1]+'" ');f+=">";for(j=0;j<c.length;j+=2)/[^\s]/.test(c[j+
1381])&&(f+=this.openTag+'param name="'+c[j]+'" value="'+c[j+1]+'" />');f+=d+this.openTag+"/"+a+">"}else f=d;this.div||((b=e.getElementById(this.divID))?this.div=b:(this.div=e.createElement("div"),this.div.id=this.divID),this.setStyle(this.div,k.concat(["width",this.divWidth+"px","height",this.pluginSize+3+"px","fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","block"])),b||(this.setStyle(this.div,"position absolute right 0px top 0px".split(" ")),
139this.insertDivInBody(this.div)));if(this.div&&this.div.parentNode){this.setStyle(g,k.concat(["fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{g.innerHTML=f}catch(l){}try{this.div.appendChild(g)}catch(m){}return{span:g,winLoaded:this.winLoaded,tagName:a,outerHTML:f}}return{span:null,winLoaded:this.winLoaded,tagName:"",outerHTML:f}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint",
140"image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(a){return'codebase="#version='+a+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(a){var b=this.$,c=null,d=null;if(b.isIE){b.isStrNum(a)&&(a=a.split(b.splitNumRegx),3<a.length&&0<parseInt(a[3],10)&&(a[3]="9999"),
141a=a.join(","));if(b.isStrNum(a)&&b.verIE>=this.minIEver&&0<this.canUseIsMin()){this.installed=this.isMin(a);this.getVersionDone=0;return}this.getVersionDone=1;!c&&b.verIE>=this.minIEver&&(c=this.CDBASE2VER(b.codebaseSearch(this)));if(!c&&(d=b.getAXO(this.progID))&&d.QuickTimeVersion)c=d.QuickTimeVersion.toString(16),c=parseInt(c.charAt(0),16)+"."+parseInt(c.charAt(1),16)+"."+parseInt(c.charAt(2),16)}else b.hasMimeType(this.mimeType)&&(d=3!=b.OS?b.findNavPlugin("QuickTime.*Plug-?in",0):null)&&d.name&&
142(c=b.getNum(d.name));this.installed=c?1:d?0:-1;this.version=b.formatNum(c,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(a,b){var c=b.split(a.$.splitNumRegx);return[c[0],c[1].charAt(0),c[1].charAt(1),c[2]].join()},null],CDBASE2VER:function(a){var b=this.$,c,d=this.cdbaseUpper,e=this.cdbaseLower;if(a){a=b.formatNum(a);for(c=0;c<d.length;c++)if(d[c]&&0>b.compareNums(a,d[c])&&e[c]&&0<=b.compareNums(a,e[c])&&this.cdbase2ver[c])return this.cdbase2ver[c](this,
143a)}return a},canUseIsMin:function(){var a=this.$,b,c=this.canUseIsMin,d=this.cdbaseUpper,e=this.cdbaseLower;if(!c.value){c.value=-1;for(b=0;b<d.length;b++){if(d[b]&&a.codebaseSearch(this,d[b])){c.value=1;break}if(e[b]&&a.codebaseSearch(this,e[b])){c.value=-1;break}}}this.SEARCH.match=1==c.value?1:0;return c.value},isMin:function(a){return this.$.codebaseSearch(this,a)?0.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",
144getVersion:function(){var a=function(a){return!a?null:(a=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(a))?a[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},b=this.$,c,d=null,e=null,f=null;if(b.isIE){for(c=15;2<c;c--)if(e=b.getAXO(this.progID+"."+c)){f=c.toString();break}e||(e=b.getAXO(this.progID));if("6"==f)try{e.AllowScriptAccess="always"}catch(g){return"6,0,21,0"}try{d=a(e.GetVariable("$version"))}catch(j){}!d&&f&&(d=f)}else{if(e=b.hasMimeType(this.mimeType)){c=b.getDOMobj(b.insertHTML("object",
145["type",this.mimeType],[],"",this));try{d=b.getNum(c.GetVariable("$version"))}catch(k){}}d||((c=e?e.enabledPlugin:null)&&c.description&&(d=a(c.description)),d&&(d=b.getPluginFileVersion(c,d)))}this.installed=d?1:-1;
145this.version=b.formatNum(d);return!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var a=null,b=null,c=this.$;if(c.isIE){try{b=c.getAXO(this.progID).ShockwaveVersion("")}catch(d){}c.isString(b)&&
1460<b.length?a=c.getNum(b):c.getAXO(this.progID+".8")?a="8":c.getAXO(this.progID+".7")?a="7":c.getAXO(this.progID+".1")&&(a="6")}else(b=c.findNavPlugin("Shockwave\\s*for\\s*Director"))&&(b.description&&c.hasMimeType(this.mimeType))&&(a=c.getNum(b.description)),a&&(a=c.getPluginFileVersion(b,a));this.installed=a?1:-1;this.version=c.formatNum(a)}},zz:0}};L.initScript();var ea='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',
147t=null,M=document,S,z=g.event.special,B=M.documentMode,T="oniLightBoxHashChange"in r&&(B===I||7<B);g.fn.iLightBoxHashChange=function(a){return a?this.bind("iLightBoxHashChange",a):this.trigger("iLightBoxHashChange")};g.fn.iLightBoxHashChange.delay=50;z.iLightBoxHashChange=g.extend(z.iLightBoxHashChange,{setup:function(){if(T)return!1;g(S.start)},teardown:function(){if(T)return!1;g(S.stop)}});var V=function(){var a=F(),b=aa(N);a!==N?(U(N=a,b),g(r).trigger("iLightBoxHashChange")):b!==N&&(location.href=
148location.href.replace(/#.*/,"")+b);G=setTimeout(V,g.fn.iLightBoxHashChange.delay)},z={},G,N=F(),U=B=function(a){return a},aa=B;z.start=function(){G||V()};z.stop=function(){G&&clearTimeout(G);G=I};if("Explorer"==E.browser&&!T){var D,H;z.start=function(){D||(H=(H=g.fn.iLightBoxHashChange.src)&&H+F(),D=g('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){H||U(F());V()}).attr("src",H||"javascript:0").insertAfter("body")[0].contentWindow,M.onpropertychange=function(){try{"title"===event.propertyName&&
149(D.document.title=M.title)}catch(a){}})};z.stop=B;aa=function(){return F(D.location.href)};U=function(a,b){var c=D.document,d=g.fn.iLightBoxHashChange.domain;a!==b&&(c.title=M.title,c.open(),d&&c.write('<script>document.domain="'+d+'"\x3c/script>'),c.close(),D.location.hash=a)}}S=z;Array.prototype.filter||(Array.prototype.filter=function(a,b){if(null==this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!=typeof a)throw new TypeError;for(var e=[],f=0;f<d;f++)if(f in c){var g=c[f];
150a.call(b,g,f,c)&&e.push(g)}return e});Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;1<arguments.length&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&(d!=1/0&&d!=-(1/0))&&(d=(0<d||-1)*Math.floor(Math.abs(d))));for(c=0<=d?Math.min(d,c-1):c-Math.abs(d);0<=c;c--)if(c in b&&b[c]===a)return c;return-1})})(jQuery,this);

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.