"use strict";function shuffle(e){for(var o,t=[],a=e.length;a;)o=Math.floor(Math.random()*a--),t.push(e.splice(o,1)[0]);return t}function getUrlVars(){for(var e,o=[],t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),a=0;a950?800:.65*$gw+300,$(this).find("iframe").css("margin-top","-150px").css("margin-bottom","-150px").css("width",$gw).css("height",$gh)})}var o=navigator.userAgent;o.indexOf("Android")>0&&$("html").addClass("noWebFont"),$("a,area,map,img").focus(function(){$(this).blur()}),$("a,area,map,img").on("focus",function(){$(this).blur()}),$(window).on("load",function(){$("html").addClass("loadFinish")}),$("body").append('
');var t=$("#commonHeader .wrap div").clone();$("#commonHeader").before('
'),$("#spNav").html(t),$("#spNav p.menu a").on("click",function(){return $("html").toggleClass("open"),!1}),$(".youtube")[0]&&!function(){var e=function(e,o){new YT.Player("youtube"+o,{width:"560",height:"315",videoId:e,playerVars:{rel:0,showinfo:0,controls:1,modestbranding:1,wmode:"transparent",autohide:1}})};$(".player")[0]&&!function(){var o=function t(){$.ajax({url:"https://www.youtube.com/player_api/",dataType:"script",success:function(){},error:function(){t()}})};o(),window.onYouTubeIframeAPIReady=function(){$(".youtube .player").each(function(o){$(this).attr("id","youtube"+o),e($(this).attr("data-youtubeid"),o)}),$(".youtube").fitVids()}}(),$(".youtube").fitVids()}();var a=document.title,n='",$("#commonHeader .wrap").append(n),$("#commonFooter .footerSns").html("").append(n),$(".recruitSns").html("").append(n),$(document).on("click","#commonHeader ul.sns li.fb a,#commonFooter .footerSns ul li.fb a,.recruitSns ul li.fb a",function(){return window.open($(this).attr("href"),"FBwindow","width=650,height=450,menubar=no,toolbar=no,scrollbars=yes"),!1}),$(document).on("click","#commonHeader ul.sns li.tw a,#commonFooter .footerSns ul li.tw a,.recruitSns ul li.tw a",function(){return window.open(this.href,"TWwindow","width=650,height=450,menubar=no,toolbar=no,scrollbars=yes"),!1}),$(".pageTop a").on("click",function(){return $("html,body").stop().animate({scrollTop:0},1e3),!1}),$("a.anchor,.anchor a").on("click",function(){return $(this).scrollTo(1e3,$(this).attr("rel")),!1}),getUrlVars().anc&&$(window).load(function(){$("html,body").animate({scrollTop:$("#"+getUrlVars().anc).offset().top},1e3)}),$(window).on("load resize scroll",function(){var e=$(window).scrollTop();e>100?$("#commonFooter .pageTop").addClass("show"):$("#commonFooter .pageTop").removeClass("show")}),$(".flatitems .item").matchHeight(),$("main section table.vertical tr th,main section table.vertical tr td").each(function(){$(this).html(''+$(this).html()+"")}),$("main section table.vertical span.bg").matchHeight(),"/jp/"!=location.pathname&&$('#commonHeader a[href^="/jp/'+location.pathname.split("/")[2]+'"],#commonFooter a[href^="/jp/'+location.pathname.split("/")[2]+'"]').addClass("active"),$(".gmap")[0]){var r=[];$(".gmap").each(function(){r.push($(this).html())}),$(window).on("load",function(){e(0,r)});var l=!1;$(window).resize(function(){l!==!1&&clearTimeout(l),l=setTimeout(function(){e(1,r)},200)})}$("#entryBody figure.fit").resizeImage({minSize:"300px",wrapClass:"link",linkto:!1}),$("a[rel*=lightbox]").colorbox({initialWidth:"30%",initialHeight:"30%",maxWidth:"90%",maxHeight:"90%",opacity:.7,preloading:!1,current:" {current} {total}",previous:"",next:"",close:"",loop:!1,scrolling:!1,arrowKey:!1,top:!1,right:!1,bottom:!1,left:!1}),$(".lbp_secondary").colorbox({speed:300,innerWidth:"50%",innerHeight:"50%",initialWidth:"30%",initialHeight:"40%",maxWidth:"90%",maxHeight:"90%",opacity:.8,iframe:!0})}),$.fn.extend({scrollTo:function(e,o){return $(this)[0].hash&&"#"!=$(this)[0].hash?this.each(function(){o||(o=0);var t=$($(this)[0].hash).offset().top-o;$("html,body").animate({scrollTop:t},e)}):!1}}),function(e){e.fn.resizeImage=function(o){function t(){$raddSize=e('body img[id*="'+l+'"]').size();for(var o=0;$raddSize>o;o++){var t=l+o,i=document.getElementById(t),r=i.naturalWidth,t="#"+t;e(t).attr("width",r).removeAttr("height"),s+=" max-width:"+r+"px;",1==n&&(s+=' min-width:"'+a+'";'),e(t).css("cssText",s).show().addClass("finish")}}var o=e.extend({nonPropChk:!0,minSize:"300px",minFit:!0,addBaseID:"jqResizeImage",wrapClass:"resizeImageWrap",linkto:!0},o),a=o.minSize,n=o.minFit,i=o.linkto,r=o.wrapClass,l=(o.nonPropChk,o.addBaseID),s=" !important; height:auto !important; width:100%;",c=e(this).find("img").size(),d=navigator.userAgent;if(d.indexOf("iPhone")>0||d.indexOf("iPod")>0||d.indexOf("Android")>0)for(var m=0;c>m;m++)0==i?(tag="span",href=""):(tag="div",href=' data-image="'+e(this).find("img").eq(m).attr("src")+'" class="zoomimage"'),e(this).find("img").eq(m).attr("id",l+m).wrap("<"+tag+href+' class="'+r+'">");else for(var m=0;c>m;m++)0==i?(tag="span",href=""):(tag="a",href=' href="'+e(this).find("img").eq(m).attr("src")+'" target="_blank" data-lightbox="image-1"'),e(this).find("img").eq(m).attr("id",l+m).wrap("<"+tag+href+' class="'+r+'">");e("#"+l+"0")[0]&&(t(),e(window).on("load resize",function(){t()}),e(window).on("load",function(){var e=navigator.userAgent;if(e.indexOf("iPhone")>0||e.indexOf("iPod")>0||e.indexOf("Android")>0){var o=document.querySelectorAll(".zoomimage");Intense(o)}}))}}(jQuery),function(e){e.fn.gmap=function(o){function t(e){1==o.pano&&(panophoto=new google.maps.panoramio.PanoramioLayer,panophoto.setMap(e))}var a,n,o=e.extend({address:"",zoom:16,lat:"35.68348",lng:"139.7860018",icon:"",centerlatlng:"",pano:!1},o),i=e(this).get(0);if(a=new google.maps.Geocoder)if(""==o.address){var r=o.lat,l=o.lng,s=new google.maps.LatLng(r,l);if(o.centerlatlng)var c=o.centerlatlng.split(",",1),d=o.centerlatlng.replace(/(.*),(.*)/,"$2"),m={zoom:o.zoom,center:new google.maps.LatLng(c,d),mapTypeId:google.maps.MapTypeId.ROADMAP,scaleControl:!0,mapTypeControl:!1,scrollwheel:!1};else var m={zoom:o.zoom,center:new google.maps.LatLng(o.lat,o.lng),mapTypeId:google.maps.MapTypeId.ROADMAP,scaleControl:!0,mapTypeControl:!1,scrollwheel:!1};{var n=new google.maps.Map(i,m);new google.maps.Marker({icon:o.icon,position:s,map:n})}t(n)}else a.geocode({address:o.address},function(a,n){if(n==google.maps.GeocoderStatus.OK){var r=a[0].geometry.location,l=new String(r);l=l.replace(/\(/gi,"").replace(/\)/gi,"");{var s=l.split(",",2),c=s[0],d=s[1],m=new google.maps.LatLng(c,d),h={zoom:o.zoom,center:new google.maps.LatLng(c,d),mapTypeId:google.maps.MapTypeId.ROADMAP,scaleControl:!0,mapTypeControl:!1,scrollwheel:!1},p=new google.maps.Map(i,h);new google.maps.Marker({icon:o.icon,position:m,map:p})}t(p)}else e(i).html("

「"+o.address+"」は見つかりませんでした。

")})}}(jQuery);