/*************************************************************
	faver.js(basic.js) / fade hover
	
	Derivative Right:	NetRelations - Kenji Hattori
	Version:			1.2 - 2011-03-25
	Version:			1.1 - 2011-03-24
	=======================================================
	Author: NetRelations - Maki Kaneko
	Version: 1.0(2011-03-24)
	-------------------------------------------------------
	Creative Commons 表示 - 継承 3.0
	http://creativecommons.org/licenses/by-sa/3.0/
**************************************************************/
$(document).ready(function(){
	//効果を与えたい要素を指定。複数の場合、「,(半角コンマ)」で区切る。
	//class値(.class)、id値(#id)での設定も可能。
	var faverElement = "a, input.btn_submit";
	
	//指定された要素のdisplay値が「ブロック要素系」ではない場合、「display="inline-block"」を付加
	$(faverElement).each(function(){
		faver = $(this).css("display");
		if(faver != ("block" || "inline-block" || "inline-table" || "list-item" || "run-in" || "table" || "table-cell")){
			$(this).css("display","inline-block");
		}
	});
	
	//画像のフェード
	$(faverElement)
	.mouseover(function() {
        $(this).stop().fadeTo(200, 0.5)
    })
	.mouseleave(function() {
        $(this).stop().fadeTo(300, 1)
    });
});
