$(document).ready(function(){
	
	$('.slider_block .images').children().ready(function(){
		$('.slider_block .images #img_1').css('display', 'block');
		$('.slider_block .links #link_1').addClass('active');
		$('.slider_block .images').css('background', 'none');
	});
	
	$('.slider_block .links #link_1').click(function(){
		if ($('.slider_block .images img#img_1').css('display') != 'block') {
			$('.slider_block .links a.active').removeClass('active');
			$('.slider_block .links #link_1').addClass('active');
			$('.slider_block .images').children().css('display', 'none');
			$('.slider_block .images img#img_1').css('display', 'block');
			return false;
		}
	})
	
	$('.slider_block .links #link_2').click(function(){
		if ($('.slider_block .images img#img_2').css('display') != 'block') {
			$('.slider_block .links a.active').removeClass('active');
			$('.slider_block .links #link_2').addClass('active');
			$('.slider_block .images').children().css('display', 'none');
			$('.slider_block .images img#img_2').css('display', 'block');
			return false;
		}
	})
	
	$('.slider_block .links #link_3').click(function(){
		if ($('.slider_block .images img#img_3').css('display') != 'block') {
			$('.slider_block .links a.active').removeClass('active');
			$('.slider_block .links #link_3').addClass('active');
			$('.slider_block .images').children().css('display', 'none');
			$('.slider_block .images img#img_3').css('display', 'block');
			return false;
		}
	})
	
});