/* jQuery Scripts for Index */jQuery.noConflict();jQuery(document).ready(function($){/* List Ticker by Alex Fish // www.alexefish.com//// options://// effect:fade/slide// speed:milliseconds*/(function($){$.fn.list_ticker=function(options){var defaults={speed:4000,effect:'slide'};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);var list=obj.children();list.not(':first').hide(); if(list.length > 1){setInterval(function(){list=obj.children();list.not(':first').hide();var first_li=list.eq(0);var second_li=list.eq(1);if(options.effect == 'slide'){first_li.slideUp();second_li.slideDown(function(){first_li.remove().appendTo(obj);});} else if(options.effect == 'fade'){first_li.fadeOut(function(){second_li.fadeIn();first_li.remove().appendTo(obj);});}},options.speed)}});};})(jQuery);(function($) {var cache=[];$.preLoadImages=function() {var args_len=arguments.length;for (var i=args_len; i--;) {var cacheImage=document.createElement('img');cacheImage.src=arguments[i];cache.push(cacheImage);}}})(jQuery);jQuery.preLoadImages($('#v1Img').attr('src'));/* トップビジュアル */$('#v1').before().append('<div id="vFilter"></div>'); /* << ローディング表示 */$('#slider').nivoSlider({effect:'fold',slices:1,animSpeed:800,pauseTime:5000,directionNavHide:false,controlNav:true,controlNavThumbs:true,controlNavThumbsSearch:'/bnVisual/',controlNavThumbsReplace:'/bnVisual/'}); /* 前後ボタン */$('#slider .nivo-prevNav').css('left','-33px');$('#slider .nivo-nextNav').css('right','-33px');$("#slider").hover(function(){/* << スクリーンにカーソルで前後ボタン出現 */$('#slider .nivo-prevNav').animate({left:'0px'},250,'easeOutQuart');$('#slider .nivo-nextNav').animate({right:'0px'},250,'easeOutQuart');},function(){$('#slider .nivo-prevNav').animate({left:'-33px'},100,'swing');$('#slider .nivo-nextNav').animate({right:'-33px'},100,'swing');});$('#slider .nivo-directionNav a').hover(function(){/* << ボタンオーバー */$(this).fadeTo(250,1);},function () {$(this).fadeTo(100,0.75);});$('#slider img').css({visibility:'visible'});$('#vFilter').delay(750).animate({top:'375px'},{duration:600,easing:'easeInOutQuart',complete:function(){$(this).remove()}});/* サムネイルコントローラ */var cNavWimgs=parseInt($('#slider .nivo-controlNav a:last').attr('rel'));cNavL=-((cNavWimgs+1)*68)-6;cNavW=(-cNavL)+8+'px';$('#slider .nivo-controlNav').css({width:cNavW,left:cNavL-20+'px',opacity:0}).append('<a id="navTrigger" href="javascript:void(\'0\')">&raquo;</a>').delay(1250).animate({left:cNavL+'px',opacity:1},500,'swing');$('#navTrigger').click(function(){if(!$(this).attr('class')){$(this).attr('class','on').html('&laquo;');$('#slider .nivo-controlNav').animate({left:0,opacity:1},500,'easeOutQuint');}else{$(this).removeAttr('class').html('&raquo;');$('#slider .nivo-controlNav').animate({left:cNavL+'px',opacity:1},500,'easeInOutCirc');}});/*ティッカー */$('#ticker').list_ticker({speed:7000,effect:'slide'});/*カルーセル*/function mycarousel_initCallback(carousel){$('a.jcCtrl').bind('click',function(){carousel.scroll(jQuery.jcarousel.intval($(this).text()));return false;});$('#mycarousel-next').bind('click',function(){carousel.next();return false;});$('#mycarousel-prev').bind('click',function(){carousel.prev();return false;});carousel.clip.hover(function(){carousel.stopAuto();},function(){carousel.startAuto();});};function now(carousel,item,idx,state){$('a.jcCtrl').each(function(){if($(this).index()==carousel.first){$(this).addClass('jcNow');}else{$(this).removeClass('jcNow');}});};$(document).ready(function(){$("#mycarousel").jcarousel({auto:5,scroll:1,initCallback:mycarousel_initCallback,buttonNextHTML:null,buttonPrevHTML:null,wrap:'last',animation:600,easing:'easeInOutQuart',start:1,itemVisibleInCallback:{onBeforeAnimation:now}});$(".hrefArea").hover(function(){$(this).animate({top:0,left:0,width:'464px',height:'107px'},150,'swing');},function(){$(this).animate({top:'-3px',left:'-3px',width:'470px',height:'115px'},150,'swing');});});});
