 var FileName;
 var File1Name;
 var FileEName;
 var File1EName;
 function Name(a)
 {
 userName = ""+ document.location;
 userName = ""+ document.location;
 n1 = userName.indexOf("=")+1;
 userName= userName.substring(n1);
 n1= userName.indexOf("=")+1;
 userName= userName.substring(n1);
 FileName=userName+".htm";
 File1Name=userName+"_rmo.htm";
 if(userName == "NTS-Pro4000(FMBS)"){File1EName="e_maribs.htm"; FileEName="e_maribs_rmo.htm";}
 if(userName == "NTS-Pro4000(Radar/ARPA)"){File1EName="e_marlot.htm";FileEName="e_marlot_rmo.htm";}
 if(userName == "NTS-Pro4000(Radar/ARPA)"){File1EName="e_marlot.htm";FileEName="e_marlot_rmo.htm";}


 switch (a)
 {
 case 1:if( userName=="SDV-1" || userName == "SDV-2")
 { 
 document.write("<a href='navigation.htm'>Навигационные тренажеры</a> /<a href='"+FileName+"'> <font color='blue'>"+ userName+"</font></a>");
 }
 else
 {
document.write("<a href='navigation.htm'>Навигационные тренажеры</a> / <a href='"+FileName+"'</a><font color='blue'>"+ userName+ "</font></a> / <a href='"+File1Name+"'>Рабочее место оператора</a>");
 }
 break;
 
 case 2: if( userName=="SDV-1" || userName == "SDV-2")
 {
	   document.write("<a href='e_navigation.htm'>Navigation simulators </a>/<a href='"+"e_"+ FileName+"'> <font color='blue'>"+ userName+"</font></a>");
         }
		 else
		 {
		document.write("<a href='e_navigation.htm'>Navigation simulators</a> / <a href='"+File1EName+"'><font color='blue'>"+ userName+"</font></a> / <a href='"+FileEName+"'>Operator's workplace</a>");}
         break; 
    }
}

function prog(a)
{
switch(a)
{
case 0:  window.open('http://www.ntutc.com/pict/main_gmdss.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center, width=900'); break;
case 1:  window.open('http://www.ntutc.com/pict/panel.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=460,width=830'); break;
case 2:  window.open('http://www.ntutc.com/pict/diplom.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=800,width=600'); break;
case 3:  window.open('http://www.ntutc.com/pict/diplom.gif',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=800,width=600'); break;
case 4:  window.open('http://www.ntutc.com/pict/tr733.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=600'); break;

case 41:  window.open('http://www.ntutc.com/pict/vhf_sc.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=620'); break;
case 42:  window.open('http://www.ntutc.com/pict/vhf_sei.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=620'); break;
case 43:  window.open('http://www.ntutc.com/pict/mfhf_sc.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=560,width=620'); break;
case 44:  window.open('http://www.ntutc.com/pict/mfhf_sei.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=700'); break;
case 5:  window.open('http://www.ntutc.com/pict/nav00.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,width=800'); break;
case 6:  window.open('http://www.ntutc.com/pict/inm_b.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=420,width=600'); break;
case 7:  window.open('http://www.ntutc.com/pict/inm_c.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=600'); break;
case 8:  window.open('http://www.ntutc.com/pict/inmb.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=600,width=800'); break;
case 80:  window.open('http://www.ntutc.com/pict/inmc.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=550,width=700'); break;
case 81:  window.open('http://www.ntutc.com/pict/inmf.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=600,width=800'); break;
case 9:  window.open('http://www.ntutc.com/pict/radio.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=510,width=670'); break;
case 90:  window.open('http://www.ntutc.com/pict/charget.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=600'); break;
case 10:  window.open('http://www.ntutc.com/pict/upssec.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=400,width=520'); break;
case 11:  window.open('http://www.ntutc.com/pict/beacons.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=600,width=400'); break;
case 15:  window.open('http://www.ntutc.com/pict/alarm.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,width=800'); break;
case 16:  window.open('http://www.ntutc.com/pict/aero.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=430,width=550'); break;
case 17:  window.open('http://www.ntutc.com/pict/py.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,height=235,width=560'); break;
case 20:  window.open('http://www.ntutc.com/pict/vhf_rt5022.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,width=800'); break;
case 21:  window.open('http://www.ntutc.com/pict/mfhf_cu5100.jpg',"",'scrollbars=yes,resizable=yes,menubar=no,align=center,width=800'); break;
}
}

var buf="       ";
function newPage(name,a)
{
for(var i=0; i<7; i++) buf[i]=' ';
switch ( name)
{
case 1:  buf="MARIBS"; break;
case 2:  buf="MARLOT"; break;
case 3:  buf="SDV-1"; break;
case 4:  buf="SDV-2"; break;
}
switch(a)
{ 
case 1: self.location="vizualiz.htm?="+buf; break;
case 2: self.location="ecs_system.htm?="+buf; break;
case 3: self.location="cons_system.htm?="+buf; break;
case 4: self.location="radar_system.htm?="+buf; break;
case 5: self.location="ais_system.htm?="+buf; break;
case 6: self.location="gmdss_system.htm?="+buf; break;
}
}
	
function newPageEn(name,a)
{
switch ( name)
{
case 1:  buf="NTS-Pro4000(FMBS)"; break;
case 2:  buf="NTS-Pro4000(Radar/ARPA)"; break;
case 4:  buf="SDV-1"; break;
case 3:  buf="SDV-2"; break;
}
switch(a)
{ 
case 1: self.location="e_vizualiz.htm?="+buf; break;
case 2: self.location="e_ecs_system.htm?="+buf; break;
case 3: self.location="e_cons_system.htm?="+buf; break;
case 4: self.location="e_radar_system.htm?="+buf; break;
case 5: self.location="e_ais_system.htm?="+buf; break;
case 6: self.location="e_gmdss_system.htm?="+buf; break;
}
}
													
													



