

if(top.frames.length > 0) {
  if (top.location.host != window.location.host) {
    top.location.href=self.location;
  }
}


function ShowIndex(az,a) {
var f;

     f = window.open(az,"index","left=0,top=0,width=400,resizable,scrollbars");

     if ( document.all ) {
        u = decodeURI(a.URL);
        u = u.replace(/\\/g,"");
        u = u.replace(/\//g,"");
//        u = a.title;

        t = f.document.all.tags("a");
        n = t.length;
        for (var i=0; i < n; ++i ) {

          x = t[i];
          h = decodeURI(x.href);
          h = h.replace(/\//g,"");
//          h = x.title;
          if ( h == u ) {
            x.focus();
            x.focus();
          }

	}
        f.document.alinkColor = "#FF0000";
     }
        f.document.close();
}

function SwitchWindow() {
        if (self.name == "index" ) {
	  self.close();
	} else {
	  self.name="right";
	}
}	 

function DisplayIndexButton() {
  if ( document.all && (navigator.userAgent.indexOf('Opera') == -1) ) {
    document.write('<IMG SRC="../az.gif" BORDER="0" ONCLICK="ShowIndex(');
    document.write("'az.html'"); 
    document.write(',document)" style="cursor:pointer">');
  }
}

function SwitchLang(a,b)
 {
   aa='/'+a+'/';
   bb='/'+b+'/';
   s=top.location.href;
   if ( s.lastIndexOf(aa)>0 ) 
   {
     p = s.replace(aa,bb);
     top.location.href=p;
   } 
 }
