var actif_site=typeof(site_actif)!="undefined" ? site_actif.toLowerCase():"";

var timerHeader=0;
var widthsm=190;
var prefixe_image=new Array("ta","pa","fu","ro","tr","aa","eo");
var url_image=new Array();
var url_align=new Array();
var url_width=new Array();
var description_image=new Array();
Sousdescription_image=new Array();
Sousurl_image=new Array();

url_image['tr']="http://www.tribus-animaux.com";
url_align['tr']="left";
url_width['tr']="140";
	Sousurl_image["tr"]=new Array();
	Sousurl_image["tr"][0]="http://www.photos-animaux.com/compte,gerer.html";
	Sousurl_image["tr"][1]="http://www.tribus-animaux.com/tribus.html";
	Sousurl_image["tr"][2]="http://forum.photos-animaux.com/";
	Sousurl_image["tr"][3]="http://messagerie.photos-animaux.com/";
	Sousurl_image["tr"][4]="http://tchat.photos-animaux.com/";

url_image['ta']="http://www.tele-animaux.com";
url_align['ta']="left";
url_width['ta']="140";
	Sousurl_image["ta"]=new Array();
//	Sousurl_image["ta"][0]="http://www.tele-animaux.com/actualite.html";

url_image['pa']="http://www.photos-animaux.com";
url_align['pa']="left";
url_width['pa']="135";
	Sousurl_image["pa"]=new Array();
	Sousurl_image["pa"][0]="http://www.photos-animaux.com/";
	Sousurl_image["pa"][1]="http://www.photos-animaux.com/diaporama.html";
	Sousurl_image["pa"][2]="http://www.photos-animaux.com/wall.html";
	Sousurl_image["pa"][3]="http://www.photos-animaux.com/ecards.html";
	Sousurl_image["pa"][4]="http://www.photos-animaux.com/jeux,paire,1.html";

url_image['eo']="http://www.eleveurs-online.com";
url_align['eo']="right";
url_width['eo']="80";
	Sousurl_image["eo"]=new Array();
	Sousurl_image["eo"][0]="http://www.eleveurs-online.com";
	Sousurl_image["eo"][1]="http://www.eleveurs-de-chiens.com";
	Sousurl_image["eo"][2]="http://www.eleveurs-de-chats.com";

url_image['aa']="http://www.annonces-animalieres.com";
url_align['aa']="right";
url_width['aa']="140";
	Sousurl_image["aa"]=new Array();
	Sousurl_image["aa"][0]="http://www.annonces-animalieres.com/pa,choix.html";
	Sousurl_image["aa"][1]="http://www.annonces-animalieres.com/chiens.html";
	Sousurl_image["aa"][2]="http://www.annonces-animalieres.com/chats.html";
	Sousurl_image["aa"][3]="http://www.annonces-animalieres.com/rongeurs.html";
	Sousurl_image["aa"][4]="http://www.annonces-animalieres.com/oiseaux.html";
	Sousurl_image["aa"][5]="http://www.annonces-animalieres.com/autres-animaux.html";
	Sousurl_image["aa"][6]="http://www.annonces-animalieres.com/divers-autres.html";

url_image['ro']="http://refuges.tele-animaux.com";
url_align['ro']="left";
url_width['ro']="95";
	Sousurl_image["ro"]=new Array();
	Sousurl_image["ro"][0]="http://refuges.tele-animaux.com/refuges.html";
	Sousurl_image["ro"][1]="http://refuges.tele-animaux.com/annonces.html";
	Sousurl_image["ro"][2]="http://refuges.tele-animaux.com/compte.html";

url_image['fs']="http://boutique.tele-animaux.com";
url_align['fs']="left";
url_width['fs']="70";

url_image['fu']="http://www.furty.com";
url_align['fu']="left";
url_width['fu']="70";
	Sousurl_image["fu"]=new Array();
	Sousurl_image["fu"][0]="http://www.furty.com/";
	Sousurl_image["fu"][1]="http://www.furty.com/pros/";
	Sousurl_image["fu"][2]="http://www.sites-animaliers.com";

url_image['tma']="http://www.tele-animaux.com/presse_tma.html";
url_align['tma']="left";
url_width['tma']="160";
	Sousurl_image["tma"]=new Array();
	Sousurl_image["tma"][0]="http://www.tele-animaux.com/presse_tma.html";
	Sousurl_image["tma"][1]="http://www.tele-animaux.com/presse_tma,temoignage-lecteur.html";
	Sousurl_image["tma"][2]="http://www.tele-animaux.com/presse_tma,courrier-lecteur.html";
	Sousurl_image["tma"][3]="http://www.tele-animaux.com/presse_tma,questions_redaction.html";
	Sousurl_image["tma"][4]="http://www.la-boutique-animaliere.com/produit/abonnement-30-millions-d-amis-1-an:1.html";

description_image['tr']="Les membres";
	Sousdescription_image["tr"]=new Array();
	Sousdescription_image["tr"][0]="Votre compte";
	Sousdescription_image["tr"][1]="Les tribus";
	Sousdescription_image["tr"][2]="Forum";
	Sousdescription_image["tr"][3]="Messagerie";
	Sousdescription_image["tr"][4]="Tchat";

description_image['ta']="<img src='http://img.tele-animaux.com/ta-136-18.png' width='136' height='18' align='absmiddle'>";
	Sousdescription_image["ta"]=new Array();
//	Sousdescription_image["ta"][0]="Les actualités";

description_image['pa']="Photos & goodies";
	Sousdescription_image["pa"]=new Array();
	Sousdescription_image["pa"][0]="Photos d'animaux";
	Sousdescription_image["pa"][1]="Diaporamas";
	Sousdescription_image["pa"][2]="Fonds écran";
	Sousdescription_image["pa"][3]="Cartes virtuelles";
	Sousdescription_image["pa"][4]="Jeux";

description_image['ro']="Refuges, SPA";
	Sousdescription_image["ro"]=new Array();
	Sousdescription_image["ro"][0]="Adresses de refuges et SPA";
	Sousdescription_image["ro"][1]="Annonces d'adoption";
	Sousdescription_image["ro"][2]="Inscription refuge";

description_image['eo']="Eleveurs";
	Sousdescription_image["eo"]=new Array();
	Sousdescription_image["eo"][0]="Tous les éleveurs";
	Sousdescription_image["eo"][1]="Eleveurs canins";
	Sousdescription_image["eo"][2]="Eleveurs félins";

description_image['aa']="Petites annonces";
	Sousdescription_image["aa"]=new Array();
	Sousdescription_image["aa"][0]="Diffuser une annonce";
	Sousdescription_image["aa"][1]="Chiens";
	Sousdescription_image["aa"][2]="Chats";
	Sousdescription_image["aa"][3]="Rongeurs";
	Sousdescription_image["aa"][4]="Oiseaux";
	Sousdescription_image["aa"][5]="Autres animaux";
	Sousdescription_image["aa"][6]="Divers";


description_image['fs']="Boutique";
	Sousdescription_image["fs"]=new Array();

description_image['fu']="Adresses";
	Sousdescription_image["fu"]=new Array();
	Sousdescription_image["fu"][0]="Annuaire Internet";
	Sousdescription_image["fu"][1]="Annuaire Professionnel";
	Sousdescription_image["fu"][2]="Top sites animaliers";

description_image['tma']="<b>30 Millions d'Amis</b>";
	Sousdescription_image["tma"]=new Array();
	Sousdescription_image["tma"][0]="A la une";
	Sousdescription_image["tma"][1]="Témoignage";
	Sousdescription_image["tma"][2]="Courrier des lecteurs";
	Sousdescription_image["tma"][3]="Question de la rédaction";
	Sousdescription_image["tma"][4]="Abonnement au magazine";

document.writeln("<div style='position:absolute;top:0px;width:988px;height:18px;line-height:16px;font-family:verdana, arial;z-index:100;background-color:#0674BB' class='blanc t12'>");

for(i=0;i<prefixe_image.length;i++)
{
	nom_image=prefixe_image[i];
	url_site=eval("url_image['"+nom_image+"']");
	url_sitealign=eval("url_align['"+nom_image+"']");
	url_sitewidth=eval("url_width['"+nom_image+"']");
	description_site=eval("description_image['"+nom_image+"']");

	nb_souscat_menu=Sousdescription_image[nom_image] ? eval("Sousdescription_image['"+nom_image+"'].length"):0;

	document.writeln("<div style='float:"+url_sitealign+";height:18px;width:"+url_sitewidth+"px;margin:0px 5px 0px 0px;position:relative;padding:0px' class='"+url_sitealign+"'>\n");
	document.writeln("<a href='"+url_site+"' class='"+(actif_site==nom_image ? "bold blanc":"blanc")+" under' onmouseover=\"view_header_menu('"+nom_image+"')\">"+description_site+"</a>\n");

	if(nb_souscat_menu>0)
	{
		document.writeln("<div style='position:absolute;left:"+(url_sitealign=="right" ? url_sitewidth-widthsm+5:0)+"px;top:18px;padding:0px;width:"+widthsm+"px;border-width:0 1 1 1;border-style:solid;border-color:#000;' class='displaynone' id='sousmenuheader_"+nom_image+"'>\n");

		for(j=0;j<nb_souscat_menu;j++)
		{
			Sousurl_site=eval("Sousurl_image['"+nom_image+"']["+j+"]");
			Sousdescription_site=eval("Sousdescription_image['"+nom_image+"']["+j+"]");
			document.writeln("<div style='"+(j>0 ? "border-top:1px solid #888":"")+";padding:1px 10px' onmouseover=\"view_header_menu('"+nom_image+"')\"><a href='"+Sousurl_site+"' class='noir under'>"+Sousdescription_site+"</a></div>\n");
		}

		document.writeln("</div>");
	}
	document.writeln("</div>");
}

document.writeln("</div>");

function view_header_menu(lequel)
{
	if(timerHeader)clearTimeout(timerHeader);
	for(i=0;i<prefixe_image.length;i++)
	{
		if(prefixe_image[i]!=lequel && eval("Sousdescription_image['"+prefixe_image[i]+"'].length")>0 && document.getElementById("sousmenuheader_"+prefixe_image[i]))
		{
			hide_header_menu(prefixe_image[i])
		}
	}

	timerHeader	=	setTimeout("hide_header_menu('"+lequel+"')",1500);

	if(document.getElementById("sousmenuheader_"+lequel))document.getElementById("sousmenuheader_"+lequel).className="backBlanc noir t11";
}

function show_header_menu(lequel)
{
	clearTimeout(timerHeader);
}

function hide_header_menu(lequel)
{
	if(timerHeader)clearTimeout(timerHeader);
	if(document.getElementById("sousmenuheader_"+lequel))document.getElementById("sousmenuheader_"+lequel).className="displaynone";
}