$(function(){$('a[href^="#"]').click(function(){var speed=500;var href=$(this).attr("href");var target=$(href=="#"||href==""?'html':href);var position=target.offset().top;$("html, body").animate({scrollTop:position},speed,"swing");return false;});});$(function(){if(navigator.userAgent.indexOf("MSIE")!=-1){$('img').each(function(){if($(this).attr('src').indexOf('.png')!=-1){$(this).css({'filter':'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+$(this).attr('src')+'", sizingMethod="scale");'});}});}}); /* -------------------------------------------------- 検索メニュー -------------------------------------------------- */ $(function(){ $(".btn_openclose").on("click", function() { $(this).prev().slideToggle(); $(this).toggleClass("active"); }); }); /* -------------------------------------------------- 要素移動 -------------------------------------------------- */ /* $(function() { var bodyObj = $('body'); var deviceWidth = $('#page').width(); var smartFlg = (deviceWidth <= 640); if(!modelChangeCookie && smartFlg) { $('#google_translate_element').after($('.language_menu')); } }); */