

old_lay ="";

function change_team (leid,lg,i) {
info_team(leid,lg);
link_team(leid,lg);
callExternalInterface(i);
if (old_lay!="" && old_lay!=leid) {
document.getElementById("div_team"+old_lay).className="liste_port";
}
old_lay = leid;
}


function info_team(leid,lg) {
var xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
alert ("Browser does not support HTTP Request");
return;
} 
var url="_inc/fonc_team_detail.php";
xmlHttp.onreadystatechange=function() { 
        if (xmlHttp.readyState==4)
            if (xmlHttp.status==200)
                changed_html('contenu_team',xmlHttp,leid);
    }
xmlHttp.open("POST",url,true);
xmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded'); 
xmlHttp.send("id_team="+leid+"&lg="+lg+"&sid="+Math.random());

}

function link_team(leid,lg) {
var xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
alert ("Browser does not support HTTP Request");
return;
} 
document.getElementById("block_droite_marron").innerHTML="<div align='center'><br><br><br><img src='img_com/loading.gif' alt='' width='20' height='20' border='0'><br><br><br></div>"; 
var url="_inc/fonc_team_link.php";
xmlHttp.onreadystatechange=function() { 
        if (xmlHttp.readyState==4)
            if (xmlHttp.status==200)
                changed_html('block_droite_marron',xmlHttp,leid);
    }
xmlHttp.open("POST",url,true);
xmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded'); 
xmlHttp.send("id_team="+leid+"&lg="+lg+"&sid="+Math.random());
}

function active_team(lay) {
document.getElementById("div_team"+lay).className="liste_port_on";
}

function desactive_team(lay) {
if (old_lay!=lay) {
document.getElementById("div_team"+lay).className="liste_port";
}
}

function desactive_team_semi(lay) {
if (old_lay!=lay) {
document.getElementById("div_team"+lay).className="liste_port_semi_fade";
}
}

function callExternalInterface(i) {
	if (thisMovie("flash_equipe").affiche) {
     thisMovie("flash_equipe").affiche(i);
	 }
}
function thisMovie(movieName) {
     if (navigator.appName.indexOf("Microsoft") != -1) {
          return window[movieName]
     }
     else {
          return document[movieName]
     }
}

	




