sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
}}}
if (window.attachEvent) window.attachEvent("onload", sfHover);
var height=0;var width=0;
if (self.screen) {
	width = screen.width
	height = screen.height
}
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25315709-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
$(document).ready(function(){
//region select
	$('#regionhref').click(function() {
		$('#regionsmenus').show('slow');
	});
	$("#regionsmenus span.close").click(function () {
		$("#regionsmenus").hide('slow');
    });
	$('.regionsfilecity').click(function() {
		selected = this.innerHTML;
		$.ajax({
			type: 'POST',
			url: '/cookie.php',
			data: 'cityinput='+selected,
			success: function() {
				$('#regionhref').html(selected);
				$("#regionsmenus").hide('slow');
				var citydefault = '<li class="ac-3"><a href="/service_for_eshops/">Для интернет-магазинов</a></li><li class="ac-4"><a href="/tarif_msk_spb_express/">По СПб и Москве 280 руб.</a></li><li class="ac-5"><a href="/tarif_msk_spb/">Москва &harr; СПб 440 руб.</a></li><li class="ac-6"><a href="/tarif_rus/">По  России  от  450  руб.</a></li><li class="ac-7"><a href="/tarif_sng/">В Киев (1-3 дня) 770 руб.</a></li><li class="ac-8"><a href="/tarif_world/">В Европу  от 950 руб.</a></li><li class="ac-9"><a href="/tarif_world/">В Америку от 950 руб.</a></li>';
                var replacespbdefault = '<div class="city"><a href="/tarif_msk_spb_express/">по Петербургу</a> <b class="red"><i>от 280 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(812)</i> 603-22-22</span><span><i>(812)</i> 448-08-08</span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Петербурге:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/shryt_mini.jpg" alt="Ваш менеджер по доставке грузов в Санкт-Петербурге" rel="#man2" class="tooltip" /><div id="man2"><img src="/new_images/IMG_3655-Edit-Edit-1-1-1-1.jpg" /></div></li><li>Евгений</li><li>Шруйт</li><li class="email" onClick=\'$("#feedback_spb").dialog( "open" );\'><span style="padding-right:30px"><a href="#">shruyt@express.ru</a></span></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/contacts/spb/">Другие сотрудники офиса в Петербурге</a></div>';
                
					switch(selected) {
				case 'Москва':
						document.getElementById('citytime').value = 'Москва';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
                        document.getElementById('addcontacts-container').innerHTML = '';
                        document.getElementById("__clTag").style.top='540px';
 						break
					case 'Санкт-Петербург':
						document.getElementById('citytime').value = 'Санкт-Петербург';
						document.getElementById('selectedadress').innerHTML = '';
						if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '';
	             	    document.getElementById("__clTag").style.top='540px';
						break
					case 'Архангельск':
						document.getElementById('citytime').value = 'Архангельск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Архангельске: <b><a href="/regions/arhangelsk/">ул. Гайдара, 44, корпус 1, оф.35</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/arhangelsk/">Контакты в городе Архангельск</a></div><br />';
	             		document.getElementById("__clTag").style.top='590px';
						break
					case 'Белгород':
						document.getElementById('citytime').value = 'Белгород';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Белгороде: <b><a href="/regions/belgorod/">ул. Б. Хмельницкого, 156</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('selectedadress').innerHTML = 'Адрес в Белгороде: <b><a href="/regions/belgorod/">ул. Б. Хмельницкого, 156</a></b>';
		                document.getElementById("__clTag").style.top='590px';
                         break
					case 'Брянск':
						document.getElementById('citytime').value = 'Брянск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Брянске: <b><a href="/regions/bryansk/">ул. Литейная, 9, оф.3</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('selectedadress').innerHTML = 'Адрес в Брянске: <b><a href="/regions/bryansk/">ул. Литейная, 9, оф.3</a></b>';
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/bryansk/">Контакты в городе Брянск</a></div><br />';
                        document.getElementById("__clTag").style.top='590px';
                       break
                    case 'Волгоград':
						document.getElementById('citytime').value = 'Волгоград';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<div id="special-offerer"><li class="ac-3"><a href="/tarif/volgograd/express/">экспресс-доставка по Волгограду</a></li><li class="ac-3"><a href="/tarif/volgograd/rassulka/">рассылка по России</a></li><li class="ac-4"><a href="/tarif/volgograd/rus/">по России и Волгоградской области</a></li><li class="ac-5"><a href="/tarif/volgograd/world/">по миру</a></li><li class="ac-6"><a href="/tarif/volgograd/sng/">по СНГ</a></li></div>';
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = '<div class="city"><a href="/tarif/krasnodar/express/">по Волгограду</a> <b class="red"><i>от 200 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(8442)</i> 33-82-59</span><span><i> (8442)    </i>  60-15-05        </span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Волгограде:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/blank_photo.jpg" alt="Ваш менеджер по доставке грузов в Новороссийске" rel="#man2" class="tooltip" /></li><li>Екатерина</li><li>Голубкова</li><li class="email" style="padding-right: 60px;" onClick=\'$("#feedback_krasnodar").dialog( "open" );\'><a href="#">volgograd@express.ru</a></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/regions/volgograd/">Контакты в городе Волгоград</a></div>';
						document.getElementById('addcontacts-container').innerHTML = '';
                        document.getElementById("__clTag").style.top='590px';
                       break
					case 'Иваново':
						document.getElementById('citytime').value = 'Иваново';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Иваново: <b><a href="/regions/ivanovo/">г. Ярославль, ул. Володарского, 64, оф. 21</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/ivanovo/">Контакты в городе Иваново</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
                    case 'Екатеринбург':
						document.getElementById('citytime').value = 'Екатеринбург';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Екатеринбурге: <b><a href="/regions/ekaterinburg/">ул. Степана Разина, 109, оф. 21</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/ekaterinburg/">Контакты в городе Екатеринбург</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break  
					case 'Ижевск':
						document.getElementById('citytime').value = 'Ижевск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Ижевске: <b><a href="/regions/izhevsk/">ул. 9 Января, 179, оф. 40</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
						if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/izhevsk/">Контакты в городе Ижевск</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Краснодар':
						document.getElementById('citytime').value = 'Краснодар';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<li class="ac-3"><a href="/tarif/krasnodar/express/">экспресс-доставка по Краснодару</a></li><li class="ac-3"><a href="/tarif/krasnodar/krasnodar/">рассылка по Краснодару</a></li><li class="ac-4"><a href="/tarif/krasnodar/rus/">по России и Краснодарскому краю</a></li><li class="ac-5"><a href="/tarif/krasnodar/world/">по миру</a></li><li class="ac-6"><a href="/tarif/krasnodar/sng/">по СНГ</a></li><li class="ac-7"><a href="/tarif/krasnodar/gryz/">грузоперевозки</a></li>';
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = '<div class="city"><a href="/tarif/krasnodar/express/">по Краснодару</a> <b class="red"><i>от 200 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(861)</i> 234-00-09</span><span><i>(861)</i> 247-87-94</span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Краснодаре:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/blank_photo.jpg" rel="#man2" class="tooltip" /></li><li>Елена</li><li>Швагерус</li><li class="email" style="padding-right: 60px;" onClick=\'$("#feedback_krasnodar").dialog( "open" );\'><a href="#">krasnodarinfo@express.ru</a></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/regions/krasnodar/">Контакты в городе Краснодар</a></div>';
						document.getElementById('addcontacts-container').innerHTML = '';
                        document.getElementById("__clTag").style.top='540px';
                       break
                     case 'Красноярск':
						document.getElementById('citytime').value = 'Красноярск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Красноярске: <b><a href="/regions/krasnoyarsk/">ул. Телевизорная, 1 стр.4, пом.15, оф.2.8</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/krasnoyarsk/">Контакты в городе Красноярск</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break 
					case 'Минск':
						document.getElementById('citytime').value = 'Минск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Минске: <b><a href="/regions/minsk/">ул. Асаналиева, 4-106</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts"; 
						if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/minsk/">Контакты в городе Минск</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Набережные Челны':
						document.getElementById('citytime').value = 'Набережные Челны';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Набережных челнах: <b><a href="/regions/nabchelny/">ул. Ак. Рубаненко, 6, под. 4</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                       	if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/nabchelny/">Контакты в городе Набережные Челны</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Нижний Новгород':
						document.getElementById('citytime').value = 'Нижний Новгород';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<li class="ac-3"><a href="/tarif/nnovgorod/sp/">по Нижнему Новгороду от 150 руб.</a></li><li class="ac-4"><a href="/tarif/nnovgorod/sp/">Нижний Новгород &rarr; Москва</a></li><li class="ac-5"><a href="/tarif/nnovgorod/sp/">Нижний Новгород &rarr; Санкт-Петербург</a></li><li class="ac-6"><a href="/tarif/nnovgorod/oblast/">по Нижегородской области</a></li><li class="ac-7"><a href="/tarif/nnovgorod/rus/">по России</a></li><li class="ac-8"><a href="/tarif/nnovgorod/sng/">в страны СНГ и Балтии</a></li><li class="ac-9"><a href="/tarif/nnovgorod/world/">по миру</a></li>';
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = '<div class="city"><a href="/tarif/nnovgorod/sp/">по Нижнему Новгороду</a> <b class="red"><i>от 150 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(831)</i> 437-13-35</span><span><i>(831)</i> 437-13-36</span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Нижнем Новгородe:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/blank_photo.jpg" rel="#man2" class="tooltip" /></li><li>Илья</li><li>Бухарев</li><li class="email" style="padding-right: 60px;" onClick=\'$("#feedback_nnovgorod").dialog( "open" );\'><a href="#">n.novgorod@express.ru</a></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/regions/nnovgorod/">Контакты в городе Нижний Новгород</a></div>';
						document.getElementById('addcontacts-container').innerHTML = '';
                        document.getElementById("__clTag").style.top='540px';
                       break
                     case 'Новороссийск':
						document.getElementById('citytime').value = 'Новороссийск';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<li class="ac-4"><a href="/tarif/krasnodar/rus/">по России и Краснодарскому краю</a></li><li class="ac-5"><a href="/tarif/krasnodar/world/">по миру</a></li><li class="ac-6"><a href="/tarif/krasnodar/sng/">по СНГ</a></li><li class="ac-7"><a href="/tarif/krasnodar/gryz/">грузоперевозки</a></li>';
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = '<div class="city"><a href="/tarif/krasnodar/express/">по Новороссийску</a> <b class="red"><i>от 200 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(8617)</i> 674-652</span><span><i>     </i>          </span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Новороссийске:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/blank_photo.jpg" rel="#man2" class="tooltip" /></li><li>Елена</li><li>Швагерус</li><li class="email" style="padding-right: 60px;" onClick=\'$("#feedback_krasnodar").dialog( "open" );\'><a href="#">krasnodarinfo@express.ru</a></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/regions/novorossiysk/">Контакты в городе Новороссийск</a></div>';
						document.getElementById('addcontacts-container').innerHTML = '';
                        document.getElementById("__clTag").style.top='540px';
                       break
                     case 'Оренбург':
						document.getElementById('citytime').value = 'Оренбург';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Оренбурге: <b><a href="/regions/orenburg/">ул. 60 лет Октября, д. 26А, офис 205</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/orenburg/">Контакты в городе Оренбург</a></div><br />';
                        document.getElementById("__clTag").style.top='540px';
                       break   
					case 'Ростов-на-Дону':
						document.getElementById('citytime').value = 'Ростов-на-Дону';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Ростове-на-Дону: <b><a href="/regions/rostov-na-donu/">пер. Доломановский, 183Б, территория СТО-2</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/rostov-na-donu/">Контакты в городе Ростов-на-Дону</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Самара':
						document.getElementById('citytime').value = 'Самара';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Самаре: <b><a href="/regions/samara/">ул. Ивана Булкина, 84 офис 12</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<li class="ac-3"><a href="/tarif/samara/rus/"><img src="/new_images/special_samara.jpg" /></a></li><li class="ac-3"><a href="/tarif/samara/express/">по Самаре и области</a></li><li class="ac-4"><a href="/tarif/samara/msk/">по Московской области</a></li><li class="ac-5"><a href="/tarif/samara/lo/">по Ленинградской области</a></li><li class="ac-6"><a href="/tarif/samara/rus/">по России</a></li>';
                        document.getElementById("banner-special-region").style.background = 'none';
                		document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/samara/">Контакты в городе Самара</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Саратов':
						document.getElementById('citytime').value = 'Саратов';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Саратове: <b><a href="/regions/saratov/">ул. Ульяновская, д. 37/41</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                        document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                		document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/saratov/">Контакты в городе Саратов</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break                       
					case 'Смоленск':
						document.getElementById('citytime').value = 'Смоленск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Смоленске: <b><a href="/regions/smolensk/">ул. Тенишевой, 22 офис 12</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/smolensk/">Контакты в городе Смоленск</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
                    case 'Сочи':
						document.getElementById('citytime').value = 'Сочи';
						document.getElementById('selectedadress').innerHTML = '';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = '<li class="ac-4"><a href="/tarif/krasnodar/rus/">по России и Краснодарскому краю</a></li><li class="ac-5"><a href="/tarif/krasnodar/world/">по миру</a></li><li class="ac-6"><a href="/tarif/krasnodar/sng/">по СНГ</a></li><li class="ac-7"><a href="/tarif/krasnodar/gryz/">грузоперевозки</a></li>';
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = '<div class="city"><a href="/tarif/krasnodar/express/">по Сочи</a> <b class="red"><i>от 200 руб.</i></b></div><p>&nbsp;</p><ul><li class="telefons"><span><i>(8622) </i> 969-858</span><span><i>     </i>          </span></li></ul><h4 style="padding-top: 23px;">Ваш консультант в Сочи:</h4><div class="clearfix mana"><div class="box m-gray"><span class="lt"></span><span class="rt"></span><div class="box-content manage"><ul class="clearfix"><li class="pic-manager"><img src="/new_images/blank_photo.jpg" rel="#man2" class="tooltip" /></li><li>Елена</li><li>Швагерус</li><li class="email" style="padding-right: 60px;" onClick=\'$("#feedback_krasnodar").dialog( "open" );\'><a href="#">krasnodarinfo@express.ru</a></li></ul></div><span class="lb"></span><span class="rb"></span></div></div><div class="other-mans"><a href="/regions/sochi/">Контакты в городе Сочи</a></div>';
						document.getElementById('addcontacts-container').innerHTML = '';
						document.getElementById("__clTag").style.top='540px';
                       break
					case 'Тверь':
						document.getElementById('citytime').value = 'Тверь';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Твери: <b><a href="/regions/tver/">Краснофлотская набережная, 9, оф. 2</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/tver/">Контакты в городе Тверь</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Тюмень':
						document.getElementById('citytime').value = 'Тюмень';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Тюмени: <b><a href="/regions/tumen/">ул. Профсоюзная, 5</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
				       	document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/tumen/">Контакты в городе Тюмень</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
                    case 'Уфа':
						document.getElementById('citytime').value = 'Уфа';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Уфе: <b><a href="/regions/ufa/">ул. Рихарда Зорге, 13</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/ufa/">Контакты в городе Уфа</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Хабаровск':
						document.getElementById('citytime').value = 'Хабаровск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Хабаровске: <b><a href="/regions/habarovsk/">ул. Павловича, 6, оф.15</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('addcontacts-container').innerHTML = '<div id="addcontacts"><a href="/regions/habarovsk/">Контакты в городе Хабаровск</a></div><br />';
						document.getElementById("__clTag").style.top='590px';
                       break
					case 'Челябинск':
						document.getElementById('citytime').value = 'Челябинск';
						document.getElementById('selectedadress').innerHTML = 'Адрес в Челябинске: <b><a href="/regions/chelyabinsk/">ул. Дзержинского, 93 Б, БЦ "Аврора", офис 513</a></b>';
                        if ( (window.location.pathname.indexOf( '/regions/' ) != -1) || (window.location.pathname.indexOf( '/contacts/' ) != -1)  ) document.location="/contacts";  
                        if (window.location.pathname.indexOf( '/tarif/' ) != -1) document.location="/tarif/"; if (window.location.pathname.indexOf( '/courier/' ) != -1) document.location="/courier/"; if (window.location.pathname.indexOf( '/calculator/' ) != -1) document.location="/calculator/"; if (window.location.pathname.indexOf( '/tracker/' ) != -1) document.location="/tracker/";    
                        document.getElementById("special-offerer").innerHTML = '';
                        document.getElementById("special-offerer").innerHTML = citydefault;
                		document.getElementById("banner-special-region").style.background = 'url(/new_images/sp_offer_map.jpg) no-repeat center center';
                        document.getElementById('rightcenterblock').innerHTML = replacespbdefault;
						document.getElementById('selectedadress').innerHTML = 'Адрес в Челябинске: <b><a href="/regions/chelyabinsk/">ул. Дзержинского, 93 Б, БЦ "Аврора", офис 513</a></b>';
						document.getElementById("__clTag").style.top='590px';
                       break
					default:
						
					}
			},
			error: function() {
				alert('Не удалось установить регион');
			}
		});
	});
//end region select
	if (location.href=='http://express.ru/uslugi/onlinepay/card/' || location.href=='http://www.express.ru/uslugi/onlinepay/card/') {
		$("#ORDERNUMBER").val(Math.round(Math.random()*999999999 + 1));
	}
	feedadmin();
	feedadminemail();
    feedadminemailkr();
    feedadminemailnn();
    feedadminemailmsk();
    feedadminemailspb();
	if (typeof bigmail == 'function') {
		bigmail();
	}
	if (location.href=='http://test.express.ru/' || location.href=='http://www.express.ru/') {
		if(document.getElementById("__clTag")) {
			document.getElementById("__clTag").style.top='590px';
		}
		if($('.frgtd')) {
			if (self.screen.width < 1280) {
				$('.frgtd').css('top', '245px');
				$("#consulth4").css('padding', '160px 0 0 0');
			}
			else {
				$('.frgtd').css('top', '303px');
			}
		}
	}
	else if (self.screen.width < 1280) {
		if(document.getElementById("__clTag")) {
			document.getElementById("__clTag").style.top='410px';
		}
		if($('.frgtd')) {
			$('.frgtd').css('top', '245px');
		}
		$('.right-container').css('margin-left', '143px');
		if(document.getElementById("consulth4")) {
			document.getElementById("consulth4").style.padding='160px 0 0 0';
		}
	}
	else {
		if(document.getElementById("__clTag")) {
			document.getElementById("__clTag").style.top='560px';
		}
		if($('.frgtd')) {
			$('.frgtd').css('top', '383px');
		}
	}
//tooltips
$("img[rel^='#'],span[rel^='#'],.block-b a[rel^='#'], .logo b[rel^='#']").each(function(index) {
    var newText = $($(this).attr("rel")).html();
    newText = '<div class="submenu"><span class="ct-tt"></span><span class="crt-tt"></span><span class="clt-tt"></span><div class="cm-tt"><div class="ccm-tt"><span class="tip-content">' + newText + '</span></div></div><span class="cb-tt"></span><span class="crb-tt"></span><span class="clb-tt"></span></div>';
    $($(this).attr("rel")).html(newText);
});
if($("a[rel=box_12346]").fancybox) {
	$("a[rel=box_12346]").fancybox({
    'transitionIn'		: 'none',
    'transitionOut'		: 'none',
  	'titleShow'		: false
	});
}
$(".manage img[rel^='#'],.sotrudniki span[rel^='#']").tooltip({
    track: true,
    delay: 0,
    extraClass: "right",
    showURL: false,
    bodyHandler: function() {
    return $($(this).attr("rel")).html();
	},top: -300
});
$(".pic img[rel^='#'], .pak img[rel^='#']").tooltip({
    track: true,
    delay: 0,
    extraClass: "right",
    showURL: false,
    bodyHandler: function() {
		return $($(this).attr("rel")).html();
	}
});
$(".block-b a[rel^='#']").tooltip({
    track: true,
    delay: 0,
    extraClass: "right",
    showURL: false,
    bodyHandler: function() {
		return $($(this).attr("rel")).html();
	},left: -450
});
$(".logo img[rel^='#'], .logo b[rel^='#']").tooltip({
    track: true,
    delay: 0,
    extraClass: "logotip",
    showURL: false,
    bodyHandler: function() {
		return $($(this).attr("rel")).html();
	}
});
//tooltips end
//contacts
$(".page-cnts span.cit").hover(function(){$(this).addClass("over");},function(){$(this).removeClass("over");});
var onsort = 1;
$(".cit b i>a").click(function () {
    onsort = 1;
    $(".region-menu").stop().fadeIn("slow").hover(function(){onsort = 1;}, function(){onsort = 0;});
		$('body').click(function(){
			if(onsort == 0){
				$(".region-menu").fadeOut("slow");
				onsort = 1;
			}
		});
	});
    $(".region-menu span.close").click(function () {
		$(".region-menu").stop().fadeOut("slow");
		onsort = 1;
    });
    $("a[rel^='#']").each(function() {
		$($(this).attr("rel")).hide();
    });
    $("a[rel^='#']").click(function () {
		$($(this).attr("rel")).stop().slideToggle("slow");
		agr = $(this).text();
		if (agr == 'Показать на карте') {$(this).text('Скрыть карту');} else {if (agr == 'Скрыть карту') {$(this).text('Показать на карте');}}
		if (agr == 'Show on map') {$(this).text('Hide map');} else {if (agr == 'Hide map') {$(this).text('Show on map');}}
    });
//contacts end
//socials connect
	$("#vk-button").html("у Вас заблокирован ВКонтакте, поэтому Вы не видите кнопку. Обратитесь к своему системному администратору.");
	$("#fb-button").html("у Вас заблокирован Facebook, поэтому Вы не видите кнопку. Обратитесь к своему системному администратору.");
	jQuery.getScript("http://vkontakte.ru/js/api/share.js?10", function(){
		$('#vk-button').html(VK.Share.button(false,{type: "round", text: "Сохранить"}));
	});
	jQuery.getScript("http://static.ak.fbcdn.net/connect.php/js/FB.Share", function(){
		$('#fb-button').html('<a name="fb_share"></a>');
	});
//socials connect end
});
function cnt(param_id)
{
	var obj = document.getElementById('ajax_err');
	var req;
	if (window.XMLHttpRequest) req = new XMLHttpRequest();
	else if(window.ActiveXObject)
	{
		try {
			req = new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e){}
		try {
			req = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e){}
	}
	if (req)
	{
		req.onreadystatechange = function()
		{
			if (req.readyState == 4 && req.status == 200)
			{ obj.innerHTML = req.responseText; }
		};
		req.open("GET", '/cnt.php?id=' + param_id, true);
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req.send(null);
	}
	else alert("Браузер не поддерживает AJAX");
}
rolik_new = 0;
