var adsNv=navigator,adsAN=adsNv.appName,adsAV=parseInt(adsNv.appVersion)
var adsIE=(adsAN=="Microsoft Internet Explorer"),adsNS=(adsAN=="Netscape"),adsN4=(adsNS&&adsAV==4),adsN6=(adsNS&&adsAV>=5);
var w,h;
function click(e) {
var message="Copyright AARI, 1996-2003 \n";
	if (document.all) {
		if (event.button==2||event.button==3) {
		alert(message);
		return false;
		}
	}
	else if (document.layers||document.getElementById) {
		if (e.which == 3) {
		alert(message);
		return false;
		}
	}
}
//if (document.layers) {
//document.captureEvents(Event.MOUSEDOWN);
//}
//document.onmousedown=click;      
 
function swapImages(i,fileSm, fileLg, w_Sm, h_Sm, w_Lg, h_Lg){
if (i.src.indexOf('2') > 0){
  if (!adsN4) {
	i.src=fileLg;
	i.alt="Diminish...";
	i.width = w_Lg;
	i.height= h_Lg;
	document.reload;
  }
  else { (w_Lg > 640)? w = 640 : w = w_Lg; (h_Lg > 480)? h = 480 : h = w_Lg;
         a=window.open(fileLg,1,'resizable=yes,width='+w+',height='+h+',status=no,scrollbars=yes,location=no,toolbar=no'); 
         a.window.focus();  
  }
}
else {
	i.src=fileSm;
	i.alt="Enlarge...";
	i.width = w_Sm;
	i.height= h_Sm;
}
return false;
}
function writeStatus(t) {
self.status=t;
//self.defaultStatus = '  ';
}

function TimeStamp(key) {
	var d = new Date(document.lastModified);
	(key == 1) ? t="Last modified: "  : t = "last update: ";
	document.write(t+d.getDate()+'.'+(d.getMonth()+1)+'.'+d.getFullYear());
return true;
}
function o(p,n,w,h) {
a=window.open(p,n,'resizable=yes,width='+w+',height='+h+',status=no,scrollbars=no,location=no,toolbar=no'); 
}
function write_menu_en() {
 var txt;
 txt = '<fieldset>';
 txt = txt + '<b>Active:</b> [<a href="../bell/bell_en.html">Bellingshausen</a>][<a href="../mir/mir_en.html">Mirny</a>]';
 txt = txt + '[<a href="../lazarev/lazarev_en.html">Novolazarevskaya</a>][<a href="../vostok/vostok_en.html">Vostok</a>]';
 txt = txt + '[<a href="../progress/progress_en.html">Progress</a>][<a href="../mor/mor_en.html">Marine Troop</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Inactive (closed):</b> [<a href="../mol/mol_en.html">Molodeznaya</a>][<a href="../druznaya/druznaya_en.html">Druznaya</a>][<a href="../leningrad/leningrad_en.html">Leningradskaya</a>][<a href="../russkaya/russkaya_en.html">Russkaya</a>][<a href="../soyuz/soyuz_en.html">Soyuz</a>]';
 txt = txt + '</fieldset>';
 document.write(txt);
}
function write_menu_en1() {
 var txt;
 txt = '<fieldset>';
 txt = txt + '<b>Active:</b> [<a href="bell/bell_en.html">Bellingshausen</a>][<a href="mir/mir_en.html">Mirny</a>]';
 txt = txt + '[<a href="lazarev/lazarev_en.html">Novolazarevskaya</a>][<a href="vostok/vostok_en.html">Vostok</a>]';
 txt = txt + '[<a href="progress/progress_en.html">Progress</a>][<a href="mor/mor_en.html">Marine Troop</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Inactive (closed):</b> [<a href="mol/mol_en.html">Molodeznaya</a>][<a href="druznaya/druznaya_en.html">Druznaya</a>][<a href="leningrad/leningrad_en.html">Leningradskaya</a>][<a href="russkaya/russkaya_en.html">Russkaya</a>][<a href="soyuz/soyuz_en.html">Soyuz</a>]';
 txt = txt + '</fieldset>';
 document.write(txt);
}
function write_menu_en2() {
 var txt;
 txt = '<font face="Arial">';
 txt = txt + '<b>Active:</b> [<a href="#bell">Bellingshausen</a>][<a href="#mir">Mirny</a>]';
 txt = txt + '[<a href="#lazarev">Novolazarevskaya</a>][<a href="#vostok">Vostok</a>]';
 txt = txt + '[<a href="#progress">Progress</a>][<a href="#mor">Marine Troop</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Inactive (closed):</b> [<a href="#mol">Molodeznaya</a>]';
 txt = txt + '[<a href="#druznaya">Druznaya</a>][<a href="#leningrad">Leningradskaya</a>]';
 txt = txt + '[<a href="#russkaya">Russkaya</a>][<a href="#soyuz">Soyuz</a>]';
 txt = txt + '</font>';
 document.write(txt);
}
