$(function(){
	//ウィンク効果
	var ua = navigator.userAgent;

	
	$('#head h2 a img').hover(function(){
		$(this).css({
			opacity: '0.2',
			filter: 'alpha(opacity=10)'
		});
		$(this).fadeTo('slow',1.0);
	});

	
	$('#head h2 a img').hover(function(){
		$(this).css({
			opacity: '1',
			filter: 'alpha(opacity=100)'
		});
	});
	
	$('#head h1 a img').hover(function(){
		$(this).css({
			opacity: '0.2',
			filter: 'alpha(opacity=10)'
		});
		$(this).fadeTo('slow',1.0);
	});

	
	$('#head h1 a img').hover(function(){
		$(this).css({
			opacity: '1',
			filter: 'alpha(opacity=100)'
		});
	});

	
	
	
if(ua.indexOf('IE 6') > -1 || ua.indexOf('IE 7') > -1){
		//サムネールを内包する、.table-cell内で、display:table-cell;vertical-align:middle;のように表示する
		$('.table-cell').each(function(){
			var x = $('img',this).width();
			var y = $('img',this).height();
			
				$(this).css({display:'block'});
				var boxY = $(this).height();
				var rePadding = Math.floor((boxY - y) / 2);
				var reHeight = boxY - rePadding;
				$(this).css({paddingTop:rePadding+'px',height:reHeight+'px'});
			
		});
	}
	
	$('p.send').mouseover(function(){
			$('#send').attr('src','images/send_on.jpg');					   
		});
	$('p.send').mouseout(function(){
			$('#send').attr('src','images/send.jpg');					   
		});

	
});





