/**
 * @author kevin
 */

$(document).ready( function() {
	if ($.browser.msie) {
		Recent.ie_init();
	}
	else {
		Recent.init();
	}
});

var Recent = {
	speed: 80,
	init: function() {
		$('#project1').hover( function() {
			$('#project1 a img').fadeIn( Recent.speed );
		}, function() {
			$('#project1 a img').fadeOut( Recent.speed );
		} );
		$('#project2').hover( function() {
			$('#project2 a img').fadeIn( Recent.speed );
		}, function() {
			$('#project2 a img').fadeOut( Recent.speed );
		} );
		$('#project3').hover( function() {
			$('#project3 a img').fadeIn( Recent.speed );
		}, function() {
			$('#project3 a img').fadeOut( Recent.speed );
		} );
		$('#project4').hover( function() {
			$('#project4 a img').fadeIn( Recent.speed );
		}, function() {
			$('#project4 a img').fadeOut( Recent.speed );
		} );
	},
	ie_init: function() {
		$('#project1').hover( function() {
			$('#project1 a img').css( { display:'block' } );
		}, function() {
			$('#project1 a img').css( { display:'none' } );
		} );
		$('#project2').hover( function() {
			$('#project2 a img').css( { display:'block' } );
		}, function() {
			$('#project2 a img').css( { display:'none' } );
		} );
		$('#project3').hover( function() {
			$('#project3 a img').css( { display:'block' } );
		}, function() {
			$('#project3 a img').css( { display:'none' } );
		} );
		$('#project4').hover( function() {
			$('#project4 a img').css( { display:'block' } );
		}, function() {
			$('#project4 a img').css( { display:'none' } );
		} );
	}
};