var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5;
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0))
{
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('</SCRIPT\> \n');
}

function popup(page,tx,ty,nom_fenetre,barre_status,barre_outils,barre_scroll)
{
	if (parseInt(navigator.appVersion) > 3)
	{
		x = parseInt((screen.availWidth - tx) / 2);
		y = parseInt((screen.availHeight - ty) / 2);
	}
	else
	{
		x = 50;
		y = 50;
	}
	
	window.open(page,nom_fenetre,"status=" + barre_status + ",toolbar=" + barre_outils + ",resizable=0,scrollbars=" + barre_scroll + ",width=" + tx + ",height=" + ty + ",left=" + x  + ",top=" + y);
	return false;
}

function imprime()
{
	if (window.print) window.print();
	else alert("Pour imprimer la page, cliquer sur le bouton 'Imprimer' de votre navigateur.");
	
	return false;
}

function fermer()
{
	window.close();
}