function filenameOnly (InString)  {
	LastSlash=InString.lastIndexOf ('/', InString.length-1)
	OutString=InString.substring  (LastSlash+1, InString.length)
	return (OutString);	
}

if ((self != top) && (parent.theMenu)) {
	var eID = parent.theMenu.findEntry('Drug Therapy', "text");
	if (eID >= 0) {
		parent.theMenu.selectEntry(eID);
		if (parent.theMenu.setEntry(eID, true)) {
			parent.theMenu.refresh();
		}
	}
} else {
	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 newLoc = filenameOnly(self.location.pathname);
		if (self.location.hash != "") {newLoc += self.location.hash;}
		
		if (location.href.toLowerCase().indexOf('www.he.net/~altonweb') == -1) {
		
			if (parseInt(navigator.appVersion) >= 3) {
					self.location.replace('index.html?page=' + escape(newLoc));
			} else {
				self.location.href = 'index.html?page=' + escape(newLoc);
			}
		
		} else {
		
			if (parseInt(navigator.appVersion) >= 3) {
				self.location.replace('http://www.altonweb.com/cs/downsyndrome/index.html?page=' + escape(newLoc));
			} else {
				self.location.href = 'http://www.altonweb.com/cs/downsyndrome/index.html?page=' + escape(newLoc);
			}
		}	
	}
} 

