
try {
    if (self.location.protocol != "about:" && self.location.protocol != "ms-its:" && top.location == self.location) {
        var topic = GetFileName(self.location.pathname);
        top.location = "webframe.html?" + encodeURIComponent(topic);
    }
}
catch (ex) {
}

function GetFileName(pathName) {
    return pathName.replace(/^.*\//, "");
}