window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) 
	{
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none'; }
	}
if (d) {d.style.display='block';}
}

function attente()
{
	setTimeout("montre()",650);
}

/* Classe c_SystemeExploitation
	 *
	 *	s_keywordName		: Nom de l'os, mot clé à recherché (en minuscule !)
	 *	s_name				: Nom de l'os à afficher
 	 *	s_keywordVersion	: Version de l'os, mot clé à recherché (en minuscule !)
	 *	s_version			: Nom de la version à afficher
	 *	s_pathIcon			: Emplacement de l'icon associé
	 *	s_url				: Lien associé
	 */

	var g_arr_SystemeExploitation = new Array();

	function c_SystemeExploitation(s_keywordName, s_name, s_keywordVersion, s_version, s_pathIcon, s_url)
	{
		this.keywordName 		= s_keywordName;
		this.name				= s_name;
		this.keywordVersion 	= s_keywordVersion;
		this.version			= s_version;
		this.pathIcon			= s_pathIcon;
		this.url				= s_url;

		// Méthode getMySE
		this.getMySE			= c_SystemeExploitation_getMySE;
		function c_SystemeExploitation_getMySE()
		{
			// initialisation de variables de position
			var sen = 0; // Système Exploitation Nom
			var sev = 0; // Système Exploitation Version
		
			// On parcourt le vecteur g_arr_SystemeExploitation (Commence à 1 car l'indice 0 est réserver pour les erreurs)
			for(var i=1; i<g_arr_SystemeExploitation.length; i++)
			{
				// Si on a trouvé un SystemeExploitation (présence de keywordName dans WNUA)
				if (WNUA.toLowerCase().indexOf(g_arr_SystemeExploitation[i].keywordName)!=-1)
				{
					// On mémorise cette position
					sen = i;
					// Si on a trouvé la version (présence de keywordVersion dans wnuA)
					if (WNUA.toLowerCase().indexOf(g_arr_SystemeExploitation[i].keywordVersion)!=-1)
					{
						// On mémorise cette position
						sev = i;
						// On arrête la recherche car on a trouvé ce que l'on cherché.
						break;
					}
				}
			}

			this.keywordName 	= g_arr_SystemeExploitation[sen].keywordName;
			this.name 			= g_arr_SystemeExploitation[sen].name;
			this.keywordVersion = g_arr_SystemeExploitation[sev].keywordVersion;
			this.version		= g_arr_SystemeExploitation[sev].version;
			this.pathIcon		= g_arr_SystemeExploitation[sen].pathIcon;
			this.url			= g_arr_SystemeExploitation[sen].url;
		}

		// Ajouter à la liste
		this.addSystemeExploitation = c_SystemeExploitation_addSystemeExploitation;
		function c_SystemeExploitation_addSystemeExploitation()
		{
			g_arr_SystemeExploitation[g_arr_SystemeExploitation.length] = this;
		}

		// Méthode affiche
		this.affiche = c_SystemeExploitation_affiche;
		function c_SystemeExploitation_affiche(w)
		{
			var nv = this.name+" "+this.version;
			w.document.write("<a href=\""+this.url+"\" target=\"_blank\">");
			w.document.write("<img src=\""+this.pathIcon+"\" alt=\""+nv+"\" title=\""+nv+"\" border=\"0\" />");
			w.document.write("</a><br />");
			w.document.write("<b>"+nv+"</b>");
		}

		// Méthode afficheImage
		this.afficheImage = c_SystemeExploitation_afficheImage;
		function c_SystemeExploitation_afficheImage(w)
		{
			var nv = this.name+" "+this.version;
			w.document.write("<a href=\""+this.url+"\" target=\"_blank\">");
			w.document.write("<img src=\""+this.pathIcon+"\" alt=\""+nv+"\" title=\""+nv+"\" border=\"0\" />");
			w.document.write("</a>");
		}

		// Méthode afficheNom
		this.afficheNom = c_SystemeExploitation_afficheNom;
		function c_SystemeExploitation_afficheNom(w)
		{
			var nv = this.name+" "+this.version;
			w.document.write("<b>"+nv+"</b>");
		}

		// Méthode affiche4Spiral
		this.affiche4Spiral = c_SystemeExploitation_affiche4Spiral;
		function c_SystemeExploitation_affiche4Spiral(w)
		{
			w.document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">");
			w.document.write("<tr><th colspan=\"2\">Syst&egrave;me d'Exploitation :</th></tr>");
			w.document.write("<tr><td colspan=\"3\">&nbsp;</td></tr>");
			w.document.write("<tr><td align=\"center\">");
			this.afficheImage(w);
			w.document.write("</td><td class=\"text\">");
			this.afficheNom(w);
			w.document.write("</td></tr>");
			w.document.write("</table>");
		}
	}
	
	// Constructeur vide
	function SystemeExploitation()
	{
		return(new c_SystemeExploitation("", "", "", "", "", ""));
	}
