if (top==self) 
{
  top.location.href="index.html";
}
