function MapOpenVRN() {
	map.setCenter(new YMaps.GeoPoint(39.212733,51.673588), 15, YMaps.MapType.MAP);
	placemark.openBalloon();
}
function MapOpenMSK() {
	map.setCenter(new YMaps.GeoPoint(37.748597,55.791768), 15, YMaps.MapType.MAP);
	placemark2.openBalloon();	
}
function gshowcity() {
		if ($("#ghcity a").html() == '<span></span>Воронеж') {
			$("#ghcity a").html('<span></span>Москва');
			$("#ghmtcode").text('+7 (495)');
			$("#ghmtel").text('565-37-46');		
		} else {
			$("#ghcity a").html('<span></span>Воронеж');
			$("#ghmtcode").text('+7 (473)');
			$("#ghmtel").text('261-61-61');					
		}	
}


$(function(){ 	

	$(".gmap_label").mouseenter(function(event){
		$(".gmap_item").removeClass("gmap_item_on");
		$(this).parent(".gmap_item").addClass("gmap_item_on");
		$($(this).parent(".gmap_item") ).children(".gmap_text").css('display', 'block');
		$(this).css('z-index', 1002);
		$(this).parent(".gmap_item").css('z-index', 1001);	
	});	
	
	$(".gmap_item").mouseleave(function(event){	
		$(".gmap_item_on").removeClass("gmap_item_on");
		$(this).children(".gmap_text").css('display', 'none');
		$(this).children(".gmap_label").css('z-index', 0);
		$(this).css('z-index', 0);
	});

    if($(window).width()>1100) {
        $('.gnazlink').css('display', 'block');
    }
	
	// nomer_uchastka
	$("#edit-submitted-nomer-uchastka").attr( 'value', $(".prepznum a.gmap_icon").text() );
	
	// articles li
	$(".mmenu-articles .item-list ul li:nth-child(10n)").css('padding-bottom','20px');
	
	
	
	
});



