function video(){
	var _d = 700;
	$('.visual').each(function(){
		var _this = $(this)
		var _btn = $('a.btn-video', this);
		var _img = $('img:eq(0)', this);
		var _video = $('.video-block', this);
		var _h = _video.css({display: 'block'}).height();
		_video.css({display: ''});
		_btn.click(function(){
			if(_img.is(':animated')) return false;
			_this.css('height', _this.height());
			_img.fadeOut(_d,function(){
				_btn.hide();
				_this.animate({height: _h},_d,function(){
					_video.show();
				});
			});
			return false;
		})
	})
}


$(document).ready(function(){
	video();
	
	$('.abs-hold').each(function(){
		var _d = 300;
		var _img = $(this).find('img.absimage').css('opacity','0.4');
		var _text = $(this).find('a.img-text').css('opacity','0.5');
		$(this).mouseenter(function(){
			_img.animate({opacity: 0.8},{duration:_d, queue:false});
			_text.animate({opacity: 0.9},{duration:_d, queue:false});
		}).mouseleave(function(){
			_img.animate({opacity: 0.4},{duration:_d, queue:false});
			_text.animate({opacity: 0.5},{duration:_d, queue:false});
		})
	});
});

