// 									 \\
//***********************************\\
//  fonction menuSection(laSection)  \\
// 									 \\
//***********************************\\
// laSection :	nom de la page       \\
//-------------- 					 \\
// Cette fonction recois en paramètre\\
// le nom de la page et envoit de    \\
// l'information au flash. Il va     \\
// modifier la variable "section"    \\
// du flash et lui passer en         \\
// paramètre le nom de la page       \\
// contenu dans laSection.           \\
// 				     \\
//***********************************\\
// 									 \\
// Créé par : Guillaume Tremblay	 \\
// Date : 2006-08-29				 \\
// 									 \\
function menuSection(laSection){
	document.getElementById("oFlashMenu").SetVariable("section", laSection);
}

function showName(e){
	alert(e);
	document.getElementById("oDivProvinceName").innerHTML = e;
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
													// Handle all the FSCommand messages in a Flash movie.

function oFlashDealers_DoFSCommand(command, args) {
	var oFlashDealersObj = isInternetExplorer ? document.all.oFlashDealers : document.oFlashDealers;
	if (command == "alert") {
		window.location.href = "#" + args;
	} else if (command == "showName") {
		document.getElementById("oDivProvinceName").innerHTML = args;
	} else if (command == "trace") {
		alert(command + " - " + args);
	}
}

// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub oFlashDealers_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call oFlashDealers_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

