var web_mid_left = ""; $(function () { if(web_mid_left == ""){ web_mid_left = $("#web_mid_left").html(); } htmlauto(); }) window.onresize = function(){ htmlauto(); } function htmlauto() { $("#head_m").remove(); $("#m_news").remove(); $("#web_foot_m").remove(); var ww = $(window).width(); if (ww < 640) { //$("body").prepend("
会社概要購入方法個人情報EMS追跡返品返金FAQ
"); $("body").prepend("
"); $("body").append("
"); var web_foot_m_text = $("#web_foot_m_text").html(); if(web_foot_m_text != null || web_foot_m_text != undefined){ $("body").append('
'+$("#web_foot_m_text").html()+'
'); } try{ $("#m_news").html("

 最新情報
"+$("#news").html()); $("#prod_pic_more").html($("#prod_pic_more_text").html()); }catch(e){}; } } function fenlei() { if ($(".fmenu").length > 0) { $(".fmenu").animate({ "left": "-510px" }, function () { $(".fmenu,.zz").remove(); $("html").removeClass("noscroll"); $("body").removeClass("noscroll"); }); } else { if(web_mid_left != null || web_mid_left != undefined){ $(".fmenu,.zz").remove(); $("html").addClass("noscroll"); $("body").addClass("noscroll"); $("body").append("
" + $("#web_mid_left").html() + "
X
"); $("body").eq(0).append("
"); $(".fmenu").height($(window).height()).animate({ "left": "0px" }); $(".zz").on("touchmove",function(){     event.preventDefault(); }); } } } function zhezhao() { if ($(".fmenu").length > 0) { $(".fmenu").animate({ "left": "-510px" }, function () { $(".fmenu,.zz").remove(); $("html").removeClass("noscroll"); $("body").removeClass("noscroll"); }); } else { if (web_mid_left != null || web_mid_left != undefined) { $(".fmenu,.zz").remove(); $("html").addClass("noscroll"); $("body").addClass("noscroll"); $("body").append("
" + $("#web_mid_left").html() + "
X
"); $("body").eq(0).append("
"); $(".fmenu").height($(window).height()).animate({ "left": "0px" }); $(".zz").on("touchmove", function () { event.preventDefault(); }); } } } function atop() { $('html, body').animate({ scrollTop: 0 }, 'slow'); } function abot() { var h = $(document).height() - $(window).height(); $(document).scrollTop(h); } function searchs(){ if($('.search_warp').hasClass("open")){ /* $('.search_warp').slideUp(function(){});*/ $('.search_warp').removeClass("open"); $('.search_warp').css('display', 'none'); } else { /*$('.search_warp').slideDown(function(){});*/ $('.search_warp').addClass("open"); $('.search_warp').css('display', 'block'); }; }