\n');
			}
		} 
		else {
			asfHtml += "
";
			document.write(' \n');
		}
	}
}
function asfPopMe(url, name, w, h, scroll) {
	var s="center=yes,status=no,scrollbars=" + scroll + ",resizable=no,Width="+w+",Height="+h+";";
	mywindow=window.open("http://" + ASF_HOST + "/" + url, name, s);
	mywindow.focus();
}
function asfCommand(command, args, lbox) {
	
 //alert("commande " + command + " " + args);
        if(command=="") return;
	var objCarte;
	if (document.getElementById && document.getElementById("asfCarteFlash") != null)
		objCarte = document.getElementById("asfCarteFlash");
	else if (document.layers && document.layers["asfCarteFlash"] != null)
		objCarte = document.layers["asfCarteFlash"];
	else if (document.all)
		objCarte = document.all["asfCarteFlash"];
       
	switch (unescape(command)) {
		case "bookmark":
			var s = location.search;
			if(s.length==0)
				s="?carte=" + asfLastCarte;
			else {
				var parms=s.substr(1).split("&");
				var ok=false;
				s = "?";
				for(var i = 0;i
0) s += "&";
					s += parms[i];
				}
				if(ok==false) s = s + "&carte=" + asfLastCarte;
			}
			var url = "http://" + location.hostname + location.pathname + s;
			if( window.external) {
				external.AddFavorite(url, "Infos Trafic");
			}
			else {
				alert("URL = " + url);
			}
			break;
		case "radio" :
			asfPopMe('communs/' + asfCharte + '/' + asfLanguage + '/radio/popup.asp','ASFRadio',320,320,"no");
			break;
		case "apropos":
			asfPopMe('communs/' + asfCharte + '/' + asfLanguage + '/apropos/aproposGIE_V30.htm','ASFAPropos',330,550,"no");
			break;
		case "infospec":
			asfPopupInfos();
			break;
		case "legende":
			asfPopMe('communs/' + asfCharte + '/' + asfLanguage + '/legende/legende.htm','ASFLegende',330,315,"no");
			break;
		case "affichage":
			objCarte.SetVariable("Com", args);
			break;
		case "ShowTextZone":
			asfShowInfos();
			break;
		case "previous":
			if(asfPreviousCarte=="") break;
			args=asfPreviousCarte;
			asfPreviousCarte="";
		case "reload":
			if(args == "???") break;
			asfLastCarte = args;
			objCarte.SetVariable("Com", args);       
			break;
		case "ChangeView":
			asfLastCarte = args;
			//var stat = asfRefer + "." + asfLanguage + "." + asfLastCarte;
			//sitestat("http://fr.sitestat.com/gieat/gieat/s?" + stat);  
			asfStat();
			asfUpdateLogos(args);
			asfHideInfos();
			document.asfForm.asfSelectVille.options[0].selected=true;
			if (asfChangeViewEvent) asfChangeViewEvent(asfLastCarte);
			break;
		case "refresh":
			asfLastCarte = args;
			//var stat = asfRefer + "." + asfLanguage + "." + asfLastCarte;
			//sitestat("http://fr.sitestat.com/gieat/gieat/s?" + stat);  
			asfStat();
			document.asfForm.asfSelectVille.options[0].selected=true;
			break;
		case "tdp":
			asfFicTdp = args;
			asfTdp ='http://' + ASF_HOST + '/ei/tp2.htm?z=http://' + ASF_HOST + '/datacarte.aspx?fic=' + asfFicTdp;
			window.open(asfTdp,'Temps_de_Parcours','center=yes,toolbar=no,status=no,scrollbars=no,resizable=no,width=450,height=300');
			break;
	}
}
function asfGetCarte() {
	var c="0";
	var parms = location.search.substring(1).split("&");
	if( location.search.indexOf("=") < 0 || parms.length==0)
		c= location.search.substring(1);
	else {
		for(var i = 0;i";
	if( asfBan == "H" )
	{
		for(var i = 0; i < maxCol; i++) {
			sz += asfCols[i][0] + 4;
			if( sz > max )  nbCol--;
		}
		var nbColByRow = nbCol;
 	        asfHtml += "|
";
	}
	asfHtml += "| ";
	var dt = new Date();
	var url = asfGetUrl();
	if(asfIE) {
		asfHtml += "";
		document.write(' \n');
	} 
	else {
		asfHtml += "";
		document.write(' \n');
	}
	asfHtml += "";
	if( asfBan == "H" )
	  {
		asfHtml += " | 
| ";
	  }
	else
	  {
	 
		asfHtml += "";
		nbCol = nbColByRow;
		while( nbCol";
			for(var sz = 0;nbCol < maxCol;nbCol++) {
				sz += asfCols[nbCol][0] + 4;
				if(sz > max) break;
				asfHtml += "| ";
				asfShow( asfCols[nbCol][1], asfCols[nbCol][0] );
				asfHtml += ""
			}
			if(sz < max/2 )
			{
				asfHtml +=" | "
			}
			else
			{
				asfHtml += " | ";
			}
		}
		asfHtml += " |  | ";
	  }
	asfHtml += "";
		
		if ( szBut < max) {	  
	 	  for(var ln=0; ln < nbLg;ln++)
		  {
		    asfHtml += "";
		    asfHtml += "| ";
		      asfShow(asfColsLight[ln][1], asfColsLight[ln][0]);
		    asfHtml += " |  ";
		  }
		  asfHtml += "|  |  ";
		}
		asfHtml += "|  |  | 
";
	
	asfHtml += "<\/scr" + "ipt>";
	document.write(asfHtml);
}
function sitestat(ns_l){ns_l+="&ns__t="+(new Date()).getTime();ns_pixelUrl=ns_l;
ns_0=document.referrer; 
ns_0=(ns_0.lastIndexOf("/")==ns_0.length-1)?ns_0.substring(ns_0.lastIndexOf("/"),0):ns_0;
if(ns_0.length>0)ns_l+="&ns_referrer="+escape(ns_0);
if(document.images){ns_1=new Image();ns_1.src=ns_l;}else 
document.write(" ");
}
");
}