<!--
var menuImages = new Array();

function ban(link,ww,hh,title) {
	var hp=hh;
	var nbsp="";
	
	 if (hh<61)
	{var hp=hh+45;
		var nbsp=" &nbsp";
	}
	if (hh==66)
	{
		var hp=hh+66;
		var nbsp=" ";
	}	
	if (hh==100)
	{
		var hp=hh+105;
		var nbsp="<br>";
	}	
	if (hh==80)
	{
		var hp=hh+70;
		var nbsp=" &nbsp";
	}	
	if (hh==120)
	{
		var hp=hh+71;
	}	
	if (hh==150)
	{
		var hp=hh+68;
		var nbsp="<br>";
	}	
	if (hh==170)
	{
		var hp=hh+86;
		var nbsp="<br>";
	}	
	if (hh>=300)
	{
		var hp=hh+85;
		var nbsp="<br>";
	}	
	if (ww==200)
	{
		var hp=hh+57;
		var nbsp="<br>";
	}	
	if (ww==240)
	{
		var hp=hh+55;
		var nbsp="<br>";
	}
	if (ww==285)
	{
		var hp=hh+57;
		var nbsp="<br>";
	}	
	if (ww>550)
	{
		var hp=hh+41;
		var nbsp=" &nbsp";
	}
	if (ww==405)
	{
		var hp=hh+45;
		var nbsp=" &nbsp";
	}
	//w=window.open(link,'',(ww ? 'width='+ww+',' : '')+(hp ? 'height='+hp+',' : '')+',toolbar=0,scrollbars=0,resizable=0,left=50,top=50');
	w=window.open('', "", "width="+ww+",height="+hp+",toolbar=0,scrollbars=0,resizable=0,left=50,top=50");
		w.document.write('<html><head><title>Баннер сделан в Astronim*</title><meta http-equiv=Content-Type content=text/html; charset=windows-1251></head>');
		w.document.write('<body bgcolor="#f1f1f1" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><div style="font:12px Arial;margin:15px">Баннер&nbsp;<b>'+title+'</b>'+nbsp+'<span style="font-size:9px;color:#777">(размер '+ww+'x'+hh+'px, технология FLASH)</span></div><table width=100% height='+hh+' border=0 cellspacing=0 cellpadding=0 ><tr><td align=center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase='+link+' width='+ww+' height='+hh+'><param name="movie" value='+link+'><param name="quality" value="high"><embed src='+link+' quality="high" width='+ww+' height='+hh+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object></td></tr></table></body></html>');
		w.document.close();

	w.focus();
}

function ban2(link,ww,hh,title) {
	var hp=hh;
	var nbsp="";
	 if (hh<61)
	{var hp=hh+42;
		var nbsp=" &nbsp";
	}	
	w=window.open(link,'',(ww ? 'width='+ww+',' : '')+(hp ? 'height='+hp+',' : '')+',toolbar=0,scrollbars=0,resizable=0,left=50,top=50');
	if (link.indexOf('.html')==-1) {
		if (document.layers) title='';
		w.document.open();
		w.document.write('<html><head><title>Баннер сделан в Astronim*</title><meta http-equiv=Content-Type content=text/html; charset=windows-1251></head>');
		w.document.write('<body bgcolor="#f1f1f1" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><div style="font:12px Arial;margin:15px">Баннер <b>'+title+'</b>'+nbsp+'<span style="font-size:9px;color:#777">(размер '+ww+'x'+hh+'px, технология GIF)</span></div><table width=100% height='+hh+' border=0 cellspacing=0 cellpadding=0 ><tr><td align=center><img src='+link+'  width='+ww+' height='+hh+' alt='+title+'></td></tr></table></body></html>');
		w.document.close();
	}
	w.focus();
}
function graph(link,link2,ww,hh,title) {
	var scrl=0;
	var otop=44;
	var link_=link;
	var oleft=7;
	if (window.screen.width<1000)
	{	
		var oleft=0;
		var link_=link2;
		var scrl=0;
		var ww=750;
		var hh=450;
		var wg=750;
		var hg=450;
		//var wg=window.screen.width-10;
		//var hg=window.screen.height-60;
	}
w=window.open(link_,'',(wg ? 'width='+wg+',' : 'width='+ww+',')+(hg ? 'height='+hg+',' : 'height='+hh+',')+',toolbar=0,scrollbars='+scrl+',resizable='+scrl+',left='+oleft+',top='+otop);
		if (link.indexOf('.html')==-1) {
		if (document.layers) title='';
		w.document.open();
		w.document.write('<html><head><title>Фирменный стиль '+title+'</title><meta http-equiv=Content-Type content=text/html; charset=windows-1251></head>');
		w.document.write('<body bgcolor="#f1f1f1" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><table width=100% height='+hh+' border=0 cellspacing=0 cellpadding=0><tr><td align=center><img src='+link_+'  width='+ww+' height='+hh+' alt='+title+'></td></tr></table></body></html>');
		w.document.close();
	}
	w.focus();
}


if (document.images) {
function lo(inr){
root = inr;
	function li(imgURI) {
		var newImage = new Image();
		newImage.src = imgURI;
		return newImage;
	}
	
	menuImages['m1'] = [li(root+'i/m_kapremont.gif'), li(root+'i/m_kapremont_a.gif')];
	menuImages['m2'] = [li(root+'i/m_expert.gif'), li(root+'i/m_expert_a.gif')];
	menuImages['m3'] = [li(root+'i/m_gost.gif'), li(root+'i/m_gost_a.gif')];
	menuImages['m4'] = [li(root+'i/m_oborud.gif'), li(root+'i/m_oborud_a.gif')];
	menuImages['m5'] = [li(root+'i/m_norm.gif'), li(root+'i/m_norm_a.gif')];
	menuImages['m6'] = [li(root+'i/m_sdany.gif'), li(root+'i/m_sdany_a.gif')];
	menuImages['m7'] = [li(root+'i/m_smeta.gif'), li(root+'i/m_smeta_a.gif')];

	menuImages['ar'] = [li(root+'i/arr_r.gif'), li(root+'i/arr_r_a.gif')];
	menuImages['al'] = [li(root+'i/arr_l.gif'), li(root+'i/arr_l_a.gif')];
	menuImages['ar2'] = [li(root+'i/arr_r.gif'), li(root+'i/arr_r_a.gif')];
	menuImages['al2'] = [li(root+'i/arr_l.gif'), li(root+'i/arr_l_a.gif')];
}

function overItem(itemName) {
	if ( menuImages[itemName] && document.images[itemName + 'Img'] ) document.images[itemName + 'Img'].src = menuImages[itemName][1].src;
}

function outItem(itemName, imagePtr) {
	if ( menuImages[itemName] && document.images[itemName + 'Img'] ) document.images[itemName + 'Img'].src = menuImages[itemName][0].src;
}
}

// -->
