$(function() {

	$(".all_reviews").click(function(){
		$(this).siblings().removeClass('active');
		$(this).addClass('active');
		$('.dev_review').show();
		$('.owner_review').show();
		return false;
	});

	$(".devs_reviews").click(function(){
		$(this).siblings().removeClass('active');
		$(this).addClass('active');
		$('.dev_review').show();
		$('.owner_review').hide();
		return false;
	});
	
	$(".owners_reviews").click(function(){
		$(this).siblings().removeClass('active');
		$(this).addClass('active');
		$('.owner_review').show();
		$('.dev_review').hide();
		return false;
	});
});



jQuery(document).ready(function(){
	/*not delete!!! it's important list gallery*/
	jQuery('a.module_gallery_fancybox img.png, a.module_gallery_fancybox img.img_right').click(function(){
		jQuery(this).parent().fancybox();
	});

    jQuery('a.fancytub').fancybox(); 
	
	jQuery("a[rel=example_group], a[rel=module_gallery]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	/*not delete!!! it's important list gallery*/

	jQuery(function() {
		jQuery(".slider_jcarusel").jCarouselLite({
			btnNext: ".primery_arrow_r",
			btnPrev: ".primery_arrow_l",
			visible: 1,
			speed: 100
		});
	});
	
	jQuery(function() {
		jQuery(".slider_jcarusel_cloud").jCarouselLite({
			btnNext: ".primery_arrow_r",
			btnPrev: ".primery_arrow_l",
			visible: 3,
			speed: 100
		});
	});
	jQuery('.slider_up_to').click(function() {
		jQuery(this).children().toggle();
		jQuery(this).prev().slideToggle('slow');
	});
});

jQuery(window).ready(function(){
	jQuery(window).resize(function(){
			$('.width_parametr_vnedreniya').css({
				position:'relative',
				left: (($('#main').width() - 15) - ($('.vnedreniya_numpage').outerWidth()))/2
			});
		});
	jQuery(window).resize();
});
