$(document).ready(function(){
         $('.main001 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main002 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main003 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main004 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main005 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main006 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main007 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main008 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main009 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main010 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.main011 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});

$(document).ready(function(){
         $('.service001 a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 500);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 500);});
});


//ロールオーバー

		rollover: function(options) {

			var c = $.extend({

				hoverSelector: '.btn, .allbtn img',

				groupSelector: '.btngroup',

				postfix: '_on'

			}, options);

			//ロールオーバーするノードの初期化

			var rolloverImgs = $(c.hoverSelector).filter(isNotCurrent);

			rolloverImgs.each(function(){

				this.originalSrc = $(this).attr('src');

				this.rolloverSrc = this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'), c.postfix+"$2");

				this.rolloverImg = new Image;

				this.rolloverImg.src = this.rolloverSrc;

			});

			//グループ内のimg要素を指定するセレクタ生成

			var groupingImgs = $(c.groupSelector).find('img').filter(isRolloverImg);



			//通常ロールオーバー

			rolloverImgs.not(groupingImgs).hover(function(){

				$(this).attr('src',this.rolloverSrc);

			},function(){

				$(this).attr('src',this.originalSrc);

			});

			//グループ化されたロールオーバー

			$(c.groupSelector).hover(function(){

				$(this).find('img').filter(isRolloverImg).each(function(){

					$(this).attr('src',this.rolloverSrc);

				});

			},function(){

				$(this).find('img').filter(isRolloverImg).each(function(){

					$(this).attr('src',this.originalSrc);

				});

			});

			//フィルタ用function

			function isNotCurrent(i){

				return Boolean(!this.currentSrc);

			}

			function isRolloverImg(i){

				return Boolean(this.rolloverSrc);

			}



		},



