(function($){ window.applicationBanners = { type:null ,os_type:null ,mode:null ,image_dom:null ,URLs_visa:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.classic' ,"appstore":'https://itunes.apple.com/jp/app/eposukadovisao-shenshi-rumi/id880064490?l=ja&ls=1&mt=8' } ,URLs_sdx:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.sdx' ,"appstore":'https://itunes.apple.com/jp/app/shidakkusueposukadoo-shenshi/id705806215?l=ja&ls=1&mt=8' } ,URLs_big:{ "googleplay":'https://lifeapp.onelink.me/uFDL?pid=QR&c=N&af_adset=889&af_ad=9999&is_retargeting=true' ,"appstore":'https://lifeapp.onelink.me/uFDL?pid=QR&c=N&af_adset=889&af_ad=9999&is_retargeting=true' } ,URLs_apa:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.apa' ,"appstore":'https://itunes.apple.com/jp/app/apaeposuvisakadoo-shenshi/id831330782?l=ja&ls=1&mt=8' } ,URLs_otm:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.otomate' ,"appstore":'https://itunes.apple.com/jp/app/otomeitoeposukadoo-shenshi/id899995480?l=ja&ls=1&mt=8' } ,URLs_sbh:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.clubhawks' ,"appstore":'https://itunes.apple.com/jp/app/kurabuhokusueposukadoo-shenshi/id956464603?mt=8' } ,URLs_capcom:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.capcom' ,"appstore":'https://itunes.apple.com/jp/app/kapukoneposukadoo-shenshi/id1034282077?l=ja&ls=1&mt=8' } ,URLs_modi:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.modi' ,"appstore":'https://itunes.apple.com/jp/app/modieposukadoo-shenshi-rumi/id1051611183?l=ja&ls=1&mt=8' } ,URLs_unimo:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.unimo' ,"appstore":'https://itunes.apple.com/jp/app/unimochihara-taieposukadoo/id1051984696?l=ja&ls=1&mt=8' } ,URLs_tachibana:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.bonbelta' ,"appstore":'https://itunes.apple.com/jp/app/jueposukadoo-shenshi-rumi/id1073845555?l=ja&ls=1&mt=8' } ,URLs_ktg:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.koei' ,"appstore":'https://itunes.apple.com/jp/app/koetekumogemusueposukadoo/id1088724958?l=ja&ls=1&mt=8' } ,URLs_rera:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.rera' ,"appstore":'https://itunes.apple.com/jp/app/reraeposukadoo-shenshi-rumi/id1096994675?l=ja&ls=1&mt=8' } ,URLs_kithkt:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.kitte' ,"appstore":'https://itunes.apple.com/jp/app/kitte-bo-duoeposukadoo-shenshi/id1096995460?l=ja&ls=1&mt=8' } ,URLs_aspia:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.aspia' ,"appstore":'https://itunes.apple.com/jp/app/asupia-ming-shieposukadoo/id1158821867?l=ja&ls=1&mt=8' } ,URLs_otsuka:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.otsuka' ,"appstore":'https://itunes.apple.com/jp/app/idc-otsuka-eposukadoo-shenshi/id1166757759?l=ja&ls=1&mt=8' } ,URLs_mlgksw:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.mallagekashiwa' ,"appstore":'https://itunes.apple.com/jp/app/moraju-baieposukadoo-shenshi/id1194849476?l=ja&ls=1&mt=8' } ,URLs_feeeal:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.feeeal' ,"appstore":'https://itunes.apple.com/jp/app/firueposukadoo-shenshi-rumi/id1201628905?l=ja&ls=1&mt=8' } ,URLs_hoshigaoka:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.hoshigaoka' ,"appstore":'https://itunes.apple.com/jp/app/xingga-qiukado-eposuo-shenshi/id1201628913?l=ja&ls=1&mt=8' } ,URLs_elm:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.elm' ,"appstore":'https://itunes.apple.com/jp/app/id1222477821?l=ja&ls=1&mt=8' } ,URLs_gintama:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.gintama' ,"appstore":'https://itunes.apple.com/jp/app/id1231930150?l=ja&ls=1&mt=8' } ,URLs_godzilla:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.godzilla' ,"appstore":'https://itunes.apple.com/jp/app/id1280189969?l=ja&ls=1&mt=8' } ,URLs_hmv:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.hmv' ,"appstore":'https://itunes.apple.com/jp/app/id1291829793?l=ja&ls=1&mt=8' } ,URLs_can:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.cancan' ,"appstore":'https://itunes.apple.com/jp/app/id1341534230?l=ja&ls=1&mt=8' } ,URLs_kitmar:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.kittemaru' ,"appstore":'https://itunes.apple.com/jp/app/id1349626892?l=ja&ls=1&mt=8' } ,URLs_shinteni:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.shinteni' ,"appstore":'https://itunes.apple.com/jp/app/id1356879020?l=ja&ls=1&mt=8' } ,URLs_nitto:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.nitto' ,"appstore":'https://itunes.apple.com/jp/app/id1356879020?l=ja&ls=1&mt=8' } ,URLs_tiara:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.tiara' ,"appstore":'https://itunes.apple.com/jp/app/id1356879020?l=ja&ls=1&mt=8' } ,URLs_pieri:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.pieri' ,"appstore":'https://itunes.apple.com/jp/app/id1356879020?l=ja&ls=1&mt=8' } ,URLs_sonokano:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.sonokano' ,"appstore":'https://itunes.apple.com/us/app/id1434790680?l=ja&ls=1&mt=8' } ,URLs_precure:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.precure' ,"appstore":'https://itunes.apple.com/us/app/id1434791172?l=ja&ls=1&mt=8' } ,URLs_fatesn:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.fate' ,"appstore":'https://itunes.apple.com/jp/app/id1446234966?l=ja&ls=1&mt=8' } ,URLs_ikemen:{ "googleplay":'https://play.google.com/store/apps/details?id=jp.co.eposcard.cardapply.ikemen' ,"appstore":'https://itunes.apple.com/jp/app/id1447452613?l=ja&ls=1&mt=8' } ,STOREs:{ "googleplay":'Google Play' ,"appstore":'App Store' } ,init:function(){ if(navigator.userAgent.match(/(iPhone|iPod|iPad)/)!==null){ _this.type="appstore" _this.os_type="iOS"; } else if(navigator.userAgent.match(/Android/)!==null){ _this.type="googleplay" _this.os_type="Android"; }; } ,set:function(mode,size){ _this.mode = mode; if(_this.type===null) return null; var sizeSuffix = ""; switch(size !== undefined && size.type !== null){ case true: sizeSuffix = "_" + size; break } switch(_this.mode){ case "cardapply": _this.image_dom = new Image(); _this.image_dom.src = "/smp/cardapply/img/storebnr/banner_" + _this.mode + "_" + _this.type + sizeSuffix + ".png"; break; default: }; $(_this.load); } ,load:function(){ switch(_this.mode){ case "cardapply": $(".cardapply_visa a").attr("href",_this.URLs_visa[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_visa');") .append(_this.image_dom); $(".cardapply_sdx a").attr("href",_this.URLs_sdx[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_shidax');") .append(_this.image_dom); $(".cardapply_big a").attr("href",_this.URLs_big[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_bigecho');") .append(_this.image_dom); $(".cardapply_apa a").attr("href",_this.URLs_apa[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_apa');") .append(_this.image_dom); $(".cardapply_otm a").attr("href",_this.URLs_otm[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_otomate');") .append(_this.image_dom); $(".cardapply_sbh a").attr("href",_this.URLs_sbh[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_sbh');") .append(_this.image_dom); $(".cardapply_capcom a").attr("href",_this.URLs_capcom[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_capcom');") .append(_this.image_dom); $(".cardapply_modi a").attr("href",_this.URLs_modi[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_modi');") .append(_this.image_dom); $(".cardapply_unimo a").attr("href",_this.URLs_unimo[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_unimo');") .append(_this.image_dom); $(".cardapply_tachibana a").attr("href",_this.URLs_tachibana[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_tachibana');") .append(_this.image_dom); $(".cardapply_ktg a").attr("href",_this.URLs_ktg[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_ktg');") .append(_this.image_dom); $(".cardapply_rera a").attr("href",_this.URLs_rera[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_rera');") .append(_this.image_dom); $(".cardapply_kithkt a").attr("href",_this.URLs_kithkt[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_kithkt');") .append(_this.image_dom); $(".cardapply_aspia a").attr("href",_this.URLs_aspia[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_aspia');") .append(_this.image_dom); $(".cardapply_otsuka a").attr("href",_this.URLs_otsuka[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_otsuka');") .append(_this.image_dom); $(".cardapply_mlgksw a").attr("href",_this.URLs_mlgksw[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_mlgksw');") .append(_this.image_dom); $(".cardapply_feeeal a").attr("href",_this.URLs_feeeal[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_feeeal');") .append(_this.image_dom); $(".cardapply_hoshigaoka a").attr("href",_this.URLs_hoshigaoka[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_hoshigaoka');") .append(_this.image_dom); $(".cardapply_elm a").attr("href",_this.URLs_elm[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_elm');") .append(_this.image_dom); $(".cardapply_gintama a").attr("href",_this.URLs_gintama[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_gintama');") .append(_this.image_dom); $(".cardapply_godzilla a").attr("href",_this.URLs_godzilla[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_godzilla');") .append(_this.image_dom); $(".cardapply_hmv a").attr("href",_this.URLs_hmv[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_hmv');") .append(_this.image_dom); $(".cardapply_can a").attr("href",_this.URLs_can[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_can');") .append(_this.image_dom); $(".cardapply_kitmar a").attr("href",_this.URLs_kitmar[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_kitmar');") .append(_this.image_dom); $(".cardapply_shinteni a").attr("href",_this.URLs_shinteni[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_shinteni');") .append(_this.image_dom); $(".cardapply_nitto a").attr("href",_this.URLs_nitto[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_nitto');") .append(_this.image_dom); $(".cardapply_tiara a").attr("href",_this.URLs_tiara[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_tiara');") .append(_this.image_dom); $(".cardapply_pieri a").attr("href",_this.URLs_pieri[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_pieri');") .append(_this.image_dom); $(".cardapply_sonokano a").attr("href",_this.URLs_sonokano[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_sonokano');") .append(_this.image_dom); $(".cardapply_precure a").attr("href",_this.URLs_precure[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_precure');") .append(_this.image_dom); $(".cardapply_fatesn a").attr("href",_this.URLs_fatesn[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_fatesn');") .append(_this.image_dom); $(".cardapply_ikemen a").attr("href",_this.URLs_ikemen[_this.type]).attr("onClick","var s=s_gi(s_account); s.tl(this,'o','cardapply_" + _this.os_type + "_ikemen');") .append(_this.image_dom); break; default: }; } } var _this = applicationBanners; _this.init(); })(jQuery);