jQuery(function(){
    var $ = jQuery;
	
	$("img[src*='_on']").addClass("current");
	$("img,input").mouseover(function(){
		if ($(this).attr("src")){
			$(this).attr("src",$(this).attr("src").replace("_off.", "_on."));
		}
	});
	$("img[class!='current'],input").mouseout(function(){
		if ($(this).attr("src")){
		  if($(this).attr("class") != 'triover current'){
			$(this).attr("src",$(this).attr("src").replace("_on.", "_off."));
		  }
		}
	});
	
	$('.rollover').mouseover(function(){
		var source = $(this).find('.imgover').attr("src");
		if (source){
			$(this).find('.imgover').attr("src",source.replace("off.jpg","on.jpg"));
		}
		$(this).find('.tri').show();
	})
	
	$('.rollover').mouseout(function(){
		var source = $(this).find('.imgover').attr("src");
		if (source){
			$(this).find('.imgover').attr("src",source.replace("on.jpg","off.jpg"));
		}
		$(this).find('.tri').hide();
	})
	
	$('.rollover').mouseenter(function(){
      var source = $(this).find('.imgover').attr("src");
		if (source){
          $(this).find('.subNavi').show()
		}
	})
	
	
	$('.rollover').mouseleave(function(){
      var source = $(this).find('.imgover').attr("src");
		if (source){									   
          $(this).find('.subNavi').hide()
		}
	})
	
	// ▼新メニューロールオーバー //
	
	
	$('#rollover_series').mouseenter(function(){
      var source = $(this).find('.imgover').attr("src");
		if (source){
          $(this).find('.subNavi2').show()
		}
	})
	
	
	$('#rollover_series').mouseleave(function(){
      var source = $(this).find('.imgover').attr("src");
		if (source){									   
          $(this).find('.subNavi2').hide()
		}
	})
	

})

