// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

param = String(document.location).split("?")[1];

if ((param == null) || (param == "")) {
	param2 = '';
	param3 = '';
} else {
	param2 = '<PARAM NAME="flashvars" VALUE="initVar='+param+'">';
	param3 = 'flashVars="initVar='+param+'"';
}

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable versionfunction

  var oeTags = '<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%"><TR><TD>'
	+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">'
	+ '<param name="movie" value="loader.swf">'+param2
	+ '<param name="scale" value="noscale">'
	+ '<embed src="loader.swf" scale="noscale" '+param3+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"><\/embed>'
	+ '<\/object>'
	+ '<\/TD><\/TR><\/TABLE>';

    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<DIV>'
	+ '<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%"><TR><TD>'
	+ 'Vous n\'avez pas la bonne version du lecteur Flash. Vous pouvez l\'installer depuis<br>'
	+ '<A HREF="http://www.macromedia.com/go/getflashplayer/" TARGET="_blank">le site de Macromedia</a>.'
	+ '<\/TD><\/TR><\/TABLE><\/DIV>';

    document.write(alternateContent);  // insert non-flash content
  }
}