$(function() {

// Set start opacity
$('.blockHome').children('div').css('opacity','1');
$('.menuSelect').css('opacity','0');
$('.img h3').css('opacity','0.7');

var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer") {

	$('#blockHomeLeft').mouseenter(function () {
		// Set opacity block right
		$('#blockHomeRight .logo').animate({opacity: 0.2}, 300 );
		$('#blockHomeRight .enter').animate({opacity: 0.2}, 300 );
		$('#blockHomeRight .article img').animate({opacity: 0.2}, 300 );
		$('#blockHomeRight .newsItemContentHome').animate({opacity: 0.2}, 300 );
		$('#blockHomeRight .img h3').animate({opacity: 0.2}, 300 );
		$('#blockHomeRight .newsItemContentHome h3').animate({opacity: 0.2}, 300 );

		// Navigation arrows
		$('#blockHomeLeft .menuSelect').animate({opacity: 1}, 300 );
		$('#blockHomeRight .menuSelect').animate({opacity: 0}, 300 );

		// Reset opacity block left
		$('#blockHomeLeft .logo').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .enter').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .article img').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .newsItemContentHome').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .img h3').animate({opacity: 0.7}, 300 );
		$('#blockHomeLeft .newsItemContentHome h3').animate({opacity: 1}, 300 );
	});

	$('#blockHomeRight').mouseenter(function () {
		// Set opacity block left
		$('#blockHomeLeft .logo').animate({opacity: 0.2}, 300 );
		$('#blockHomeLeft .enter').animate({opacity: 0.2}, 300 );
		$('#blockHomeLeft .article img').animate({opacity: 0.2}, 300 );
		$('#blockHomeLeft .newsItemContentHome').animate({opacity: 0.2}, 300 );
		$('#blockHomeLeft .img h3').animate({opacity: 0.2}, 300 );
		$('#blockHomeLeft .newsItemContentHome h3').animate({opacity: 0.2}, 300 );

		// Navigation arrows
		$('#blockHomeRight .menuSelect').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .menuSelect').animate({opacity: 0}, 300 );

		// Reset opacity block right
		$('#blockHomeRight .logo').animate({opacity: 1}, 300 );
		$('#blockHomeRight .enter').animate({opacity: 1}, 300 );
		$('#blockHomeRight .article img').animate({opacity: 1}, 300 );
		$('#blockHomeRight .newsItemContentHome').animate({opacity: 1}, 300 );
		$('#blockHomeRight .img h3').animate({opacity: 0.7}, 300 );
		$('#blockHomeRight .newsItemContentHome h3').animate({opacity: 1}, 300 );
	});

	// Reset all
	$('#wrap').mouseleave(function () {
		$('.blockHome .logo').animate({opacity: 1}, 300 );
		$('.blockHome .enter').animate({opacity: 1}, 300 );
		$('.blockHome .article img').animate({opacity: 1}, 300 );
		$('.blockHome .newsItemContentHome').animate({opacity: 1}, 300 );
		$('.blockHome .postDateHome').animate({opacity: 1}, 300 );
		$('.blockHome .img h3').animate({opacity: 0.7}, 300 );
		$('.blockHome .newsItemContentHome h3').animate({opacity: 1}, 300 );
		$('.blockHome .menuSelect').animate({opacity: 0}, 300 );
	});

}

else {

	$('#blockHomeLeft').mouseenter(function () {
		// Set opacity block right
		$('#blockHomeRight').children('div').animate({opacity: 0.2}, 300 );

		// Navigation arrows
		$('#blockHomeLeft .menuSelect').animate({opacity: 1}, 300 );
		$('#blockHomeRight .menuSelect').animate({opacity: 0}, 300 );

		// Set opacity block left
		$('#blockHomeLeft').children('div').animate({opacity: 1}, 300 );
	});

	$('#blockHomeRight').mouseenter(function () {
		// Set opacity block left
		$('#blockHomeLeft').children('div').animate({opacity: 0.2}, 300 );

		// Navigation arrows
		$('#blockHomeRight .menuSelect').animate({opacity: 1}, 300 );
		$('#blockHomeLeft .menuSelect').animate({opacity: 0}, 300 );

		// Set opacity block right
		$('#blockHomeRight').children('div').animate({opacity: 1}, 300 );
	});

	// Reset all
	$('#wrap').mouseleave(function () {
		$('.blockHome').children('div').animate({opacity: 1}, 300 );
		$('.blockHome .menuSelect').animate({opacity: 0}, 300 );
	});
}

});