if (self == top) {
    var navPrinting = false;
    if ((navigator.appName + navigator.appVersion.substring(0, 1)) == "Netscape4") {
    navPrinting = (self.innerHeight == 0) && (self.innerWidth == 0);}
    if ((self.name != 'text') && (self.location.protocol != "file:") && (document.cookie.indexOf('mode=NoFrames') < 0) && !navPrinting) {
	//var newURL = '/cgi/mi2g/frameset.php?pageid=' + escape(self.location.pathname);
	var newURL = '/cgi/mi2g/frameset.php?pageid=' + escape(self.location.href);
	if (parseInt(navigator.appVersion, 10) >= 3) {
		self.location.replace(newURL);
	} else {
		self.location.href = newURL;
	}
    }
}
