// source --> https://www.creditamanet.ro/blog/wp-content/themes/creditamanet/sliders/nivo/jquery.nivo.slider.pack.js /* * jQuery Nivo Slider v2.5.1 * http://nivo.dev7studios.com * * Copyright 2011, Gilbert Pellegrom * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * March 2010 */ (function($){var NivoSlider=function(element,options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);var vars={currentSlide:0,currentImage:'',totalSlides:0,randAnim:'',running:false,paused:false,stop:false};var slider=$(element);slider.data('nivo:vars',vars);slider.css('position','relative');slider.addClass('nivoSlider');var kids=slider.children();kids.each(function(){var child=$(this);var link='';if(!child.is('img')){if(child.is('a')){child.addClass('nivo-imageLink');link=child;} child=child.find('img:first');} var childWidth=child.width();if(childWidth==0)childWidth=child.attr('width');var childHeight=child.height();if(childHeight==0)childHeight=child.attr('height');if(childWidth>slider.width()){slider.width(childWidth);} if(childHeight>slider.height()){slider.height(childHeight);} if(link!=''){link.css('display','none');} child.css('display','none');vars.totalSlides++;});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides)settings.startSlide=vars.totalSlides-1;vars.currentSlide=settings.startSlide;} if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');} if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');} slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');slider.append($('

').css({display:'none',opacity:settings.captionOpacity}));var processCaption=function(settings){var nivoCaption=$('.nivo-caption',slider);if(vars.currentImage.attr('title')!=''){var title=vars.currentImage.attr('title');if(title.substr(0,1)=='#')title=$(title).html();if(nivoCaption.css('display')=='block'){nivoCaption.find('p').fadeOut(settings.animSpeed,function(){$(this).html(title);$(this).fadeIn(settings.animSpeed);});}else{nivoCaption.find('p').html(title);} nivoCaption.fadeIn(settings.animSpeed);}else{nivoCaption.fadeOut(settings.animSpeed);}} processCaption(settings);var timer=0;if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);} if(settings.directionNav){slider.append('
'+settings.prevText+''+settings.nextText+'
');if(settings.directionNavHide){$('.nivo-directionNav',slider).hide();slider.hover(function(){$('.nivo-directionNav',slider).show();},function(){$('.nivo-directionNav',slider).hide();});} $('a.nivo-prevNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');});$('a.nivo-nextNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');});} if(settings.controlNav){var nivoControl=$('
');slider.append(nivoControl);for(var i=0;i');}else{nivoControl.append('');}}else{nivoControl.append(''+(i+1)+'');}} $('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');$('.nivo-controlNav a',slider).live('click',function(){if(vars.running)return false;if($(this).hasClass('active'))return false;clearInterval(timer);timer='';slider.css('background','none');vars.currentSlide=$(this).attr('rel')-1;nivoRun(slider,kids,settings,'control');});} if(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=='37'){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');} if(event.keyCode=='39'){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');}});} if(settings.pauseOnHover){slider.hover(function(){vars.paused=true;clearInterval(timer);timer='';},function(){vars.paused=false;if(timer==''&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}});} slider.bind('nivo:animFinished',function(){vars.running=false;$(kids).each(function(){if($(this).is('a')){$(this).css('display','none');}});if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');} if(timer==''&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);} settings.afterChange.call(this);});var createSlices=function(slider,settings,vars){for(var i=0;i').css({left:(sliceWidth*i)+'px',width:(slider.width()-(sliceWidth*i))+'px',height:'0px',opacity:'0',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}else{slider.append($('
').css({left:(sliceWidth*i)+'px',width:sliceWidth+'px',height:'0px',opacity:'0',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}}} var createBoxes=function(slider,settings,vars){var boxWidth=Math.round(slider.width()/settings.boxCols);var boxHeight=Math.round(slider.height()/settings.boxRows);for(var rows=0;rows').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:(slider.width()-(boxWidth*cols))+'px',height:boxHeight+'px',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}else{slider.append($('
').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:boxWidth+'px',height:boxHeight+'px',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}}}} var nivoRun=function(slider,kids,settings,nudge){var vars=slider.data('nivo:vars');if(vars&&(vars.currentSlide==vars.totalSlides-1)){settings.lastSlide.call(this);} if((!vars||vars.stop)&&!nudge)return false;settings.beforeChange.call(this);if(!nudge){slider.css('background','none');}else{if(nudge=='prev'){slider.css('background','none');} if(nudge=='next'){slider.css('background','none');}} vars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;settings.slideshowEnd.call(this);} if(vars.currentSlide<0)vars.currentSlide=(vars.totalSlides-1);if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');} if(settings.controlNav){$('.nivo-controlNav a',slider).removeClass('active');$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');} processCaption(settings);$('.nivo-slice',slider).remove();$('.nivo-box',slider).remove();if(settings.effect=='random'){var anims=new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade','boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse');vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined)vars.randAnim='fade';} if(settings.effect.indexOf(',')!=-1){var anims=settings.effect.split(',');vars.randAnim=anims[Math.floor(Math.random()*(anims.length))];if(vars.randAnim==undefined)vars.randAnim='fade';} vars.running=true;if(settings.effect=='sliceDown'||settings.effect=='sliceDownRight'||vars.randAnim=='sliceDownRight'||settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'top':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));} timeBuff+=50;i++;});} else if(settings.effect=='sliceUp'||settings.effect=='sliceUpRight'||vars.randAnim=='sliceUpRight'||settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'bottom':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));} timeBuff+=50;i++;});} else if(settings.effect=='sliceUpDown'||settings.effect=='sliceUpDownRight'||vars.randAnim=='sliceUpDown'||settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var v=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);if(i==0){slice.css('top','0px');i++;}else{slice.css('bottom','0px');i=0;} if(v==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));} timeBuff+=50;v++;});} else if(settings.effect=='fold'||vars.randAnim=='fold'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;$('.nivo-slice',slider).each(function(){var slice=$(this);var origWidth=slice.width();slice.css({top:'0px',height:'100%',width:'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed);},(100+timeBuff));} timeBuff+=50;i++;});} else if(settings.effect=='fade'||vars.randAnim=='fade'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':slider.width()+'px'});firstSlice.animate({opacity:'1.0'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});} else if(settings.effect=='slideInRight'||vars.randAnim=='slideInRight'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});} else if(settings.effect=='slideInLeft'||vars.randAnim=='slideInLeft'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1','left':'','right':'0px'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){firstSlice.css({'left':'0px','right':''});slider.trigger('nivo:animFinished');});} else if(settings.effect=='boxRandom'||vars.randAnim=='boxRandom'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var boxes=shuffle($('.nivo-box',slider));boxes.each(function(){var box=$(this);if(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed);},(100+timeBuff));} timeBuff+=20;i++;});} else if(settings.effect=='boxRain'||vars.randAnim=='boxRain'||settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrow'||vars.randAnim=='boxRainGrow'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var rowIndex=0;var colIndex=0;var box2Darr=new Array();box2Darr[rowIndex]=new Array();var boxes=$('.nivo-box',slider);if(settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){boxes=$('.nivo-box',slider)._reverse();} boxes.each(function(){box2Darr[rowIndex][colIndex]=$(this);colIndex++;if(colIndex==settings.boxCols){rowIndex++;colIndex=0;box2Darr[rowIndex]=new Array();}});for(var cols=0;cols<(settings.boxCols*2);cols++){var prevCol=cols;for(var rows=0;rows=0&&prevCol https://www.creditamanet.ro/blog/wp-content/themes/creditamanet/script/prettyPhoto/js/jquery.prettyPhoto.js /* ------------------------------------------------------------------------ Class: prettyPhoto Use: Lightbox clone for jQuery Author: Stephane Caron (http://www.no-margin-for-errors.com) Version: 3.1.2 ------------------------------------------------------------------------- */ (function($){$.prettyPhoto={version:'3.1.2'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:'',social_tools:''},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal) $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize) $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;} $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_build_overlay(event.target);} if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();} movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;} if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;} $pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(' ');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie='http://www.youtube.com/embed/'+getParam('v',pp_images[set_position]);(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};} $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;} $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();} if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();if(settings.deeplinking) setHashtag();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;} function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight) return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('Play') $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});} $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);} return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#!')!=-1)?decodeURI(url.substring(url.indexOf('#!')+2,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+rel_index+'/';};function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false; // source --> https://www.creditamanet.ro/blog/wp-content/themes/creditamanet/script/march.js /* ------------------------------ carouFredSel ------------------------------ */jQuery(function() { jQuery("#foo").carouFredSel(); jQuery('#foo2').carouFredSel({ prev: '#prev2', next: '#next2', auto: false });});/* ------------------------------ INITIATE SUPERFISH ------------------------------ jQuery(function() { jQuery('ul.superfish').supersubs({ minWidth: 12, maxWidth: 15, autoArrows: false, dropShadows : false }).superfish({ minWidth: 12, maxWidth: 15, animation: {'marginLeft':'2px',opacity:'show'}, delay: 500, onBeforeShow: function(){ this.css('marginLeft','20px'); }, speed: 'normal', // other options : 'slow'or 'fast' autoArrows: false, dropShadows : false }); });*//* ------------------------------ Portfolio Animation ------------------------------ */jQuery(document).ready(function(){ jQuery(".loop").fadeTo(300, 0); jQuery(".loop").hover(function(){ jQuery(this).fadeTo(300, 1.0);},function(){ jQuery(this).fadeTo(300, 0);});})jQuery(document).ready(function(){ var block = jQuery(".homeloop"); block.click(function(){ window.location = jQuery(this).find("a:first").attr("href") }); block.hover(function(){ window.status = jQuery(this).find("a:first").attr("href") }, function(){ window.status = "" })});/* ------------------------------ INITIATE PrettyPhoto ------------------------------ */ jQuery(document).ready(function(){ jQuery("a[rel^='prettyPhoto']").prettyPhoto({ animation_speed: 'fast', /* fast/slow/normal */ slideshow: 5000, /* false OR interval time in ms */ autoplay_slideshow: false, /* true/false */ opacity: 0.80, /* Value between 0 and 1 */ show_title: true, /* true/false */ allow_resize: true, /* Resize the photos bigger than viewport. true/false */ default_width: 500, default_height: 344, counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ horizontal_padding: 20, /* The padding on each side of the picture */ /* hideflash: false, Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */ /* wmode: 'opaque', Set the flash wmode attribute */ autoplay: false, /* Automatically start videos: True/False */ modal: false, /* If set to true, only the close button will close the window */ deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */ overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */ changepicturecallback: function(){}, /* Called everytime an item is shown/changed */ callback: function(){}, /* Called when prettyPhoto is closed */ ie6_fallback: true }); });/* ------------------------------ Fade Effect ------------------------------ */jQuery(function() {jQuery(".clipbg a,.excerpt,.home-cat3 img,.home-cat3-last img").css("opacity","1.0"); // 100% initial opacityjQuery(".clipbg a,.excerpt,.home-cat3 img,.home-cat3-last img").hover(function () { // on hover opacity goes to 50% jQuery(this).stop().animate({ opacity: 0.5 }, "fast"); // effect speed }, function () { jQuery(this).stop().animate({ // when hover is over opacity gets back to 100% opacity: 1.0 }, "fast"); }); });// Second function (different opacity level)jQuery(function() {jQuery(".gallery,.postimg,.myimg-right,.myimg-center,.myimg-left,.home-pg-img").css("opacity","1.0");jQuery(".gallery,.postimg,.myimg-right,.myimg-center,.myimg-left,.home-pg-img").hover(function () { jQuery(this).stop().animate({ opacity: 0.7 }, "normal"); }, function () { jQuery(this).stop().animate({ opacity: 1.0 }, "normal"); }); });// Third function (different opacity level)jQuery(function() {jQuery(".comment-text").css("opacity","0.8");jQuery(".comment-text").hover(function () { jQuery(this).stop().animate({ opacity: 1.0 }, "normal"); }, function () { jQuery(this).stop().animate({ opacity: 0.8 }, "normal"); }); });// Fourth function (different opacity level)jQuery(function() {jQuery(".gallery,.carousel").css("opacity","1.0");jQuery(".gallery,.carousel").hover(function () { jQuery(this).stop().animate({ opacity: 0.6 }, "normal"); }, function () { jQuery(this).stop().animate({ opacity: 1.0 }, "normal"); }); }); /* ------------------------------ INITIATE Nivo Slider ------------------------------ */jQuery(window).load(function() { jQuery('#slider').nivoSlider({ effect:'random', //Specify sets like: 'boxRainGrow,sliceDown,boxRainGrowReverse' slices:20, animSpeed:600, //Slide transition speed pauseTime:4000, startSlide:0, //Set starting Slide (0 index) directionNav:false, //Next & Prev directionNavHide:true, //Only show on hover controlNav:true, //1,2,3... keyboardNav:true, //Use left & right arrows pauseOnHover:true, //Stop animation while hovering captionOpacity:0.8 });}); // source --> https://www.creditamanet.ro/blog/wp-content/themes/creditamanet/script/jquery.carouFredSel-4.5.0-packed.js /* * jQuery carouFredSel 4.5.0 * Demo's and documentation: * caroufredsel.frebsite.nl * * Copyright (c) 2011 Fred Heusschen * www.frebsite.nl * * Dual licensed under the MIT and GPL licenses. * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License */ eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){7($.1t.1u)A;$.1t.1u=9(o){7(Z.W==0){P(B,\'4k 5p 5q 1v "\'+Z.5r+\'".\');A Z}7(Z.W>1){A Z.1M(9(){$(Z).1u(o)})}y q=Z,$12=Z[0];q.3G=9(o,b,c){y e=[\'8\',\'13\',\'N\',\'R\',\'S\',\'Y\'];o=2Z($12,o);1v(y a=0,l=e.W;aI){6.8.C=I}}7(z 6.X==\'1m\'){6.X=0}7(z 6.1g==\'1m\'){6.1g=(6[6.d[\'G\']]==\'18\')?H:\'2B\'}6.8.1z=6.8.C;6.14=H;6.X=4o(6.X);7(6.1g==\'2l\')6.1g=\'1a\';7(6.1g==\'3N\')6.1g=\'29\';1i(6.1g){E\'2B\':E\'1a\':E\'29\':7(6[6.d[\'G\']]!=\'18\'){y p=3d(2m(h,6),6);6.14=B;6.X[6.d[1]]=p[1];6.X[6.d[3]]=p[0]}U;2n:6.1g=H;6.14=(6.X[0]==0&&6.X[1]==0&&6.X[2]==0&&6.X[3]==0)?H:B;U}7(z 6.8.2o!=\'T\')6.8.2o=6.8.C;7(z 6.13.8!=\'T\')6.13.8=(6.2A)?\'18\':6.8.C;7(z 6.13.1c!=\'T\')6.13.1c=5v;6.N=2F($12,6.N,H,B);6.R=2F($12,6.R);6.S=2F($12,6.S);6.Y=2F($12,6.Y,B);6.N=$.1R(B,{},6.13,6.N);6.R=$.1R(B,{},6.13,6.R);6.S=$.1R(B,{},6.13,6.S);6.Y=$.1R(B,{},6.13,6.Y);7(z 6.Y.3e!=\'15\')6.Y.3e=H;7(z 6.Y.3O!=\'9\')6.Y.3O=$.1t.1u.4p;7(z 6.N.1h!=\'15\')6.N.1h=B;7(z 6.N.2G!=\'15\')6.N.2G=B;7(z 6.N.3P!=\'T\')6.N.3P=0;7(z 6.N.2c!=\'T\')6.N.2c=(6.N.1c<10)?5w:6.N.1c*5;7(6.1E){6.1E=3Q(6.1E)}7(6.P){P(B,\'4q G: \'+6.G);P(B,\'4q 17: \'+6.17);7(6[6.d[\'G\']]==\'18\')P(B,\'5x \'+6.d[\'G\']+\': \'+6.3c);P(B,\'4r 5y: \'+6.8.G);P(B,\'4r 5z: \'+6.8.17);P(B,\'3f 2D 8 C: \'+6.8.C);7(6.N.1h)P(B,\'3f 2D 8 3R 5A: \'+6.N.8);7(6.R.11)P(B,\'3f 2D 8 3R 5B: \'+6.R.8);7(6.S.11)P(B,\'3f 2D 8 3R 5C: \'+6.S.8)}};q.4s=9(){7(q.K(\'1V\')==\'3g\'||q.K(\'1V\')==\'5D\'){P(6.P,\'5E 5F-5G "1V" 5H 5I "5J" 5K "4t".\')}y a={\'3S\':q.K(\'3S\'),\'2l\':q.K(\'2l\'),\'29\':q.K(\'29\'),\'3N\':q.K(\'3N\'),\'1a\':q.K(\'1a\'),\'3T\':q.K(\'3T\'),\'1f\':q.K(\'1f\'),\'33\':q.K(\'33\'),\'3U\':q.K(\'3U\')};u.K(a).K({\'5L\':\'4u\',\'1V\':(q.K(\'1V\')==\'3g\')?\'3g\':\'4t\'});a.G=q.K(\'G\');a.17=q.K(\'17\');a.1V=q.K(\'1V\');q.1j(\'4v\',a).K({\'3S\':\'3V\',\'3T\':0,\'1f\':0,\'33\':0,\'3U\':0,\'1V\':\'3g\'});7(6.14){J(q).1M(9(){y m=1W($(Z).K(6.d[\'1f\']));7(2d(m))m=0;$(Z).1j(\'1w\',m)})}};q.4w=9(){q.3W();q.V(\'1F.O\'+L,9(e){e.1d();q.F(\'1O\');6.N.1h=H;1X=\'4x\'});q.V(\'1O.O\'+L,9(e,g){e.1d();7(z g==\'15\'){P(B,\'5M a 3X 5N 1q 1T, 1U 2H "1F" 2e 1A.\');q.F(\'1F\');A}1X=B;7(3h!=1C)5O(3h);7(3i!=1C)4y(3i);7(3j!=1C)4y(3j);y a=6.N.2c-2p,2f=2I-1y.2q(a*2I/6.N.2c);7(2f!=0){7(6.N.4z)6.N.4z.19($12,2f,a)}});q.V(\'1h.O\'+L,9(e,b,c,d){e.1d();q.F(\'1O\');y v=[b,c,d],t=[\'1e\',\'T\',\'15\'],a=2r(v,t);y b=a[0],c=a[1],d=a[2];7(b!=\'R\'&&b!=\'S\')b=1D;7(z c!=\'T\')c=0;7(d)6.N.1h=B;7(!6.N.1h){e.4A();A}1X=H;y f=6.N.2c-2p,4B=f+c;2f=2I-1y.2q(f*2I/6.N.2c);3h=2J(9(){7(q.1q(\':2K\')){q.F(\'1h\',b)}D{2p=0;q.F(b,6.N)}},4B);7(6.N.2s===\'5P\'){3i=5Q(9(){2p+=50},50)}7(6.N.4C&&2f==0){6.N.4C.19($12,2f,f)}7(6.N.4D){3j=2J(9(){6.N.4D.19($12,2f,f)},c)}});q.V(\'R.O\'+L+\' S.O\'+L,9(e,b,c,f){e.1d();7(z 4E!=\'15\')4E=H;7(1X==\'4x\'||q.1q(\':4u\')){A}y v=[b,c,f],t=[\'1n\',\'T\',\'9\'],a=2r(v,t);y b=a[0],c=a[1],f=a[2];7(z b!=\'1n\'||b==1C)b=6[e.2g];7(z f==\'9\')b.2L=f;7(z c!=\'T\'){7(z b.8==\'T\')c=b.8;D 7(z 6[e.2g].8==\'T\')c=6[e.2g].8;D c=6.8.C}7(b.1c>0){7(q.1q(\':2K\')){7(b.1k)q.F(\'1k\',[e.2g,[b,c,f]]);A}7(6.8.2o>=I){P(6.P,\'2b 4F 8: 5R 4G (\'+I+\' 8, \'+6.8.2o+\' 4H).\');A}}2p=0;7(z c!=\'T\')A P(6.P,\'2b a 3a T: \'+c+\'. 2b 4G\');7(b.3Y&&!b.3Y.19($12))A P(6.P,\'5S "3Y" 5T H.\');q.F(\'4I\'+e.2g,[b,c]);7(6.1E){y s=6.1E;2h=c;1v(y j=0,l=s.W;j=I)M-=I;7(!6.1Z){7(M==0&&f!=0&&d.3l)d.3l.19($12);7(6.3m){7(f==0){q.F(\'S\',I-6.8.C);A}}D 2i(6,M)}7(f==0){e.4A();A}J(q).16(I-f).5U(q);7(I<6.8.C+f){J(q).16(0,(6.8.C+f)-I).3n(B).2M(q)}y g=J(q),1B=4K(g,6,f),1o=4L(g,6),2j=g.1G(f-1),1H=1B.2k(),20=1o.2k();7(6.14){1r(1H,6);1r(1o,6)}7(6.1g)y p=3d(1o,6);7(d.1p==\'4M\'&&6.8.1z0){J(q).16(I).1s();1B=J(q).16(I-(o-a)).4N().5V(J(q).16(0,a).4N())}7(i)i.3t();7(6.14){y b=J(q).1G(6.8.C+o-1);b.K(6.d[\'1f\'],b.1j(\'1w\'))}y c=9(){7(d.2L){d.2L.19($12,1B,1o,1I)}1i(d.1p){E\'23\':E\'1J\':1B.K(\'3u\',\'\');1o.K(\'3u\',\'\');U}7(1k.W){2J(9(){q.F(1k[0][0],1k[0][1]);1k.4O()},1)}};1i(d.1p){E\'23\':E\'1K\':1P(d,q,1,3s,c);U;2n:c();U}}});q.F(\'2w\',[H,1I]).F(\'1h\',Q)});q.V(\'44.O\'+L,9(e,f,g){e.1d();7(6.2A){6.8.1z=6.8.C;y h=J(q);7(6.14)1r(h,6);6.8.C=2E(h,6,g);7(6.8.1z-g>=6.8.C)6.8.C=2E(h,6,++g);7(6.14)1r(h,6,B)}7(!6.1Z){7(M==0){7(g>I-6.8.C){g=I-6.8.C}}D{7(M-g<6.8.C){g=M-6.8.C}}}M-=g;7(M<0)M+=I;7(!6.1Z){7(M==6.8.C&&g!=0&&f.3l)f.3l.19($12);7(6.3m){7(g==0){q.F(\'R\',I-6.8.C);A}}D 2i(6,M)}7(g==0)A;7(I<6.8.C+g)J(q).16(0,(6.8.C+g)-I).3n(B).2M(q);y h=J(q),1B=45(h,6),1o=46(h,6,g),2j=1B.1G(g-1),1H=1B.2k(),20=1o.2k();7(6.14){1r(1H,6);1r(20,6)}7(6.1g)y p=3d(1o,6);7(f.1p==\'4M\'&&6.8.1z0){J(q).16(I).1s()}y b=J(q).16(0,n).2M(q).2k();7(a>0){1o=2m(J(q),6)}7(i)i.3t();7(6.14){7(I<6.8.C+n){y c=J(q).1G(6.8.C-1);c.K(6.d[\'1f\'],c.1j(\'1w\')+6.X[6.d[3]])}b.K(6.d[\'1f\'],b.1j(\'1w\'))}y d=9(){7(f.2L){f.2L.19($12,1B,1o,1I)}1i(f.1p){E\'23\':E\'1J\':1B.K(\'3u\',\'\');1o.K(\'3u\',\'\');U}7(1k.W){2J(9(){q.F(1k[0][0],1k[0][1]);1k.4O()},1)}};1i(f.1p){E\'23\':E\'1K\':1P(f,q,1,3s,d);U;2n:d();U}}});q.F(\'2w\',[H,1I]).F(\'1h\',Q)});q.V(\'2x.O\'+L,9(e,b,c,d,f,g){e.1d();y v=[b,c,d,f,g],t=[\'1e/T/1n\',\'T\',\'15\',\'1n\',\'1e\'],a=2r(v,t);y f=a[3],g=a[4];b=2P(a[0],a[1],a[2],M,I,q);7(b==0)A;7(z f!=\'1n\')f=H;7(q.1q(\':2K\')&&f.1c>0)A;7(g!=\'R\'&&g!=\'S\'){7(6.1Z){7(b<=I/2)g=\'S\';D g=\'R\'}D{7(M==0||M>b)g=\'S\';D g=\'R\'}}7(g==\'R\')q.F(\'R\',[f,I-b]);D q.F(\'S\',[f,b])});q.V(\'4Q.O\'+L,9(e){7(M>0){q.5W(J(q).16(M))}});q.V(\'1E.O\'+L,9(e,s){7(s)s=3Q(s);D 7(6.1E)s=6.1E;D A P(6.P,\'4k 3X 4n 1E.\');y n=q.3k(\'2Q\');1v(y j=0,l=s.W;j=I)M-=I;y h=J(q).1G(c);7(h.W){h[2T](b)}D{q.4S(b)}I=J(q).W;q.F(\'2U\');y i=2V(q,6);2W(6,I);2i(6,M);q.F(\'2w\',[B,i])});q.V(\'5Z.O\'+L,9(e,b,c,d){e.1d();y v=[b,c,d],t=[\'1e/T/1n\',\'15\',\'T\'],a=2r(v,t);y b=a[0],c=a[1],d=a[2];7(z b==\'1m\'||b==\'3v\'){J(q).2k().1s()}D{b=2P(b,d,c,M,I,q);y f=J(q).1G(b);7(f.W){7(bb)c=b;7(z a==\'9\')a.19($12,c);A c});q.V(\'61.O\'+L,9(e,a){e.1d();$i=2m(J(q),6);7(z a==\'9\')a.19($12,$i);A $i});q.V(\'1X.O\'+L,9(e,a){e.1d();7(z a==\'9\')a.19($12,1X);A 1X});q.V(\'1Y.O\'+L,9(e,a,b,c){e.1d();y d=H;7(z a==\'9\'){a.19($12,6)}D 7(z a==\'1n\'){27=$.1R(B,{},27,a);7(b!==H)d=B;D 6=$.1R(B,{},6,a)}D 7(z a!=\'1m\'){7(z b==\'9\'){y f=3w(\'6.\'+a);7(z f==\'1m\')f=\'\';b.19($12,f)}D 7(z b!=\'1m\'){7(z c!==\'15\')c=B;7(q.1q(\':2K\')){2J(9(){q.F(\'1Y\',[a,b,c])},2I);A P(6.P,\'3X 2K, 1Y 62.\')}3w(\'27.\'+a+\' = b\');7(c!==H)d=B;D 3w(\'6.\'+a+\' = b\')}D{A 3w(\'6.\'+a)}}7(d){1r(J(q),6);q.3G(27);2V(q,6)}A 6});q.V(\'2U.O\'+L,9(e,a,b){e.1d();7(z a==\'1m\'||a.W==0)a=$(\'63\');D 7(z a==\'1e\')a=$(a);7(z a!=\'1n\')A P(6.P,\'2b a 3a 1n.\');7(z b!=\'1e\'||b.W==0)b=\'a.4U\';a.64(b).1M(9(){y h=Z.4V||\'\';7(h.W>0&&J(q).4W($(h))!=-1){$(Z).24(\'47\').47(9(e){e.1Q();q.F(\'2x\',h)})}})});q.V(\'2w.O\'+L,9(e,b,c){e.1d();7(!6.Y.1b)A;7(z b==\'15\'&&b){J(6.Y.1b).1s();1v(y a=0,l=1y.2q(I/6.8.C);a0){e.1Q();3A=(z 6.R.1L==\'T\')?6.R.1L:1C;q.F(\'R\',3A)}})}7(6.S.1L){u.1L(9(e,a){7(a<0){e.1Q();3A=(z 6.S.1L==\'T\')?6.S.1L:1C;q.F(\'S\',3A)}})}}7($.1t.52){y b=(6.R.4a)?9(){q.F(\'R\')}:1C,2Y=(6.S.4a)?9(){q.F(\'S\')}:1C;7(2Y||2Y){y c={\'66\':30,\'67\':30,\'68\':B};7(6.1D==\'3I\'||6.1D==\'53\'){c.69=2Y;c.6a=b}D{c.6b=2Y;c.6c=b}u.52(c)}}7(6.Y.1b){7(6.Y.2s){6.Y.1b.V(\'3y.O\'+L,9(){q.F(\'1O\')}).V(\'3z.O\'+L,9(){q.F(\'1h\')})}}7(6.R.25||6.S.25){$(4b).V(\'54.O\'+L,9(e){y k=e.55;7(k==6.S.25){e.1Q();q.F(\'S\')}7(k==6.R.25){e.1Q();q.F(\'R\')}})}7(6.Y.3e){$(4b).V(\'54.O\'+L,9(e){y k=e.55;7(k>=49&&k<58){k=(k-49)*6.8.C;7(k<=I){e.1Q();q.F(\'2x\',[k,0,B,6.Y])}}})}7(6.N.1h){q.F(\'1h\',6.N.3P);7($.1t.2G&&6.N.2G){q.2G(\'1O\',\'1h\')}}};q.48=9(){$(4b).24(\'.O\'+L);u.24(\'.O\'+L);7(6.R.11)6.R.11.24(\'.O\'+L);7(6.S.11)6.S.11.24(\'.O\'+L);7(6.Y.1b)6.Y.1b.24(\'.O\'+L);2W(6,\'2N\');2i(6,\'2X\');7(6.Y.1b){J(6.Y.1b).1s()}};q.1Y=9(a,b){P(B,\'2a "1Y" 3B 3C 1q 1T, 1U 2H "1Y" 2e 1A.\');y c=H;y d=9(a){c=a};7(!a)a=d;7(!b)b=d;q.F(\'1Y\',[a,b]);A c};q.56=9(){P(B,\'2a "56" 3B 3C 1q 1T, 1U 2H "2Q" 2e 1A.\');y b=H;q.F(\'2Q\',9(a){b=a});A b};q.2y=9(){P(B,\'2a "2y" 3B 3C 1q 1T, 1U 2H "2y" 2e 1A.\');q.F(\'2y\');A q};q.57=9(a,b){P(B,\'2a "57" 3B 3C 1q 1T, 1U 2H "2U" 2e 1A.\');q.F(\'2U\',[a,b]);A q};7(q.2C().1q(\'.59\')){y r=q.3k(\'2Q\');q.F(\'2y\',B)}D{y r=H}y u=q.6d(\'<6e 6f="59" />\').2C(),6={},27=o,I=J(q).W,M=0,3h=1C,3i=1C,3j=1C,2p=0,1X=B,1D=\'S\',1k=[],L=$.1t.1u.L++;q.3G(27,B,r);q.4s();q.4w();q.51();7(6.8.1N!=0){y s=6.8.1N;7(s===B){s=3D.6g.4V;7(!s.W)s=0}D 7(s===\'5a\'){s=1y.36(1y.5a()*I)}q.F(\'2x\',[s,0,B,{1c:0},\'S\'])}y w=2V(q,6,H),5b=2m(J(q),6);7(6.5c){6.5c.19($12,5b,w)}q.F(\'2w\',[B,w]);q.F(\'2U\');A Z};$.1t.1u.L=0;$.1t.1u.3H={\'P\':H,\'1E\':H,\'3m\':B,\'1Z\':B,\'1D\':\'1a\',\'8\':{\'1N\':0},\'13\':{\'1l\':\'6h\',\'2s\':H,\'1L\':H,\'4a\':H,\'1A\':\'47\',\'1k\':H}};$.1t.1u.4p=9(a,b){A\'<5d>\'+a+\'\'};9 1P(a,c,x,d,f){y o={\'1c\':d,\'1l\':a.1l};7(z f==\'9\')o.2O=f;c.1x({3r:x},o)}9 42(a,b,c,o,d,e){y f=21(45(J(b),o),o,B)[0],4c=21(J(c),o,B)[0],3E=(e)?-4c:f,26={},2z={};26[o.d[\'G\']]=4c;26[o.d[\'1a\']]=3E;2z[o.d[\'1a\']]=0;b.1x({3r:\'+=0\'},d);c.K(26).1x(2z,{1c:d,1l:a.1l,2O:9(){$(Z).1s()}})}9 43(a,b,c,o,d,e,n){y f=21(46(J(b),o,n),o,B)[0],4d=21(J(c),o,B)[0],3E=(e)?-4d:f,26={},2z={};26[o.d[\'G\']]=4d;26[o.d[\'1a\']]=0;2z[o.d[\'1a\']]=3E;c.K(26).1x(2z,{1c:d,1l:a.1l,2O:9(){$(Z).1s()}})}9 2W(o,t){7(t==\'3t\'||t==\'2N\'){y f=t}D 7(o.8.2o>=t){P(o.P,\'2b 4F 8: 6j 6k (\'+t+\' 8, \'+o.8.2o+\' 4H).\');y f=\'2N\'}D{y f=\'3t\'}7(o.R.11)o.R.11[f]();7(o.S.11)o.S.11[f]();7(o.Y.1b)o.Y.1b[f]()}9 2i(o,f){7(o.1Z||o.3m)A;y a=(f==\'2X\'||f==\'3x\')?f:H;7(o.S.11){y b=a||(f==o.8.C)?\'3x\':\'2X\';o.S.11[b](\'5e\')}7(o.R.11){y b=a||(f==0)?\'3x\':\'2X\';o.R.11[b](\'5e\')}}9 2r(c,d){y e=[];1v(y a=0,5f=c.W;a<5f;a++){1v(y b=0,5g=d.W;b<5g;b++){7(d[b].3F(z c[a])>-1&&!e[b]){e[b]=c[a];U}}}A e}9 3Q(s){7(!2R(s))s=[[s]];7(!2R(s[0]))s=[s];1v(y j=0,l=s.W;j0){5h(a>=e){a-=e}5h(a<0){a+=e}}A a}9 J(c){A c.6l()}9 2m(i,o){A i.16(0,o.8.C)}9 4K(i,o,n){A i.16(n,o.8.1z+n)}9 4L(i,o){A i.16(0,o.8.C)}9 45(i,o){A i.16(0,o.8.1z)}9 46(i,o,n){A i.16(n,o.8.C+n)}9 1r(i,o,m){y x=(z m==\'15\')?m:H;7(z m!=\'T\')m=0;i.1M(9(){y t=1W($(Z).K(o.d[\'1f\']));7(2d(t))t=0;$(Z).1j(\'5i\',t);$(Z).K(o.d[\'1f\'],((x)?$(Z).1j(\'5i\'):m+$(Z).1j(\'1w\')))})}9 21(i,o,a){5j=2t(i,o,\'G\',a);5k=4f(i,o,\'17\',a);A[5j,5k]}9 4f(i,o,a,b){7(z b!=\'15\')b=H;7(z o[o.d[a]]==\'T\'&&b)A o[o.d[a]];7(z o.8[o.d[a]]==\'T\')A o.8[o.d[a]];y c=(a.4g().3F(\'G\')>-1)?\'1S\':\'28\';A 3K(i,o,c)}9 3K(i,o,a){y s=0;i.1M(9(){y m=$(Z)[o.d[a]](B);7(s-1)?[\'6m\',\'6n\']:[\'6o\',\'6p\'];1v(a=0,l=4h.W;a-1)?\'1S\':\'28\';A 5l(i,o,c)}9 5l(i,o,a){y s=0;i.1M(9(){y j=$(Z);7(j.1q(\':C\')){s+=j[o.d[a]](B)}});A s}9 3L(i,o,a){y s=H,v=H;i.1M(9(){c=$(Z)[o.d[a]](B);7(s===H)s=c;D 7(s!=c)v=B;7(s==0)v=B});A v}9 3p(a,o,p){7(z p!=\'15\')p=B;y b=(o.14&&p)?o.X:[0,0,0,0];y c={};c[o.d[\'G\']]=a[0]+b[1]+b[3];c[o.d[\'17\']]=a[1]+b[0]+b[2];A c}9 2V(a,o,p){y b=a.2C(),$i=J(a),$v=2m($i,o),4i=3p(21($v,o,B),o,p);b.K(4i);7(o.14){y c=$v.2k();c.K(o.d[\'1f\'],c.1j(\'1w\')+o.X[o.d[1]]);a.K(o.d[\'2l\'],o.X[o.d[0]]);a.K(o.d[\'1a\'],o.X[o.d[3]])}a.K(o.d[\'G\'],2t($i,o,\'G\')*2);a.K(o.d[\'17\'],4f($i,o,\'17\'));A 4i}9 4o(p){7(z p==\'1m\')A[0,0,0,0];7(z p==\'T\')A[p,p,p,p];D 7(z p==\'1e\')p=p.5m(\'6q\').6r(\'\').5m(\' \');7(!2R(p)){A[0,0,0,0]}1v(y i=0;i<4;i++){p[i]=1W(p[i])}1i(p.W){E 0:A[0,0,0,0];E 1:A[p[0],p[0],p[0],p[0]];E 2:A[p[0],p[1],p[0],p[1]];E 3:A[p[0],p[1],p[2],p[1]];2n:A[p[0],p[1],p[2],p[3]]}}9 3d(a,o){y x=(z o[o.d[\'G\']]==\'T\')?1y.2q(o[o.d[\'G\']]-2t(a,o,\'G\')):0;1i(o.1g){E\'1a\':A[0,x];U;E\'29\':A[x,0];U;E\'2B\':2n:y b=1y.2q(x/2),5n=1y.36(x/2);A[b,5n];U}}9 4J(b,o,c){y d=0,1N=o.8.C-c-1,x=0;7(1N<0)1N=b.W-1;1v(y a=1N;a>=0;a--){d+=b.1G(a)[o.d[\'1S\']](B);7(d>o.3c)A 3b(x,o);7(a==0)a=b.W;x++}}9 2E(b,o,c){y d=0,x=0;1v(y a=c,l=b.W-1;a<=l;a++){d+=b.1G(a)[o.d[\'1S\']](B);7(d>o.3c)A 3b(x,o);7(a==b.W-1)a=-1;x++}}9 3b(x,o){1i(o.31){E\'+1\':A x+1;U;E\'-1\':A x-1;U;E\'34\':7(x%2==0)A x-1;U;E\'34+\':7(x%2==0)A x+1;U;E\'35\':7(x%2==1)A x-1;U;E\'35+\':7(x%2==1)A x+1;U;2n:A x;U}}9 2R(a){A z(a)==\'1n\'&&(a 6s 6t)}9 P(d,m){7(!d)A H;7(z m==\'1e\')m=\'1u: \'+m;D m=[\'1u:\',m];7(3D.4j&&3D.4j.5o)3D.4j.5o(m);A H}$.1t.4U=9(o){A Z.1u(o)}})(6u);',62,403,'||||||opts|if|items|function|||||||||||||||||||||||||var|typeof|return|true|visible|else|case|trigger|width|false|totalItems|getItems|css|serial|firstItem|auto|cfs|debug|a_dur|prev|next|number|break|bind|length|padding|pagination|this||button|tt0|scroll|usePadding|boolean|slice|height|variable|call|left|container|duration|stopPropagation|string|marginRight|align|play|switch|data|queue|easing|undefined|object|c_new|fx|is|resetMargin|remove|fn|carouFredSel|for|cfs_origCssMargin|animate|Math|oldVisible|event|c_old|null|direction|synchronise|stop|eq|l_old|w_siz|crossfade|uncover|mousewheel|each|start|pause|fx_fade|preventDefault|extend|outerWidth|deprecated|use|position|parseInt|isPaused|configuration|circular|l_new|getSizes|cover|fade|unbind|key|css_o|opts_orig|outerHeight|right|The|Not|pauseDuration|isNaN|custom|perc|type|oI|enableNavi|l_cur|last|top|getCurrentItems|default|minimum|pauseTimePassed|ceil|sortParams|pauseOnHover|getTotalSize|a_cur|a_old|updatePageStatus|slideTo|destroy|ani_o|variableVisible|center|parent|of|getVisibleItemsNext|getNaviObject|nap|the|100|setTimeout|animated|onAfter|appendTo|hide|complete|getItemIndex|currentPosition|is_array|jquery|before|linkAnchors|setSizes|showNavi|removeClass|wN|getObject||visibleAdjust|innerWidth|marginBottom|odd|even|floor||||valid|getVisibleItemsAdjust|maxDimention|getAlignPadding|keys|Number|absolute|autoTimeout|autoInterval|timerInterval|triggerHandler|onEnd|infinite|clone|orgW|mapWrapperSizes|onBefore|opacity|f_dur|show|filter|end|eval|addClass|mouseenter|mouseleave|num|public|method|window|cur_l|indexOf|init|defaults|up|lrgst_b|getTrueLargestSize|hasVariableSizes|getTrueInnerSize|bottom|anchorBuilder|delay|getSynchArr|scrolled|float|marginTop|marginLeft|none|unbind_events|carousel|conditions|slide_prev||a_new|fx_cover|fx_uncover|slide_next|getOldItemsNext|getNewItemsNext|click|unbind_buttons||wipe|document|new_w|old_w|getKeyCode|getLargestSize|toLowerCase|arr|sz|console|No|innerHeight|dx|to|getPadding|pageAnchorBuilder|Carousel|Item|build|relative|hidden|cfs_origCss|bind_events|stopped|clearInterval|onPausePause|stopImmediatePropagation|dur2|onPauseEnd|onPauseStart|force|enough|scrolling|needed|slide_|getVisibleItemsPrev|getOldItemsPrev|getNewItemsPrev|directscroll|get|shift|new_m|jumpToStart|after|append|currentPage|caroufredsel|hash|index|selected|slidePrev|slideNext||bind_buttons|touchwipe|down|keyup|keyCode|current_position|link_anchors||caroufredsel_wrapper|random|itm|onCreate|span|disabled|l1|l2|while|cfs_tempCssMargin|s1|s2|getTotalSizeVariable|split|x2|log|element|found|selector|option|Infinity|Set|500|2500|Available|widths|heights|automatically|backward|forward|fixed|Carousels|CSS|attribute|should|be|static|or|overflow|Pause|globally|clearTimeout|resume|setInterval|not|Callback|returned|prependTo|concat|prepend|push|insertItem|removeItem|round|currentVisible|timeout|body|find|replaceWith|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|wrap|div|class|location|swing|href|hiding|navigation|children|paddingLeft|paddingRight|paddingTop|paddingBottom|px|join|instanceof|Array|jQuery'.split('|'),0,{}));