//アコーディオン// document.write(unescape('%3Cstyle type="text/css"%3Ediv.accordion div.mini_m{display: none;}%3C/style%3E')); equalheight = function(container){ var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; $(container).each(function() { $el = $(this); $($el).height('auto') topPostion = $el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array currentRowStart = topPostion; currentTallest = $el.height(); rowDivs.push($el); } else { rowDivs.push($el); currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); } for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } }); } $(function(){ $("#accordion_sp01").click(function(){ $('#accordion_sp02_in').fadeOut(); $('#accordion_sp01_in').slideToggle("fast"); }); $("#accordion_sp02").click(function(){ $('#accordion_sp01_in').fadeOut(); $('#accordion_sp02_in').slideToggle("fast"); }); $('#accordion_sp03').on('click',function(){ if($(this).hasClass('accordion_on')){ var is01 = '01'; $(this).removeClass('accordion_on'); }else{ var is01 = '02'; $(this).addClass('accordion_on'); } $(this).children('img').attr('src','images/arrow_sp'+is01+'.png') $(this).next().slideToggle("fast"); }); $(".fittext1").fitText(2.5, { minFontSize: '7px', maxFontSize: '16px' }); $(".box04_inner dl, .box05_list, .box06_list").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); window.onload = function() { $(".left2").css({ height: (($(".left1").outerHeight()) ), }); equalheight('.point_main dl'); }; $( window ).resize(function() { $(".left2").css({ height: (($(".left1").outerHeight()) ), }); equalheight('.point_main dl'); }); $('a[href^=#]').click(function() { var speed = 900; var href= $(this).attr("href"); var target = $(href == "#" || href == "" ? 'html' : href); var position = target.offset().top; $('body,html').animate({scrollTop:position}, speed, 'swing'); return false; }); }); //イメージスライド// $(function () { $(".rslides").responsiveSlides(); }); //rollover // $(function () { // $('a img').each(function(){ // var imgSrc = $(this).attr('src'); // //画像がonの時notクラスを付ける // if(imgSrc.match(/(.*)_on(\..*)/)){ // $(this).attr('class','not'); // } // //smartRollover // if(imgSrc.match(/(.*)_off(\..*)/)){ // var repSrc = RegExp.$1+'_on'+RegExp.$2; // $('').attr('src',repSrc); // $(this).hover(function(){ // $(this).attr('src',repSrc); // $(this).css({opacity: '1',filter: 'alpha(opacity=100)'}); // },function(){ // $(this).attr('src',imgSrc); // }); // //ロールオーバーが無い場合は、透明度80% // }else if(!$(this).hasClass('not')){ // $(this).hover(function(){ // $(this).css({ // opacity: '0.8', // filter: 'alpha(opacity=80)' // }); // },function(){ // $(this).css({ // opacity: '1', // filter: 'alpha(opacity=100)' // }); // }); // } // }); // }); // $(window).load(function() { // equalheight('.top_logo li'); // }); // $(window).resize(function(){ // equalheight('.top_logo li'); // });