// Reloads within frames if needed and possible

if(top == self || (parent.frames[1].name != 'menu')){
  p = self.location.pathname;
  if(self.location.search) p += self.location.search;
  if(self.location.hash) p += self.location.hash;
  top.location.href = '/index.php?p=' + escape(p);
}
