			function clickfunction()
			{
			// сворачивание-разворачивение блоков арендаторов
				$(".link span.title").click(function(e){
					$(this).parent().next().stop().slideDown();
					$(this).parent().slideUp();

					e.preventDefault();
				});
				$(".block span.title").click(function(e){

					$(this).parent().prev().slideDown();
					$(this).parent().slideUp();

					e.preventDefault();
				});
			}

			$(document).ready(function(){
clickfunction();


				// карта сайта
				$('a#entire_site').click(function(e){
					if (!($(this).hasClass("pressed"))){
						$(this).addClass("pressed");
						$(document).find('#entire_site_block').slideDown();
					} else {
						$(this).removeClass("pressed");
						$(document).find('#entire_site_block').slideUp();
					}
					e.preventDefault();
				});

				$('a.close_btn').click(function(){
					$(document).find('a#entire_site').removeClass("pressed");
					$(this).parent().slideUp();
					//e.preventDefault();
				});

			});
