<!--

var layerRef="null", styleSwitch="null";
var clientSize="null";
var l=0, ii=0;
var TopStr;

function init()
{
  if(navigator.appName == "Netscape") 
  {
    layerRef="document.layers";
    styleSwitch="";
        clientSize="window.inner";
  } 
  else
  {
    layerRef="document.all";
    styleSwitch=".style";
        clientSize="document.body.client";    
  }  
}

function init2()
{
  if(document.all)
  {
    layerRef="document.all[";
    styleSwitch="].style";
        clientSize="document.body.client";
  }
  else if(document.getElementById)
  {
    layerRef="document.getElementById(";
    styleSwitch=").style";
        clientSize="window.inner";
  }
  else if(document.layers)
  {
    layerRef="document.layers[";
    styleSwitch="].style";
        clientSize="document.body.client";
  }
}

function MouseOver2(layerIndex, evt)
{
  var str;
  if(lng!="") str="_"+lng;
  else str="";
  var srcEl = evt.srcElement || evt.target;
  srcEl.style.cursor="pointer";
  if(window.status) window.status=Statuses[layerIndex];
  eval("document.getElementById('img_"+Layers[layerIndex]+"').src='images/"+Layers[layerIndex]+"_hl"+str+".gif'");
}

function MouseOut2(layerIndex, evt)
{
  var str;
  if(lng!="") str="_"+lng;
  else str="";
  var srcEl = evt.srcElement || evt.target;
  srcEl.style.cursor="default";
  if(window.status) window.status="";
  eval("document.getElementById('img_"+Layers[layerIndex]+"').src='images/"+Layers[layerIndex]+str+".gif'");
}


function hideScrollBars()
{
  if (window.scrollbars) window.scrollbars.visible=false;
  else if(document.body.style.overflow) document.body.style.overflow='hidden';
}

function hideLayer(layerName)
{
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}

function hideLoadingLayers()
{
  if(eval(layerRef+'["loading0"]'))
    eval(layerRef+'["loading0"]'+styleSwitch+'.visibility="hidden"');
  if(eval(layerRef+'["loading1"]'))
    eval(layerRef+'["loading1"]'+styleSwitch+'.visibility="hidden"');
  if(eval(layerRef+'["loading2"]'))
    eval(layerRef+'["loading2"]'+styleSwitch+'.visibility="hidden"');
  l=-1;
}

function Loading(w)
{
  if(l>=0)
  {
    ++l;
    if(l<=(w+88))
    {
      eval(layerRef+'["loading2"]'+styleSwitch+'.left='+l);
      setTimeout('Loading('+w+')',25);
    }
    else 
    {
      l=w;
          setTimeout('Loading('+w+')',1000);
    }
  }
}

function showLayer(layerName)
{
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}


function getURLvars()
{
  var str="";
  var len=0;
  eval('str=window.location.search');
  len=str.length;
  if(len>0) str=str.substring(1, len);
  return str;
}

function getURLlinks()
{
  var str="";
  var len=0;
  eval('str=window.location.hash');
  len=str.length;
  if(len>0) str=str.substring(1, len);
  return str;
}

function asd()
{
  var cw=260;
  eval('cw='+clientSize+'Width');
  eval(layerRef+'["close"]'+styleSwitch+'.left='+(cw-78));
}

function OpenPage(layerIndex)
{
  var s;
  if(lng!="") 
  {
    if(layerIndex==7) s="?"+lng;
    else s="#"+lng;
  }
  else s="";
  if(Links[layerIndex]=="index.html" || Links[layerIndex]=="index_ru.html")
    eval('window.location="'+Links[layerIndex]+'"');
  else
  {
    eval('self.parent.frames[2].location="subtitle.htm?'+Layers[layerIndex]+s+'"');
    eval('self.parent.frames[3].location="'+Links[layerIndex]+s+'"');
  }
}

function OpenPage2(Str, lng)
{
  var s;
  if(lng!="") s="#"+lng;
  else s="";
  if(Str=="index.html" || Str=="index_ru.html")
    eval('window.location="'+Str+'"');
  else
  {
    eval('self.parent.frames[2].location="subtitle.htm?mn_'+Str+s+'"');
    eval('self.parent.frames[3].location="'+Str+'.htm'+s+'"');
  }
}

function MouseOver(layerIndex)
{
  var str;
  if(lng!="") str="_"+lng;
  else str="";
  event.srcElement.style.cursor="hand";
  if(Statuses) window.status=Statuses[layerIndex];
  eval('img_'+Layers[layerIndex]+'.src="images/'+Layers[layerIndex]+'_hl'+str+'.gif"');
}

function MouseOut(layerIndex)
{
  var str;
  if(lng!="") str="_"+lng;
  else str="";
  event.srcElement.style.cursor="default";
  window.status="";
  eval('img_'+Layers[layerIndex]+'.src="images/'+Layers[layerIndex]+str+'.gif"');
}

function openWin(theURL,winName,width,height,features)
{
  var h = height + 30;
  var w = width + 10;
  var window_width=width;
  var window_height=height;
  var window_top=(screen.height-window_height)/2;
  var window_left=(screen.width-window_width)/2;
  var newfeatures=features+',toolbar=no,status=no,location=no,menubar=no,resizable=no,directories=no';

  if (navigator.userAgent.indexOf('Win')!=-1)
  {
    if (navigator.appName=="Netscape")
    {
      h=height;
      w=width;
    }
  }
  else
    if (navigator.appName!="Netscape") 
    {
      h=height;
      w=width;
    }
  newWindow=window.open(theURL, winName,'width='+window_width+',height='+window_height+',top='+window_top+',left='+window_left+',features='+newfeatures);
  newWindow.focus();
  return newWindow;
}

function OpenPicture(i)
{
  var w=0, h=0;
  var my_win;
  var features='scrollbars=';
  w=BigWidths[i];
  h=BigHeights[i];
  var str='event.srcElement.style.cursor="hand"; img_c.src="images/close_hl_'+lng+'.gif";';
  var str2='event.srcElement.style.cursor="default"; img_c.src="images/close_'+lng+'.gif";';
  if(w>780 || h>550) 
  {
    if(w>780) w=780;
    if(h>550) h=550; 
    features=features+'yes';
  }
  else features=features+'no';
  if(w>0 && h>0)
  {
    my_win=openWin("", "photo", w, h+19,features);
    my_win.close();
    my_win=openWin("", "photo", w, h+19,features);
    my_win.document.width=w;
    my_win.document.write("<html><head><title>Radar Systems, Inc.</title>");
    my_win.document.write("<meta http-equiv='Content-Type' content='text/html;'>");
    my_win.document.write("</head><body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
    //my_win.document.write("<div style='Background-color: #FFFFFF; POSITION: absolute; TOP:0; LEFT:0; VISIBILITY: visible; Z-INDEX: 100; WIDTH: 100%; HEIGHT: 100%;' id='loading0'></div>");
    //my_win.document.write("<div style='POSITION: absolute; TOP:188; LEFT:578; VISIBILITY: visible; Z-INDEX: 101; WIDTH: 76px; HEIGHT: 18px;' id='loading1'>");
    //my_win.document.write("<img src='images/loading.gif' width='76' height='18' border='0'></div>");
    //my_win.document.write("<div style='Background-color: #FFFFFF; POSITION: absolute; TOP:188; LEFT:578; VISIBILITY: visible; Z-INDEX: 102; WIDTH: 76px; HEIGHT: 18px;' id='loading2'></div>");
    my_win.document.write("<div style='POSITION: absolute; TOP: 0; LEFT: 0; VISIBILITY: visible; Z-INDEX: 0; WIDTH: "+w+"px; HEIGHT: "+h+"px;'>");
    my_win.document.write("<img src='images/"+ImagesBig[i]+"' width='"+w+"' height='"+h+"' border=0></div>");
    my_win.document.write("<div style='POSITION: absolute; TOP: "+h+"; LEFT: 0; VISIBILITY: visible; Z-INDEX: 0; WIDTH: "+w+"px; HEIGHT: 19px;'>");
    my_win.document.write("<img src='images/close_bg.gif' width='"+w+"' height='19' border=0>");
    my_win.document.write("<div style='POSITION: absolute; TOP: 0; LEFT: "+(w-78)+"; VISIBILITY: visible; Z-INDEX: 0; WIDTH: 78px; HEIGHT: 19px;'>");
    my_win.document.write("<a onmouseover='"+str+"' onmouseout='"+str2+"' onclick='eval(window.close());'>");
    my_win.document.write("<img name='img_c' src='images/close_"+lng+".gif' width='78' height='19' border=0></a></div></div>");
    my_win.document.write("</body></html>");
    my_win.document.close();
  }
}

function OpenPicture2(ImagesBig, BigWidths, BigHeights)
{
  var w=0, h=0;
  var my_win;
  var features='scrollbars=';
  w=BigWidths;
  h=BigHeights;
  var str='event.srcElement.style.cursor="hand"; img_c.src="images/close_hl_'+lng+'.gif";';
  var str2='event.srcElement.style.cursor="default"; img_c.src="images/close_'+lng+'.gif";';
  if(w>780 || h>550) 
  {
    if(w>780) w=780;
    if(h>550) h=550; 
    features=features+'yes';
  }
  else features=features+'no';
  if(w>0 && h>0)
  {
    my_win=openWin("", "photo", w, h+19,features);
    my_win.close();
    my_win=openWin("", "photo", w, h+19,features);
    my_win.document.width=w;
    my_win.document.write("<html><head><title>Radar Systems, Inc.</title>");
    my_win.document.write("<meta http-equiv='Content-Type' content='text/html;'>"); //<script language='Javascript' src='scripts/layers.js'></script>");
    my_win.document.write("</head><body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>"); // onLoad='init();'>");
//    my_win.document.write("<div style='Background-color: #FFFFFF; POSITION: absolute; TOP:0; LEFT:0; VISIBILITY: visible; Z-INDEX: 100; WIDTH: 100%; HEIGHT: 100%;' id='loading0'></div>");
//    my_win.document.write("<div style='POSITION: absolute; TOP:188; LEFT:578; VISIBILITY: visible; Z-INDEX: 101; WIDTH: 76px; HEIGHT: 18px;' id='loading1'>");
//    my_win.document.write("<img src='images/loading.gif' width='76' height='18' border='0'></div>");
//    my_win.document.write("<div style='Background-color: #FFFFFF; POSITION: absolute; TOP:188; LEFT:578; VISIBILITY: visible; Z-INDEX: 102; WIDTH: 76px; HEIGHT: 18px;' id='loading2'></div>");
    my_win.document.write("<div style='POSITION: absolute; TOP: 0; LEFT: 0; VISIBILITY: visible; Z-INDEX: 0; WIDTH: "+w+"px; HEIGHT: "+h+"px;'>");
    my_win.document.write("<img src='images/"+ImagesBig+"' width='"+w+"' height='"+h+"' border=0></div>");
    my_win.document.write("<div style='POSITION: absolute; TOP: "+h+"; LEFT: 0; VISIBILITY: visible; Z-INDEX: 0; WIDTH: "+w+"px; HEIGHT: 19px;'>");
    my_win.document.write("<img src='images/close_bg.gif' width='"+w+"' height='19' border=0>");
    my_win.document.write("<div style='POSITION: absolute; TOP: 0; LEFT: "+(w-78)+"; VISIBILITY: visible; Z-INDEX: 0; WIDTH: 78px; HEIGHT: 19px;'>");
    my_win.document.write("<a onmouseover='"+str+"' onmouseout='"+str2+"' onclick='eval(window.close());'>");
    my_win.document.write("<img name='img_c' src='images/close_"+lng+".gif' width='78' height='19' border=0></a></div></div>");
    my_win.document.write("</body></html>");
    my_win.document.close();
  }
}

function ResizeSections()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-20;
  for(i=0; i<N; ++i)
  {
    eval(layerRef+'["div_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_'+i+'"]'))
    {
      if(Images[i]!="")
        eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-30-Widths[i]));
      else eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-20));
    }
  }  
}

function ResizeSectionsFF()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-30;
  for(i=0; i<N; ++i)
  {
    eval(layerRef+'"div_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_'+i+'a'+'").width="'+cw+'"');
    if(eval(layerRef+'"text_'+i+'"'+styleSwitch))
    {
      if(Images[i]!="")
        eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-30-Widths[i]));
      else eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-20));
    }
  }
}


function ResizeSections2()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-20;
  var w=0;
  for(i=0; i<N; ++i)
    if(w<Widths[i]) w=Widths[i];

  for(i=0; i<N; ++i)
  {
    eval(layerRef+'["div_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_'+i+'"]'))
    {
      if(Images[i]!="")
        eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
      else eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
    }
  }
}

function ResizeSections2FF()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-30;
  var w=0;
  for(i=0; i<N; ++i)
    if(w<Widths[i]) w=Widths[i];

  for(i=0; i<N; ++i)
  {
    eval(layerRef+'"div_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_'+i+'a")'+'.width="'+cw+'"');
    if(eval(layerRef+'"text_'+i+'"'+styleSwitch))
    {
      if(Images[i]!="")
        eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
      else eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
    }
  }
}

function ResizeSections4()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-20;
  var w=0, ww=0;
  for(i=0; i<N; ++i)
    if(w<Widths[i]) w=Widths[i];
  for(i=N; i<N*2; ++i)
    if(ww<Widths[i]) ww=Widths[i];

  for(i=0; i<N; ++i)
  {
    eval(layerRef+'["div_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_'+i+'"]'))
    {
      if(Images[N+i]!="")
        eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-40-w-ww));
      else eval(layerRef+'["text_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
    }
  }
}

function ResizeSections4FF()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  //if(cw<481) cw=461;
  if(cw<764) cw=744;
  else cw=cw-30;
  var w=0, ww=0;
  for(i=0; i<N; ++i)
    if(w<Widths[i]) w=Widths[i];
  for(i=N; i<N*2; ++i)
    if(ww<Widths[i]) ww=Widths[i];

  for(i=0; i<N; ++i)
  {
    eval(layerRef+'"div_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_'+i+'a'+'").width="'+cw+'"');
    if(eval(layerRef+'"text_'+i+'"'+styleSwitch))
    {
      if(Images[N+i]!="")
        eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-40-w-ww));
      else eval(layerRef+'"text_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
    }
  }
}


function ResizeSections3()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  if(cw>520) eval(layerRef+'["world_map"]'+styleSwitch+'.left='+(10+(cw/2)-250));
  if(cw<764) cw=744;
  else cw=cw-20;
  var w=0;
  
  for(i=0; i<Ne; ++i)
    if(w<EuroWidths[i]) w=EuroWidths[i];
  for(i=0; i<Na; ++i)
    if(w<AsiaWidths[i]) w=AsiaWidths[i];
  for(i=0; i<Naf; ++i)
    if(w<AfrWidths[i]) w=AfrWidths[i];
  for(i=0; i<No; ++i)
    if(w<OceanWidths[i]) w=OceanWidths[i];
  for(i=0; i<Nna; ++i)
    if(w<NAWidths[i]) w=NAWidths[i];
  for(i=0; i<Nsa; ++i)
    if(w<SAWidths[i]) w=SAWidths[i];
  for(i=0; i<Ne; ++i)
  {
    eval(layerRef+'["div_euro_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_euro_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_euro_'+i+'"]'))
      eval(layerRef+'["text_euro_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Na; ++i)
  {
    eval(layerRef+'["div_asia_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_asia_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_asia_'+i+'"]'))
      eval(layerRef+'["text_asia_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Naf; ++i)
  {
    eval(layerRef+'["div_afr_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_afr_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_afr_'+i+'"]'))
      eval(layerRef+'["text_afr_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Nna; ++i)
  {
    eval(layerRef+'["div_na_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_na_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_na_'+i+'"]'))
      eval(layerRef+'["text_na_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Nsa; ++i)
  {
    eval(layerRef+'["div_sa_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_sa_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_sa_'+i+'"]'))
      eval(layerRef+'["text_sa_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<No; ++i)
  {
    eval(layerRef+'["div_ocean_'+i+'a"]'+styleSwitch+'.width='+cw);
    eval('img_ocean_'+i+'a'+'.width="'+cw+'"');
    if(eval(layerRef+'["text_ocean_'+i+'"]'))
      eval(layerRef+'["text_ocean_'+i+'"]'+styleSwitch+'.width='+(cw-30-w));
  }
}

function ResizeSections3FF()
{
  var cw=0;
  eval('cw='+clientSize+'Width');
  if(cw>520) eval(layerRef+'"world_map"'+styleSwitch+'.left='+(10+(cw/2)-250));
  if(cw<764) cw=744;
  else cw=cw-30;
  var w=0;
  
  for(i=0; i<Ne; ++i)
    if(w<EuroWidths[i]) w=EuroWidths[i];
  for(i=0; i<Na; ++i)
    if(w<AsiaWidths[i]) w=AsiaWidths[i];
  for(i=0; i<Naf; ++i)
    if(w<AfrWidths[i]) w=AfrWidths[i];
  for(i=0; i<No; ++i)
    if(w<OceanWidths[i]) w=OceanWidths[i];
  for(i=0; i<Nna; ++i)
    if(w<NAWidths[i]) w=NAWidths[i];
  for(i=0; i<Nsa; ++i)
    if(w<SAWidths[i]) w=SAWidths[i];
  for(i=0; i<Ne; ++i)
  {
    eval(layerRef+'"div_euro_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_euro_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_euro_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_euro_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Na; ++i)
  {
    eval(layerRef+'"div_asia_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_asia_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_asia_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_asia_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Naf; ++i)
  {
    eval(layerRef+'"div_afr_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_afr_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_afr_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_afr_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Nna; ++i)
  {
    eval(layerRef+'"div_na_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_na_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_na_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_na_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<Nsa; ++i)
  {
    eval(layerRef+'"div_sa_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_sa_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_sa_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_sa_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
  for(i=0; i<No; ++i)
  {
    eval(layerRef+'"div_ocean_'+i+'a"'+styleSwitch+'.width='+cw);
    eval('document.getElementById("img_ocean_'+i+'a").width="'+cw+'"');
    if(eval(layerRef+'"text_ocean_'+i+'"'+styleSwitch))
      eval(layerRef+'"text_ocean_'+i+'"'+styleSwitch+'.width='+(cw-30-w));
  }
}

// -->
