function introFlash(fichier,largeur,hauteur)
{
	// Vérification du nombre d'arguments passés dans cette fonction
	if (arguments.length > 3)
		{
		var transparence  = arguments[3];
		if (arguments[4] == null) { version = 6 }
		else 
			{ version = arguments[4]; }

		if (arguments[5] == null) { link = '' }
			else
				{link = arguments[5] }

		}
		
	// BLOCS PRINCIPAUX
//	document.write('<div class="bloc_flash">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="hdr"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="' + version + '.0.0.0" ');
	document.write(' width="' + largeur + '" height="' + hauteur + '">');
	document.write('<param name=movie value="' + fichier + '" />');
	document.write('<param name=menu value=false />');
	document.write('<param name=quality value=high />');
	if (transparence) { document.write('<param name="wmode" value="transparent" />');	}
	if (link != null) { document.write('<param name="FlashVars" value="lien=' + link + '" />');	}
	document.write('<embed src="' + fichier + '" quality=high');
	document.write(' width="' + largeur + '" height="' + hauteur + '" ');
	if (transparence) { document.write('wmode="transparent"');	}
//	if (link != null) { document.write(' FlashVars="lien=' + link + '"');}
	if (link != null) { document.write(' FlashVars="lien=' + link + '"');	}
	document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
//	document.write('</div>');
}


function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
	windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
	windowHeight = document.documentElement.clientHeight;
}
else {
	if (document.body && document.body.clientHeight) {
		windowHeight = document.body.clientHeight;
	}
}
}
return windowHeight;
}
function setContent() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
	var contentElement = document.getElementById('content');
	var contentHeight = contentElement.offsetHeight;
	if (windowHeight - contentHeight > 0) {
		contentElement.style.position = 'relative';
		contentElement.style.top = ((windowHeight / 2) - (contentHeight / 2)) + 'px';
	}
	else {
		contentElement.style.position = 'static';
	}
}
}
}
window.onload = function() {
setContent();
}
window.onresize = function() {
setContent();
}

var subs_array = new Array("fla-nav","us");// Put the id's of your hidden divs in this array
function displaySubs(the_sub){
	if (document.getElementById(the_sub).style.display==""){
	document.getElementById(the_sub).style.display = "none";return
  }
  for (i=0;i<subs_array.length;i++){
	var my_sub = document.getElementById(subs_array[i]);
	my_sub.style.display = "none";
	}

  document.getElementById(the_sub).style.display = "";
  }

