var nap=0;
if(navigator.appName == "Microsoft Internet Explorer") nap=1;

function go(town) {
	if (town!="") {
		document.location.href="/"+town+"/";
	}
}

function enlarge(w,h,file){
     bigfoto=window.open("", "", "toolbar=no, scrollbars=no, width="+w+", height="+h+", top=0, left=0");
     bigfoto.location.href="bigphoto.php?src="+file+"&w="+w+"&h="+h;
    }

function enlarge1(w,h,imgurl){
     bigfoto=window.open("", "", "toolbar=no, scrollbars=yes, top=0, left=0");
     bigfoto.document.open();
     bigfoto.document.write("<HTML> <HEAD> <TITLE> Новозыбков </TITLE>");
     bigfoto.document.write("<STYLE TYPE='text/css'>");
     bigfoto.document.write("BODY {margin-left: 0; border-left:0; padding-left:0;}");
     bigfoto.document.write("BODY {margin-right: 0; border-right:0; padding-right:0;}");
     bigfoto.document.write("BODY {margin-top: 0; border-top:0; padding-top:0;}");
     bigfoto.document.write("</STYLE>");
     bigfoto.document.write("</HEAD> <BODY>");
     bigfoto.document.write("<IMG SRC='"+imgurl+"' ALT='' WIDTH="+w+" HEIGHT="+h+">");
     bigfoto.document.write("</BODY></HTML>");
    }

function toggle(razdel){
       if (nap == 1) { 
       e=razdel
       e.style.display == "none" ? e.style.display="block" :
                e.style.display="none"
       } 
      }    

function comm(n) {
       e=n;
       e.style.display == "none" ? e.style.display="block" :
                e.style.display="none"
       ee=n.id+"l";
       document.all[ee].style.display == "none" ? document.all[ee].style.display="block" :
               document.all[ee].style.display="none"
    }
