function getBrowserInfo() {
 var t,v = undefined;
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (window.sidebar) t = 'Netscape';
 return {type:t,version:v};
}

function bookmark(a){
// var id_connection=document.getElementById('code_connection_user').value;
 var url = window.document.location;
 var title = window.document.title;
 var b = getBrowserInfo();
 if (b.type == 'IE') window.external.AddFavorite(url,title);
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = title;
  return true;
 }
 else if (b.type == "Netscape") window.sidebar.addPanel(title,url,"");
 else alert("Нажмите CTRL-D, чтобы добавить страницу в закладки.");
// SM1(id_connection,'addfav');
 return false;
}

function ShowDiv(div)
{
if(document.getElementById(div)!=null)
document.getElementById(div).style.display='block';
}
function HideDiv(div)
{
if(document.getElementById(div)!=null)
document.getElementById(div).style.display='none';
}
function Visible(div)
{
if(document.getElementById(div)!=null)
document.getElementById(div).style.visibility='visible';
}
function UnVisible(div)
{
if(document.getElementById(div)!=null)
document.getElementById(div).style.visibility='hidden';
}
function ShowHideDiv(div)
{
if(document.getElementById(div)!=null)
if(document.getElementById(div).style.display!='block')
document.getElementById(div).style.display='block';
else
document.getElementById(div).style.display='none';
}

function SetClass(div,c)
{
if(document.getElementById(div)!=null)
document.getElementById(div).className=c;
}

function ChangeName()
{
	if(document.getElementById("name_now").value==1)
	{document.getElementById("househead21").innerHTML="Захарьевская, 31<br>Особняк Нейдгарта";
	document.getElementById("name_now").value=0;}
	else
	{document.getElementById("househead21").innerHTML="Чайковского, 44";
	document.getElementById("name_now").value=1;}
}