/*-----同時使用-----*/
/*-------------------------------------------------------------------------------*/


jQuery.noConflict();
jQuery(document).ready(function($){
	});

	/*
	jQueryとprototype.jsと同時に使う。
	対象Htmlにおいて呼び出し順を必ずjQueryが後になるようにする。
	$()の箇所をjQuery()に置きかえる。
	*/


/*-----slide()-----*/
/*-------------------------------------------------------------------------------*/


jQuery(function(){

	/*ヘッダーメニュー*/
	/*備忘録：「hide()」はすぐに隠す。「show()」はすぐに出す。*/

	jQuery("div.hm01 ul.hmul ul.sub").hide();
	jQuery("div.hm01 ul.hmul li.hmli").hover(function(){
		jQuery("ul.sub",this).slideDown("fast")
		},function(){
		jQuery("ul.sub",this).slideUp("fast");
		});



	jQuery("div.hm02 ul.hmul ul.sub").hide();
	jQuery("div.hm02 ul.hmul li.hmli").hover(function(){
		jQuery("ul.sub",this).slideDown("fast")
		},function(){
		jQuery("ul.sub",this).slideUp("fast");
		});



	/*クリックで表示、非表示*/

	jQuery(".hides").hide();

	jQuery(".find01",".seg").click(function(){
		jQuery(".hide01",".seg").slideToggle("fast");
		});

	jQuery(".find02",".seg").click(function(){
		jQuery(".hide02",".seg").slideToggle("fast");
		});
	})


/*-----ロールオーバー-----*/
/*-------------------------------------------------------------------------------*/


jQuery(function(){
    jQuery("img.rollover").mouseover(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    }).mouseout(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        jQuery("<img>").attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    })
})


