if (parent.location.href == self.location.href && !rtg)
  window.location.replace('index.html?tg='+self.location.pathname);
