
function ie_minwidth() {
	if (screen.width<1024) {
		document.getElementById('cover_ie').style.borderLeft = '730px solid #fff';
		document.getElementById('min_width_ie').style.marginLeft = '-730px';
	}
}

function show_main() {
	if (screen.width<1024) {
		if (document.getElementById('banners_container')) {
			
			var banners = document.getElementById('banners_container').getElementsByTagName('div');
			
			for (i=0; i<banners.length; i++ ) {
				banners[i].style.display = 'none';	
			}
		}
		
		if (document.getElementById('table_large_menu')) {
			
			/*document.getElementById('table_large_menu').style.display = 'none';
			
			document.getElementById('large_menu').innerHTML = '<div id="direct" style="float: left; width: 400px;"><p><a href="#" id="a_direct">Направления<br />деятельности</a></p></div><div id="citizen" style="float: left; width: 400px;"><p><a href="#" id="a_citizen">Прием<br />граждан</a></p></div><div id="feedback" style="float: left; width: 400px;"><p><a href="#" id="a_feedback">Обратная<br />связь</a></p></div>';*/
			var a = document.getElementById('large_menu').getElementsByTagName('a');
			for (i=0; i<a.length; i++ ) {
				a[i].style.cssText = 'display: inline; background: none; line-height: 25px;';
				
				}
			//document.getElementById('large_menu').style.cssText = 'vertical-align: bottom;';
				
			}
			
		if (document.getElementById('calendar_form')) {
			document.getElementById('calendar_form').style.position = 'absolute';
			document.getElementById('calendar_form').style.left = '5px';
			document.getElementById('calendar_form').style.top = '105px';
			document.getElementById('calendar').style.paddingBottom = '150px';
			}
			
		document.getElementById('page').style.overflowX = 'hidden';
		document.getElementById('page').style.minWidth = '770px';
	}
	
	else { document.getElementById('page').style.minWidth = '1000px'; }
}

if (window.attachEvent) { window.attachEvent("onload", ie_minwidth); }
											 
if (window.attachEvent) {
	window.attachEvent("onload", show_main);
	}
else {
	window.addEventListener("load", show_main, true);
	}
