 var naar = location.href.substring(location.href.lastIndexOf("/")+1);
  
 if ((top !=self.parent) !=(top==self))
  {
   if(naar.substring(0,1) == "~")
    top.location.replace('frames.html?' + "index.html");
   else
    top.location.replace('frames.html?' + naar);
  }
