// iPhoneまたは、Androidの場合は振り分けを判断 
 if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {     if(confirm('一幸舎のサイトへようこそ。このサイトにはスマートフォン用のサイトがあります。表示しますか？')) {         location.href = 'http://www.ikkousha.com/mobile/';     } } 

$(function(){
	$('body :first-child').addClass('firstChild');
	$('body :last-child').addClass('lastChild');
	$('body :empty').addClass('empty');
	$('body :only-child').removeClass('firstChild');
	$('body :only-child').removeClass('lastChild');
	$('body :only-child').addClass('onlyChild');
	$('.fade a img,#gNav2 a img,#shop .parent2 .photo img,#foreign .parent1 .photo img').hover(function() {
        $(this).stop().fadeTo(330,0.7);
    }, function() {
        $(this).stop().fadeTo(330,1);
  });
	$('#gNav1 a img').hover(function() {
        $(this).stop().fadeTo(500,0.3);
    }, function() {
        $(this).stop().fadeTo(500,1);
  });
	$('.blend a').css('cursor','pointer').blend();
	$('.fade a img,#news .parent1 .tb01 a img').hover(function() {
        $(this).stop().fadeTo(500,0.7);
    }, function() {
        $(this).stop().fadeTo(500,1);
  });
	$('.breadcrumb a').after('&nbsp;&nbsp;&gt;&nbsp;&nbsp;')
	$('.blend a').css('cursor','pointer').blend();
	$('a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_ro.', '_ro_f2.'));
			}, function(){
				 if (!$(this).hasClass('currentPage')) {
				 $(this).attr('src', $(this).attr('src').replace('_ro_f2.', '_ro.'));
		}
	});
	$('#shop .parent2 .photo li,#foreign .parent1 .photo li').mouseover(function(){
		$(this).closest('ul').css('backgroundImage','url(' + $(this).children('img').attr('src') + ')')
	});
});
