
//searches URI for language suffix and redirects if success

function message()
{
	var docLoc = document.URL
	if (docLoc.match("_en.html")){
		alert("Vous serez maintenant dirig\u00e9 vers la page en Fran\u00e7ais. \nVeuillez appuyer sur le bouton OK.");
		window.open(docLoc.replace(/_en.html/,"_fr.html"), "_self");
	}else if(docLoc.match("_fr.html")){
		alert("You are now being redirected to the English page.\n Please press on the OK button");
		window.open(docLoc.replace(/_fr.html/,"_en.html"), "_self");
	}else if (docLoc.match("_en.php")){
		alert("Vous serez maintenant dirig\u00e9 vers la page en Fran\u00e7ais. \nVeuillez appuyer sur le bouton OK.");
		window.open(docLoc.replace(/_en.php/,"_fr.php"), "_self");
	}else{
		alert("You are now being redirected to the English page.\n Please press on the OK button");
		window.open(docLoc.replace(/_fr.php/,"_en.php"), "_self");
	}
}


/*// message for the alert box
am = "Kimono Communications 2007";


// runtime script: do not edit below this line
// ===========================

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

 function nrc(e) {
    if (bNS && e.which > 1){
       alert(am)
       return false
    } else if (bIE && (event.button >1)) {
      alert(am)
      return false;
    }
 }

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;*/


// function for FidoExpress drop-down menu
function dropmenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// patch function for XHTML Strict 1.0 standards-compliant validation.. doen<t quite agree with other scripts...

/*function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) 
	 {
	   var anchor = anchors[i];
	   if (anchor.getAttribute("href") &&
	       anchor.getAttribute("rel") == "external")
	     anchor.target = "_blank";
	 }
}

window.onload = externalLinks;*/