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 imgfactory(i,fileSm, fileLg, w_Sm, h_Sm, w_Lg, h_Lg, lang, suffix){
if (lang == 0) {
  t1 = "Zoom out..."; t2 = "Zoom in...";
} else {
  t1 = "Уменьшить..."; t2 = "Увеличить...";
if (i.src.indexOf(suffix) > 0) {
  if (!adsN4) {
	i.src=fileLg;
	i.alt="Smaller...";
	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="Larger...";
	i.width = w_Sm;
	i.height= h_Sm;
}
return false;
}

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="Smaller...";
	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="Larger...";
	i.width = w_Sm;
	i.height= h_Sm;
}
return false;
}

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'); 
}
//  img_menu(95,120,'bell_rainbow',132,99,1024,768,'photo');

function img_menu(p,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10) {
 var t;
 t = '<table border="0" cols="2" width="'+t1+'%">';
 t = t + '<tbody><tr>';
 t = t + '<td width="'+t2+'">';
 t = t + '<a href="javascript://"';
 t = t + ' onclick="return swapImages(';
 t = t + t3 +",'"+p+t3+"_2.jpg','"+p+t3+"_1.jpg',";
 t = t + t4+','+t5+','+t6+','+t7+');">';
 t = t + '<img src="'+p+t3+'_2.jpg" name="'+t3+'" border="2" width='+t4+' height='+t5+'></a><br>';
 t = t + '['+'<a href="'+p+t3+'_2.jpg" target=_blank>'+t4+'x'+t5+'</a>]&nbsp;';
 t = t + '['+'<a href="'+p+t3+'_1.jpg" target=_blank>'+t6+'x'+t7+'</a>]&nbsp;';
 if (t6 < t8) {
 t = t + '['+'<a href="'+p+t3+'_0.jpg" target=_blank>'+t8+'x'+t9+'</a>]&nbsp;';
 }
 t = t + '</td>';
 t = t + '<td><p align=justify>'+t10+'</p></td></tr></tbody></table>';
 document.write(t);
}
function write_menu_en() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 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 + '<hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}
function write_menu_en1() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 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 + '<hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}
function write_menu_en2() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%"><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><hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}
function write_menu_rus() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%"><font face="Arial">';
 txt = txt + '<b>Действующие:</b> [<a href="../bell/bell_ru.html">Беллинсгаузен</a>][<a href="../mir/mir_ru.html">Мирный</a>]';
 txt = txt + '[<a href="../lazarev/lazarev_ru.html">Новолазаревская</a>][<a href="../vostok/vostok_ru.html">Восток</a>]';
 txt = txt + '[<a href="../progress/progress_ru.html">Прогресс</a>][<a href="../mor/mor_ru.html">Морской Отряд</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Законсервированные:</b> [<a href="../mol/mol_ru.html">Молодёжная</a>][<a href="../druznaya/druznaya_ru.html">Дружная</a>][<a href="../leningrad/leningrad_ru.html">Ленинградская</a>][<a href="../russkaya/russkaya_ru.html">Русская</a>][<a href="../soyuz/soyuz_ru.html">Союз</a>]';
 txt = txt + '</font><hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}
function write_menu_rus1() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%"><font face="Arial">';
 txt = txt + '<b>Действующие:</b> [<a href="bell/bell_ru.html">Беллинсгаузен</a>][<a href="mir/mir_ru.html">Мирный</a>]';
 txt = txt + '[<a href="lazarev/lazarev_ru.html">Новолазаревская</a>][<a href="vostok/vostok_ru.html">Восток</a>]';
 txt = txt + '[<a href="progress/progress_ru.html">Прогресс</a>][<a href="mor/mor_ru.html">Морской Отряд</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Законсервированные:</b> [<a href="mol/mol_ru.html">Молодёжная</a>][<a href="druznaya/druznaya_ru.html">Дружная</a>][<a href="leningrad/leningrad_ru.html">Ленинградская</a>][<a href="russkaya/russkaya_ru.html">Русская</a>][<a href="soyuz/soyuz_ru.html">Союз</a>]';
 txt = txt + '</font><hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}

function write_menu_rus2() {
 var txt;
 txt = '<hr ALIGN=LEFT SIZE=4 WIDTH="100%"><font face="Arial">';
 txt = txt + '<b>Действующие:</b> [<a href="#bell">Беллинсгаузен</a>][<a href="#mir">Мирный</a>]';
 txt = txt + '[<a href="#lazarev">Новолазаревская</a>][<a href="#vostok">Восток</a>]';
 txt = txt + '[<a href="#progress">Прогресс</a>][<a href="#mor">Морской Отряд</a>]';
 txt = txt + '<br>';
 txt = txt + '<b>Законсервированные:</b> [<a href="#mol">Молодёжная</a>]';
 txt = txt + '[<a href="#druznaya">Дружная</a>][<a href="#leningrad">Ленинградская</a>]';
 txt = txt + '[<a href="#russkaya">Русская</a>][<a href="#soyuz">Союз</a>]';
 txt = txt + '</font><hr ALIGN=LEFT SIZE=4 WIDTH="100%">';
 document.write(txt);
}
