/*!
* jquery lightbox evolution - for jquery 1.4+
* http://codecanyon.net/item/jquery-lightbox-evolution/115655?ref=aeroalquimia
*
* copyright (c) 2013, eduardo daniel sada
* released under codecanyon regular license.
* http://codecanyon.net/licenses/regular
*
* version: 1.8.0 (august 17 2013)
*/
;(function($,a,b,c){var d=(function(u){return function(){return u.search(arguments[0])}})((navigator&&navigator.useragent)?navigator.useragent.tolowercase():"");var e=false;var f=(function(){for(var a=3,b=b.createelement("b"),c=b.all||[];b.innerhtml="",c[0];);return 4
a";b=c.getelementsbytagname("*");a=c.getelementsbytagname("a")[0];if(!b||!a||!b.length){return{}}a.style.csstext="top:1px;float:left;opacity:.5";return{opacity:/^0.5/.test(a.style.opacity)}})();if(d("mobile")>-1){if(d("android")>-1||d("googletv")>-1||d("htc_flyer")>-1){e=true}};if(d("opera")>-1){if(d("mini")>-1&&d("mobi")>-1){e=true}};if(d("iphone")>-1){e=true};if(d("windows phone os 7")>-1){e=true};$.extend($.easing,{easeoutbackmin:function(x,t,b,c,d,s){if(s===c)s=1;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}});if(typeof $.fn.live==="undefined"){$.fn.live=function(a,b,c){jquery(this.context).on(a,this.selector,b,c);return this}}$.extend({lightboxobject:{defaults:{name:'jquery-lightbox',style:{zindex:99999,width:470,height:280},modal:false,overlay:{opacity:0.6},animation:{show:{duration:400,easing:"easeoutbackmin"},close:{duration:200,easing:"easeoutbackmin"},move:{duration:700,easing:"easeoutbackmin"},shake:{duration:100,easing:"easeoutbackmin",distance:10,loops:2}},flash:{width:640,height:360},iframe:{width:640,height:360},maxsize:{width:-1,height:-1},preload:true,emergefrom:"top",ajax:{type:"get",cache:false,datatype:"html"}},options:{},animations:{},gallery:{},image:{},esqueleto:{lightbox:[],buttons:{close:[],prev:[],max:[],next:[]},background:[],image:[],title:[],html:[]},visible:false,maximized:false,mode:"image",videoregs:{swf:{reg:/[^\.]\.(swf)\s*$/i},youtu:{reg:/youtu\.be\//i,split:'/',index:3,iframe:1,url:"http://www.youtube.com/embed/%id%?autoplay=1&fs=1&rel=0&enablejsapi=1"},youtube:{reg:/youtube\.com\/watch/i,split:'=',index:1,iframe:1,url:"http://www.youtube.com/embed/%id%?autoplay=1&fs=1&rel=0&enablejsapi=1"},vimeo:{reg:/vimeo\.com/i,split:'/',index:3,iframe:1,url:"http://player.vimeo.com/video/%id%?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1"},metacafe:{reg:/metacafe\.com\/watch/i,split:'/',index:4,url:"http://www.metacafe.com/fplayer/%id%/.swf?playervars=autoplay=yes"},dailymotion:{reg:/dailymotion\.com\/video/i,split:'/',index:4,iframe:true,url:"http://www.dailymotion.com/embed/video/%id%?autoplay=1&forcedquality=hd720"},collegehumornew:{reg:/collegehumor\.com\/video\//i,split:'video/',index:1,iframe:true,url:"http://www.collegehumor.com/e/%id%"},collegehumor:{reg:/collegehumor\.com\/video:/i,split:'video:',index:1,url:"http://www.collegehumor.com/moogaloop/moogaloop.swf?autoplay=true&fullscreen=1&clip_id=%id%"},ustream:{reg:/ustream\.tv/i,split:'/',index:4,url:"http://www.ustream.tv/flash/video/%id%?loc=%2f&autoplay=true&vid=%id%&disabledcomment=true&beginpercent=0.5331&endpercent=0.6292&locale=en_us"},twitvid:{reg:/twitvid\.com/i,split:'/',index:3,url:"http://www.twitvid.com/player/%id%"},wordpress:{reg:/v\.wordpress\.com/i,split:'/',index:3,url:"http://s0.videopress.com/player.swf?guid=%id%&v=1.01"},vzaar:{reg:/vzaar\.com\/videos/i,split:'/',index:4,url:"http://view.vzaar.com/%id%.flashplayer?autoplay=true&border=none"},youku:{reg:/v.youku.com\/v_show\//i,split:'id_',index:1,iframe:1,url:"http://player.youku.com/embed/%id%&autoplay=1"}},mapsreg:{bing:{reg:/bing\.com\/maps/i,split:'?',index:1,url:"http://www.bing.com/maps/embed/?emid=3ede2bc8-227d-8fec-d84a-00b6ff19b1cb&w=%width%&h=%height%&%id%"},streetview:{reg:/maps\.google\.(com|co.uk|ca|es)(.*)layer=c/i,split:'?',index:1,url:"http://maps.google.com/?output=svembed&%id%"},googlev2:{reg:/maps\.google\.(com|co.uk|ca|es)\/maps\/ms/i,split:'?',index:1,url:"http://maps.google.com/maps/ms?output=embed&%id%"},google:{reg:/maps\.google\.(com|co.uk|ca|es)/i,split:'?',index:1,url:"http://maps.google.com/maps?%id%&output=embed"}},imgsreg:/\.(?:jpg|png|jpeg|gif|bmp|tiff)/i,overlay:{create:function(a){this.options=a;this.element=$('');this.element.css($.extend({},{'position':'fixed','top':0,'left':0,'opacity':0,'display':'none','z-index':this.options.zindex},this.options.style));this.element.bind("click",$.proxy(function(e){if(!this.options.modal&&!this.hidden){if($.isfunction(this.options.callback)){this.options.callback()}else{this.hide()}}e.preventdefault()},this));this.hidden=true;this.inject();return this},inject:function(){this.target=$(b.body);this.target.append(this.element)},resize:function(x,y){this.element.css({'height':0,'width':0});if(this.shim){this.shim.css({'height':0,'width':0})};var a={x:$(b).width(),y:$(b).height()};this.element.css({'width':'100%','height':y||a.y});if(this.shim){this.shim.css({'height':0,'width':0});this.shim.css({'position':'absolute','left':0,'top':0,'width':this.element.width(),'height':y||a.y})}return this},show:function(a){if(!this.hidden){return this};if(this.transition){this.transition.stop()};if(this.shim){this.shim.css('display','block')};this.element.css({'display':'block','opacity':0});this.resize();this.hidden=false;this.transition=this.element.fadeto(this.options.showduration,this.options.style.opacity,$.proxy(function(){if(this.options.style.opacity){this.element.css(this.options.style)};this.element.trigger('show');if($.isfunction(a)){a()}},this));return this},hide:function(a){if(this.hidden){return this};if(this.transition){this.transition.stop()};if(this.shim){this.shim.css('display','none')};this.hidden=true;this.transition=this.element.fadeto(this.options.closeduration,0,$.proxy(function(){this.element.trigger('hide');if($.isfunction(a)){a()};this.element.css({'height':0,'width':0,'display':'none'})},this));return this}},create:function(a){this.options=$.extend(true,this.defaults,a);var b=this.options.name;var c=$('');var e=this.esqueleto;this.overlay.create({name:b,style:this.options.overlay,modal:this.options.modal,zindex:this.options.style.zindex-1,callback:this.proxy(this.close),showduration:(e?this.options.animation.show.duration/2:this.options.animation.show.duration),closeduration:(e?this.options.animation.close.duration/2:this.options.animation.close.duration)});e.lightbox=c;e.navigator=$('.'+b+'-navigator',c);e.buttons.div=$('.'+b+'-buttons',c);e.buttons.close=$('.'+b+'-button-close',c);e.buttons.prev=$('.'+b+'-button-left',c);e.buttons.max=$('.'+b+'-button-max',c);e.buttons.next=$('.'+b+'-button-right',c);e.buttons.custom=$('.'+b+'-buttons-custom',c);e.background=$('.'+b+'-background',c);e.html=$('.'+b+'-html',c);e.move=$('').css({'position':'absolute','z-index':this.options.style.zindex,'top':-999}).append(c);$('body').append(e.move);this.win=$(a);this.addevents();return c},addevents:function(){var a=this.win;a[0].onorientationchange=function(){if(this.visible){this.overlay.resize();if(this.move&&!this.maximized){this.movebox()}}};a.bind('resize',this.proxy(function(){if(this.visible&&!e){this.overlay.resize();if(this.move&&!this.maximized){this.movebox()}}}));a.bind('scroll',this.proxy(function(){if(this.visible&&this.move&&!this.maximized&&!e){this.movebox()}}));$(b).bind('keydown',this.proxy(function(e){if(this.visible){if(e.keycode===27&&this.options.modal===false){this.close()}if(this.gallery.total>1){if(e.keycode===37){this.esqueleto.buttons.prev.triggerhandler('click',e)}if(e.keycode===39){this.esqueleto.buttons.next.triggerhandler('click',e)}}}}));this.esqueleto.buttons.close.bind('click touchend',{"fn":"close"},this.proxy(this.fn));this.esqueleto.buttons.max.bind('click touchend',{"fn":"maximinimize"},this.proxy(this.fn));this.overlay.element.bind('show',this.proxy(function(){$(this).triggerhandler('show')}));this.overlay.element.bind('hide',this.proxy(function(){$(this).triggerhandler('close')}))},fn:function(e){this[e.data.fn].apply(this);e.preventdefault()},proxy:function(a){return $.proxy(a,this)},ex:function(f,g,h){var j={type:"",width:"",height:"",href:""};$.each(f,this.proxy(function(c,d){$.each(d,this.proxy(function(i,e){if((c=="flash"&&g.split('?')[0].match(e.reg))||(c=="iframe"&&g.match(e.reg))){j.href=g;if(e.split){var a=c=="flash"?g.split(e.split)[e.index].split('?')[0].split('&')[0]:g.split(e.split)[e.index];j.href=e.url.replace("%id%",a).replace("%width%",h.width).replace("%height%",h.height)}j.type=e.iframe?"iframe":c;if(h.width){j.width=h.width;j.height=h.height}else{var b=this.calculate(this.options[j.type].width,this.options[j.type].height);j.width=b.width;j.height=b.height}return false}}));if(!!j.type)return false}));return j},create_gallery:function(a,b){var c=this;var d=c.esqueleto.buttons.prev;var f=c.esqueleto.buttons.next;c.gallery.total=a.length;if(a.length>1){d.unbind('.lightbox');f.unbind('.lightbox');d.bind('click.lightbox touchend.lightbox',function(e){e.preventdefault();a.unshift(a.pop());c.show(a)});f.bind('click.lightbox touchend.lightbox',function(e){e.preventdefault();a.push(a.shift());c.show(a)});if(c.esqueleto.navigator.css("display")==="none"){c.esqueleto.buttons.div.show()}d.show();f.show();if(this.options.preload){if(a[1].href.match(this.imgsreg)){(new image()).src=a[1].href}if(a[a.length-1].href.match(this.imgsreg)){(new image()).src=a[a.length-1].href}}}else{d.hide();f.hide()}},custombuttons:function(c,d){var f=this.esqueleto;f.buttons.custom.empty();$.each(c,this.proxy(function(i,a){var b=$(''+a['html']+'');b.bind('click',this.proxy(function(e){if($.isfunction(a.callback)){a.callback(this.esqueleto.image.src,this,d)}e.preventdefault()}));f.buttons.custom.append(b)}));f.buttons.div.show()},show:function(d,f,g){if(this.utils.isempty(d)){return false}var h=d[0];var i='';var j=false;var k=h.href;var l=this.esqueleto;var m={x:this.win.width(),y:this.win.height()};var n,height;if(d.length===1&&h.type==="element"){i="element"}this.loading();j=this.visible;this.open();if(j===false){this.movebox()}this.create_gallery(d,f);f=$.extend(true,{'width':0,'height':0,'modal':0,'force':'','autoresize':true,'move':true,'maximized':false,'iframe':false,'flashvars':'','cufon':true,'ratio':1,'onopen':function(){},'onclose':function(){}},f||{},h);this.options.onopen=f.onopen;this.options.onclose=f.onclose;this.options.cufon=f.cufon;var o=this.unserialize(k);f=$.extend({},f,o);if(f.width&&(""+f.width).indexof("p")>0){f.width=math.round((m.x-20)*f.width.substring(0,f.width.indexof("p"))/100)}if(f.height&&(""+f.height).indexof("p")>0){f.height=math.round((m.y-20)*f.height.substring(0,f.height.indexof("p"))/100)}this.overlay.options.modal=f.modal;var p=l.buttons.max;p.removeclass(this.options.name+'-button-min');p.removeclass(this.options.name+'-button-max');p.addclass(this.options.name+'-hide');this.move=!!f.move;this.maximized=!!f.maximized;if($.isarray(f.buttons)){this.custombuttons(f.buttons,h.element)}if(l.buttons.custom.is(":empty")===false){l.buttons.div.show()}if(this.utils.isempty(f.force)===false){i=f.force}else if(f.iframe){i='iframe'}else if(k.match(this.imgsreg)){i='image'}else{var q=this.ex({"flash":this.videoregs,"iframe":this.mapsreg},k,f);if(!!q.type===true){k=q.href;i=q.type;f.width=q.width;f.height=q.height}if(!!i===false){if(k.match(/#/)){var r=k.substr(k.indexof("#"));if($(r).length>0){i='inline';k=r}else{i='ajax'}}else{i='ajax'}}}if(i==='image'){l.image=new image();$(l.image).load(this.proxy(function(){var a=this.esqueleto.image;$(a).unbind('load');if(this.visible===false){return false}if(f.width){n=parseint(f.width,10);height=parseint(f.height,10);f.autoresize=false}else{a.width=parseint(a.width*f.ratio,10);a.height=parseint(a.height*f.ratio,10);if(f.maximized){n=a.width;height=a.height}else{var b=this.calculate(a.width,a.height);n=b.width;height=b.height}}if(f.autoresize){if(f.maximized||(!f.maximized&&a.width!=n&&a.height!=height)){l.buttons.div.show();l.buttons.max.removeclass(this.options.name+'-hide');l.buttons.max.addclass(this.options.name+(f.maximized?'-button-min':'-button-max'))}}l.title=(this.utils.isempty(f.title))?false:$('').html(f.title);this.loadimage();this.resize(n,height)}));this.esqueleto.image.onerror=this.proxy(function(){this.error("the requested image cannot be loaded. please try again later.")});this.esqueleto.image.src=k}else if(i=='jwplayer'&&typeof jwplayer!=="undefined"){if(f.width){n=f.width;height=f.height}else{this.error("you have to specify the size. add ?lightbox[width]=600&lightbox[height]=400 at the end of the url.");return false}var s='dv_'+(new date().gettime());var t='';this.appendhtml($(t).css({width:n,height:height}),n,height);this.esqueleto.background.bind('complete',this.proxy(function(){this.esqueleto.background.unbind('complete');jwplayer(s).setup($.extend(true,{file:k,autostart:true},f));if(this.visible===false){return false}}))}else if(i=='flash'||i=='inline'||i=='ajax'||i=='element'){if(i=='inline'){var u=$(k);var v=f.source=="original"?u:u.clone(true).show();n=f.width>0?f.width:u.outerwidth(true);height=f.height>0?f.height:u.outerheight(true);this.appendhtml(v,n,height)}else if(i=='ajax'){if(f.width){n=f.width;height=f.height}else{this.error("you have to specify the size. add ?lightbox[width]=600&lightbox[height]=400 at the end of the url.");return false}if(this.animations.ajax){this.animations.ajax.abort()}this.animations.ajax=$.ajax($.extend(true,{},this.options.ajax,f.ajax||{},{url:k,error:this.proxy(function(a,b,c){this.error("ajax error "+a.status+" "+c+". url: "+k)}),success:this.proxy(function(a){this.appendhtml($(""+a+"
"),n,height)})}))}else if(i=='flash'){var w=this.swf2html(k,f.width,f.height,f.flashvars);this.appendhtml($(w),f.width,f.height,'flash')}else if(i==='element'){n=f.width>0?f.width:h.element.outerwidth(true);height=f.height>0?f.height:h.element.outerheight(true);this.appendhtml(h.element,n,height)}}else if(i=='iframe'){if(f.width){n=f.width;height=f.height}else{this.error("you have to specify the size. add ?lightbox[width]=600&lightbox[height]=400&lighbox[iframe]=true at the end of the url.");return false}var t='';this.appendhtml($(t).css({width:n,height:height}),n,height)}this.callback=$.isfunction(g)?g:function(e){}},loadimage:function(){var a=this.esqueleto;var b=a.background;var c=this.options.name+'-loading';b.bind('complete',this.proxy(function(){b.unbind('complete');if(this.visible===false){return false}this.changemode('image');b.empty();a.html.empty();if(a.title){b.append(a.title)}b.append(a.image);if(!g.opacity){b.removeclass(c)}else{$(a.image).css("background-color","rgba(255, 255, 255, 0)");$(a.image).stop().css("opacity",0).animate({"opacity":1},(e?this.options.animation.show.duration/2:this.options.animation.show.duration),function(){b.removeclass(c)})}this.options.onopen.apply(this)}))},swf2html:function(c,d,e,f){var g=$.extend(true,{classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",width:d,height:e,movie:c,src:c,style:"margin:0; padding:0;",allowfullscreen:"true",allowscriptaccess:"always",wmode:"transparent",autostart:"true",autoplay:"true",type:"application/x-shockwave-flash",flashvars:"autostart=1&autoplay=1&fullscreenbutton=1"},f);var h="";return k},appendhtml:function(a,b,c,d){var e=this;var f=e.options;var g=e.esqueleto;var h=g.background;e.changemode("html");e.resize(b+30,c+20);h.bind('complete',function(){h.removeclass(f.name+'-loading');g.html.append(a);if(d=="flash"&&d("chrome")>-1){g.html.html(a)}h.unbind('complete');if(f.cufon&&typeof cufon!=='undefined'){cufon.refresh()}f.onopen.apply(this)})},movebox:function(w,h){var a=$(this.win);var b={x:a.width(),y:a.height()};var c={x:a.scrollleft(),y:a.scrolltop()};var d=this.esqueleto;var e=w!=null?w:d.lightbox.outerwidth(true);var f=h!=null?h:d.lightbox.outerheight(true);var y=0;var x=0;x=c.x+((b.x-e)/2);if(this.visible){y=c.y+(b.y-f)/2}else if(this.options.emergefrom=="bottom"){y=(c.y+b.y+14)}else if(this.options.emergefrom=="top"){y=(c.y-f)-14}else if(this.options.emergefrom=="right"){x=b.x;y=c.y+(b.y-f)/2}else if(this.options.emergefrom=="left"){x=-e;y=c.y+(b.y-f)/2}if(this.visible){if(!this.animations.move){this.morph(d.move,{'left':parseint(x,10)},'move')}this.morph(d.move,{'top':parseint(y,10)},'move')}else{d.move.css({'left':parseint(x,10),'top':parseint(y,10)})}},morph:function(d,f,g,h,i){var j=jquery.fn.jquery.split(".");if(j[0]==1&&j[1]<8){var k=$.speed({queue:i||false,duration:(e?this.options.animation[g].duration/2:this.options.animation[g].duration),easing:this.options.animation[g].easing,complete:($.isfunction(h)?this.proxy(h,this):null)});return d[k.queue===false?"each":"queue"](function(){if(j[1]>5){if(k.queue===false){$._mark(this)}}var c=$.extend({},k),self=this;c.curanim=$.extend({},f);c.animatedproperties={};for(var p in f){name=p;c.animatedproperties[name]=c.specialeasing&&c.specialeasing[name]||c.easing||'swing'}$.each(f,function(a,b){var e=new $.fx(self,c,a);e.custom(e.cur(true)||0,b,"px")});return true})}else{d.animate(f,{queue:i||false,duration:(e?this.options.animation[g].duration/2:this.options.animation[g].duration),easing:this.options.animation[g].easing,complete:($.isfunction(h)?this.proxy(h,this):null)})}},resize:function(x,y){var a=this.esqueleto;if(this.visible){var b={x:$(this.win).width(),y:$(this.win).height()};var c={x:$(this.win).scrollleft(),y:$(this.win).scrolltop()};var d=math.max((c.x+(b.x-(x+14))/2),0);var e=math.max((c.y+(b.y-(y+14))/2),0);this.animations.move=true;this.morph(a.move.stop(),{'left':(this.maximized&&d<0)?0:d,'top':(this.maximized&&(y+14)>b.y)?c.y:e},'move',$.proxy(function(){this.move=false},this.animations));this.morph(a.html,{'height':y-20},'move');this.morph(a.lightbox.stop(),{'width':(x+14),'height':y-20},'move',{},true);this.morph(a.navigator,{'width':x},'move');this.morph(a.navigator,{'top':(y-(a.navigator.height()))/2},'move');this.morph(a.background.stop(),{'width':x,'height':y},'move',function(){$(a.background).trigger('complete')})}else{a.html.css({'height':y-20});a.lightbox.css({'width':x+14,'height':y-20});a.background.css({'width':x,'height':y});a.navigator.css({'width':x})}},close:function(a){var b=this.esqueleto;this.visible=false;this.gallery={};this.options.onclose();var c=b.html.children(".jwplayer");if(c.length>0&&typeof jwplayer!=="undefined"){jwplayer(c[0]).remove()}if(f||!g.opacity||e){b.background.empty();b.html.find("iframe").attr("src","");if(f){settimeout(function(){b.html.hide().empty().show()},100)}else{b.html.hide().empty().show()}b.buttons.custom.empty();b.move.css("display","none");this.movebox()}else{b.move.animate({"opacity":0,"top":"-=40"},{queue:false,complete:(this.proxy(function(){b.background.empty();b.html.empty();b.buttons.custom.empty();this.movebox();b.move.css({"display":"none","opacity":1,"overflow":"visible"})}))})}this.overlay.hide(this.proxy(function(){if($.isfunction(this.callback)){this.callback.apply(this,$.makearray(a))}}));b.background.stop(true,false).unbind("complete")},open:function(){this.visible=true;if(!g.opacity){this.esqueleto.move.get(0).style.removeattribute("filter")}this.esqueleto.move.stop().css({opacity:1,display:"block",overflow:"visible"}).show();this.overlay.show()},shake:function(){var z=this.options.animation.shake;var x=z.distance;var d=z.duration;var t=z.transition;var o=z.loops;var l=this.esqueleto.move.position().left;var e=this.esqueleto.move;for(var i=0;i0?this.options.maxsize.width:this.win.width()-50;var b=this.options.maxsize.height>0?this.options.maxsize.height:this.win.height()-50;if(x>a){y=y*(a/x);x=a;if(y>b){x=x*(b/y);y=b}}else if(y>b){x=x*(b/y);y=b;if(x>a){y=y*(a/x);x=a}}return{width:parseint(x,10),height:parseint(y,10)}},loading:function(){var a=this.options.style;var b=this.esqueleto;var c=b.background;this.changemode('image');c.children().stop(true);c.empty();b.html.empty();b.buttons.div.hide();b.buttons.div.css("width");c.addclass(this.options.name+'-loading');if(this.visible==false){this.movebox(a["width"],a["height"]);this.resize(a["width"],a["height"])}},maximinimize:function(){var a=this;var b=a.esqueleto.buttons;var c=a.esqueleto.image;var d=a.options.name;var e={};b.max.removeclass(d+'-button-min '+d+'-button-max').addclass((a.maximized)?d+'-button-max':d+'-button-min');a.loading();a.loadimage();b.div.show();if(a.maximized){e=a.calculate(c.width,c.height)}else{e=c}a.resize(e.width,e.height);a.maximized=!a.maximized},getoptions:function(a){var a=$(a);return $.extend({},{href:a.attr("href"),rel:($.trim(a.attr("data-rel")||a.attr("rel"))),relent:a.attr("data-rel")?"data-rel":"rel",title:$.trim(a.attr("data-title")||a.attr("title")),element:a[0]},($.parsejson((a.attr("data-options")||"{}").replace(/\'/g,'"'))||{}))},link:function(b,c){var d=$(c.element);var e=this.getoptions(d);var f=e.rel;var g=e.relent;var h=c.options;var j=[];d.blur();if(c.gallery){j=c.gallery}else if(this.utils.isempty(f)||f==='nofollow'){j=[e]}else{var k=[];var l=[];var m=false;$("a["+g+"], area["+g+"]",this.ownerdocument).filter("["+g+"=\""+f+"\"]").each($.proxy(function(i,a){if(d[0]===a){k.unshift(this.getoptions(a));m=true}else if(m==false){l.push(this.getoptions(a))}else{k.push(this.getoptions(a))}},this));j=k.concat(l)}$.lightbox(j,h,c.callback,d);return false},utils:{isempty:function(a){if(a==null)return true;if(object.prototype.tostring.call(a)==='[object string]'||$.type(a)==="array")return a.length===0}}},lightbox:function(a,b,c){var d=[];if($.lightboxobject.utils.isempty(a)){return $.lightboxobject}if($.type(a)==="string"){d=[$.extend({},{href:a},b)]}else if($.type(a)==="array"){var e=a[0];if($.type(e)==="string"){for(var i=0;i1||(a[0]==1&&a[1]>3)){$.lightboxobject.create()}else{throw"the jquery version that was loaded is too old. lightbox evolution requires jquery 1.4+";}})})(jquery,window,document);