function swap(){
	var f7 = document.getElementById("f7");
	var f6 = document.getElementById("f6");
	if (f7.style.visibility == 'hidden') {
		f7.style.visibility = 'visible';
		f6.style.visibility = 'hidden';
	} else {
		f7.style.visibility = 'hidden';
		f6.style.visibility = 'visible';
	}
}
$(document).ready(function(){
	$('#about_ru').click(function()
	{
		if ($('#about_text_en').css('display') != 'none')
		{
			$('#about_text_en').animate({opacity: 'toggle',height: 'toggle'}, 500);
		}
		  $('#about_text_ru').animate({
		    opacity: 'toggle',
		    height: 'toggle'
		  }, 800, function() {
		    // Animation complete.
			  //alert($('#about_text_ru').css('display'));
		  });
	});
	$('#about_en').click(function()
	{
		if ($('#about_text_ru').css('display') != 'none')
		{
			$('#about_text_ru').animate({opacity: 'toggle',height: 'toggle'}, 500);
		}
		  $('#about_text_en').animate({
		    opacity: 'toggle',
		    height: 'toggle'
		  }, 800, function() {
		    // Animation complete.
			  //alert($('#about_text_ru').css('display'));
		  });
	});
	$('.close_about').click(function()
	{
		if ($('#about_text_ru').css('display') != 'none')
		{
			$('#about_text_ru').animate({opacity: 'toggle',height: 'toggle'}, 500);
		}
		if ($('#about_text_en').css('display') != 'none')
		{
			$('#about_text_en').animate({opacity: 'toggle',height: 'toggle'}, 500);
		}
	});
});