var MM_contentVersion = 8;
var flashPage = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		if (navigator.plugins["Shockwave Flash"]) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function afficheBanniereFlash(idFlash, nomFichierFlash, paramEnvFlash, width, height, nomFichierImage, idImage, altText, pVertige) {
	if  (!bw.ns4&&!pVertige) {
		if ( MM_FlashCanPlay) {
			document.write('<div style="display:inline" id="' + idFlash + '">');
			document.write('<object style="display:inline" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' height="'+height+'" width="'+ width + '" id="flash_' + idFlash + '">');
			document.write(' <param name="movie" value="' + nomFichierFlash + '.swf?p_ban=' + paramEnvFlash + '"><param name="quality" value="high">'); 
			document.write(' <embed id="flash_' + idFlash + '" src="' + nomFichierFlash + '.swf?p_ban=' + paramEnvFlash + '" quality=high   ');
			document.write(' swLiveConnect="FALSE" name="' + idFlash + '" width="'+ width + '" height="' + height + '"');
			document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
			document.write(' </embed>');
			document.write('</object>');
			document.write('</div>');
			document.write('<div style="display:none" id="' + idImage + '">');	
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</div>');		
		} else {
			document.write('<div style="display:inline" id="' + idImage + '">');	
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</div>');		
		}
	} else {
		document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
	}	
}

function afficheBanniereFlashFix(idFlash, nomFichierFlash, paramEnvFlash, width, height, nomFichierImage, idImage, altText, pVertige, AdresseFichierImage) {
	if  (!bw.ns4&&!pVertige) {
		if ( MM_FlashCanPlay) {
			document.write('<div style="display:inline" id="' + idFlash + '">');
			document.write('<object style="display:inline" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' height="'+height+'" width="'+ width + '" id="flash_' + idFlash + '">');
			document.write(' <param name="movie" value="' + nomFichierFlash + '?p_ban=' + paramEnvFlash + '"><param name="quality" value="high">'); 
			document.write(' <embed id="flash_' + idFlash + '" src="' + nomFichierFlash + '?p_ban=' + paramEnvFlash + '" quality=high   ');
			document.write(' swLiveConnect="FALSE" name="' + idFlash + '" width="'+ width + '" height="' + height + '"');
			document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
			document.write(' </embed>');
			document.write('</object>');
			document.write('</div>');
			document.write('<div style="display:none" id="' + idImage + '">');	
			document.write('<a href="' + AdresseFichierImage + '">');			
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</a>');
			document.write('</div>');		
		} else {
			document.write('<div style="display:inline" id="' + idImage + '">');	
			document.write('<a href="' + AdresseFichierImage + '">');
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</a>');
			document.write('</div>');		
		}
	} else {
		document.write('<a href="' + AdresseFichierImage + '">');	
		document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
		document.write('</a>');		
	}	
}


function afficheBanniereFlashSondage(idFlash, nomFichierFlash, paramEnvFlash, width, height, nomFichierImage, idImage, altText, pVertige, AdresseFichierImage) {
	if  (!bw.ns4&&!pVertige) {
		if ( MM_FlashCanPlay) {
			document.write('<div style="display:inline" id="' + idFlash + '">');
			document.write('<a class="titre_page_table_flash">');
			document.write('<object style="display:inline" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' height="'+height+'" width="'+ width + '" id="flash_' + idFlash + '">');
			document.write(' <param name="movie" value="' + nomFichierFlash + '?p_ban=' + paramEnvFlash + '"><param name="quality" value="high">'); 
			document.write(' <embed id="flash_' + idFlash + '" src="' + nomFichierFlash + '?p_ban=' + paramEnvFlash + '" quality=high   ');
			document.write(' swLiveConnect="FALSE" name="' + idFlash + '" width="'+ width + '" height="' + height + '"');
			document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
			document.write(' </embed>');
			document.write('</object>');
			document.write('</a>');			
			document.write('</div>');
			document.write('<div style="display:none" id="' + idImage + '">');	
			document.write('<a class="titre_page_table_flash" href="javascript:OpenSondage();">');			
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</a>');
			document.write('</div>');		
		} else {
			document.write('<div style="display:inline" id="' + idImage + '">');	
			document.write('<a class="titre_page_table_flash" href="javascript:OpenSondage();">');
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</a>');
			document.write('</div>');		
		}
	} else {
		document.write('<a class="titre_page_table_flash" href="javascript:OpenSondage();">');	
		document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
		document.write('</a>');		
	}
}

function afficheLienSondage(langue) {
	if  (MM_FlashCanPlay) {
		if (langue == 1) {
			document.write('<area shape="rect" coords="280,310,470,335" href="http://diffusion.loto-quebec.com/sw3/res/asp/redirect.asp?mysite=http://loteries.loto-quebec.com/web/jsp/MainPage.jsp?Params=Y.US.82050.0&section=finalistes_lmm&objet=image">');
		} else {
			document.write('<area shape="rect" coords="280,310,470,335" href="http://diffusion.loto-quebec.com/sw3/res/asp/redirect.asp?mysite=http://loteries.loto-quebec.com/web/jsp/MainPage.jsp?Params=Y.CA.82050.0&section=finalistes_lmm&objet=image">');		
		}
	} else {
		if (langue == 1) {
			document.write('<area shape="rect" coords="280,310,470,335" href="http://diffusion.loto-quebec.com/sw3/res/asp/redirect.asp?mysite=http://loteries.loto-quebec.com/web/jsp/MainPage.jsp?Params=N.US.82050.0&section=finalistes_lmm&objet=image">');
		} else {
			document.write('<area shape="rect" coords="280,310,470,335" href="http://diffusion.loto-quebec.com/sw3/res/asp/redirect.asp?mysite=http://loteries.loto-quebec.com/web/jsp/MainPage.jsp?Params=N.CA.82050.0&section=finalistes_lmm&objet=image">');		
		}
		
	}
}


