/** * pfizer-kinen 2.0.0 by Pfizer Japan Inc. * Copyright 2016 Pfizer Japan Inc. */ function geo_wgs2jp(a, b) { var c = parseFloat(a), d = parseFloat(b); return a = c + 10696e-8 * c - 17467e-9 * d - .004602, b = d + 46047e-9 * c + 83049e-9 * d - .010041, { lat: a, lng: b }; } function geo_ms(a, b) { var c = a, d = b; return a = Math.floor(36e5 * c), b = Math.floor(36e5 * d), { lat: a, lng: b }; } function openWin2(a) { movie_id = a; var b = 760, c = 700, d = Math.floor(screen.width / 2 - b / 2), e = Math.floor(screen.height / 2 - c / 2); window.open("/movie.html?" + new Date().getTime(), "movie", "width=" + b + ",height=" + c + ",left=" + d + ",top=" + e + ",menubar=no,toolbar=no,location=no,status=yes,resizable=yes,scrollbars=yes"); } !function(a) { function b(val) { if(a(".global-nav").length>0){ a(".global-nav").hasClass("menuFix") || (g = a("body").scrollTop()), a(".menu-toggle").hasClass("collapsed") || a(window).width() > 992 ? (a("body").css({ overflow: "", height: "", width: "", position: "", top: "" }), a(".global-nav").hasClass("menuFix") && 0 !== g && a("body").scrollTop(g), a(".navbar-nav").css({ height: "" }), a(".global-nav").removeClass("menuFix")) : (a("body").css({ overflow: "hidden", height: a(window).height(), width: a(window).width(), position: "fixed", top: -1 * g }), a(".global-nav").addClass("menuFix"), a(".navbar-nav").css({ height: a(window).height() - 40 })); } } function c(a) { a.addClass("focus"), e && (a.blur(), a.focus()); } function d() { a(".nav-toggle-link").removeClass("focus"); } a.platform.is("iphone") && a("html").addClass("iphone"), a.platform.is("ipod") && a("html").addClass("iphone"), a.platform.is("android") && a("html").addClass("android"); var e = (window.devicePixelRatio || 1, !1), f = e && navigator.userAgent.match(/MSIE ?[678]\./i) ? !1 : !0; e && a("html").addClass(f ? "ie9" : "ie8"), a("body").append(a('')), a(window).on("scroll", function() { a("#scrollUp").css(a(window).scrollTop() > 400 ? { opacity: 1, visibility: "visible" } : { opacity: "", visibility: "" }); }).trigger("scroll"), a("#scrollUp").on("click", function() { a("html,body").stop(!0, !1).animate({ scrollTop: 0 }, "fast", function() {}); }), a(".modal-inline").magnificPopup({ type: "inline", fixedContentPos: !0, fixedBgPos: !0, overflowY: "auto", closeBtnInside: !0, preloader: !1, midClick: !0, removalDelay: 300, mainClass: "mfp-slide-bottom", callbacks: { close: function() { a("video", "#movieBox").each(function() { this.pause(); }), a("#movieBox").empty(), a("body").removeClass("modal-open"), a(".modal").removeClass("active"); } } }), a(".modal-image").magnificPopup({ type: "image", closeOnContentClick: !0, mainClass: "mfp-img-mobile mfp-slide-bottom btn-zoom", image: { verticalFit: !0 } }); a(document).on('click',function(e){ if(a('.global-nav .nav-toggle-link.focus').length>0){ if(!a(e.target).parents(".global-nav").length>0){d() } } }) a(document).on("click keypress keydown", '.global-nav a,.nav-toggle-link a', function(e) { if("click" == e.type || 13 == e.keyCode || 32 == e.keyCode){ if(a(e.target).parents(".global-nav").length>0){ if(a(e.target).parents('.nav-nest-wrap').length>0){ if(a(window).width() > 992&&!e.target.href.match(location.href)){ if(e.target.rel=='external'){ window.open(e.target.href,'new_win') }else{ location.href=e.target.href; } } } } (a(e.target).parents(".global-nav").length < 1 ? d() : (a(e.target).hasClass("nav-toggle-link") && (e.preventDefault(),a(e.target).hasClass("focus") ? d() : (d(), c(a(e.target)))),b(e.type))) } }); var g = 0; a(document).on("click keypress keydown", '.menu-toggle', function(e) { if("click" == e.type || 13 == e.keyCode || 32 == e.keyCode){ b(); } }); a(window).on("resize touchend", function(a) { b(a.type); }).trigger("resize"); var h = location.pathname.replace(/index\.html$/, ""), i = a("#sub .local-nav-body").find("a"); i.each(function() { var b = a(this).attr("href").replace(/index\.html$/, ""); b === h && a(this).addClass("active"); }); }(jQuery), function() { function a() { w = $(window).width(), h = $(window).height(), t = $(window).scrollTop(), l = $(window).scrollLeft(), objh = $(".jstream-eqPlaye-flowtingShadow").height() || 360, objw = $(".jstream-eqPlaye-flowtingShadow").width() || 640, objT = t + 1 * [ h / 2 ] - 1 * [ objh / 2 ], objL = l + 1 * [ w / 2 ] - 1 * [ objw / 2 ], $(".jstream-eqPlayer-flowtingBackground").css({ width: w, height: h + 100 }), $(".jstream-eqPlaye-flowtingShadow").css({ top: 25 + objT, left: objL }), $(".jstream-eqPlaye-closeBtn").css({ top: objT, left: 1 * [ objL + objw ] - 43 }); } if (window.location.href.match(/cm/)) { boxVideo = $(".box-video"); var b; boxVideo.each(function() { b = $(this).find("link").attr("href"), $(this).find("link").remove(); }), $("head").append($("", { href: b, rel: "stylesheet" })); return $(".jstream-eqPlayer").on("click", function() { $(".jstream-eqPlayer-flowtingBackground").css({ position: "fixed", top: 0 }).parent().css({ width: "100%", height: "100%", position: "absolute" }).addClass("jstream-eqPlayer-box"); var b = navigator.userAgent.match(/MSIE [678]\./i); b && $(".jstream-eqPlayer-box").css({ position: "fixed" }), a(); }), $(window).on("load orientationchange resize scroll", function() { return $(".jstream-eqPlayer-box").length ? ($(".jstream-eqPlayer-box").css({ position: "absolute" }), void a()) : !1; }), !1; } if (linkLibrary = $(".link-library", "#keyvidual").length, linkLibrary > 1) { var c = Math.floor(Math.random() * linkLibrary); $(".link-library", "#keyvidual").eq(c).remove(); } }(jQuery), function(a) { function c() { if (clearTimeout(h), 0 === a(".modal.active").length) { var b = "ba"; if (f.length > 0){ for (var d = 0; d < f.length; d++)("block" != a(f[d]).css("display") && (b = "sp")); } j.stop(!0, !1).delay(0).fadeOut(400); if("sp" == b) { k=k>g.length - 1?0: 0 > k?g.length - 1:k; f.eq(k).fadeIn(400) } else{ l=l>g.length-1?0:0>l?g.length-1:l; g.eq(l).fadeIn(400) } } h = setTimeout(function() { clearTimeout(h), "sp" == b ? k++ : l++, c(); }, 8000); } if (a("body").hasClass("top")) { var d = a("body"), e = a("#keyvidual"); a("#wrapper"), a("#keyvidual-map"), a("#keyvidual-menu"); a(window).on("load", function() { e.animate({ opacity: "1" }, { duration: 1000, easing: "swing" }); }), a(window).on("load resize", function() { var b = a(window).height(), c = window.innerWidth ? window.innerWidth : a(window).width(); c >= 992 ? d.removeClass("key-w-s key-w-m").addClass("key-w-l") : c >= 768 ? d.removeClass("key-w-s key-w-l").addClass("key-w-m") : d.removeClass("key-w-m key-w-l").addClass("key-w-s"), d.hasClass("key-w-l") && 750 > b ? d.addClass("key-h-nofix") : d.removeClass("key-h-nofix"); }), a(".sitemap-step1, .sitemap-step2, .sitemap-step3, .sitemap-step4").find(".sitemap-header").append('
'), a(".sitemap-anchor").each(function() { var b = a(this), c = b.parent(".sitemap-header").find(".step"); b.add(c).on("click", function() { return a.smoothScroll({ scrollTarget: "#sitemap", speed: 300 }), !1; }), b.add(c).hover(function() { b.add(c).addClass("hover"); }, function() { b.add(c).removeClass("hover"); }); }); } a(".modal-map .modal-map-body a[data-acode]").each(function() { var b = a(this), c = b.attr("data-acode"); b.attr("href", "/search/?type=AddrL&adcd=" + c); }), a(window).on("resize", function() { hFix('.mod-check-list li p'); }).trigger('resize'); a(document).on("click", function(b) { (a(b.target).hasClass("modal-map") || a(b.target).hasClass("modal-video")) && (a("body").removeClass("modal-open"), a(".modal").removeClass("active")); }), a("#keyvidual .current-position").on("click", function(b) { b.preventDefault(), urchinTracker("/conversion/search"); a("html").hasClass("geolocation") && navigator.geolocation.getCurrentPosition(function(b) { var c = b.coords.latitude, d = b.coords.longitude, e = geo_wgs2jp(c, d), f = geo_ms(e.lat, e.lng); c && d && (location.href = a("html").is(".iphone, .android") ? "http://standard.navitime.biz/sugu-kinen/Gps_forward_UG9zaXRpb25pbmdTZWFyY2guYWN0.act?lon=" + d + "&lat=" + c : "http://standard.navitime.biz/sugu-kinen/AroundSearch.act?plon=" + f.lng + "&plat=" + f.lat); }, function() { alert("位置情報サービスをオンにしてご利用ください"); }); }), a(".openMovie,#linkItem").on("click keypress keydown", function(c) { if (c.preventDefault(), "click" == c.type || 13 == c.keyCode || 32 == c.keyCode) { var d = a(".openMovie,#linkItem"); if (d.length < 1) return !1; var e = a(this).data("c") || !1, f = a(this).data("m") || !1; if (!e || !f) return !1; var g = 640, h = 360, i = d.width(); if ((screen.width < g || window.devicePixelRatio > 1 && screen.width < 2 * g) && (g = g > i ? i : g, h = g > i ? i / g * h : h), null === jstream_t3) { var j = document.createElement("script"); j.type = "text/javascript", j.async = !0, j.src = "https://ssl-cache.stream.ne.jp/www50/eqa475xzcy/jmc_pub/jmc_swf/player/t3/obj.js"; var k = document.getElementsByTagName("script")[0]; k.parentNode.insertBefore(j, k); } jstream_t3.PlayerFactoryOBJ.create({b: "eqa475xzcy.eq.webcdn.stream.ne.jp/www50/eqa475xzcy/jmc_pub/jmc_swf/player/", c: e, m: f, s: {hp: h, wp: g, il: "off", rb: "off", sn: "f,t,m,g"}}, "movieBox"), a(".modal").removeClass("active"), a("#modalVideo").addClass("active") } }); var f, g, h, i = a("#keyvisual .link-library"), j = a("a", i), k = 0, l = 0; if (j.length > 1) { j.addClass("bnr-ad"), a(".special", i).removeClass("bnr-ad"), f = a(".special", i), g = a(".bnr-ad", i), j.css({ display: "none" }), k = Math.floor(Math.random() * f.length), l = Math.floor(Math.random() * g.length); if(f.length > 0){ f.eq(k).css({display: ""}) }else{ g.eq(l).css({display: ""}) } a("img", j).css({visibility: "visible"}), ctrl = a("
", {id: "linkLibCtrl"}); for (var m = 0; 2 > m; m++) btn = a("", { href: "#", "class": "btn btn-" + (0 === m ? "prev" : "next"), tabindex: 2, title: 0 === m ? "prev" : "next" }).append(''), ctrl.append(btn); i.append(ctrl), h = setTimeout(function() { clearTimeout(h), k++, c(); }, 8000); } else 1 == j.length && a("img", j).css({ visibility: "visible" }); var n = 1000, o = new Date().getTime() - n, p = function(q) { if(f.length>0){ o + n <= new Date().getTime() && (o = new Date().getTime(),("next" == q ? (k++,l++) : (k--, l--)), (k =k > g.length - 1 ? 0 : 0 > k ?g.length - 1:k),(l = l > f.length - 1 ? 0 : 0 > l ? f.length - 1:l),c()); }else{ o + n <= new Date().getTime() && (o = new Date().getTime(),("next" == q ? l++ : l--),(l = l > g.length - 1 ? 0 : 0 > l ? g.length - 1:l),c()); } }; a("#linkLibCtrl").on("click", ".btn", function(b) { var val = a(b.target).parent().hasClass("btn-next") ? "next" : "prev"; p(val) }); (function(){ var a = window.location.href; if (a.indexOf("/search/") >= 0) { for (var b = "https://www.e-map.ne.jp", c = b + "/p/kinenmap/", d = c + "search.htm", e = document.location.search.substring(1).split("&"), f = window.navigator.appVersion.toLowerCase(), g = { type: "", adcd: "" }, h, i = 0; i < e.length; i++) p = e[i].split("="), "type" != p[0] && "adcd" != p[0] && (h = c), g[p[0]] = p[1], g.adcd = Number(g.adcd), i == e.length - 1 && (h = "AddrL" != g.type || !g.adcd || g.adcd > 47 || g.adcd < 1 ? c : d + "?type=" + g.type + "&adcd=" + (g.adcd < 10 ? "0" : "") + g.adcd); -1 != f.indexOf("android") || -1 != f.indexOf("iphone") ? (h = h.replace(/(e-map\.ne\.jp)\/p\//, "$1/smt/"), location.href = h) : ($("#ifr")[0].src = h, $(window).on("message", function(a) { a.originalEvent.origin == b ? $("html, body").animate({ scrollTop: 0 }, 0) : $("#ifr")[0].src = h; })); } })(); function hFix(tar){ var arr=[0,0,0,[]]; if(a(tar).length>1){ a(tar).css('height',''); a(tar).each(function(i){ arr[0]!=a(this).offset().top&&(0!=i&&(c(),arr=[0,0,0,[]]),arr[0]=$(this).offset().top,arr[1]++), arr[3].push(i),arr[2]=Math.max(a(this)[0].offsetHeight,arr[2]), a(tar).length-1==i&&c() }); } function c(){ for(var i=0;i