function on(aa){
	document.getElementById('cc_'+aa).className="foot_cont_";
}
function off(aa){
	document.getElementById('cc_'+aa).className="foot_cont";
}

function contact(nn){
if (document.getElementById('c_'+nn).style.display=="none")
	{
	document.getElementById('c_'+nn).style.display="block";
	}
else
	{
	document.getElementById('c_'+nn).style.display="none";}
}

function contact(n) {
	if (document.getElementById('c_'+n).style.display=="none")
	{
	for(i=1;i<7;i++){
      if(n==i)
       {document.getElementById('c_'+i).style.display="block";
       document.getElementById('cc_'+i).className="city_";}
	  
      else 
   	   {document.getElementById('c_'+i).style.display="none";
   	   document.getElementById('cc_'+i).className="city";}
	}
	}
	else 
	  {document.getElementById('c_'+n).style.display="none";
	  document.getElementById('cc_'+n).className="city";}
}
/*function popup_img(filename)
{
   var newImage = new Image();
   newImage.src = filename;
   newWin = window.open(filename,'image',
"width="+newImage.width+",height="+newImage.height+",resizable=no,scrollbars=no,status=no");
}*/
function popup_img(link, ww, hh) {
	var title =  'Image';
	w=window.open(link,'',(ww ? 'width='+ww+',' : '')+(hh ? 'height='+hh+',' : '')+'toolbar=0,scrollbars=0');
	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=white marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><table width=100% height=100% border=0 cellspacing=0 cellpadding=0><tr><td align=center><img src='+link+(ww ? ' width='+ww : '')+(hh ? ' height='+hh : '')+' border=0 alt=""></td></tr></table></body></html>');
		w.document.close();
	}
	w.focus();
}