window["WIDGETKIT_URL"]="/wp-content/plugins/widgetkit"; (function(f){f.widgetkit={lazyloaders:{}}})(jQuery);(function(f,e,a){function c(a,b){n(a,function(a){return!b(a)})}function b(a,b){var c=e.createElement("script"),g=l;c.onload=c.onerror=c[m]=function(){if(!(c[k]&&!/^c|loade/.test(c[k])||g))c.onload=c[m]=null,g=1,i[a]=2,b()};c.async=1;c.src=a;d.insertBefore(c,d.firstChild)}var d=e.getElementsByTagName("head")[0],g={},h={},i={},l=!1,k="readyState",m="onreadystatechange",n=function(a,c){for(var b=0,d=a.length;b").parent().css("overflow","hidden");e.data("height",e.height()).addClass("content-wrapper");a==b.index?(c.addClass("active"),e.show()):e.hide().css("height",0);c.bind(b.event,function(){g(a)})})}});d.fn[a.prototype.name]=function(){var h=arguments,b=h[0]?h[0]:null;return this.each(function(){var c=d(this);if(a.prototype[b]&&c.data(a.prototype.name)&&b!="initialize")c.data(a.prototype.name)[b].apply(c.data(a.prototype.name),Array.prototype.slice.call(h,1));else if(!b||d.isPlainObject(b)){var g=new a;a.prototype.initialize&&g.initialize.apply(g,d.merge([c],h));c.data(a.prototype.name,g)}else d.error("Method "+b+" does not exist on jQuery."+a.name)})};d.widgetkit&&(d.widgetkit.lazyloaders.accordion=function(a,b){d(a).accordion(b)})})(jQuery); (function(f){f.widgetkit.lazyloaders["gallery-slider"]=function(b,a){var d=b.find(".slides:first"),c=d.children(),e=a.total_width=="auto"?b.width():a.total_width;c.css({width:e/c.length-a.spacing,"margin-right":a.spacing});d.width(c.eq(0).width()*c.length*2);b.css({width:e,height:a.height});$script([WIDGETKIT_URL+"/widgets/gallery/js/slider.js"],"wk-gallery-slider");$script.ready("wk-gallery-slider",function(){b.galleryslider(a)})}})(jQuery); $script('/wp-content/plugins/widgetkit/widgets/lightbox/js/lightbox.js',function(){jQuery(function($){$('a[data-lightbox]').lightbox({"titlePosition":"float","transitionIn":"fade","transitionOut":"fade","overlayShow":1,"overlayColor":"#777","overlayOpacity":0.7});});}); (function(a){a.widgetkit.lazyloaders.googlemaps=function(a,b){$script([WIDGETKIT_URL+"/widgets/map/js/map.js"],"wk-googlemaps");$script.ready("wk-googlemaps",function(){a.googlemaps(b)})}})(jQuery); jQuery.trans.addDic({"FROM_ADDRESS":"From address: ","GET_DIRECTIONS":"Get directions","FILL_IN_ADDRESS":"Please fill in your address.","ADDRESS_NOT_FOUND":"Sorry, address not found!","LOCATION_NOT_FOUND":", not found!"}); $script('/wp-content/plugins/widgetkit/widgets/mediaplayer/mediaelement/mediaelement-and-player.js',function(){jQuery(function($){mejs.MediaElementDefaults.pluginPath='/wp-content/plugins/widgetkit/widgets/mediaplayer/mediaelement/';$('video,audio').mediaelementplayer({"pluginPath":"\/wp-content\/plugins\/widgetkit\/widgets\/mediaplayer\/mediaelement\/"});});}); (function(b){b.widgetkit.lazyloaders.slideset=function(c,a){var d=c.find("ul.set");gwidth=a.width=="auto"?c.width():a.width;b.browser.msie&&b.browser.version<8&&d.children().css("display","inline");var e=a.height=="auto"?d.eq(0).outerHeight(!0):a.height;d.eq(0).parent().css({height:e});c.css({width:gwidth});d.css({height:e});$script([WIDGETKIT_URL+"/widgets/slideset/js/slideset.js"],"wk-slideset");$script.ready("wk-slideset",function(){b(c).slideset(a).css("visibility","visible")})}})(jQuery); (function(c){var i=[WIDGETKIT_URL+"/widgets/slideshow/js/slideshow.js"];c.widgetkit.lazyloaders.slideshow=function(b,a){b.css("visibility","hidden");var e=0,f=0,g=b.find("ul.slides:first");g.children().each(function(){e=Math.max(e,c(this).height());f=Math.max(f,c(this).width())});if(a.height=="auto")a.height=e;if(a.width=="auto")a.width=b.width();b.css({position:"relative",width:a.width});g.css({position:"relative",overflow:"hidden",height:a.height}).children().css({top:"0px",left:"0px",position:"absolute",width:b.width(),height:a.height});$script(i,"wk-slideshow");$script.ready("wk-slideshow",function(){b.slideshow(a).css("visibility","visible")})};c.widgetkit.lazyloaders.showcase=function(b,a){var e=b.find(".wk-slideshow").css("visibility","hidden"),f=b.find(".wk-slideset").css("visibility","hidden"),g=f.find("ul.set > li"),h=0,j=0,d=b.find("ul.slides:first");d.children().each(function(){h=Math.max(h,c(this).height());j=Math.max(j,c(this).width())});if(a.height=="auto")a.height=h;if(a.width=="auto")a.width=b.width();e.css({position:"relative",width:a.width});d.css({position:"relative",overflow:"hidden",height:a.height}).children().css({top:"0px",left:"0px",position:"absolute",width:b.width(),height:a.height});d=b.find("ul.set");gwidth=a.width=="auto"?b.width():a.width;c.browser.msie&&c.browser.version<8&&d.children().css("display","inline");var k=d.eq(0).outerHeight(!0);b.css({width:gwidth});d.css({height:k}).hide();f.css("height",f.height()+k);d.show();$script(i,"wk-slideshow");$script([WIDGETKIT_URL+"/widgets/slideset/js/slideset.js"],"wk-slideshow-set");$script.ready("wk-slideshow",function(){$script.ready("wk-slideshow-set",function(){e.slideshow(a).css("visibility","visible");f.slideset(c.extend({},a,{height:"auto",autoplay:!1,duration:a.slideset_effect_duration,index:parseInt(a.index/a.items_per_set)})).css("visibility","visible");var b=e.data("slideshow"),d=f.data("slideset");g.eq(b.index).addClass("active");e.bind("slideshow-show",function(a,b,c){if(!g.removeClass("active").eq(c).addClass("active").parent().is(":visible"))d[c>b?"next":"previous"]()});g.each(function(a){c(this).bind("click",function(){b.stop();b.show(a)})})})})}})(jQuery); $script('/wp-content/plugins/widgetkit/widgets/spotlight/js/spotlight.js',function(){jQuery(function($){$('[data-spotlight]').spotlight({"duration":300});});}); jQuery(function(a){var f=function(c){var b=new Date(Date.parse(c.replace(/(\d+)-(\d+)-(\d+)T(.+)([-\+]\d+):(\d+)/g,"$1/$2/$3 $4 UTC$5$6"))),b=parseInt(((arguments.length>1?arguments[1]:new Date).getTime()-b)/1E3);return b<60?a.trans.get("LESS_THAN_A_MINUTE_AGO"):b<120?a.trans.get("ABOUT_A_MINUTE_AGO"):b<2700?a.trans.get("X_MINUTES_AGO",parseInt(b/60).toString()):b<5400?a.trans.get("ABOUT_AN_HOUR_AGO"):b<86400?a.trans.get("X_HOURS_AGO",parseInt(b/3600).toString()):b<172800?a.trans.get("ONE_DAY_AGO"):a.trans.get("X_DAYS_AGO",parseInt(b/86400).toString())};a(".wk-twitter time").each(function(){a(this).html(f(a(this).attr("datetime")))});var d=a(".wk-twitter-bubbles");if(d.length){var e=function(){d.each(function(){var c=0;a(this).find("p.content").each(function(){var b=a(this).height();b>c&&(c=b)}).css("min-height",c)})};e();a(window).bind("load",e)}}); jQuery.trans.addDic({"LESS_THAN_A_MINUTE_AGO":"less than a minute ago","ABOUT_A_MINUTE_AGO":"about a minute ago","X_MINUTES_AGO":"%s minutes ago","ABOUT_AN_HOUR_AGO":"about an hour ago","X_HOURS_AGO":"about %s hours ago","ONE_DAY_AGO":"1 day ago","X_DAYS_AGO":"%s days ago"});