$(function(){
	//ウィンク効果
	var ua = navigator.userAgent;

	
		$('p.bnr1 a img').hover(function(){
		$(this).css({
			opacity: '0.2',
			filter: 'alpha(opacity=10)'
		});
		$(this).fadeTo('slow',1.0);
	});

	
	$('p.bnr1 a img').hover(function(){
		$(this).css({
			opacity: '1',
			filter: 'alpha(opacity=100)'
		});
	});
	
			$('p.bnr01 a img').hover(function(){
		$(this).css({
			opacity: '0.2',
			filter: 'alpha(opacity=10)'
		});
		$(this).fadeTo('slow',1.0);
	});

	
	$('p.bnr01 a img').hover(function(){
		$(this).css({
			opacity: '1',
			filter: 'alpha(opacity=100)'
		});
	});
	
				$('h1 a img').hover(function(){
		$(this).css({
			opacity: '0.2',
			filter: 'alpha(opacity=10)'
		});
		$(this).fadeTo('slow',1.0);
	});

	
	$('h1 a img').hover(function(){
		$(this).css({
			opacity: '1',
			filter: 'alpha(opacity=100)'
		});
	});
	
	$("dl.news:eq(0)").css('border-top','none');
	
	
	
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();
			if(x > y){
				$(this).css({display:'block'});
var boxY = $(this).height();
				var paddingTop = Math.floor((boxY - y) / 2);
				var height = boxY - paddingTop;
			}
			$(this).css({paddingTop:paddingTop+'px',height:height+'px'});
		});
	}

	
});





