// JavaScript Document

/*
Mise à jour de Microsoft Internet Explorer et conséquences sur les contrôles ActiveX

Microsoft publie une mise à jour logicielle de Microsoft Internet Explorer 6 pour Microsoft Windows XP Service Pack 2 (SP2) 
et pour Microsoft Windows Server 2003 Service Pack 1 (SP1). Cette mise à jour modifie la façon dont Internet Explorer gère 
certaines pages Web qui utilisent des contrôles ActiveX. Parmi les programmes utilisant des contrôles ActiveX, citons :
Adobe Reader
Apple QuickTime Player
Macromedia Flash
Lecteur Microsoft Windows Media
Real Networks RealPlayer
Sun Java Virtual Machine (Machine virtuelle Java de Sun)

Une fois cette mise à jour installée, vous ne pouvez pas interagir avec les contrôles ActiveX de certaines pages Web 
tant que ces contrôles ne sont pas activés. Pour activer un contrôle ActiveX, il suffit de cliquer manuellement dessus. 
Il existe également des techniques que les développeurs Web peuvent utiliser pour mettre à jour leurs pages Web.

Why do I see a message prompting me to “click to activate and use this control” when I roll my mouse over a Flash animation?
This is a result of the latest Internet Explorer update.
Microsoft recently lost a legal battle with a patent holder about the way Internet Explorer displays OBJECTs and EMBEDs in 
webpages. Microsoft then decided to update its Internet Explorer browser with changes requiring user input to display and 
activate ActiveX based media. 

This affects all Flash animations but also other files such as QuickTime, RealPlayer, Java and Adobe Acrobat among others. 
It means users have to click the object first in order to activate its functions.

Luckily, there are ways for website developers to modify their website so that the user experience is not impacted by 
Microsoft’s changes. I have selected the easiest and most user-friendly option available at this time and have implemented 
this solution throughout this website.

To fix the problem, please follow these steps:

1) Just below the last <object> in your HTML page, insert the following Javascript:
1) Dans le code html sous le dernier </object> ajouter ce code: 

<script type="text/javascript" src="ieupdate.js"></script>

2) Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:
2) Créer un nouveau document sous notepad ou sous votre éditeur HTML et y coller ce code : 

theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}

3) Save this file as ieupdate.js
3) Enregistrez le sous ieupdate.js

4) Upload both files to your webserver, and the problem should be solved.
4) Uploadez le fichier HTML modifié + le fichier ieupdate.js sur votre serveur, le probleme devrait etre résolu.

To read more about this issue and see other solutions available, please visit:

http://msdn.microsoft.com/ieupdate
http://www.macromedia.com/devnet/activecontent/articles/devletter.html


*/

theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
	theObjects[i].outerHTML = theObjects[i].outerHTML; 
}