var isPrinting = false;
var hasPrinting = true;
var contactI = -1;
if (location.search)
{
	if (location.search.indexOf("prn") != -1)
		 isPrinting = true;
	var iPos = location.search.indexOf("contact=")
	if (iPos != -1)
	{
		contactI = parseInt(location.search.substring(iPos+8,20));
		if ( contactI > Contacts.length-1 )
			contactI = 0;
	}
}
if (isPrinting)
{
	document.write('<link rel="stylesheet" href="../../css/npomprn.css" type="text/css">');
	document.write('<link rel="stylesheet" href="../../../css/npomprn.css" type="text/css">');
}
/*
else
{
	document.write('<link rel="stylesheet" href="../../css/npomprj.css" type="text/css">');
	document.write('<link rel="stylesheet" href="../../../css/npomprj.css" type="text/css">');
}
*/
if (!YOffset)
	var YOffset=113; // no quotes!!
XOffset=0;
staticYOffset=0; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="blue";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=300; // Must be a multiple of 10! no quotes!!
menuCols=3;
hdrFontFamily="Arial";
hdrFontSize="2";
hdrFontColor="black";
hdrBGColor="#ffffff";
hdrAlign="Left";
hdrVAlign="center";
hdrHeight="30";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#ffff99";
linkTarget="_top";
linkAlign="Left";
barBGColor="#000040";
barVAlign="center";
barWidth=26;
activeI1 = 'root';
if (ActiveItem)
{
	var ai = ActiveItem;
	while (!GetChild(ai))
	{
		ai = GetParent(ai);
	}
	activeI1 = ai[0];	
}
var agt=navigator.userAgent.toLowerCase();
opera = window.opera?true:false; 
NS6 = (document.getElementById&&!document.all && !opera);
IE = (document.all);
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4");
tempBar='';
barBuilt=0;
ssmItems=new Array();
moving=setTimeout('null',1);
var isIE = navigator.appName.toLowerCase().indexOf("explorer") > -1;
var mdi = (isIE) ? textSizes[1]:textSizes[3];
var sml = (isIE) ? textSizes[2]:textSizes[4];
var oldCurrentNumber = "", oldLastVisitNumber = "";
var toDisplay = new Array();
var addHTML = "";
var StrPath = new String(document.location.pathname);
StrPath = StrPath.toUpperCase();
var Res1 = new String();
for (j=0; j<StrPath.length; j++)
{
	if (StrPath.charAt(j)!='.' && StrPath.charAt(j)!='/' && StrPath.charAt(j)!='\\')
		Res1 +=  StrPath.charAt(j);
}
if(IE || NS6)
	{
		document.write('<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Left : '+XOffset+' ;Top : '+YOffset+' ;Z-Index : 900000;width:'+(menuWidth+barWidth)+'"><DIV ID="thessm" style="Position : Absolute ;Left : '+(-menuWidth)+' ;Top : 0 ;Z-Index : 900000;" onmouseover="moveOut()" onmouseout="moveBack()">');
		document.write('</DIV></DIV>');
	}
else if (NS)
	{
		YOffset+=10;
		document.write('<LAYER width="'+(menuWidth+barWidth)+'" height="100%" name="basessm1" zIndex=100  top="'+YOffset+'" LEFT='+XOffset+' visibility="show"><LAYER width="'+(menuWidth+barWidth)+'" height="100%" zIndex=100  name="basessm2"><LAYER  visibility="hide" src="lsrc.html" zIndex=100  name="thessm" bgcolor="white" left="'+(-menuWidth)+'" onmouseover="moveOut()" onmouseout="moveBack()"></LAYER></LAYER></LAYER>');
		document.write("<table align=center width=770 height=5 cellspacing=0 cellpadding=0 border=0><tr><td height=5>");
		document.write("<div name=l1  style=\"position:relative;width:10;height:5\"></div>");
		document.write("</td></tr></table>");
		document.close();
		XOffset = document.layers["l1"].pageX;		
	}	
for (ir=0; ir<tocTab.length; ir++) 
{
	toDisplay[ir] = tocTab[ir][0].split(".").length==1;
}
function getLevel(num)
{
var indexesArr = new Array();
var levnum = num.split(".").length;
var ind = 0;
for (ir=0; ir<tocTab.length; ir++) 
{
	if ( toDisplay[ir] && tocTab[ir][0].split(".").length==levnum )
		indexesArr[ind++] = ir;
}
return indexesArr;
}
function reDisplay(currentNumber,tocChange,noLink,e) 
{
	if(IE) toc = document.all("thessm");
	else if(NS6)
		toc = document.getElementById("thessm");
	else if(NS) 
	{
		toc = document.layers["basessm1"].document.layers["basessm2"].document.layers["thessm"];
	}
	if (e) 
	{
		ctrlKeyDown = (isIE) ? e.ctrlKey : (e.modifiers==2);
		if (tocChange && ctrlKeyDown) tocChange = 2;
	}
	if(IE || NS6)
		toc.innerHTML="";
	addHTML="<table bgcolor=\"white\" width="+(menuWidth+barWidth)+" cellspacing=0 cellpadding=0 border=1 borderColor=#000040><tr><td ><table width="+(menuWidth-2)+" bgcolor=\"white\" border=0 cellspacing=1 cellpadding=0>\n<tr>\n<td colspan=" + (nCols+1) + "></td></tr>\n<tr>";
	for (k=0; k<nCols; k++) 
	{
		addHTML+="<td>&nbsp;</td>";
	}
	addHTML+="<td width="+menuWidth+" >&nbsp;</td></tr>";
	var currentNumArray = currentNumber.split(".");
	var currentLevel = currentNumArray.length-1;
	var currentIndex = null;
	for (i=0; i<tocTab.length; i++) 
	{
		if (tocTab[i][0] == currentNumber) 
		{
			currentIndex = i;
			break;
		}
	}
	if (currentIndex == null) return false;
	if (currentIndex < tocTab.length-1) 
	{
		nextLevel = tocTab[currentIndex+1][0].split(".").length-1;
		currentIsExpanded = nextLevel > currentLevel && toDisplay[currentIndex+1];
	} 
	else 
		currentIsExpanded = false;
	theHref = (noLink) ? "" : tocTab[currentIndex][2];
	theTarget = tocTab[currentIndex][3];
	for (i=1; i<tocTab.length; i++) 
	{
		if (tocChange) 
		{
			thisNumber = tocTab[i][0];
			thisNumArray = thisNumber.split(".");
			thisLevel = thisNumArray.length-1;
			isOnPath = true;
			if (thisLevel > 0) 
			{
				for (j=0; j<thisLevel; j++) 
				{
					isOnPath = (j>currentLevel) ? false : isOnPath && (thisNumArray[j] == currentNumArray[j]);
				}
			} 
			toDisplay[i] = (tocChange == 1) ? isOnPath : (isOnPath || toDisplay[i]);

			if (thisNumber.indexOf(currentNumber+".")==0 && thisLevel > currentLevel) 
			{ 		
				if (currentIsExpanded) toDisplay[i] = false;
				else toDisplay[i] = (thisLevel == currentLevel+1); 
			}
		} 
	}
	var scrollY=0, addScroll=tocScroll; 
	for (i=1; i<tocTab.length; i++) 
	{
		if (toDisplay[i]) 
		{
			thisNumber = tocTab[i][0];
			thisNumArray = thisNumber.split(".");
			thisLevel = thisNumArray.length-1;
			isCurrent = (i == currentIndex);
			if (i < tocTab.length-1) 
			{
				nextLevel = tocTab[i+1][0].split(".").length-1;
				img = (thisLevel >= nextLevel) ? "leaf" : ((toDisplay[i+1]) ? "minus" : "plus");
			} 
			else img = "leaf"; 

			if (addScroll) scrollY+=((thisLevel<2)?mdi:sml)*25;
			if (isCurrent) addScroll=false;

			if (noLink)
				thisTextColor = (thisNumber==oldCurrentNumber) ? currentColor:((thisNumber==oldLastVisitNumber) ? lastVisitColor:normalColor);
			else thisTextColor = (thisNumber==currentNumber) ? currentColor:((thisNumber==oldCurrentNumber) ? lastVisitColor:normalColor);
			addHTML+="<tr>";
			for (k=1; k<=thisLevel; k++) 
			{
				addHTML+="<td>&nbsp</td>";
			}
			if(tocTab[i][2].length>2)
			{
				if(bComparePaths(tocTab[i][2]))
				{
					addHTML+="<td align=\"left\" valign=top><a href=\"javaScript:void(null)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\"><img src=\"../../images/" + img + ".gif\" width=13 height=12 border=0></a></td> <td colspan=" + (nCols-thisLevel) + "><a href="+tocTab[i][2]+" class=\"treelinkactive\"  >" + ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1] + "</a></td></tr>";
				}
				else
					addHTML+="<td align=\"left\" valign=top><a href=\"javaScript:void(null)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\"><img src=\"../../images/" + img + ".gif\" width=13 height=12 border=0></a></td> <td colspan=" + (nCols-thisLevel) + "><a href="+tocTab[i][2]+" title= \""+ GetToolTip(tocTab[i]) + "\" class=\"treelink\"  >" + ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1] + "</a></td></tr>";
			}
			else
				addHTML+="<td align=\"left\" valign=top><a href=\"javaScript:void(null)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\"><img src=\"../../images/" + img + ".gif\" width=13 height=12 border=0></a></td> <td colspan=" + (nCols-thisLevel) + "><a class=\"treetext\">" + ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1] + "</a></td></tr>";
		}
	}	
		oldLastVisitNumber = oldCurrentNumber;
		oldCurrentNumber = currentNumber;
	addHTML+="</table></td>";
	buildBar();
	addHTML+="</tr></table>";
	if(isIE)
	{
		toc.insertAdjacentHTML("BeforeEnd",addHTML);
	}
	 else if(NS6)
	{
	 toc.innerHTML=addHTML;
	}
	else if(NS)
	{
		toc.src=''+toc.src;
	}
	theleft=-menuWidth;
	getLevel(currentNumber);
	setTimeout('initSlide();', 1);
	}
function resize()
{
if (!isPrinting)
	{
		if (NS)
			location.reload();
		else
		{
			lastY = 0;
			if(IE)
			{
				XOffset = document.all.www.offsetLeft;
				document.all("basessm").style.left=XOffset;
			}
			else if(NS6)
			{
				XOffset = document.getElementById("ns6getleft").offsetLeft+document.body.offsetLeft;
				document.getElementById("basessm").style.left=XOffset;
			}
		setTimeout('initSlide();', 1);
		}
	}
}
function moveOut() 
{
	if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) 
	{
		clearTimeout(moving);
		moving = setTimeout('moveOut()', slideSpeed);
		slideMenu(20)}
	else 
	{
		clearTimeout(moving);
		moving=setTimeout('null',1)
	}
}
function moveBack() 
{
	clearTimeout(moving);
	moving = setTimeout('moveBack1()', waitTime)
}
function moveBack1() 
{
	if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) 
	{
		clearTimeout(moving);
		moving = setTimeout('moveBack1()', slideSpeed);
		slideMenu(-10);
	}
	else 
	{
		clearTimeout(moving);
		moving=setTimeout('null',1);
	}
}
function slideMenu(num)
{
	if (IE) 
		ssm.pixelLeft += num;
	if (NS||NS6) 
		ssm.left = parseInt(ssm.left)+num;
	if (NS) 
	{
		bssm.clip.right+=num;
		bssm2.clip.right+=num;
	}
}
function buildBar() 
{
		tempBar = "";
		for (b=0;b<barText.length;b++) 
			tempBar+=barText.charAt(b)+"<BR>";
	addHTML+="<TD align=\"center\"  width="+barWidth+" bgcolor="+barBGColor+" valign="+barVAlign+"><p class=PC><B>"+tempBar+"</B></p></TD>";
}
function makeStatic() 
{
	if (NS||NS6) 
		winY = window.pageYOffset;
	if (IE) 
		winY = document.body.scrollTop;
	if (NS6||IE||NS) 
	{
		if (winY!=lastY&&winY>YOffset-staticYOffset) 
			smooth = .2 * (winY - lastY - YOffset + staticYOffset);
		else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) 
			smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));
		else 
			smooth=0;
		if(smooth > 0) 
			smooth = Math.ceil(smooth);
		else smooth = Math.floor(smooth);
		if (IE) 
			bssm.pixelTop+=smooth;
		if (NS6||NS) 
			bssm.top=parseInt(bssm.top)+smooth;
		lastY = lastY+smooth;
		setTimeout('makeStatic()', 1)
	}
}
function initSlide() 
{
	if (NS6)
	{	
		ssm=document.getElementById("thessm").style;
		bssm=document.getElementById("basessm").style;
		bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" "+document.getElementById("thessm").offsetHeight+" 0)";
		bssm.height = document.getElementById("thessm").offsetHeight;
		ssm.visibility="visible";
	}
	else if (IE) 
	{
		ssm=document.all("thessm").style;
		bssm=document.all("basessm").style;
		bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";
		bssm.visibility = "visible";
	}
	else if (NS) 
	{
		bssm=document.layers["basessm1"];
		bssm2=bssm.document.layers["basessm2"];
		ssm=bssm2.document.layers["thessm"];
		bssm2.clip.left=0;
		ssm.visibility = "show";
	}
	if (menuIsStatic=="yes") 
	makeStatic();
}
function init()
{
	if (!isPrinting)
	{
		lastY = 0;
		var xoff = 0;
		if(IE)
		{
			XOffset = document.all.www.offsetLeft;
			document.all("basessm").style.left=XOffset;
		}
		else if(NS6)
		{
			XOffset = document.getElementById("ns6getleft").offsetLeft+document.body.offsetLeft;
			document.getElementById("basessm").style.left=XOffset;
		}
		else if (NS)
		{			
			document.layers[0].left = XOffset;
		}
	reDisplay(activeI1,1,1,0);
	}
}
function prnMyTitle( )
{
	var t = new String(document.title);
	var iPos =  t.indexOf(" - ");
	if (iPos != -1)
	{
		t = t.substring(iPos+2, t.length);
	}
	iPos =  t.indexOf(" - ");
	if (iPos != -1)
	{
		t = t.substring(0, iPos);
	}
	t = t.toUpperCase();
	document.write(t);
}
function chgloc(loc) //swich language, raplaces /en/ or /ru/ in URL-string
{
	var curloc = new RegExp('/ru/','i');
	if (window.parent.location.href.indexOf('/en/') != -1) curloc = new RegExp('/en/','i');
	var newloc = window.parent.location.href.replace(curloc, '/' + loc + '/');
	window.parent.location.href = newloc;
} 
function prnHeader()
{
	if (!isPrinting)
	{
		document.write("<table id=www cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"770\" border=\"0\">");
		document.write("<tr>");
		document.write("<td HEIGHT=\"113\" WIDTH=\"276\"><A href=\"");
		document.write(strHomeURL);
		document.write("\" name=top><IMG alt=\"");
		document.write(strHomePage);
		document.write("\" border=0 src=\"../../images/001_2_1.gif\"></A></td>");
		document.write("<td background=\"../../images/002_2.gif\" HEIGHT=\"113\" WIDTH=\"494\">");
		document.write("<TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"113\" width=\"100%\">");
		document.write("<tr><td height=\"45\" colspan=\"2\" class=\"bgnone\" align=\"right\">");
		if (location.search.indexOf("?l=") == -1) 
			document.write("<a href=\"javascript:chgloc('en')\")><img src=\"../../images/et.gif\" width=\"90\" height=\"18\" border=\"0\"></a>");
		document.write("&nbsp;&nbsp;&nbsp;</td></tr>");
		document.write("<TR>");
		document.write("<td width=\"50\" class=\"bgnone\"></td>");
		document.write("<TD height=\"50\" CLASS=\"PTITLE\">");
		prnMyTitle( );
		document.write("&nbsp;</TD></TR>");
		document.write("<tr>");
		document.write("<td colspan=\"2\" class=\"bgnone\">");
		document.write("<table  cellspacing=0 cellpadding=0 align=\"right\" border=0>");
		document.write("<tr>");
		for (n =0; n<HeadLinks.length; n++)
		{
			document.write("<td align=\"center\"class=\"ssmItems\">&nbsp;&nbsp;&nbsp;&nbsp;");
			var lb = bComparePaths(HeadLinks[n][1]);
			if (!lb)
			{
				document.write("<a class=\"ssmItems\" href=\"");
				document.write(HeadLinks[n][1]);
				if (n == 0)
				{
					if (contactI == -1)
					{
						var l_activeI1 = 0;
						if (ActiveItem)
							l_activeI1 = ActiveItem[6];
						contactI = l_activeI1;
					}
					if (contactI != -1)
					{
						//document.write("?contact=");
						//document.write(contactI);						
					}
				}
				document.write("\">");
			}
			document.write(HeadLinks[n][0]);
			if (!lb)
				document.write("</a>");
			document.write("</td>");
		}
		document.write("<td width=\"10\"></td>");
		document.write("</tr>");
		document.write("</table>"); 
		document.write("</td>");
		document.write("</tr>");
		document.write("</TABLE>");
		document.write("</td>");
		document.write("</tr>");
		document.write("</table>");
		document.write("<table  cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"770\" border=\"0\" valign=\"top\">");
		document.write("<tr>");
		document.write("<td background=\"../../images/fill.gif\" width=\"26\">");
		document.write("<div id=\"ns6getleft\"></div>&nbsp;");
		document.write("</td>");
		document.write("<td width=744>");
		document.write("<table align=center  width=\"100%\" cellpadding=\"7\" cellspacing=\"7\">");
		document.write("<tr><td>");
	}	
}
function prnFooter()
{
	if (!isPrinting)
	{	
		if (tocTab)
		{
			document.write("<br>");
			document.write("<table cellspacing=3 cellpadding=3 witdh=100%>");
			var strVariable = new String();
			if (ActiveItem)
			{
//==============================================================================
// Здесь пишем по своему
				var par = ActiveItem;
				
				if (!GetChild(par))
				{
					par = GetParent(par);
				}
//==============================================================================

				//var par = GetParent(ActiveItem);
				//if (par == GetRoot())
				//{
				//	par = ActiveItem;
				//}
						
				var bFirst = true;		
				while (par)
				{
					if (par[2])
					{
						strVariable = par[1];
						if ( par != ActiveItem )
						{
							strVariable = "<a href=\"" + par[2] + "\">" + par[1] + "</a>";
						}
						else
						{
							strVariable = "<b>" + strVariable + "</b>";
						}
						document.write("<tr><TD width=12><IMG src=\"../../images/arrow.gif\"></TD>");
						document.write("<TD align=\"left\" class=ssmItems title=\"");
						document.write(GetToolTip(par));
						document.write("\">");
						document.write(strVariable);
						document.write("</TD></tr>");						
					}
					if (!bFirst)
						par = GetSibling(par);	
					else
					{ 
						par = GetChild(par);
						bFirst = false;
					}
				}
			}
			document.write("</table><br>");
		}
		document.write("<table width=\"100%\" cellspacing=0 cellpadding=0><tr>");
		var delimeter = "?";
		for (iii=0 ; iii<FooterLinks.length; iii++)
		{
			if ( !hasPrinting  && FooterLinks[iii][3]==1)
				continue;
			if (FooterLinks[iii][3]==1)
			{
				if (location.search.length>0)
				{
					delimeter = "&";
				}
				FooterLinks[iii][1] = location + delimeter + FooterLinks[iii][1];				
			}
			document.write("<td align=\"center\" class=\"treetext\"><A href=\"");
			document.write(FooterLinks[iii][1]);
			document.write("\" target=\"");
			document.write(FooterLinks[iii][4]);			
			document.write("\">");
			document.write("<IMG src=\"");
			document.write(FooterLinks[iii][2]);
			document.write("\" border=0 alt=\"");
			document.write(FooterLinks[iii][0]);
			document.write("\"><br>");
			document.write(FooterLinks[iii][0]);
			document.write("</a></td>");
		}
		document.write("</tr>");
		document.write("</table>");
		document.write("</TD></TR></TABLE></TABLE>");
		document.write("<table width=\"770\" cellspacing=0 cellpadding=0 align=\"center\"><tr><td height=\"1\"><img src=\"../images/_.gif\" width=\"1\" height=\"1\"></td></tr>");
		document.write("<tr><td bgcolor=\"#00528b\" height=\"1\"><img src=\"../images/_.gif\" width=\"1\" height=\"1\"></td></tr>");
		var dtNewDate;
		var dtYear;
		dtNewDate = new Date();
		dtYear = dtNewDate.getYear();
		document.write("<tr><td class=\"notes\" height=\"20\"><div align=\"right\">&copy; ОАО &quot;ВПК &quot;НПО машиностроения&quot;, " + dtYear + "&nbsp;&nbsp;&nbsp;</div></td></tr></table>");
		
	}
}
function bComparePaths(str)
{	
	var StrPath1 = str;
	StrPath1= StrPath1.toUpperCase();
	
	var Res2 = new String();
	
	for (j=0; j<StrPath1.length; j++)
	{
		if (StrPath1.charAt(j)!='.' && StrPath1.charAt(j)!='/' && StrPath1.charAt(j)!='\\')
			Res2 +=  StrPath1.charAt(j);
	}
	if (Res1.length > Res2.length )
	{
		return (Res1.indexOf(Res2) != -1);
	}
	return (Res2.indexOf(Res1) != -1);	
}
function prnPressHeader()
{
		if( !isPrinting)
			document.write("<TABLE width=\"770\" ALIGN=center BORDER=0 CELLSPACING=1 CELLPADDING=1>");
		else
			document.write("<TABLE width=\"100%\" ALIGN=center BORDER=0 CELLSPACING=1 CELLPADDING=1>");

		document.write("<TR>");
		if( !isPrinting)
			document.write("<TD width=\"128\" background=\"images/press_tile.gif\">&nbsp;</TD>");
		document.write("<TD><TABLE width=595 ALIGN=center BORDER=0 CELLSPACING=0 CELLPADDING=0><tr>");
		document.write("<td rowspan=2 height=79 width=155><a name=\"top\"><IMG height=79 src=\"images/image1.gif\" width=155></a></td>");
		document.write("<td height=\"51\" class=\"contacts\">");
		document.write(CompanyAddress);
		document.write("<br>");
		var strPhF = strPhone + " " +  Contacts[0][0]+ ", " + strFax+ " " + Contacts[0][1] + "<br>";
		strPhF = strPhF.toLowerCase();
		document.write(strPhF);
		document.write("e-mail: <A class=contacts href=\"mailto:");
		document.write(Contacts[0][2]);
		document.write("\">");
		document.write(Contacts[0][2]);
		document.write("</A>&nbsp;");
		document.write("<A class=contacts href=\"");
		document.write(CompanyDomain);
		document.write("\">");
		document.write(CompanyDomain);
		document.write("</A></td>");
		document.write("</tr><tr><td><IMG height=28 src=\"images/image2.gif\" width=440></td>");
		document.write("</tr><tr><td colspan=2><HR color=#00528b></td></tr><tr><td colspan=2>");	
}
function prnPressFooter()
{	
	var strFooter = 
	"</td></tr></TABLE><br>"+
	"<TABLE border=0 cellPadding=0 cellSpacing=0 width=595 ALIGN=center>"+
"<tr><td colspan=2><hr></td></tr>"+
"<tr><td class=\"contacts\" colspan=\"2\">"+strContact+":<br>"+
        Contacts[0][3] +"<br>"+
        Contacts[0][4]+"<br>";
        var strPhF = strPhone + " " +  Contacts[0][0]+ ", " + strFax+ " " + Contacts[0][1] + 
        " e-mail:  <A class=contacts href=\"mailto:" + 
        Contacts[0][2] + "\">"+Contacts[0][2]+"</a>";
		strPhF = strPhF.toLowerCase();
		strFooter += strPhF  + "</td></tr>";
		if( !isPrinting)
		{
		strFooter+="<tr><td>&nbsp;</td></tr><tr><td align=center><a href=\""+document.location+"?prn=y\">"+
		"<IMG  border=0 src=\"../../../images/prn_ver.gif\"><br>"+
		strPrintVer+
		"</a></td></tr>";
		}
		strFooter += "</TABLE></TD></TR></TABLE>";
    	document.write(strFooter);
}
function prnContatcs()
{
	var strContact = "<p>" + CompanyName + "<br>" +	CompanyAddress + 
	//"<br><span class=notesleft><a href='scheme.htm'>схема проезда >>></a></span>" +
	"<p><u>" + strPhone + ":</u><br>" + "Приемная Генерального директора: +7 (495) 528-74-50<br> Пресс-секретарь Генерального директора: +7 (495) 528-72-22<br>Департамент экспорта: +7 (495) 508-87-32; +7 (495) 300-84-91<br>Канцелярия: +7 (495) 528-30-18<br> Отдел снабжения: + 7 (495) 302-03-43<br> Отдел кадров: + 7 (495) 528-70-90<br> Главный инженер: +7 (495) 307-00-00<p><u>" + strFax + ":</u><br>" + "Центральный: " + corpFax + "<br>Департамент экспорта: +7 (495) 508-87-32" + "<p><u>E-mail:</u><br>Общие вопросы: " + corpEmail + "<BR>Департамент экспорта: " + exportEmail + "<br>Администратор web-сайта: " + adminEmail;
    document.write(strContact);
    //	document.write("<p>Администратор web-сайта:");
	//document.write("<br><a href='../../feedback/'>"+adminEmail+"</a>");
    //	document.write("<br>"+adminEmail);
}
