$(function(){var a,f,e,d,c,b;a=function(){var j,i,p,o,n,m,l,k;j=$(this);i=$(".btn-top");p=j.scrollTop();o=j.height();m=200;n=$(document).height();l={a:1000,b:p+o-m};if(p>=(n-o)){k=n-m}else{if(p>=l.a){k=l.b}else{k=l.a}}i.stop().animate({top:k},300)};f=function(){var j,i,g,h;j=$("nav ul li");i=$(".content");g=$(".report-nav li");h=$(".report-info");j.click(function(){var k=$(this);j.removeClass("on");k.addClass("on");i.hide();i.eq(k.index()).fadeIn(100);pageScroll(CONFIG().NAV)});g.click(function(){var k,l;k=$(this);l=k.attr("class");if(l=="disable"){invalidPlace();return}g.removeClass("active");k.addClass("active");h.hide();h.eq(k.index()).fadeIn(100)})};e=function(){var i,o,n,m,l,k,j;i=$(".place-list li");o=$(".place-nav li");m=$(".place-info");l=m.children(".info");n=m.find(".btn-close");k=function(){var g,h;g=$(this);h=g.attr("data-place");if(!h){invalidPlace();return}l.hide();l.eq(h).show();m.fadeIn(100);pageScroll(CONFIG().PLACE)};j=function(){m.fadeOut(100)};i.click(k);o.click(k);n.click(j)};d=function(){var g=$("[name=userGender]");g.click(function(){var h=$(this);if(h.is(":checked")){g.prop("checked",false);h.prop("checked",true)}})};c=function(){var m,j,i,p,o,n,l,k;m=document.frmEntry;j=m.etcValue1;i=m.userName;p=m.userAge;o=m.userGender;n=m.userEmail;l=m.userAgreement;k=m.userPrivacy;if(j.value<=0){alert(CONFIG().MSG.PLACE);j.focus();return}if(i.value.length<1){alert(CONFIG().MSG.NAME);i.focus();return}if(p.value<=0){alert(CONFIG().MSG.AGE);p.focus();return}if(!o[0].checked&&!o[1].checked){alert(CONFIG().MSG.GENDER);o[0].focus();return}if(n.value.length<1){alert(CONFIG().MSG.EMAIL);n.focus();return}if(!l.checked){alert(CONFIG().MSG.AGREEMENT);l.focus();return}if(!k.checked){alert(CONFIG().MSG.PRIVACY);k.focus();return}m.submit()};b=function(){var i,q,n,o,p,m,l,j;n=$("#layer");o=$("#ifmLayer");i=$(".about-notice ul li");q=$(".report-gallery li");j=$(".report-faq li");p=n.children(".btn-close");m=function(){var g,k,h;g=$(this);k=CONFIG().BOARD;h=g.attr("data-seq");if(!k||!h){alert(CONFIG().MSG.ERROR);window.location.reload();return}o.attr("src",k+h);n.fadeIn(100)};l=function(){n.fadeOut(100,function(){o.attr("src","")})};i.click(m);q.click(m);j.click(m);p.click(l)};$(window).scroll(a);$(".btn-entry").click(c);f();d();b();e()}); function pageScroll(a){ $('html, body').stop().animate({scrollTop: a}, 300); }; function login(){ alert(CONFIG().MSG.LOGIN); }; function invalidPlace(){ alert(CONFIG().MSG.INVALID); }; function invalidContent(){ alert(CONFIG().MSG.CONTENT); }; function invalidEntry(){ alert(CONFIG().MSG.CLOSE); }; function twitter(){ var href = encodeURI('https://twitter.com/share?text=' + CONFIG().TWITTER.TEXT + '&url=' + CONFIG().TWITTER.URL + '&hashtags=' + CONFIG().TWITTER.TAG + '&lang=ja'); window.open(href, '', 'width=500, height=350, top=100px, menubar=no, toolbar=no, scrollbars=yes'); };