browserName = navigator.appName;
browserVersion = parseInt(navigator.appVersion);

if (((browserName =! "Netscape") && (browserName =! "Microsoft Internet Explorer")) || ((browserVersion < 4))) parent.location.href="/asp/a-paere/oldbrowser.htm";

//function ShowCorrector() {
//	if (parent.frames["menu"]) {
//		if (parent.frames["menu"].loaded) {
//			parent.frames["menu"].ShowCorrector(window.document.location);
//		} else {
//			setTimeout("ShowCorrector()",1000);
//		}
//	}
//}

//function setCookie() {
//	var expDays = 30;
//	var exp = new Date();
//	exp.setTime(exp.getTime()+(expDays*24*60*60*1000));
//	document.cookie = "SONOFON_menu=" + escape(parent.frames['menu'].document.javaMenu.getCookieString()) + "; path=/; expires=" + exp.toGMTString();
//	return (true);
//}

function setMenu() {
	if (hasMenu) {
		if (parent.frames['menu'].loaded) {
			if (curPage == "url") {
				theLoc = String(document.location);
				tmpLoc = theLoc.substr(7,(theLoc.length-7));
				slicePos = tmpLoc.search(/\//)+7;
				theLoc = theLoc.slice(slicePos);
				parent.frames['menu'].document.javaMenu.selectItemViaURL(theLoc);
			} else if (curPage != "") {
				parent.frames['menu'].document.javaMenu.selectItemNow(curPage);
			}
		} else {
			setTimeout("setMenu()",250);
		}
	}
}

function doHintText(label,theText,varMode) {
	if (parent.frames['menu']) {
		if (parent.frames['menu'].loaded) {
			if (!varMode) if ((label) && (theText)) parent.frames['menu'].document.javaMenu.setHintText(label,theText);
			if (varMode) if ((vLabel) && (vTheText)) parent.frames['menu'].document.javaMenu.setHintText(vLabel,vTheText);
		} else {
			var vLabel = label;
			var vTheText = theText;
			setTimeout("doHintText(null,null,true)",250);
		}
	}
}

function execHintText() {
	if (hintText) writeHintText();
}

