var isNav4 = (navigator.appName == "Netscape"
               && parseInt(navigator.appVersion) == 4);
if (top == self) {
    // Don't do anything if NN4 is printing frame
    if (!isNav4 || (isNav4 && window.innerWidth != 0)) {
        if (location.replace) {
           // Use replace(), if available, to keep current page out of history
           location.replace("../index.html?main=" + escape(location.href));
        } else {
           location.href = "../index.html?main=" + escape(location.href);
        }
    }
}
