prefix=""

here=window.location.href
if (here.indexOf("Translate")!= -1){
  prefix=here.slice(0,here.indexOf("url=")+4);
}

function BWindow_change(){
  // method for BWindow class
  newpage=this.locator;
  if(this.translate!=false){
    newPage=prefix+this.locator;
    window.location=newPage;
  }
  else
    window.top.location=this.locator
}

function BWindow_close(){
  // method for BWindow class
  if(this.seen){ // we won't get undefined object error
    if(!this.windowobj.closed){ // then close it
      this.windowobj.close();
    };
  };
}

function BWindow_show(){ 
  //method for the BWindow class
  if(this.seen){ // we won't get undefined object error
    if(this.windowobj.closed){
      newpage=this.locator;
      if(this.translate!=false)
        newPage=prefix+this.locator; 
      // open it
      this.windowobj = window.open(newPage,
        this.name, this.options);     
      this.windowobj.focus();
    }
    else{// shift focus to it
      this.windowobj.focus()
    };
  }
  else{ // make a window and set flag
    newPage=this.locator
    if (this.translate!=false)
      newpage=prefix+this.locator; 
    this.windowobj = window.open(newPage, this.name, this.options);
    this.seen = true;
  }
}

function BWindow(locator, name, options, translate){
  // set object's initial properties
  this.locator = locator;
  this.name = name;
  this.options = options;
  this.translate = translate;
  this.seen = false;

  // Link methods to object
  this.change = BWindow_change;
  this.close = BWindow_close;
  this.show = BWindow_show;
}

function getCookie(VPC){
  if (document.cookie.length > 0) {              
    begin = document.cookie.indexOf(VPC+"=");       
    if (begin != -1) {           
      begin += VPC.length+1;       
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
      return unescape(document.cookie.substring(begin, end));
    } 
  }
  return null;
}

function CheckHibernateStatus(){
  var navWindow = null;
  hibernate=getCookie('hibernate');
  if (hibernate<'58'){
    notams.show();
  }
}
<!--
if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu(){  // this function only applies to IE4, ignored otherwise.
  event.cancelBubble = true
  event.returnValue = false;
  return false;
}

function norightclick(e){ // This function is used by all others
  if (window.Event){ // again, IE or NAV?
    if (e.which == 2 || e.which == 3)
    return false;
  }
  else
    if (event.button == 2 || event.button == 3){
      event.cancelBubble = true;
      event.returnValue = false;
     return false;
    }
  }


document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others

var myImages=new Array()

function preLoadImages(){
  for (i=0;i<preLoadImages.arguments.length;i++){
   myImages[i]=new Image();
   myImages[i].src=preLoadImages.arguments[i];
  }
}

preLoadImages("bt2.gif","bt1.gif");

