if (top != self) {

    try {

        top.location.replace(self.location.href);

    } 

    catch(er) {

        // ignore

    }

}


