function doSpecial(){


	$("#wrapper").prependTo("body"); //Move page content out from unneeded containers

	$("#header .navi_bot table td:first").before('<td class="first"><a href="/">На главную</a></td>'); //Add new menu item
	 
	//$("#header .navi_bot table td:nth-of-type(2)").removeClass("first"); //Unset css-class .first on second link

	$("#colorize").remove(); //Remove empty container

	$(".navi_top").remove(); //Remove empty container

	$("#body > .plate > .left").remove(); //Remove left sidebar

	$("td.spacer").remove(); //Remove <table> spacers

	$(".copy_main, .copy_inf").attr('style', ''); //Remove styles

	$(".clear").remove(); //Remove clearing tags

	$('#wrapper').prepend('<div id="betaDiv">Версия для слабовидящих находится в бета тестировании.</div>');
	$('.logo').after('<a style="margin-bottom:10px !important" href="http://www.fstrf.ru/?special=N">Перейти на обычную версию</a><br />');

	/* Front page only */
	if (location.pathname == "/" || location.pathname == "/test_front_page")
	{
	
		$("#front_splash .news").remove();
		$("#header .navi_bot table td:first").addClass("active");


		$("#front_splash .foto").remove();

		$(".plate .main:first").next().next().remove(); //remove orphan block

		$(".main_plates tr:last td:first").next().remove(); //remove spacer

		//Change markup of a triple-block
		$(".triple_plates td > a").each(function(){
			var href = $(this).attr("href");
			var h2 = $(this).find("h2").text();
			var p = $(this).find("p").html();
			$(this).replaceWith('<h2><a href="' + href + '">' + h2 + '</a></h2><p>' + p + '</p>');
		});

		//Change markup of blocks "Новости и события" and "документы"
		$(".main_plates tr:last td:first a img").replaceWith("Все новости");
		$(".main_plates tr:last td:last a img").replaceWith("Все документы");
		$(".main_plates tr:last td a").wrap('<div style="margin-top:2em;" />');
		$(".main_plates tr:last td:first div").appendTo(".main_plates tr:first td:first");
		$(".main_plates tr:last td:last div").appendTo(".main_plates tr:first td:last");
		$(".main_plates tr:last").remove();

		$("#front_footer_v2 > a").wrap('<td></td>');
		$("#front_footer_v2 > td").wrapAll('<div class="external-resources"><table><tr></tr></table></div>');

		$(".moar span").remove(); //strip tag <span>

	}
	/* /Front page only */
	/* Inner pages only */
	if (location.pathname != "/" || location.pathname != "/test_front_page")
	{
		$("#submenu td:first, #submenu td.div, #submenu td:last").remove(); //Remove unneeded containers

		//Change markup of submenu
		$("#submenu td").each(function () {
			$(this).replaceWith("<li>" + $(this).html() + "</li>");
		});
		$("#submenu li").wrapAll("<ul />");
		$("#submenu table ul").appendTo("#submenu");
		$("#submenu table").remove();

		$(".datepicker").remove(); //Remove date picker

		//Change markup of a .blam-blam
		$(".blam_blam").css({margin:'3em 0 0 !important'});
		$(".blam_blam h2").css({fontSize:'24px !important', margin:'0 0 12px !important'});
		$(".blam_blam table").attr('style', '');
		$(".blam_blam table td").css({padding:'1em !important', width:'33%', textAlign:'center'});
		$(".blam_blam td > a").css({display:'inline !important', height:'auto !important'});
		$(".blam_blam td > a span").remove();

		//Change markup of a .main
		$('.main > #inner_body > div > h2').css({fontSize:'24px !important', margin:'0 0 12px !important', color:'#000'});
		$('.main > #inner_body > div > h2 ~ p').css({lineHeight:'1.5 !important'});

		$(".copy_main, .copy_inf").css({color:'black !important', marginBottom:'5em !important', position:'static !important', textAlign:'right !important'}); //Change styles

		$('#front_footer').css({height:'auto'});
		$('#front_footer .copy_main').css({top:'144px',left:'100px',color:'black !important',marginBottom:'5em !important'});
		$('#front_footer .copy_main, #front_footer p.copy_inf').css({position:'static !important',textAlign:'right !important', marginBottom:'5em !important;'});

		//Change markup of blocks "Новости и события" and "документы"
		$(".tabs_about").addClass('main_plates');
		$(".tabs_about").css({margin:'0 2em 0 !important'});
		$(".tabs_about .top h2 br").remove();
		$(".tabs_about .top h2").css({lineHeight:'1 !important'});
		$(".tabs_about p.date ~ p").css({margin:'0 0 3em !important'});

		$("#inner_body object").remove(); //Remove flash map

		$(".sub_regions .region_top").css({height:'auto !important',position:'static !important',display:'block'});

		$('.sub_regions .region_top select').css({fontSize: '16px',position: 'static !important',width: 'auto !important',height: 'auto !important',lineHeight: '1 !important',padding: '5px !important',border: '1px solid black',fontSize: '20px !important',margin: '20px 0 !important',});

		$(".but_white_start > .but_white_end > table ~ a").remove();

		$("#press_news td a > span:contains('»')").remove(); //Remove span with "»"

		//Make some changes based on location.pathname before we manipulate with rows
		var re = new RegExp("regions/lenta");
		var path = location.pathname;
		console.log(path.match(re));

		var path = location.pathname;
		console.log(location.pathname.match("/regions/lenta/"));


		//Remove empty #inner_body_end
		var inner_body_end_html = $("#inner_body_end").html().replace(/\s+/, " ");
		if (inner_body_end_html.length)
		{
			$("#inner_body_end").remove();
		}

		//Adjust styles of the main markup
		if (
			location.pathname.match("/regions/region/")
			||
			location.pathname == "/about/law"
			) //Will work for region page itself
		{
			$("#inner_body").css({fontSize:'1.25em !important',padding:'0 !important'});
			$("#inner_body").children("p").each(function(){
				$(this).css({lineHeight:'2 !important'});

				if (location.pathname == "/about/law")
				{
					$(this).css({marginTop:'2em !important'});
				}

				var p_html = $(this).html().replace(/&nbsp;/, " ");

				if (p_html.length == 0)
				{
					$(this).remove();
				}
			});
		}

		//Change markup of a main content
		if (location.pathname.match("/regions/lenta/")
			||
			location.pathname.match("/regions/region/")
			||
			location.pathname == "/about/law"
			) //Will work for pages in region and region page itself
		{
			$("#press_news tr:last .pages").appendTo($('#inner_body_end'));//Move pager out of table
			$("#inner_body_end .pages").children().wrap("<li />");
			$("#inner_body_end .pages li").wrapAll("<ul />");
			$("#inner_body_end .pages li").css({float:'left !important',margin:'0 0.25em 0 !important',listStyle:'none'});
			$("#inner_body_end .pages span").css({background:'#000 !important',color:'#fff !important'});
			$("#inner_body_end .pages span, #inner_body_end .pages a").css({display:'block !important',padding:'0.5em 1em !important'});
			$("#inner_body_end .pages ul").wrap($('<div id="pager" />'));
			$("#inner_body_end #pager").appendTo($("#inner_body_end"));
			$("#inner_body_end .pages").remove();
			$("#front_footer").addClass('pages');
			$("#front_footer").css({paddingTop:'3em !important'});

			$("#inner_body").addClass('main_plates').css({marginTop:'3em !important'}); //Add class .main_plates to make formart of a rows standard
			$('.leftwb').remove(); //Remove left sidebar
			$("#breadcrumb").css({marginBottom:'2em !important'});
			$("#breadcrumb a").css({fontSize:'14px !important',padding:'0.75em !important'});
		}
		else
		{
			$(".but_white_start").addClass('main_plates'); //Add class .main_plates to make formart of a rows standard
		}

		$("#press_news tr").each(function()
		{
			$(this).children("td:first").wrapInner('<p class="date" style="margin:0 0.5em !important;" />');
			$(this).children("td:first").children('p.date').text($(this).children("td:first").children('p.date').text());
			$(this).children("td:last").children('a').wrap('<li style="list-style:none !important;margin:0.5em 0 !important;" />').css('padding', '0.5em !important');
			$(this).children("td:last").wrapInner('<ul style="margin:0 !important;padding:0 !important;" />');
			$(this).children("td:last").children().unwrap();
			$(this).children("td:first").children().unwrap();
			$(this).wrapInner('<div class="item" />');
			$(this).children().unwrap();
		});
		$("#press_news .item").each(function()
		{
			if (location.pathname == "/regions/lenta/16/" ) //Республика Татарстан
			{
				$(this).appendTo($('#inner_body')); //Move content of a table out off it
			}
			else
			{
				$(this).appendTo($('.but_white_end')); //Move content of a table out off it
			}

		});

		$("#press_news").remove(); //Remove unneeded table

	}
	if (location.pathname == "/about")
	{
		$("#submenu li:eq(4), #submenu li:eq(5)").remove();
	}
	if (location.pathname == "/press")
	{
		$("#submenu li:eq(3), #submenu li:eq(4), #submenu li:eq(5), #submenu li:eq(6), #submenu li:eq(7)").remove();
	}
	

}
