<!--
//FONCTION POUR AJAX
function getXMLHTTPRequest() {
try {
req = new XMLHttpRequest();
} catch(err1) {
  try {
  req = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (err2) {
    try {
    req = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (err3) {
      req = false;
    }
  }
}
return req;
}
var http = getXMLHTTPRequest();

function useHttpResponse() {
   if (http.readyState == 4) {
    if(http.status == 200) {
	   //STATUS COMPLÉTÉ
	   
	}
  } else {
	//STATUS COMPLÉTÉ
	//document.getElementById('AppContent').innerHTML = '<span class="texteregulier" style="texteregulier" id="AppText"><img src="img/loading.gif"></span>';
  }
}
//*********************************************************************
//SECTION UTILE SEULEMENT SI LES MENU DOIVENT SE FERMER
var NbrMenuToHide=4; //AJUSTER CETTE VALEUR AU NOMBRE DE MENUS À CACHER
var CmptMenu;
var EtatMenuArray=new Array();
for (CmptMenu=1;CmptMenu<=NbrMenuToHide;CmptMenu++){
	EtatMenuArray[CmptMenu]='close';
}
//*********************************************************************
function tg(gc,st) {
	var gcx = document.getElementById(gc);
	if (gcx!=null){
			for (x=1;x<=NbrMenuToHide;x++){
	
				if (gc=='ShowAward'+x){ //SI CELUI EN COURS ET QU'IL EST FERMÉ
					//if (EtatMenuArray[x]=='close'){
						SwapStateMenu(x);
						gcx.style.display='block';
						ef = new fx.Height(gcx, {duration: 400}); 
						ef.toggle();
					//}
				}
				
			}
			
			
			/*for (x=1;x<=NbrMenuToHide;x++){
				if (gc!='ShowNav'+x){
					if (EtatMenuArray[x]=='open'){ //si le menu est ouvert on le ferme
						SwapStateMenu(x);
						gcx = document.getElementById('ShowNav'+x);
						gcx.style.display='block';
						ef = new fx.Height(gcx, {duration: 400}); 
						ef.toggle();
					}
				}
			}*/

	}
	//FIN CODE POUR CACHER L'AUTRE MENU SI OUVERT
}

function SwapStateMenu(IdArray){
	if (EtatMenuArray[IdArray]=='close'){
		EtatMenuArray[IdArray]='open';
	}else{
		EtatMenuArray[IdArray]='close';
	}
}



//Sert à highlighter le keymanagement selon ce que l'utilisateur tappe.
function selectManagement(textboxvalue){
	
	var nameObject;
	var compteur = 0;
	
		for (var i=0;i<document.form1.elements.length;i++ ){
			nameObject = document.form1.elements[i].name;
			ValueObject = document.form1.elements[i].value;
			
			if (nameObject=='TheContenuKeyId_'+i){
				
				if (ValueObject.indexOf(textboxvalue) != -1 && textboxvalue.length>=1){
					document.getElementById(i).className='bgSelected';
					compteur ++;
				}else{
					document.getElementById(i).className='bgUnSelected';
				}
			}
		}
		
		if(textboxvalue.length>=1){
			if(compteur == 0){
				document.getElementById("highlightool").className = 'highlightertool_noresult';
				document.getElementById("keyword").style.borderColor = "#FFCAD7";
			}else{
				document.getElementById("keyword").style.borderColor = "#5EDB14";
				document.getElementById("highlightool").className = 'highlightertool';
			}
			document.getElementById("label").innerHTML = compteur + " results highlighted";
		}else{
			document.getElementById("label").innerHTML = "Type a keyword:";	
		}
}

function ouvrirmap(pays, langue){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="694" height="275">\n');
document.write('<param name="movie" value="../img/mapnetwork_' + langue + '.swf?p=' + pays + '">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="menu" value="false" />');
document.write('<embed menu="false" src="../img/mapnetwork_' + langue + '.swf?p=' + pays + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="694" height="275"></embed>\n');
document.write('</embed>');
document.write('</object>');	
}

function ouvrirprojets(langue) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="726" height="400">\n');
document.write('<param name="movie" value="http://www.cossette.com/img/projets.swf?l=' + langue + '">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#424242" />');
document.write('<param name="menu" value="false" />');
document.write('<embed menu="false" bgcolor="#424242" src="http://www.cossette.com/img/projets.swf?l=' + langue + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="400"></embed>\n');
document.write('</embed>');
document.write('</object>');	
}
function ouvriraccueil(langue) {
	if(langue == "fr"){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="726" height="400">\n');
		document.write('<param name="movie" value="/img/acc-fr.swf">\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="bgcolor" value="#424242" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="base" value="http://www.cossette.com/img/">');
		document.write('<embed menu="false" bgcolor="#424242" base="http://www.cossette.com/img/" src="/img/acc-fr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="400"></embed>\n');
		document.write('</embed>');
		document.write('</object>');
	}else{
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="726" height="400">\n');
		document.write('<param name="movie" value="/img/acc.swf">\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="bgcolor" value="#424242" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="base" value="http://www.cossette.com/img/">');
		document.write('<embed menu="false" bgcolor="#424242" base="http://www.cossette.com/img/" src="/img/acc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="400"></embed>\n');
		document.write('</embed>');
		document.write('</object>');
	}
}
function ouvrirslideshow (id) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="726" height="400">\n');
document.write('<param name="movie" value="http://www.cossette.com/img/projets/' + id + '">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#424242" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="base" value="http://www.cossette.com/img/projets/">');
document.write('<embed menu="false" base="http://www.cossette.com/img/projets/" bgcolor="#424242" src="http://www.cossette.com/img/projets/' + id + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="400"></embed>\n');
document.write('</embed>');
document.write('</object>');
}
function ouvrirawards() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="726" height="250">\n');
document.write('<param name="movie" value="/img/awards.swf">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#424242" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="base" value="http://www.cossette.com/img/">');
document.write('<embed menu="false" base="http://www.cossette.com/img/" bgcolor="#424242" src="/img/awards.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="250"></embed>\n');
document.write('</embed>');
document.write('</object>');
}
function ouvrirsousmenu(idsection){
	
	if(idsection != ""){
		document.getElementById(idsection).style.display = "block";
	}
	if(idsection == 's1' || idsection == 's2'){
		document.getElementById("d1").style.display = "block";
	}
}

function changerliencouleur(id,idsousmenu){
	if(document.getElementById(idsousmenu).style.display == "none"){
		document.getElementById(id).style.color = "#aaaaaa";
	}else{
		document.getElementById(id).style.color = "#4c4c4c";
	}
}
//-->