// source --> http://www.mushashugyofans.com/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public-1.6.7.js
CLI_ACCEPT_COOKIE_NAME =(typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy');
CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365);
CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
var CLI_Cookie={
set: function (name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else
var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
if(days<1)
{
host_name=window.location.hostname;
document.cookie = name + "=" + value + expires + "; path=/; domain=."+host_name+";";
host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1));
document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name+";";
}
},
read: function (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
},
erase: function (name) {
this.set(name, "", -10);
},
exists: function (name) {
return (this.read(name) !== null);
},
getallcookies:function()
{
var pairs = document.cookie.split(";");
var cookieslist = {};
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split("=");
cookieslist[(pair[0] + '').trim()] = unescape(pair[1]);
}
return cookieslist;
}
}
var CLI=
{
bar_config:{},
showagain_config:{},
set:function(args)
{
if(typeof JSON.parse !== "function")
{
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
return;
}
this.settings = JSON.parse(args.settings);
this.bar_elm=jQuery(this.settings.notify_div_id);
this.showagain_elm = jQuery(this.settings.showagain_div_id);
//buttons
this.main_button=jQuery('.cli-plugin-main-button');
this.main_link = jQuery('.cli-plugin-main-link');
this.reject_link = jQuery('.cookie_action_close_header_reject');
this.delete_link=jQuery(".cookielawinfo-cookie-delete");
if(this.settings.as_popup)
{
CLI_COOKIEBAR_AS_POPUP=true;
}
this.configShowAgain();
this.configBar();
this.attachStyles();
this.toggleBar();
this.attachDelete();
this.attachEvents();
this.configButtons();
if(this.settings.scroll_close === true)
{
window.addEventListener("scroll",CLI.closeOnScroll, false);
}
},
attachEvents:function()
{
jQuery('.cli_action_button').click(function(e){
e.preventDefault();
var elm=jQuery(this);
var button_action=elm.attr('data-cli_action');
var open_link=elm[0].hasAttribute("href") && elm.attr("href") != '#' ? true : false;
var new_window=false;
if(button_action=='accept')
{
CLI.accept_close();
new_window=CLI.settings.button_1_new_win ? true : false;
}else if(button_action=='reject')
{
CLI.reject_close();
new_window=CLI.settings.button_3_new_win ? true : false;
}
CLI.saveLog(button_action);
if(open_link)
{
if(new_window)
{
window.open(elm.attr("href"),'_blank');
}else
{
window.location.href =elm.attr("href");
}
}
});
},
saveLog:function(button_action)
{
if(CLI.settings.logging_on)
{
jQuery.ajax({
url: log_object.ajax_url,
type: 'POST',
data:{
action: 'wt_log_visitor_action',
wt_clicked_button_id: '',
wt_user_action:button_action,
cookie_list:CLI_Cookie.getallcookies()
},
success:function (response)
{
}
});
}
},
attachDelete:function()
{
this.delete_link.click(function () {
CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
return false;
});
},
configButtons:function()
{
//[cookie_button]
this.main_button.css('color',this.settings.button_1_link_colour);
if(this.settings.button_1_as_button)
{
this.main_button.css('background-color',this.settings.button_1_button_colour);
this.main_button.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_1_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_1_button_colour);
});
}
//[cookie_link]
this.main_link.css('color',this.settings.button_2_link_colour);
if(this.settings.button_2_as_button)
{
this.main_link.css('background-color',this.settings.button_2_button_colour);
this.main_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_2_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_2_button_colour);
});
}
//[cookie_reject]
this.reject_link.css('color',this.settings.button_3_link_colour);
if(this.settings.button_3_as_button)
{
this.reject_link.css('background-color',this.settings.button_3_button_colour);
this.reject_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_hover);
},function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_colour);
});
}
},
toggleBar:function()
{
if(CLI_COOKIEBAR_AS_POPUP)
{
this.barAsPopUp();
}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME))
{
this.displayHeader();
} else {
this.bar_elm.hide();
}
if(this.settings.show_once_yn)
{
setTimeout(function(){
CLI.close_header();
},CLI.settings.show_once);
}
this.showagain_elm.click(function (e) {
e.preventDefault();
CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function()
{
CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
if(CLI_COOKIEBAR_AS_POPUP)
{
CLI.showPopupOverlay();
}
});
});
},
attachStyles:function()
{
this.bar_elm.css(this.bar_config).hide();
this.showagain_elm.css(this.showagain_config);
},
configShowAgain:function()
{
this.showagain_config = {
'background-color': this.settings.background,
'color':this.l1hs(this.settings.text),
'position': 'fixed',
'font-family': this.settings.font_family
};
if(this.settings.border_on)
{
var border_to_hide = 'border-' + this.settings.notify_position_vertical;
this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border);
this.showagain_config[border_to_hide] = 'none';
}
if(this.settings.notify_position_horizontal == "left")
{
this.showagain_config.left = this.settings.showagain_x_position;
}else if(this.settings.notify_position_horizontal == "right")
{
this.showagain_config.right = this.settings.showagain_x_position;
}
},
configBar:function()
{
this.bar_config = {
'background-color':this.settings.background,
'color':this.settings.text,
'font-family':this.settings.font_family
};
if(this.settings.notify_position_vertical=="top")
{
this.bar_config['top'] = '0';
if(this.settings.header_fix === true)
{
this.bar_config['position'] = 'fixed';
}
}else
{
this.bar_config['bottom'] = '0';
}
if(this.settings.notify_position_vertical == "top")
{
if(this.settings.border_on)
{
this.bar_config['border-bottom'] = '2px solid ' +this.l1hs(this.settings.border);
}
this.showagain_config.top = '0';
}
else if(this.settings.notify_position_vertical == "bottom")
{
if(this.settings.border_on)
{
this.bar_config['border-top'] = '2px solid ' + this.l1hs(this.settings.border);
}
this.bar_config['position'] = 'fixed';
this.bar_config['bottom'] = '0';
this.showagain_config.bottom = '0';
}
},
l1hs:function(str)
{
if (str.charAt(0) == "#") {
str = str.substring(1, str.length);
} else {
return "#" + str;
}
return this.l1hs(str);
},
close_header:function()
{
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
this.hideHeader();
},
accept_close:function()
{
this.hidePopupOverlay();
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}else
{
this.bar_elm.hide();
}
this.showagain_elm.slideDown(this.settings.animate_speed_show);
if(this.settings.accept_close_reload === true)
{
window.location.reload();
}
return false;
},
reject_close:function()
{
this.hidePopupOverlay();
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
} else
{
this.bar_elm.hide();
}
this.showagain_elm.slideDown(this.settings.animate_speed_show);
if(this.settings.reject_close_reload === true)
{
window.location.reload();
}
return false;
},
closeOnScroll:function()
{
if(window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME))
{
CLI.accept_close();
if(CLI.settings.scroll_close_reload === true)
{
window.location.reload();
}
window.removeEventListener("scroll",CLI.closeOnScroll,false);
}
},
displayHeader:function()
{
if(this.settings.notify_animate_show)
{
this.bar_elm.slideDown(this.settings.animate_speed_show);
}else
{
this.bar_elm.show();
}
this.showagain_elm.hide();
if(CLI_COOKIEBAR_AS_POPUP)
{
this.showPopupOverlay();
}
},
hideHeader:function()
{
if(this.settings.notify_animate_show)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
} else {
this.showagain_elm.show();
}
this.bar_elm.slideUp(this.settings.animate_speed_show);
this.hidePopupOverlay();
},
hidePopupOverlay:function()
{
jQuery('body').removeClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").removeClass("cli-show");
},
showPopupOverlay:function()
{
if(this.settings.popup_overlay)
{
jQuery('body').addClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").addClass("cli-show");
}
},
barAsPopUp:function()
{
if(typeof cookie_law_info_bar_as_popup==='function')
{
return false;
}
var cli_elm=this.bar_elm;
var cli_win=jQuery(window);
var cli_winh=cli_win.height()-40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw>700 ? 500 : cli_winw-20;
//var cli_defw=cli_defw<500 ? 500 : cli_defw;
cli_elm.css({
'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','padding':'25px 15px','overflow':'auto'
}).addClass('cli-bar-popup cli-modal-content');
cli_elm.append('
');
cli_elm.find('a').appendTo('.cli_pop_btn_container');
cli_elm.find('a').css({'margin-top':'10px','margin-left':'5px'});
cli_elm.find('span').css({'float':'left','display':'block','width':'100%','height':'auto','max-height':(cli_winh-100),'overflow':'auto','text-align':'left'});
cli_h=cli_elm.height();
li_h=cli_h<200 ? 200 : cli_h;
cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1});
setTimeout(function(){
cli_elm.css({
'bottom':''
});
},100);
}
}
jQuery(document).ready(function() {
if(typeof cli_cookiebar_settings!='undefined')
{
CLI.set({
settings:cli_cookiebar_settings
});
}
});
// source --> http://www.mushashugyofans.com/wp-content/plugins/fb-photo-sync/light-gallery/js/lightGallery.min.js?ver=0.5.9
!function(e){"use strict";e.fn.lightGallery=function(t){var i,a,l,n,s,o,d,r,h,c,u,m={mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:600,addClass:"",closable:!0,loop:!1,auto:!1,pause:4e3,escKey:!0,controls:!0,hideControlOnEnd:!1,preload:1,showAfterLoad:!0,selector:null,index:!1,lang:{allPhotos:"All photos"},counter:!1,exThumbImage:!1,thumbnail:!0,showThumbByDefault:!1,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbMargin:5,mobileSrc:!1,mobileSrcMaxWidth:640,swipeThreshold:50,enableTouch:!0,enableDrag:!0,vimeoColor:"CCCCCC",videoAutoplay:!0,videoMaxWidth:"855px",dynamic:!1,dynamicEl:[],onOpen:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onBeforeClose:function(){},onCloseAfter:function(){}},f=e(this),v=this,p=null,b=0,g=!1,C=!1,y=void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,w=!1,T=!1,x=!1,S=e.extend(!0,{},m,t),G={init:function(){f.each(function(){var t=e(this);S.dynamic?(p=S.dynamicEl,b=0,d=b,q.init(b)):(p=null!==S.selector?e(S.selector):t.children(),p.on("click",function(i){p=null!==S.selector?e(S.selector):t.children(),i.preventDefault(),i.stopPropagation(),b=p.index(this),d=b,q.init(b)}))})}},q={init:function(){g=!0,this.structure(),this.getWidth(),this.closeSlide(),this.autoStart(),this.counter(),this.slideTo(),this.buildThumbnail(),this.keyPress(),S.index?(this.slide(S.index),this.animateThumb(S.index)):(this.slide(b),this.animateThumb(b)),S.enableDrag&&this.touch(),S.enableTouch&&this.enableTouch(),setTimeout(function(){i.addClass("opacity")},50)},structure:function(){e("body").append('').addClass("lightGallery"),a=e("#lightGallery-outer"),i=e("#lightGallery-Gallery"),S.showAfterLoad===!0&&i.addClass("showAfterLoad"),l=i.find("#lightGallery-slider");var t="";if(S.dynamic)for(var s=0;s';else p.each(function(){t+=''});l.append(t),n=i.find(".lightGallery-slide")},closeSlide:function(){S.closable&&e("#lightGallery-outer").on("click",function(t){e(t.target).is(".lightGallery-slide")&&v.destroy(!1)}),e("#lightGallery-close").bind("click touchend",function(){v.destroy(!1)})},getWidth:function(){var t=function(){c=e(window).width()};e(window).bind("resize.lightGallery",t())},doCss:function(){var e=function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,i=0;i=l?(t.prevSlide(),clearInterval(u)):-l>=e&&(t.nextSlide(),clearInterval(u))})}},touch:function(){var t,i,a=this;e(".lightGallery").bind("mousedown",function(e){e.stopPropagation(),e.preventDefault(),t=e.pageX}),e(".lightGallery").bind("mouseup",function(e){e.stopPropagation(),e.preventDefault(),i=e.pageX,i-t>20?a.prevSlide():t-i>20&&a.nextSlide()})},isVideo:function(e,t){var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9_\-]+)/i),a=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),l=!1;return S.dynamic?"true"==S.dynamicEl[t].iframe&&(l=!0):"true"==p.eq(t).attr("data-iframe")&&(l=!0),i||a||l?!0:void 0},loadVideo:function(e,t){var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9_\-]+)/i),a=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),l="",n="";return i?(n=S.videoAutoplay===!0&&C===!1?"?autoplay=1&rel=0&wmode=opaque":"?wmode=opaque",l=''):a?(n=S.videoAutoplay===!0&&C===!1?"autoplay=1&":"",l=''):l='','"},addHtml:function(t){var i=null;if(i=S.dynamic?S.dynamicEl[t]["sub-html"]:p.eq(t).find("div.lg-sub-html").html(),"undefined"!=typeof i&&null!==i){var a=i.substring(0,1);i="."==a||"#"==a?e(i).html():i,n.eq(t).append(i)}},preload:function(e){for(var t=e,i=0;i<=S.preload&&!(i>=p.length-e);i++)this.loadContent(t+i,!0);for(var a=0;a<=S.preload&&!(0>t-a);a++)this.loadContent(t-a,!0)},loadObj:function(e,t){var i=this;n.eq(t).find(".object").on("load error",function(){n.eq(t).addClass("complete")}),e===!1&&(n.eq(t).hasClass("complete")?i.preload(t):n.eq(t).find(".object").on("load error",function(){i.preload(t)}))},loadContent:function(t,i){{var a,l=this;p.length-t}S.preload>p.length&&(S.preload=p.length),a=S.mobileSrc===!0&&c<=S.mobileSrcMaxWidth?S.dynamic?S.dynamicEl[t].mobileSrc:p.eq(t).attr("data-responsive-src"):S.dynamic?S.dynamicEl[t].src:p.eq(t).attr("data-src");var s=0;i===!0&&(s=S.speed+400),"undefined"!=typeof a&&""!==a?l.isVideo(a,t)?setTimeout(function(){n.eq(t).hasClass("loaded")||(n.eq(t).prepend(l.loadVideo(a,t)),l.addHtml(t),n.eq(t).addClass("loaded"),S.auto&&S.videoAutoplay===!0&&clearInterval(u)),l.loadObj(i,t)},s):setTimeout(function(){n.eq(t).hasClass("loaded")||(n.eq(t).prepend(''),l.addHtml(t),n.eq(t).addClass("loaded")),l.loadObj(i,t)},s):setTimeout(function(){if(!n.eq(t).hasClass("loaded")){var a=null;if(a=S.dynamic?S.dynamicEl[t].html:p.eq(t).attr("data-html"),"undefined"!=typeof a&&null!==a){var s=a.substring(0,1);a="."==s||"#"==s?e(a).html():a}"undefined"!=typeof a&&null!==a&&n.eq(t).append('"),l.addHtml(t),n.eq(t).addClass("loaded complete"),S.auto&&S.videoAutoplay===!0&&clearInterval(u)}l.loadObj(i,t)},s)},counter:function(){if(S.counter===!0){var t=e("#lightGallery-slider > div").length;i.append(" / "+t+"
")}},buildThumbnail:function(){if(S.thumbnail===!0&&p.length>1){var t=this,a="";S.showThumbByDefault||(a=''),i.append(''),r=i.find(".thumb_cont"),s.after(''),s.parent().addClass("hasThumb"),i.find(".cLthumb").bind("click touchend",function(){i.addClass("open"),t.doCss()&&"slide"===S.mode&&(n.eq(b).prevAll().removeClass("nextSlide").addClass("prevSlide"),n.eq(b).nextAll().removeClass("prevSlide").addClass("nextSlide"))}),i.find(".thumb_cont .close").bind("click touchend",function(){i.removeClass("open")});var l,o=i.find(".thumb_info"),d=i.find(".thumb_inner"),c="";if(S.dynamic)for(var m=0;m';else p.each(function(){l=S.exThumbImage===!1||"undefined"==typeof e(this).attr(S.exThumbImage)||null===e(this).attr(S.exThumbImage)?e(this).find("img").attr("src"):e(this).attr(S.exThumbImage),c+=''});if(d.append(c),h=d.find(".thumb"),h.css({"margin-right":S.thumbMargin+"px",width:S.thumbWidth+"px"}),S.animateThumb===!0){var f=p.length*(S.thumbWidth+S.thumbMargin);i.find(".thumb_inner").css({width:f+"px",position:"relative","transition-duration":S.speed+"ms"})}h.bind("click touchend",function(){w=!0;var i=e(this).index();h.removeClass("active"),e(this).addClass("active"),t.slide(i),t.animateThumb(i),clearInterval(u)}),o.prepend(''+S.lang.allPhotos+" ("+h.length+")"),S.showThumbByDefault&&i.addClass("open")}},animateThumb:function(e){if(S.animateThumb===!0){var t,a=i.find(".thumb_cont").width();switch(S.currentPagerPosition){case"left":t=0;break;case"middle":t=a/2-S.thumbWidth/2;break;case"right":t=a-S.thumbWidth}var l=(S.thumbWidth+S.thumbMargin)*e-1-t,n=p.length*(S.thumbWidth+S.thumbMargin);l>n-a&&(l=n-a),0>l&&(l=0),this.doCss()?i.find(".thumb_inner").css("transform","translate3d(-"+l+"px, 0px, 0px)"):i.find(".thumb_inner").animate({left:-l+"px"},S.speed)}},slideTo:function(){var e=this;S.controls===!0&&p.length>1&&(i.append(''),s=i.find("#lightGallery-prev"),o=i.find("#lightGallery-next"),s.bind("click",function(){e.prevSlide(),clearInterval(u)}),o.bind("click",function(){e.nextSlide(),clearInterval(u)}))},autoStart:function(){var e=this;S.auto===!0&&(u=setInterval(function(){b=b+11?i.hasClass("open")||(t.doCss()&&"slide"===S.mode&&(n.eq(b).prevAll().removeClass("nextSlide").addClass("prevSlide"),n.eq(b).nextAll().removeClass("prevSlide").addClass("nextSlide")),i.addClass("open")):39===e.keyCode&&(t.nextSlide(),clearInterval(u)),40===e.keyCode&&S.thumbnail===!0&&p.length>1&&!S.showThumbByDefault?i.hasClass("open")&&i.removeClass("open"):S.escKey===!0&&27===e.keyCode&&(!S.showThumbByDefault&&i.hasClass("open")?i.removeClass("open"):v.destroy(!1))})},nextSlide:function(){var e=this;b=n.index(n.eq(d)),b+11&&!S.showThumbByDefault?i.addClass("open"):(n.eq(b).find(".object").addClass("rightEnd"),setTimeout(function(){n.find(".object").removeClass("rightEnd")},400)),e.animateThumb(b),S.onSlideNext.call(this,v)},prevSlide:function(){var e=this;b=n.index(n.eq(d)),b>0?(b--,e.slide(b)):S.loop?(b=p.length-1,e.slide(b)):S.thumbnail===!0&&p.length>1&&!S.showThumbByDefault?i.addClass("open"):(n.eq(b).find(".object").addClass("leftEnd"),setTimeout(function(){n.find(".object").removeClass("leftEnd")},400)),e.animateThumb(b),S.onSlidePrev.call(this,v)},slide:function(t){var i=this;if(C?(setTimeout(function(){i.loadContent(t,!1)},S.speed+400),l.hasClass("on")||l.addClass("on"),this.doCss()&&""!==S.speed&&(l.hasClass("speed")||l.addClass("speed"),x===!1&&(l.css("transition-duration",S.speed+"ms"),x=!0)),this.doCss()&&""!==S.cssEasing&&(l.hasClass("timing")||l.addClass("timing"),T===!1&&(l.css("transition-timing-function",S.cssEasing),T=!0)),S.onSlideBefore.call(this,v)):i.loadContent(t,!1),"slide"===S.mode){var a=null!==navigator.userAgent.match(/iPad/i);!this.doCss()||l.hasClass("slide")||a?this.doCss()&&!l.hasClass("useLeft")&&a&&l.addClass("useLeft"):l.addClass("slide"),this.doCss()||C?!this.doCss()&&C&&l.animate({left:100*-t+"%"},S.speed,S.easing):l.css({left:100*-t+"%"})}else"fade"===S.mode&&(this.doCss()&&!l.hasClass("fadeM")?l.addClass("fadeM"):this.doCss()||l.hasClass("animate")||l.addClass("animate"),this.doCss()||C?!this.doCss()&&C&&(n.eq(d).fadeOut(S.speed,S.easing),n.eq(t).fadeIn(S.speed,S.easing)):(n.fadeOut(100),n.eq(t).fadeIn(100)));if(t+1>=p.length&&S.auto&&S.loop===!1&&clearInterval(u),n.eq(d).removeClass("current"),n.eq(t).addClass("current"),this.doCss()&&"slide"===S.mode&&(w===!1?(e(".prevSlide").removeClass("prevSlide"),e(".nextSlide").removeClass("nextSlide"),n.eq(t-1).addClass("prevSlide"),n.eq(t+1).addClass("nextSlide")):(n.eq(t).prevAll().removeClass("nextSlide").addClass("prevSlide"),n.eq(t).nextAll().removeClass("prevSlide").addClass("nextSlide"))),S.thumbnail===!0&&p.length>1&&(h.removeClass("active"),h.eq(t).addClass("active")),S.controls&&S.hideControlOnEnd&&S.loop===!1&&p.length>1){var r=p.length;r=parseInt(r)-1,0===t?(s.addClass("disabled"),o.removeClass("disabled")):t===r?(s.removeClass("disabled"),o.addClass("disabled")):s.add(o).removeClass("disabled")}d=t,C===!1?S.onOpen.call(this,v):S.onSlideAfter.call(this,v),setTimeout(function(){C=!0}),w=!1,S.counter&&e("#lightGallery_counter_current").text(t+1),e(window).bind("resize.lightGallery",function(){setTimeout(function(){i.animateThumb(t)},200)})}};return v.isActive=function(){return g===!0?!0:!1},v.destroy=function(t){g=!1,t="undefined"!=typeof t?!1:!0,S.onBeforeClose.call(this,v);var l=C;C=!1,T=!1,x=!1,w=!1,clearInterval(u),t===!0&&p.off("click touch touchstart"),e(".lightGallery").off("mousedown mouseup"),e("body").off("touchstart.lightGallery touchmove.lightGallery touchend.lightGallery"),e(window).off("resize.lightGallery keyup.lightGallery"),l===!0&&(i.addClass("fadeM"),setTimeout(function(){a.remove(),e("body").removeClass("lightGallery")},500)),S.onCloseAfter.call(this,v)},G.init(),this}}(jQuery);
// source --> http://www.mushashugyofans.com/wp-content/plugins/fb-photo-sync/js/jquery.lazyload.min.js?ver=0.5.9
/*! Lazy Load 1.9.3 - MIT license - Copyright 2010-2013 Mika Tuupola */
!function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document);
// source --> http://www.mushashugyofans.com/wp-content/plugins/jetpack/_inc/build/spin.min.js?ver=1.3
/* Do not modify this file directly. It is compiled from other files. */
//fgnass.github.com/spin.js#v1.3
/**
* Copyright (c) 2011-2013 Felix Gnass
* Licensed under the MIT license
*/
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var i,o=document.createElement(t||"div");for(i in e)o[i]=e[i];return o}function e(t){for(var e=1,i=arguments.length;e>1):parseInt(a.left,10)+p)+"px",top:("auto"==a.top?o.y-i.y+(e.offsetHeight>>1):parseInt(a.top,10)+p)+"px"})),f.setAttribute("role","progressbar"),n.lines(f,n.opts),!l){var c,d=0,u=(a.lines-1)*(1-a.direction)/2,h=a.fps,y=h/a.speed,m=(1-a.opacity)/(y*a.trail/100),v=y/a.lines;!function t(){d++;for(var e=0;e>1)+"px"})}for(var a,f=0,p=(n.lines-1)*(1-n.direction)/2;f',i)}c.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,o){function n(){return r(i("group",{coordsize:f+" "+f,coordorigin:-l+" "+-l}),{width:f,height:f})}function s(t,s,a){e(c,e(r(n(),{rotation:360/o.lines*t+"deg",left:~~s}),e(r(i("roundrect",{arcsize:o.corners}),{width:l,height:o.width,left:o.radius,top:-o.width>>1,filter:a}),i("fill",{color:o.color,opacity:o.opacity}),i("stroke",{opacity:0}))))}var a,l=o.length+o.width,f=2*l,p=2*-(o.width+o.length)+"px",c=r(n(),{position:"absolute",top:p,left:p});if(o.shadow)for(a=1;a<=o.lines;a++)s(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=o.lines;a++)s(a);return e(t,c)},a.prototype.opacity=function(t,e,i,o){var r=t.firstChild;o=o.shadow&&o.lines||0,r&&e+o http://www.mushashugyofans.com/wp-content/plugins/jetpack/_inc/build/jquery.spin.min.js?ver=1.3
/* Do not modify this file directly. It is compiled from other files. */
/**
* Copyright (c) 2011-2013 Felix Gnass
* Licensed under the MIT license
*/
!function(e){if("object"==typeof exports)e(require("jquery"),require("spin"));else if("function"==typeof define&&define.amd)define(["jquery","spin"],e);else{if(!window.Spinner)throw new Error("Spin.js not present");e(window.jQuery,window.Spinner)}}(function(e,n){e.fn.spin=function(s,i){return this.each(function(){var t=e(this),r=t.data();if(r.spinner&&(r.spinner.stop(),delete r.spinner),!1!==s){if(s=e.extend({color:i||t.css("color")},e.fn.spin.presets[s]||s),void 0!==s.right&&void 0!==s.length&&void 0!==s.width&&void 0!==s.radius){var p=t.css("padding-left");p=void 0===p?0:parseInt(p,10),s.left=t.outerWidth()-2*(s.length+s.width+s.radius)-p-s.right,delete s.right}r.spinner=new n(s).spin(this)}})},e.fn.spin.presets={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}}}),function(e){e.fn.spin.presets.wp={trail:60,speed:1.3},e.fn.spin.presets.small=e.extend({lines:8,length:2,width:2,radius:3},e.fn.spin.presets.wp),e.fn.spin.presets.medium=e.extend({lines:8,length:4,width:3,radius:5},e.fn.spin.presets.wp),e.fn.spin.presets.large=e.extend({lines:10,length:6,width:4,radius:7},e.fn.spin.presets.wp),e.fn.spin.presets["small-left"]=e.extend({left:5},e.fn.spin.presets.small),e.fn.spin.presets["small-right"]=e.extend({right:5},e.fn.spin.presets.small),e.fn.spin.presets["medium-left"]=e.extend({left:5},e.fn.spin.presets.medium),e.fn.spin.presets["medium-right"]=e.extend({right:5},e.fn.spin.presets.medium),e.fn.spin.presets["large-left"]=e.extend({left:5},e.fn.spin.presets.large),e.fn.spin.presets["large-right"]=e.extend({right:5},e.fn.spin.presets.large)}(jQuery);