jQueryM(document).ready(function() {
	$('.small_photo  A').click(function(){
		var big_img=$(this).attr('name');
		var tn=$(this).attr('para');
		$('#bgg_img').fadeOut('slow',
			function(){
				$('.big A').html(tn);
				
				$('#bgg_img').attr('src','assets/images/oborudovanie/'+big_img);
				$('#bgg_img').fadeIn('slow');
			});
    	return false;
	});								 
								 
	$('.ch_pic1').click(function(){
		var mim=$(this).attr("name");
		$('#bgg_img1').fadeOut('slow',function(){
			$('#bgg_img1').attr('src',mim);
			$('#bgg_img1').fadeIn('slow');
		});
		return false;
    });
	$('.ch_pic2').click(function(){
		var mim=$(this).attr("name");
		$('#bgg_img2').fadeOut('slow',function(){
			$('#bgg_img2').attr('src',mim);
			$('#bgg_img2').fadeIn('slow');
		});
		return false;
    });
	$('.ch_pic3').click(function(){
		var mim=$(this).attr("name");
		$('#bgg_img3').fadeOut('slow',function(){
			$('#bgg_img3').attr('src',mim);
			$('#bgg_img3').fadeIn('slow');
		});
		return false;
    });
	$('.ch_pic4').click(function(){
		var mim=$(this).attr("name");
		$('#bgg_img4').fadeOut('slow',function(){
			$('#bgg_img4').attr('src',mim);
			$('#bgg_img4').fadeIn('slow');
		});
		return false;
    });
	$('.ch_pic5').click(function(){
		var mim=$(this).attr("name");
		$('#bgg_img5').fadeOut('slow',function(){
			$('#bgg_img5').attr('src',mim);
			$('#bgg_img5').fadeIn('slow');
		});
		return false;
    });
});

function upBigImg(id){
	jQueryM.post('ajax.php', {
        	"upImgGal": id
		});
}
