$(function(){ var Hash = location.hash.replace("#",""); var Html = location.pathname.split("/").slice(-1)[0].replace(".html",""); if(Html == "flow" && Hash!=""){ $(".select_flow").removeClass("select_flow"); $(".flow_type [rel="+Hash+"]").addClass("select_flow"); $("#flow li."+Hash).show(function(){ var TT=$(".flow_type .select_flow").text(); $(".flow_step li[rel=step1] h3").text(TT+"のご依頼"); var Se=$(".flow_step li[rel=step1]").offset().top; var Sh=$(".flow_step li[rel=step1] .flow_text").height(); $('html,body').animate({ scrollTop: Se+Sh },500); }); }else if(Html == "contact" && Hash!=""){ $("#contact li.active").removeClass("active"); $("#contact li[rel=order]").addClass("active"); $("#contact_form").animate({scrollLeft:$("#order").offset().left},100,function(){ $("select[name=o_typ]").val("od_"+Hash); $("#order dl:not(.od_dtl),.od_02,.od_03").slideUp(); $(".od_"+Hash).slideDown(); if(Hash=="easy" || Hash=="ute" || Hash=="shorts" || Hash=="live"){ $(".od_"+Hash+" .od_01").slideDown(); } }); } }); /* * * * * * * * * * * * * * * * * * * * * Ⓒwebstudio WhitePallet * * * * * * * * * * * * * * * * * * * * */