function loadQuicktime(url, width, height, autoplay, controller)
{
	// Quelques vérifications
	if ((autoplay != 'true') && (autoplay != 'false') && (controller != 'true') && (controller != 'false') && (width != (width - 0)) && (height != (height - 0)) && (url.indexOf('http') != -1) && (url.indexOf('ftp') != -1)) {
		alert('Erreur d\'insert de la vidéo Quicktime. Vérifiez les paramètres.');
	} else {
		// Créé l'insert.
		insert_quicktime = '';
		insert_quicktime += '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="' + width + '" HEIGHT="' + height + '" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">';
		insert_quicktime += '<PARAM NAME="controller" VALUE="' + controller + '">';
		insert_quicktime += '<PARAM NAME="type" VALUE="video/quicktime">';
		insert_quicktime += '<PARAM NAME="autoplay" VALUE="' + autoplay + '">';
		insert_quicktime += '<PARAM NAME="target" VALUE="myself">';
		insert_quicktime += '<PARAM NAME="src" VALUE="' + url + '">';
		insert_quicktime += '<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/">';
		insert_quicktime += '<EMBED WIDTH="' + width + '" HEIGHT="' + height + '" CONTROLLER="' + controller + '" TARGET="myself" SRC="' + url + '" type="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>';
		insert_quicktime += '</OBJECT>';
		document.write(insert_quicktime);
	}
}

function loadFlash(url, width, height, loop)
{
	// Quelques vérifications
	if ((width != (width - 0)) && (height != (height - 0)) && (url.indexOf('http') != -1) && (url.indexOf('ftp') != -1) && (loop != 'false') && (loop != 'true')) {
		alert('Erreur d\'insert de l\'élément Flash. Vérifiez les paramètres.');
	} else {
		// Créé l'insert.
		insert_flash = '';
		insert_flash += '<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="' + width + '" height="' + height + '">';
		insert_flash += '<param name="movie" value="' + url + '" />';
		insert_flash += '<param name="quality" value="high" />';
		insert_flash += '<param name="LOOP" value="' + loop + '" />';
		insert_flash += '<embed src="' + url + '" width="' + width + '" height="' + height + '" loop="' + loop + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
		insert_flash += '</object>';
		document.write(insert_flash);
	}
}
