jQuery(document).ready(function(a){a('#slideshow img:first').load(function(){jQuery('#slideshow').height(jQuery('#slideshow img:first').height());});a('.slideshow_container span:visible').click(function(b){var c=a('#slideshow >.cycle2-slide-active').attr('href');if(typeof c!=="undefined")if(b.which==1)window.location=c;else window.open(c);});a('#slideshow').on('cycle2-update-view',function(){var b=a('#slideshow >.cycle2-slide-active').attr('href');var c=a('.slideshow_container >span:visible');if(typeof b!=="undefined")c.css('cursor','pointer');else c.css('cursor','auto');});a('#mobile_nav .menu_btn a').click(function(b){b.preventDefault();a('#main_nav').slideToggle();});a('#mobile_nav .search_btn a').click(function(b){b.preventDefault();a('#header .search').slideToggle();});if(typeof mejs!='undefined'){var b=mejs.MediaElementPlayer.prototype.setControlsSize;mejs.MediaElementPlayer.prototype.setControlsSize=function(){b.call(this);var a=this.controls.find('.mejs-time-rail');a.width(a.width()-1);};}var c=function(){a('.ngg-albumoverview a, .ngg-navigation a').each(function(b,c){var d=a(c).attr('href');if(d.indexOf('/hp_wordpress')!=-1)a(c).attr('href',d.replace('/hp_wordpress',''));});};a(window).on('sflb_save_finished',c);c();});