	function SetRightLangChange(){
		var page_href = new String(window.location.href);
		if ((page_href.indexOf("index.php")!=-1)||(page_href.indexOf("pers_index.php")!=-1)||(page_href.indexOf("adr.php")!=-1)||(page_href.indexOf("src.php")!=-1)){
			return 1;
		}
		if (document.getElementById('en_lang_button')){
			curr_language_abbr='/en/';
			new_language_abbr='/ru/';
			elem=document.getElementById('en_lang_button');
		}
		if (document.getElementById('ru_lang_button')){
			curr_language_abbr='/ru/';
			new_language_abbr='/en/';
			elem=document.getElementById('ru_lang_button');
		}
		elem.href = page_href.replace(new_language_abbr, curr_language_abbr);
	}

	function imgWin(id) {
        myWin= open("image.cgi?id="+id, "img", "width=650,height=650,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no");
        myWin.focus();
     }

     function imgWin1(fname) {
        myWin= open("image1.cgi?img="+fname, "img", "width=650,height=650,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
        myWin.focus();
     }

     function imgWin2(id) {
        myWin= open("image2.cgi?id="+id, "img", "width=650,height=650,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no");
        myWin.focus();
     }


     function mapWin() {

        myWin= open("../soloveckie_ostrova/index.html", "map","width=700,height=355,status=no,toolbar=yes,menubar=no,resizable=yes,scrollbars=yes");
        myWin.focus();
     }

     function mapWin1() {
        myWin= open("../images/map.jpg", "map","width=700,height=355,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
        myWin.focus();
     }

     function mapWin2(kod,hier) {
        myWin= open("../showmap.htm?id="+kod+","+hier, "","width=700,height=355,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
        myWin.focus();
     }
