jQuery.noConflict();

function addEventHandler(selector, speed, opacityOut, opacityOver) {

	jQuery(selector).fadeTo(speed,opacityOut);

	jQuery(selector).mouseover(function(event){
		jQuery(this).fadeTo(speed, opacityOver);
	});

	jQuery(selector).mouseout(function(event){
		jQuery(this).fadeTo(speed, opacityOut);
	});
}

function addEventHandler2(selector) {
	jQuery(selector).focus(function(event) {
		jQuery(this).addClass("ipt-focus");
	});
	jQuery(selector).blur(function(event) {
		jQuery(this).removeClass("ipt-focus");
	});

}


jQuery(document).ready(function(){
	//ロールオーバー 透明度60%バージョン
	var selector = ".jroll a img";
	//セレクタ（適用タグ）、スピード、初期透明度、オーバー時透明度
	addEventHandler(selector, 200, 1, 0.6);

	//ロールオーバー完全消去バージョン
	var selector2 = ".jroll2 a img";
	//セレクタ（適用タグ）、スピード、初期透明度、オーバー時透明度
	addEventHandler(selector2, 200, 1, 0);

	var selector3 = ".jrollB input";
	//セレクタ（適用タグ）、スピード、初期透明度、オーバー時透明度
	addEventHandler(selector3, 200, 1, 0.6);

	var selector4 = ".jrollB2 input";
	//セレクタ（適用タグ）、スピード、初期透明度、オーバー時透明度
	addEventHandler(selector4, 200, 1, 0);

	var selector5 = "body.inquiry #contents input.ipt,body.inquiry #contents textarea";
	//フォームのカラーを選択
	addEventHandler2(selector5);

});

