var mon_url = "";
var numero_pays = "";
var nom_rubrique = "";

var noms_des_pays = new Array(
"85|albania",
"73|algeria",
"3|argentina",
"86|armenia",
"4|australia",
"5|austria",
"55|azerbaijan",
"56|belarus",
"6|belgium",
"7|brazil",
"8|bulgaria",
"74|cameroon",
"9|canada",
"10|chile",
"11|china",
"12|colombia",
"75|cote",
"14|croatia",
"76|cuba",
"87|cyprus",
"42|czech",
"15|denmark",
"16|egypt",
"58|estonia",
"19|finland",
"20|france",
"88|georgia",	
"54|germany",
"21|greece",
"22|guatemala",
"23|hk",
"24|hungary",
"28|iceland",
"25|india",
"26|indonesia",
"59|iran",
"27|ireland",
"29|israel",
"30|italy",
"31|japan",
"32|jordan",
"60|kazak",
"77|kuwait",
"61|latvia",
"78|lebanon",
"92|libya",
"62|lithuania",
"79|lux",
"33|malaysia",
"91|malta",
"35|mexico",
"34|morocco",
"37|nl",
"63|nz",
"64|norway",
"66|pakistan",
"36|panama",
"38|peru",
"39|philippines",
"40|poland",
"41|portugal",
"43|romania",
"45|russia",
"2|saudi",
"80|senegal",
"46|singapore",
"67|slovak",
"68|slovenia",
"1|safrica",
"13|korea",
"17|spain",
"47|sweden",
"48|ch",
"69|syria",
"49|taiwan",
"50|thailand",
"51|tunisia",
"52|turkey",
"70|ukraine",
"57|uae",
"44|uk",
"18|us",
"53|uruguay",
"65|uzbek",
"71|venezuela",
"72|vietnam" );

// mon_url = "" + this.document.location;
mon_url = "" + this.document.location.pathname;
numero_pays = mon_url.substring( mon_url.length-7, mon_url.length-5 );
if( numero_pays.substring( 0, 1 ) == "_" )
	numero_pays = mon_url.substring( mon_url.length-6, mon_url.length-5 );

if( top.document == this.document )
	{
	nom_rubrique = mon_url.split( '/' );
	nom_rubrique = nom_rubrique[nom_rubrique.length-1];
	if( numero_pays > 9 )
		nom_rubrique = nom_rubrique.substring( 0, nom_rubrique.length-8 );
	else
		nom_rubrique = nom_rubrique.substring( 0, nom_rubrique.length-7 );
	for( i=0 ; i<noms_des_pays.length ; i++ )
		{
		donnees = noms_des_pays[i].split( '|' );
		if( donnees[0] == numero_pays )
			this.document.location = donnees[1] + ".html?ma_rubrique=" + nom_rubrique;
		}
	}
else
	{
	mon_url = "" + this.document.referrer;
	nom_rubrique = mon_url.split( "?ma_rubrique=" );
	if( nom_rubrique.length > 1 )
		{
		nom_rubrique = nom_rubrique[1];
		if( top.ma_variable != "ok" )
			{
			top.ma_variable = "ok";
			this.document.location = nom_rubrique + "_" + numero_pays + ".html";
			}
		}
	}

