(function($){$.fn.rateit=function(p1,p2){var options={};var mode='init';if(this.length==0)return this;var tp1=$.type(p1);if(tp1=='object'||p1===undefined||p1==null){options=$.extend({},$.fn.rateit.defaults,p1);} else if(tp1=='string'&&p2===undefined){return this.data('rateit-'+p1);} else if(tp1=='string'){mode='setvalue'} return this.each(function(){var item=$(this);var itemdata=function(k,v){k='rateit-'+k;if(arguments.length===1) return item.data(k);item.data(k,v);return v;};if(!item.hasClass('rateit'))item.addClass('rateit');var ltr=item.css('direction')!='rtl';if(mode=='setvalue'){if(!itemdata('init'))throw'Can\'t set value before init';if(p1=='readonly'&&!itemdata('readonly')){item.find('.rateit-range').unbind();itemdata('wired',false);} if(itemdata('backingfld')){var fld=$(itemdata('backingfld'));if(p1=='value')fld.val(p2);if(p1=='min'&&fld[0].min)fld[0].min=p2;if(p1=='max'&&fld[0].max)fld[0].max=p2;if(p1=='step'&&fld[0].step)fld[0].step=p2;} itemdata(p1,p2);} if(!itemdata('init')){itemdata('min',itemdata('min')||options.min);itemdata('max',itemdata('max')||options.max);itemdata('step',itemdata('step')||options.step);itemdata('readonly',itemdata('readonly')!==undefined?itemdata('readonly'):options.readonly);itemdata('resetable',itemdata('resetable')!==undefined?itemdata('resetable'):options.resetable);itemdata('backingfld',itemdata('backingfld')||options.backingfld);itemdata('starwidth',itemdata('starwidth')||options.starwidth);itemdata('starheight',itemdata('starheight')||options.starheight);itemdata('value',itemdata('value')||options.min);if(itemdata('backingfld')){var fld=$(itemdata('backingfld'));itemdata('value',fld.hide().val());if(fld[0].nodeName=='INPUT'){if(fld[0].type=='range'||fld[0].type=='text'){itemdata('min',parseInt(fld.attr('min'))||itemdata('min'));itemdata('max',parseInt(fld.attr('max'))||itemdata('max'));itemdata('step',parseInt(fld.attr('step'))||itemdata('step'));}} if(fld[0].nodeName=='SELECT'&&fld[0].options.length>1){itemdata('min',Number(fld[0].options[0].value));itemdata('max',Number(fld[0].options[fld[0].length-1].value));itemdata('step',Number(fld[0].options[1].value)-Number(fld[0].options[0].value));}} item.append('
');if(!ltr){item.find('.rateit-reset').css('float','right');item.find('.rateit-selected').addClass('rateit-selected-rtl');item.find('.rateit-hover').addClass('rateit-hover-rtl');} itemdata('init',true);} var range=item.find('.rateit-range');range.width(itemdata('starwidth')*(itemdata('max')-itemdata('min'))).height(itemdata('starheight'));if(itemdata('value')){var score=(itemdata('value')-itemdata('min'))*itemdata('starwidth');item.find('.rateit-selected').width(score);} var resetbtn=item.find('.rateit-reset');var calcRawScore=function(element,event){var pageX=(event.changedTouches)?event.changedTouches[0].pageX:event.pageX;var offsetx=pageX-$(element).offset().left;if(!ltr)offsetx=range.width()-offsetx;if(offsetx>range.width())offsetx=range.width();if(offsetx<0)offsetx=0;return score=Math.ceil(offsetx/itemdata('starwidth')*(1/itemdata('step')));};if(!itemdata('readonly')){if(itemdata('resetable')){resetbtn.click(function(){itemdata('value',itemdata('min'));range.find('.rateit-hover').hide().width(0);range.find('.rateit-selected').width(0).show();if(itemdata('backingfld'))$(itemdata('backingfld')).val(itemdata('min'));item.trigger('reset');});} else{resetbtn.hide();} if(!itemdata('wired')){range.bind('touchmove touchend',touchHandler);range.mousemove(function(e){var score=calcRawScore(this,e);var w=score*itemdata('starwidth')*itemdata('step');var h=range.find('.rateit-hover');if(h.data('width')!=w){range.find('.rateit-selected').hide();h.width(w).show().data('width',w);item.trigger('hover',[(score*itemdata('step'))+itemdata('min')]);}});range.mouseleave(function(e){range.find('.rateit-hover').hide().width(0).data('width','');item.trigger('hover',[null]);range.find('.rateit-selected').show();});range.mouseup(function(e){var score=calcRawScore(this,e);var newvalue=(score*itemdata('step'))+itemdata('min');itemdata('value',newvalue);if(itemdata('backingfld')){$(itemdata('backingfld')).val(newvalue);} range.find('.rateit-hover').hide();range.find('.rateit-selected').width(score*itemdata('starwidth')*itemdata('step')).show();item.trigger('hover',[null]).trigger('rated',[newvalue]);});itemdata('wired',true);} if(itemdata('resetable')){resetbtn.show();}} else{resetbtn.hide();}});};function touchHandler(event){var touches=event.originalEvent.changedTouches,first=touches[0],type="";switch(event.type){case"touchmove":type="mousemove";break;case"touchend":type="mouseup";break;default:return;} var simulatedEvent=document.createEvent("MouseEvent");simulatedEvent.initMouseEvent(type,true,true,window,1,first.screenX,first.screenY,first.clientX,first.clientY,false,false,false,false,0,null);first.target.dispatchEvent(simulatedEvent);event.preventDefault();};$.fn.rateit.defaults={min:0,max:5,step:0.5,starwidth:16,starheight:16,readonly:false,resetable:true};eds3_5_jq(document).ready(function($){$('div.rateit').rateit();});})(eds3_5_jq); ;;;(function(){var eds_mousewheel=function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})};if(typeof jQuery!=='undefined') eds_mousewheel(jQuery);if(typeof eds3_5_jq!=='undefined') eds_mousewheel(eds3_5_jq);})(); ;;;(function(document,undefined){var eds_cookie=function($){var pluses=/\+/g;function raw(s){return s;} function decoded(s){return decodeURIComponent(s.replace(pluses,' '));} var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(value===null){options.expires=-1;} if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);} value=config.json?JSON.stringify(value):String(value);return(document.cookie=[encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));} var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');for(var i=0,l=cookies.length;i0}function j(){return o.contentPosition<=o.contentSize-o.viewportSize-5}function k(b,d){o.hasContentToSroll&&(a("body").addClass("noSelect"),z=d?t.offset()[y]:w?b.pageX:b.pageY,u&&(document.ontouchmove=function(a){(o.options.touchLock||i()&&j())&&a.preventDefault(),a.touches[0][c+"Touch"]=1,m(a.touches[0])},document.ontouchend=n),a(document).bind("mousemove",m),a(document).bind("mouseup",n),t.bind("mouseup",n),s.bind("mouseup",n),m(b))}function l(c){if(o.hasContentToSroll){var d=c||window.event,e=-(d.deltaY||d.detail||-1/3*d.wheelDelta)/40,f=1===d.deltaMode?o.options.wheelSpeed:1;o.contentPosition-=e*f*o.options.wheelSpeed,o.contentPosition=Math.min(o.contentSize-o.viewportSize,Math.max(0,o.contentPosition)),o.thumbPosition=o.contentPosition/o.trackRatio,b.trigger("move"),t.css(y,o.thumbPosition),q.css(y,-o.contentPosition),(o.options.wheelLock||i()&&j())&&(d=a.event.fix(d),d.preventDefault())}c.stopPropagation()}function m(a){if(o.hasContentToSroll){var d=w?a.pageX:a.pageY,e=a[c+"Touch"]?z-d:d-z,f=Math.min(o.trackSize-o.thumbSize,Math.max(0,o.thumbPosition+e));o.contentPosition=f*o.trackRatio,b.trigger("move"),t.css(y,f),q.css(y,-o.contentPosition)}}function n(){o.thumbPosition=parseInt(t.css(y),10)||0,a("body").removeClass("noSelect"),a(document).unbind("mousemove",m),a(document).unbind("mouseup",n),t.unbind("mouseup",n),s.unbind("mouseup",n),document.ontouchmove=document.ontouchend=null}this.options=a.extend({},d,e),this._defaults=d,this._name=c;var o=this,p=b.find(".viewport"),q=b.find(".overview"),r=b.find(".scrollbar"),s=r.find(".track"),t=r.find(".thumb"),u="ontouchstart" in document.documentElement,v="onwheel" in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",w="x"===this.options.axis,x=w?"width":"height",y=w?"left":"top",z=0;return this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.hasContentToSroll=!1,this.update=function(a){var b=x.charAt(0).toUpperCase()+x.slice(1).toLowerCase();switch(this.viewportSize=p[0]["offset"+b],this.contentSize=q[0]["scroll"+b],this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(this.options.thumbSizeMin,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize),this.hasContentToSroll=this.contentRatio<1,r.toggleClass("disable",!this.hasContentToSroll),a){case"bottom":this.contentPosition=Math.max(this.contentSize-this.viewportSize,0);break;case"relative":this.contentPosition=Math.min(Math.max(this.contentSize-this.viewportSize,0),Math.max(0,this.contentPosition));break;default:this.contentPosition=parseInt(a,10)||0}return this.thumbPosition=this.contentPosition/this.trackRatio,g(),o},f()}var c="eds_tinyscrollbar",d={axis:"y",wheel:!0,wheelSpeed:40,wheelLock:!0,touchLock:!0,trackSize:!1,thumbSize:!1,thumbSizeMin:20};a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(a(this),d))})}}); ;;;/*! fluidvids.js v2.4.1 | (c) 2014 @toddmotto | https://github.com/toddmotto/fluidvids */ !function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t:e.edn_fluidvids=t()}(this,function(){"use strict";function e(e){return new RegExp("^(https?:)?//(?:"+d.players.join("|")+").*$","i").test(e)}function t(e,t){return parseInt(e,10)/parseInt(t,10)*100+"%"}function i(i){if((e(i.src)||e(i.data))&&!i.getAttribute("edn_data-fluidvids")){var n=document.createElement("div");i.parentNode.insertBefore(n,i),i.className+=(i.className?" ":"")+"edn_fluidvids-item",i.setAttribute("edn_data-fluidvids","loaded"),n.className+="edn_fluidvids",n.style.paddingTop=t(i.height,i.width),n.appendChild(i)}}function n(){var e=document.createElement("div");e.innerHTML="

x

",r.appendChild(e.childNodes[1])}var d={selector:["iframe","object"],players:["www.youtube.com","player.vimeo.com"]},o=[".edn_fluidvids {","width: 100%; max-width: 100%; position: relative;","}",".edn_fluidvids-item {","position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;","}"].join(""),r=document.head||document.getElementsByTagName("head")[0];return d.render=function(){for(var e=document.querySelectorAll(d.selector.join()),t=e.length;t--;)i(e[t])},d.init=function(e){for(var t in e)d[t]=e[t];d.render(),n()},d}); ;;;(function ($, window, document) { 'use strict'; var pluginName = 'chameleonSlider_2_1', stringEndsWith = function (s, e) { return s.indexOf(e, s.length - e.length) !== -1; }; $.fn[pluginName] = function (options) { var defaults = { content_source: '', container_dimensions: { width: 750, height: 400, w_as_ratio: false, h_as_ratio: false, height_references_width: false }, autoplay: { enable: true, interval: 4000, pause_on_hover: true, autostart_video_playback: false, indicator: { display: true, position: { vertical: 'top', horizontal: 'left', h_offset: 0, v_offset: 0, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false }, dimensions: { height: 2, width: 750, h_as_ratio: false, w_as_ratio: false }, orientation: 'horizontal', flip_direction: false } }, arrows: { display: true, auto_hide: true, hide_speed: 250, prev: { position: { vertical: 'top', horizontal: 'left', h_offset: 0, v_offset: 183, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, next: { position: { vertical: 'top', horizontal: 'right', h_offset: 0, v_offset: 183, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, autoplay_toggle: { display: true, auto_hide: true, hide_speed: 250, position: { vertical: 'top', horizontal: 'left', h_offset: 347, v_offset: 130, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, scrollable_boxes: { item_info: { display: true, cutThumbWidth: false, cutCategoryWidth: false, container: { dimensions: { height: 100, width: 750, h_as_ratio: false, w_as_ratio: false }, resize_to_content: true, show_on_hover: false, position: { vertical: 'top', horizontal: 'left', h_offset: 0, v_offset: 2, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, gallery_info: { display: false, container: { dimensions: { height: 100, width: 750, h_as_ratio: false, w_as_ratio: false }, resize_to_content: true, show_on_hover: false, position: { vertical: 'top', horizontal: 'left', h_offset: 0, v_offset: 2, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } } }, thumbs: { display: true, auto_hide: false, hide_speed: 250, width: 100, height: 46, captions: true, display_item_types: false, pagination: { direction: 'horizontal', duration: 250, easing: 'swing' }, tooltips: { enabled: false, title: true, description: false, position: { my: 'bottom center', at: 'top center' }, classes: '' }, container: { transparent: true, dimensions: { height: 20, width: 679, h_as_ratio: false, w_as_ratio: false }, position: { vertical: 'bottom', horizontal: 'left', h_offset: 35, v_offset: 0, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, categories: { display: false, auto_hide: false, hide_speed: 250, width: 100, height: 46, pagination: { direction: 'horizontal', duration: 250, easing: 'swing' }, container: { dimensions: { height: 20, width: 679, h_as_ratio: false, w_as_ratio: false }, position: { vertical: 'bottom', horizontal: 'left', h_offset: 35, v_offset: 0, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, pagination: { display: true, pages_at_once: 7, direction: 'horizontal', position: { vertical: 'bottom', horizontal: 'right', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, title_boxes: { current_item: { display: false, height: 35, position: { vertical: 'bottom', horizontal: 'left', h_offset: 0, v_offset: 200, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, current_gallery: { display: false, height: 35, position: { vertical: 'top', horizontal: 'left', h_offset: 0, v_offset: 0, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, buttons: { email: { display: false, position: { vertical: 'top', horizontal: 'right', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false }, email_subject: 'Look at this link' }, download: { display: false, position: { vertical: 'top', horizontal: 'left', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, fullscreen: { display: false, position: { vertical: 'top', horizontal: 'left', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } }, exit_fullscreen: { display: false, position: { vertical: 'bottom', horizontal: 'right', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false } } }, social_buttons: { display: false, direction: 'horizontal', load_after_effect: true, position: { vertical: 'bottom', horizontal: 'right', h_offset: 35, v_offset: 58, h_as_ratio: false, v_as_ratio: false, v_center_point: false, h_center_point: false }, buttons: { facebook: { display: true, html: '' }, twitter: { display: true, html: '';if(self.options.socialButtons.inshare) socialButtonsHtml+='
';if(self.options.socialButtons.pinterest&¤tItem.type=='image') socialButtonsHtml+='
';if(socialButtonsHtml=='') return;self.$socialButtonsWrapper.toggleClass('show').html(socialButtonsHtml);if(self.options.socialButtons.pinterest&¤tItem.type=='image') $.ajax({url:'//assets.pinterest.com/js/pinit.js',dataType:'script',cache:true});$(this).toggleClass('show');});},_=function(s){var self=this,translation=self.options.i18n[s];if(!translation) return s;return translation;};function Standard(items,options){var self=this,currentItem,controlsHtml='';if(!initEnviroment.call(self,items,options)) return;self.$root=$('
');self.$root.addClass(self.options.cssClass);self.$contentWrapper=$('> div.contentWrapper',self.$root);if(items.length>1) controlsHtml=''+'';controlsHtml+=''+'
'+''+_.call(self,'Share')+'';self.$mainWrapper=$('
'+'
'+'

'+_.call(self,'This image is currently unavailable')+'

'+'
'+'
'+ controlsHtml+'
').appendTo(self.$contentWrapper);self.$itemTitle=$('

').appendTo(self.$mainWrapper);self.$loadingOverlay=$('
').appendTo(self.$mainWrapper);self.$imagesWrapper=$('> .viewWrapper > .images',self.$mainWrapper);self.$audioVideo=$('> .viewWrapper > .audioVideo',self.$mainWrapper);self.$socialButtonsWrapper=$('.socialButtonsWrapper',self.$mainWrapper);self.$socialButtonsTrigger=$('.socialButtonsTrigger',self.$mainWrapper);currentItem=self.items[self.currentItemIndex];if(currentItem.type=='image'){preloadImage.call(self,self.currentItemIndex,function(){preloadImages.call(self);});}else{preloadImages.call(self);} self.$root.appendTo(self.$body);self.main={horizontalSpace:self.$mainWrapper.outerWidth(true)-self.$mainWrapper.width(),verticalSpace:self.$mainWrapper.outerHeight(true)-self.$mainWrapper.height()};size.call(self);self.$root.fadeTo(200,1,function(){if(currentItem.type=='image') return;showItem.call(self);});postInit.call(self);return self;} Standard.prototype={center:function(){var self=this,css={},currentItem,imageInfo,dimensionsSet=false,width=0,height=0,maximizeItem=false,fixedHeight=false;if(self.initialItemLoaded){currentItem=self.items[self.currentItemIndex];switch(currentItem.type){case'image':imageInfo=self.images[currentItem.src].stats;if(imageInfo.isLoaded){width=imageInfo.width;height=imageInfo.height;}else{width=400;height=400;} break;case'video':width=currentItem.width;height=currentItem.height;maximizeItem=true;break;case'audio':width=460;height=36;fixedHeight=true;break;} css=getItemDimensions.call(self,width,height,maximizeItem,fixedHeight);dimensionsSet=true;} if(!dimensionsSet){css.width=self.$mainWrapper.width();css.height=self.$mainWrapper.height();css.left=Math.floor((self.overlayWidth-(css.width+self.main.horizontalSpace))/2);css.top=Math.floor((self.overlayHeight-(css.height+self.main.verticalSpace))/2);} self.$mainWrapper.stop(true).css(css);},showItem:function(){var self=this;self.$imagesWrapper.removeClass(imageNotLoadedClass);self.$loadingOverlay.addClass('inProgress').stop(true).fadeTo(0,1,function(){self.$loadingOverlay.css('display','');});self.$audioVideo.html('');$('> .viewWrapper > div',self.$mainWrapper).removeClass(activeClass);self.$mainWrapper.removeClass(audioItemTypeClass).removeClass(videoItemTypeClass).removeClass(imageItemTypeClass);var currentItem=self.items[self.currentItemIndex];switch(currentItem.type){case'image':showImage.call(self,currentItem);break;case'video':showVideo.call(self,self.currentItemIndex);break;case'audio':showAudio.call(self,currentItem);break;default:self.initialItemLoaded=true;} if(self.initialItemLoaded) self.$root.removeClass('initializing');}};function Mobile(items,options){var self=this,currentItem,touch={newTouch:false,startX:0},controlsHtml='';self.smbPlus=true;if(!initEnviroment.call(self,items,options)) return;self.options.wrapperResizeDuration=0;self.$viewportMeta=$('meta[name="viewport"]');self.oldViewportMetaContent=undefined;if(self.$viewportMeta.length>0){self.oldViewportMetaContent=self.$viewportMeta.attr('content');self.$viewportMeta.attr('content','user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1');}else self.$viewportMeta=$('').appendTo($('head'));self.$ieTapHighlight=$('meta[name="msapplication-tap-highlight"]');self.oldIeTapHighlight=undefined;if(self.$ieTapHighlight.length>0){self.oldIeTapHighlight=self.$ieTapHighlight.attr('content');self.$ieTapHighlight.attr('content','no');}else self.$ieTapHighlight=$('').appendTo($('head'));self.$root=$('
'+'
'+'
').addClass(self.options.cssClass);if(!/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())){self.$root.addClass('desktopUserAgent');self.desktopVersion=true;} self.$contentWrapper=$('> div.contentWrapper',self.$root);controlsHtml='
';if(items.length>1) controlsHtml+=''+'';controlsHtml+=''+'
'+''+_.call(self,'Share')+'';self.$root.append(controlsHtml);self.$itemTitle=$('

').appendTo(self.$root);self.$socialButtonsWrapper=$('.socialButtonsWrapper',self.$root);self.$socialButtonsTrigger=$('.socialButtonsTrigger',self.$root);self.$modalOverlay=$('> .modalOverlay',self.$root);if(self.options.comments.permissions.show){self.comments={};self.$root.append('0'+'
'+'
'+'
'+'0'+''+''+_.call(self,'Sort')+''+'
'+'
    '+'

    '+_.call(self,'No comments yet')+'

    '+'
    '+''+''+'
    '+'
'+'
'+'

'+_.call(self,'Add a comment')+'

'+'
'+'
'+'
'+ (self.options.comments.requireAuthorInfo&&self.options.comments.useReCaptcha?'

'+_.call(self,'Please solve the test correctly.')+'

':'')+'
'+'
'+''+_.call(self,'Hide')+''+'

'+_.call(self,'Loading comments')+'

'+'
');self.$commentsTrigger=$('> .actions.commentsTrigger',self.$root);self.$mainCommentsCount=$('> span',self.$commentsTrigger);self.$commentsModal=$('> .commentsModalWrapper',self.$root);self.$commentsMainWrapper=$('> .main',self.$commentsModal);self.$newCommentWrapper=$('> .newCommentWrapper',self.$commentsMainWrapper);self.$newCommentInput=$('> textarea',self.$newCommentWrapper);self.$newCommentButton=$('> button',self.$newCommentWrapper);self.$commentsTopBar=$('> .top',self.$commentsMainWrapper);self.$internalCommentsCount=$('> .comments',self.$commentsTopBar);self.$commentsLikes=$('> .likes',self.$commentsTopBar);self.$commentsSorting=$('> .sort',self.$commentsTopBar);self.$commentList=$('> ul',self.$commentsMainWrapper);self.$anonymCommentWrapper=$('> .anonymCommentWrapper',self.$commentsModal);self.$anonymCommenterNameInput=$('> .authorName > input',self.$anonymCommentWrapper);self.$anonymCommenterEmailInput=$('> .authorEmail > input',self.$anonymCommentWrapper);self.$anonymCommentInput=$('> .authorTextarea > textarea',self.$anonymCommentWrapper);self.$anonymCommentCancel=$('> .actions > .cancel',self.$anonymCommentWrapper);self.$anonymCommentPost=$('> .actions > .post',self.$anonymCommentWrapper);self.$newCommentCaptchaContainer=$('> .captchaContainer',self.$anonymCommentWrapper);self.commentSorting='asc';self.addingAjaxRequest=undefined;self.commentsOpened=false;self.commentsAnimationTimeout;var reCaptchaId;self.$commentsTrigger.on('click',function(){if(self.desktopVersion&&self.commentsOpened==true){self.closeComments();return;} self.updateItemComments();if(self.desktopVersion){self.commentsOpened=true;clearTimeout(self.commentsAnimationTimeout);self.$root.addClass('animateComments moveComments');self.commentsAnimationTimeout=setTimeout(function(){self.$root.removeClass('animateComments moveComments');self.$root.width(self.$root.width()-self.$commentsModal.outerWidth(true));size.call(self);},200);}else{self.$root.addClass('modalActive');self.$modalOverlay.stop(true).animate({opacity:1},{duration:200});}});self.$commentsSorting.on('click',function(){if(self.commentSorting=='asc') self.commentSorting='desc';else self.commentSorting='asc';self.$commentsSorting.toggleClass('desc',self.commentSorting=='desc');updateCommentsUi.call(self);});self.$commentsModal.on('click','> span.closeComments',function(){self.closeComments();});self.$newCommentInput.on('change keyup',function(){var val=self.$newCommentInput.val();self.$newCommentWrapper.toggleClass('filledIn',val!=='');}).on('focus',function(){if(!self.options.comments.requireAuthorInfo) return;self.$anonymCommenterNameInput.trigger('focus').val('').parent().removeClass('error');self.$anonymCommenterEmailInput.val('').parent().removeClass('error');self.$anonymCommentInput.val('').parent().removeClass('error');self.$newCommentCaptchaContainer.removeClass('error');if(self.options.comments.useReCaptcha){if(reCaptchaId) grecaptcha.reset(reCaptchaId);else reCaptchaId=grecaptcha.render($('> .captcha',self.$newCommentCaptchaContainer)[0],{sitekey:self.options.googleReCaptchaSiteKey,size:'compact'});} self.$commentsModal.addClass('showAnonymWindow');});self.$anonymCommentCancel.on('click',function(){self.$commentsModal.removeClass('showAnonymWindow');self.$anonymCommentWrapper.removeClass('addingAnonComment');if(self.addingAjaxRequest){self.addingAjaxRequest.abort();self.addingAjaxRequest=undefined;}});var submitComment=function(e,authorName,authorEmail,comment,captcha,anonComment){var activeItemIndex=self.currentItemIndex,currentItem=self.items[activeItemIndex],itemCommentMeta=self.comments[currentItem.id],newComment=self.options.comments.requireAuthorInfo?comment:self.$newCommentInput.val(),params={action:'add_comment'},error=false;if(newComment===''||self.$newCommentWrapper.hasClass('addingComment')) return;self.$newCommentCaptchaContainer.removeClass('error');self.$newCommentInput.val('');self.$newCommentWrapper.removeClass('filledIn').addClass('addingComment');params.comment=newComment;if(self.options.comments.requireAuthorInfo){params.name=authorName;params.email=authorEmail;} if(captcha) params.captcha=captcha;self.addingAjaxRequest=$.ajax({data:params,dataType:'json',type:'POST',url:currentItem.comments.backend,timeout:30000,cache:false,error:function(){},success:function(response){if(response.status==undefined) return;if(response.status=='success'){itemCommentMeta.cache.comments.push({author:response.author.id,content:response.comment,raw:newComment,id:response.id,dateHtml:response.dateHtml});itemCommentMeta.count+=1;if(itemCommentMeta.cache.authors[response.author.id]==undefined) itemCommentMeta.cache.authors[response.author.id]={avatar:response.author.avatar,name:response.author.name,url:response.author.url};}else if(response.status=='captcha_error'){self.$newCommentCaptchaContainer.addClass('error');error=true;}},complete:function(){self.addingAjaxRequest=undefined;if(!itemCommentMeta.state.open||activeItemIndex!=self.currentItemIndex) return;if(anonComment){self.$anonymCommentWrapper.removeClass('addingAnonComment');self.$anonymCommentPost.text(_.call(self,'Post'));} self.$newCommentWrapper.removeClass('addingComment');if(error) return;if(anonComment){self.$commentsModal.removeClass('showAnonymWindow');self.$newCommentCaptchaContainer.removeClass('error');} updateCommentsUi.call(self);}});};self.$anonymCommentPost.on('click',function(){var authorName=self.$anonymCommenterNameInput.val(),authorEmail=self.$anonymCommenterEmailInput.val(),comment=self.$anonymCommentInput.val(),hasErrors=false,captcha=undefined;self.$anonymCommenterNameInput.attr('placeholder',_.call(self,'Name'));self.$anonymCommenterEmailInput.attr('placeholder',_.call(self,'Email'));self.$anonymCommentInput.attr('placeholder',_.call(self,'Write a comment'));self.$anonymCommenterNameInput.parent().removeClass('error');self.$anonymCommenterEmailInput.parent().removeClass('error');self.$anonymCommentInput.parent().removeClass('error');if(!authorName){self.$anonymCommenterNameInput.attr('placeholder',_.call(self,'Please specify your name')).parent().addClass('error');hasErrors=true;} if(!authorEmail||!emailVerification.test(authorEmail)){self.$anonymCommenterEmailInput.attr('placeholder',_.call(self,'Please specify your email')).parent().addClass('error');hasErrors=true;} if(!comment){self.$anonymCommentInput.attr('placeholder',_.call(self,'Please write a comment')).parent().addClass('error');hasErrors=true;} if(self.options.comments.useReCaptcha){captcha=grecaptcha.getResponse(reCaptchaId);if(captcha.length==0){self.$newCommentCaptchaContainer.addClass('error');hasErrors=true;}} if(hasErrors){return;} self.$anonymCommentWrapper.addClass('addingAnonComment');self.$anonymCommentPost.text(_.call(self,'Commenting'));submitComment({},authorName,authorEmail,comment,captcha,true);});self.$newCommentButton.on('click',submitComment);} if(self.options.like.permissions.liking){self.$root.append('0');self.$likeTrigger=$('> .actions.likeTrigger',self.$root);self.$mainLikeCount=$('> span',self.$likeTrigger);self.$likeTrigger.on('click',function(){if(self.$root.hasClass('initializing')) return;var activeItemIndex=self.currentItemIndex,currentItem=self.items[activeItemIndex],liked=!currentItem.likes.likedByUser,params={portalId:self.options.portalId,moduleId:self.options.moduleId,mediaId:currentItem.id};currentItem.likes.likedByUser=liked;if(liked) currentItem.likes.numOfLikes+=1;else if(currentItem.likes.numOfLikes>0) currentItem.likes.numOfLikes-=1;self.$mainLikeCount.text(currentItem.likes.numOfLikes);self.$likeTrigger.toggleClass('liked',liked);if(typeof currentItem.journalId=='number'){params.action='like';params.journalid=currentItem.journalId;params.liked=liked;}else{params.action='media_like';params.vote=liked?1:-1;} $.ajax({data:params,dataType:'json',type:'POST',url:self.options.websiteRoot+'DesktopModules/EasyDNNGallery/Services/SocialMediaBox.ashx',timeout:10000,cache:false,error:function(){},success:function(){},complete:function(){}});});} self.$root.appendTo(self.$body);self.main={horizontalSpace:0,verticalSpace:0};$.each(self.items,function(itemIndex){var $itemDiv=$('
');$itemDiv.addClass('loading item_'+itemIndex).data('itemIndex',itemIndex);if(this.type=='image'){$itemDiv.addClass('imageItem');}else if(this.type=='video'){$itemDiv.addClass('videoItem');}else if(this.type=='audio'){$itemDiv.addClass('audioItem');} $itemDiv.appendTo(self.$contentWrapper)});size.call(self);self.$root.addClass('show');setTimeout(function(){showItem.call(self);},200);var hammerTime=new Hammer($('> .mobileOverlay',self.$root)[0]);self.skipGestures=false;var tapTimeout;hammerTime.on('swipeleft swiperight panleft panright panend tap',function(event){var currentItemOffset=-(self.currentItemIndex*self.overlayWidth),deltaX=event.deltaX;if(event.type=='tap'){clearTimeout(tapTimeout);if(self.$root.hasClass('hideControls')){self.$root.removeClass('hideControls fadeOutControls');}else{self.$root.addClass('fadeOutControls');tapTimeout=setTimeout(function(){self.$root.addClass('hideControls');},500);} return;} if(self.skipGestures||!self.initialItemLoaded) return;if((event.type=='swipeleft'||event.type=='swiperight')&&items.length>1){if(event.type=='swipeleft') if(self.currentItemIndex=0||self.currentItemIndex==self.items.length-1&&deltaX<0||Math.abs(deltaX)0){newX=self.overlayWidth;indexModifier=-1;} newX=currentItemOffset+newX;self.$contentWrapper.addClass(positionAnimationClass).removeClass(swipeAnimationClass).css({transform:'translate3d('+newX+'px, 0, 0)'});setTimeout(function(){self.skipGestures=false;self.currentItemIndex+=indexModifier;showItem.call(self);},550);return;} if(self.currentItemIndex==0&&deltaX>=0||self.currentItemIndex==self.items.length-1&&deltaX<0){deltaX=1-Math.abs(deltaX)/self.overlayWidth;if(deltaX<.5){deltaX=Math.round(self.overlayWidth/4);if(event.deltaX<1) deltaX=-deltaX;}else deltaX=Math.round(deltaX*event.deltaX);} self.$contentWrapper.removeClass(positionAnimationClass).removeClass(swipeAnimationClass).css({transform:'translate3d('+(currentItemOffset+deltaX)+'px, 0, 0)'});});postInit.call(self);return self;} Mobile.prototype={center:function(){var self=this,commentListHeight=0;if(self.options.comments.permissions.show){commentListHeight=$('>',self.$commentsModal).height()-self.$commentsTopBar.outerHeight(true)-self.$newCommentWrapper.outerHeight(true);if(commentListHeight<0) commentListHeight=0;self.$commentList.css('height',commentListHeight);};self.$contentWrapper.removeClass(positionAnimationClass).removeClass(swipeAnimationClass).css({width:self.items.length*self.overlayWidth,transform:'translate3d(-'+self.currentItemIndex*self.overlayWidth+'px, 0, 0)'});$('>',self.$contentWrapper).width(self.overlayWidth).each(function(){var $itemContainer=$(this),itemIndex=$itemContainer.data('itemIndex'),item=self.items[itemIndex];if($itemContainer.hasClass('loading')||(item.type!='image'&&itemIndex!=self.currentItemIndex)) return;if(item.type=='image'){var imageStats=self.images[item.src].stats;$('> img',$itemContainer).css(getItemDimensions.call(self,imageStats.width,imageStats.height,false));}else if(item.type=='video'){$('> div',$itemContainer).css(getItemDimensions.call(self,item.width,item.height,true));}else if(item.type=='audio'){$('> div',$itemContainer).css(getItemDimensions.call(self,460,36,false,true));}});},showItem:function(){var self=this,$currentDomItem=$('> div.item_'+self.currentItemIndex,self.$contentWrapper),thisItemIndex=self.currentItemIndex,currentItem=self.items[thisItemIndex],preloadNeighbours=function(){if(thisItemIndex>0) preloadImage.call(self,validItemIndex.call(self,thisItemIndex-1));if(thisItemIndex-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;eh&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;af?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance head');$(function(){$('body').on('click','.eds_openModal',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper').filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}),$dnnModuleElements=$modalTarget.parents('.DnnModule'),$modalContent,$modalResizeWrapper,$modalContentTitle,initialHeight,resizeContent=function(){var windowHeight=$window.height(),ContentHDiff=Math.round($modalContent.outerHeight(true)-$modalContent.height()),resizeWrapperHDiff=Math.round($modalResizeWrapper.outerHeight(true)-$modalResizeWrapper.height()),titleHeight=$modalContentTitle.outerHeight(true),maxHeight=windowHeight-ContentHDiff-resizeWrapperHDiff-titleHeight;if(maxHeight .eds_modalContent",$modalTarget).addClass("eds_fadeInDown");if($modalTarget.hasClass('eds_resizable')){$modalContent=$('>',$modalTarget);$modalContentTitle=$('> h3',$modalContent);$modalResizeWrapper=$('> div',$modalContent);initialHeight=$modalResizeWrapper.height();resizeContent() $window.on('resize.eds_modalWrapper',function(){resizeContent();});}}).on('click','.eds_modalClose',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper'),$dnnModuleElements=$modalTarget.parents('.DnnModule');$dnnModuleElements.each(function(){var $this=$(this);$this.css('z-index',$this.data('previousZIndex'));});$modalTarget.filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}).removeClass("eds_modalVisible").css('z-index','');});});} var initOptions=null;if($('#eds_js1_1').length>0){initOptions=$('#eds_js1_1').data('initJson')} if($('meta[name="eds__GmapsInitData"]').length>0){initOptions=JSON.parse($('meta[name="eds__GmapsInitData"]').attr("content"));} if(window[initOptions.instanceGlobal]==undefined&&initOptions!=null) window[initOptions.instanceGlobal]=new EasyDnnSolutions1_1(initOptions);})(eds3_5_jq); ;;;