﻿sourcesVideos = new Array();
// son = new Array();
function video(num) {
	var conteneurVideo = document.getElementById("conteneurVideo"+num);
	var lienVideo = document.getElementById("lienVideo"+num);
	videoAffichee = (conteneurVideo.style.display!="none");
	conteneurVideo.style.display = (videoAffichee?"none":"");
	if(videoAffichee) {
		conteneurVideo.innerHTML = "";
		lienVideo.innerHTML="Afficher la vidéo";
	} else {
		conteneurVideo.innerHTML = sourcesVideos[num];
		lienVideo.innerHTML="Masquer la vidéo";
		lienVideo.focus();
	}
}

<!-- script créé par le webmaster de : -->
<!-- www.creation-de-site.net -->
<!-- vous y trouverez des javascripts, des images, des tutoriaux et des ressources gratuites. -->
<!--
function rand_number(n)
{
	var x;
	x=Math.round(Math.random()*100);
	x%=n;
	return x;
}



function music_index()
{
	var son = new Array();
 	son[0]='<embed src="http://www.iut-geii.org/_donnees/sons/2004-Spot Radio 02.wma" hidden=true autostart=true loop=0">';
 	son[1]='<embed src="http://www.iut-geii.org/_donnees/sons/2004-Spot Radio 01.wma" hidden=true autostart=true loop=0">';
	<!-- vous pouvez modifier les sons ci-dessus, en ajouter, en supprimer... -->
 	var n=rand_number(2); <!-- attention, le nombre entre parenthese doit etre egal aux derniers entre crochet +1  -->
//--    writeWindowsMediaP(son[0]);
//    music()
document.write(son[n]);
}

//-->
function music()
{
	var repetition,visibility,depart,fichier_son;
	var fichier_son = "http://www.iut-geii.org/_donnees/sons/2004-Spot Radio 02.wma"; <!-- chemin d'acces de votre fichier musical -->
	var repetition = "0"; <!-- 0 ==> une seule fois, -1 ==> en boucle -->
	var cache_panneau = "true"; <!-- ou false : true => cache panneau, false => affiche panneau -->
<!--	var depart = "true"; <!-- ou false : true =>depart automatique, false =>il faut appuyer sur le bouton play du panneau (donc cache_panneau = false) -->
	document.write('<EMBED SRC="' + fichier_son +'" hidden=' + cache_panneau + ' autostart=' + depart + ' loop=' + repetition +'>');
}

/**
 * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
 */

function writeFlash(p) {
	writeEmbed(
		'D27CDB6E-AE6D-11cf-96B8-444553540000',
		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
		'application/x-shockwave-flash',
		p
	);
}

function writeShockWave(p) {
	writeEmbed(
	'166B1BCA-3F9C-11CF-8075-444553540000',
	'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
	'application/x-director',
		p
	);
}

function writeQuickTime(p) {
	writeEmbed(
		'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
		'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
		'video/quicktime',
		p
	);
}
function writeQuickTime2(p) {
	writeEmbedVLC(
		'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
		'http://www.apple.com/qtactivex/qtplugin.cab',
		'video/quicktime',
		'http://www.apple.com/quicktime/download/',
		p
	);
}

function writeRealMedia(p) {
	writeEmbed(
		'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
		'audio/x-pn-realaudio-plugin',
		p
	);
}

function writeWindowsMedia(p) {
	p.url = p.src;
	writeEmbed(
		'6BF52A52-394A-11D3-B153-00C04F79FAA6',
		'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
		'application/x-mplayer2',
		p
	);
}
function writeWindowsMediaP(p) {
	p.url = p.src;
	writeEmbedVLC(
		'6BF52A52-394A-11D3-B153-00C04F79FAA6',
		'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
		'application/x-mplayer2',
		p
	);
}

function writeVLC(p) {
   	p.url = p.src;
	writeEmbedVLC(
		'BE31822-FDAD-461B-AD51-BE1D1C159921',
		'http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0',
		'application/x-vlc-plugin',
		p
	);
}

function writeEmbed(cls, cb, mt, p) {
	var h = '', n;

	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
	h += '>';

	for (n in p)
		h += '<param name="' + n + '" value="' + p[n] + '">';

	h += '<embed type="' + mt + '"';

	for (n in p)
		h += n + '="' + p[n] + '" ';

	h += '></embed></object>';

	document.write(h);
}

function writeEmbedVLC(cls, cb, mt,pp, p) {
	var h = '', n;

	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
	h += typeof(p.autoplay) != "undefined" ? 'autoplay="' + p.autoplay + '"' : '';
	h += typeof(p.controller) != "undefined" ? 'controller="' + p.controller + '"' : '';
	h += typeof(p.loop) != "undefined" ? 'loop="' + p.loop + '"' : '';
	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
	h += typeof(p.ShowStatusBar) != "undefined" ? 'showstatusbar="' + p.ShowStatusBar + '"' : '';
	h += typeof(p.Volume) != "undefined" ? 'volume="' + p.Volume + '"' : '';
	h += typeof(p.StartTime) != "undefined" ? 'starttime="' + p.StartTime + '"' : '';
	h += '>';

	for (n in p)
		h += '<param name="' + n + '" value="' + p[n] + '">';

		h += '<embed type="' + mt + '" pluginspage="' + pp + '"';

	for (n in p)
		h += n + '="' + p[n] + '" ';

	h += '></embed></object>';

	document.write(h);
}


 <!-- <object id="video1" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0" height="250" width="320" 
<!-- 	classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" events="False">
<!--                 <param name="MRL" value="{URL}">
<!--                 <param name="ShowDisplay" value="True">
<!--                 <param name="AutoLoop" value="True">
<!--                 <param name="AutoPlay" value="True">
<!--                 <param name="ShowStatusBar" value="true">
<!--                 <param name="Volume" value="90">
<!--                 <param name="StartTime" value="0">
<!--                 <param name="src" value="{URL}">
<!--                 <embed src="{URL}" width="250" height="320" pluginspage="http://www.videolan.org" 	type="application/x-vlc-plugin" progid="VideoLAN.VLCPlugin.2" mrl="{URL}" showdisplay="True" autoloop="True" autoplay="True" ShowStatusBar="True" volume="90" starttime="0"> </OBJECT>
				

