$(document).ready(function() {
	
	$(".enter-to-site").click(function(){
		$(".hidden-login").animate( { top:"50%" }, { duration:500 } );
		$(".hidden-body").show("slow");
	});
	
	$(".login-close").click(function(){
		$(".hidden-login").animate( { top:"-100%" } );
		$(".hidden-body").hide("slow");
	});
	
	$(".eerwer img:first-child").addClass("first-img");
	
	$(".hover-more").hover(
		function() {
			$(this).find(".news-item-more a").animate({			
				marginLeft: "-30px"
			  }, 100 );
			
		}, function() {
			$(this).find(".news-item-more a").animate({			
				marginLeft: "0px"
			  }, 200 );
	});
	
	$(".anons-film").hover(
		function() {
			$(this).find(".anons-film-content-category").animate({			
				bottom: "0px"
			  }, 400 );
			
		}, function() {
			$(this).find(".anons-film-content-category").animate({			
				bottom: "-20px"
			  }, 100 );
	});
	
	$("a, img, div").easyTooltip();
	
	$("ul.comments-tabs").tabs("div.comments-panes > div");
	
	$(".tt-slider-bottom").scrollable();
	
	$('.tt-slider-big-preview:first').addClass('tt-slider-big-preview-active');
	$('.tt-slider-top:first').fadeIn(0);
	
	$('.tt-slider-big-preview-active').next('.tt-slider-top').find('.tt-slider-inner-title:first').addClass('tt-slider-inner-title-active');
	$('.tt-slider-inner-title-active').next('.tt-slider-inner-content').fadeIn();
	
	$('.tt-slider-big-preview').click(
		function() {
			$('.tt-slider-big-preview').removeClass('tt-slider-big-preview-active');
			$(this).addClass('tt-slider-big-preview-active');
			$('.tt-slider-top').fadeOut(0);
			$(this).next('.tt-slider-top').fadeIn(0);
			$('.tt-slider-inner-title').removeClass('tt-slider-inner-title-active');
			$('.tt-slider-inner-content').fadeOut(0);
			$(this).next('.tt-slider-top').find('.tt-slider-inner-title:first').addClass('tt-slider-inner-title-active');
			$('.tt-slider-inner-title-active').next('.tt-slider-inner-content').fadeIn();
		}
	);
	
	$('.tt-slider-inner-title').click(
		function() {
			$('.tt-slider-inner-content').fadeOut(0);
			$('.tt-slider-inner-title').removeClass('tt-slider-inner-title-active');
			$(this).next('.tt-slider-inner-content').fadeIn();
			$(this).addClass('tt-slider-inner-title-active')
		}
	);
	
});

