/****************************************/
/* 			DECLARATION					*/	
/****************************************/
var tab_fond_cadre=new Array();			// stocker chemin accés image pour fond du cadre et contenu
var tab_fond_cadre2=new Array();			// stocker chemin accés image pour fond du cadre2 et contenu
var tab_id_menu=new Array();
var tab_img_menu=new Array();
var tab_lib_menu=new Array();
var tab_lib2_menu=new Array();
var tab_info_menu=new Array();
var aidemenu=new Array();
var nbmenu;
var txt_titre_menu;
var txt_lien_1ssmenu
var tab_id_ssmenu=new Array();
var tab_lib_ssmenu=new Array()
var tab_info_ssmenu=new Array();;
var tab_id_ssmenuMEDI=new Array();
var tab_lib_ssmenuMEDI=new Array();
var tab_id_ssmenuSERV=new Array();
var tab_lib_ssmenuSERV=new Array();
var nbssmenu;
var txt_titre_ssmenu;

var BrowNam=navigator.appName;
var BrowVer=parseInt(navigator.appVersion);	 
var VersionNav = navigator.appVersion.slice(22,25);
var message;
var menu="menu";
var ssmenu="sousmenu";
var jeton;
var jeton1="defaut1";
var jeton2="defaut2";  
var jeton3="defaut3";
var coulover="#F2F19E";	 // ivoire
var coulclick="white";
var coulini1="#885133";	 // marron
var coulini2="#885133";
var txtclick="#AE365E";
var txtini1="white";
var txtini2="white";
/****************************************/
/* 			INITIALISATION				*/		
/****************************************/	
txt_titre_menu="";
txt_titre_ssmenu="";
// Les chemins sont pris à partir de la racine par défaut 
//on passe en variable le complément du chemin ex : "../"
tab_fond_cadre[0]=""	//"images/fonds/bambou_c_hg.gif";	//coin supérieur gauche
tab_fond_cadre[1]=""	//"images/fonds/bambou_fh.gif";		//barre haute
tab_fond_cadre[2]=""	//"images/fonds/bambou_c_hd.gif";	//coin supérieur droit
tab_fond_cadre[3]=""	//"images/fonds/bambou_fg.gif";		//barre gauche
tab_fond_cadre[4]="images/fonds/f_ciel6.jpg";	//background pour tableau du contenu		  	
tab_fond_cadre[5]=""	//"images/fonds/bambou_fd.gif";		//barre droite
tab_fond_cadre[6]=""	//"images/fonds/bambou_c_bg.gif";  	//coin inférieur gauche
tab_fond_cadre[7]=""	//"images/fonds/bambou_fb.gif";		//barre inférieur
tab_fond_cadre[8]=""	//"images/fonds/bambou_c_bd.gif";	//coin inférieur droit

//stocker identifiant menu principal, utilisé pour accés page
tab_id_menu[0]="OBJT";
tab_id_menu[1]="PEIN";
tab_id_menu[2]="LITT";
tab_id_menu[3]="MUSI";
tab_id_menu[4]="THEA";
tab_id_menu[5]="MEDI";
//tab_id_menu[6]="SERV";
nbmenu=tab_id_menu.length;
//stocker 2ème libellé menu principal, pour titre menu
tab_lib_menu[0]="ARTISANAT";
tab_lib_menu[1]="PEINTURE";
tab_lib_menu[2]="LITTERATURE";
tab_lib_menu[3]="MUSIQUE";
tab_lib_menu[4]="THEATRE";
tab_lib_menu[5]="MEDIAS";
//tab_lib_menu[6]="SERVICES";
//stocker txt information à afficher pour un menu
tab_info_menu[0]="Objet artistique, sculpture et autres merveilles fait main" ;
tab_info_menu[1]="Le monde tout en couleur de la Réunion";
tab_info_menu[2]="Komen y fait pou koz créole" ;
tab_info_menu[3]="Maloya, séga mais aussi pop rock..." ;
tab_info_menu[4]="Cyrano local et autres Molières";
tab_info_menu[5]="Acteurs incontournables pour la diffusion de la culture";
// tab_info_menu[6]="Moteur de recherche, contact...";
//stocker identifiant sous menu 
tab_id_ssmenu[0]="AAA";		//peintre, artiste, écrivain,musicien,acteur
tab_id_ssmenu[1]="PRI";		//entreprise,galerie,maison de disque
tab_id_ssmenu[2]="ASS";		//association,club,groupement
tab_id_ssmenu[3]="PUB";		//institution,organisme public, 
tab_id_ssmenu[4]="AUD";		//audiovisuel
tab_id_ssmenu[5]="RAD";		//radio
tab_id_ssmenu[6]="PRE";		//presse
tab_id_ssmenu[7]="INT";		//internet
tab_id_ssmenu[8]="REC";		//rechercher
tab_id_ssmenu[9]="HIT";		//hit parade
tab_id_ssmenu[10]="REF";	//referencer
tab_id_ssmenu[11]="CON";	//contact
tab_id_ssmenu[12]="LIV";	//livre d'or
tab_id_ssmenu[13]="TCH";	//tchat
nbssmenu=tab_id_ssmenu.length;
//stocker libellé sous menu 
tab_lib_ssmenu[0]="Artistes";
tab_lib_ssmenu[1]="Entreprises";
tab_lib_ssmenu[2]="Associations";
tab_lib_ssmenu[3]="Institutions";
tab_lib_ssmenu[4]="Audiovisuel";
tab_lib_ssmenu[5]="Radio";
tab_lib_ssmenu[6]="Presse";
tab_lib_ssmenu[7]="Internet";
tab_lib_ssmenu[8]="Rechercher";
tab_lib_ssmenu[9]="Hit Parade";
tab_lib_ssmenu[10]="Référencer";
tab_lib_ssmenu[11]="Contact";
tab_lib_ssmenu[12]="Livre d or";
tab_lib_ssmenu[13]="Tchat";
//stocker txt information à afficher pour un sous menu
tab_info_ssmenu[0]="Les sites des artistes, artisans, écrivains, acteur, musiciens...";
tab_info_ssmenu[1]="Les entreprises et organismes privés, galeries, boutiques, enseignes,marques..." ;
tab_info_ssmenu[2]="Les organismes publics, les collectivités et les syndicats" ;
tab_info_ssmenu[3]="Les associations loi 1901, les clubs..." ;

function debut_cadre(path_img)
	{
	// mise en forme du cadre
	//document.writeln('<table border=0 width="90%" height="90%" ><tr><td valign=baseline>');
	document.writeln('<table border=0 align="center" valign="center" cellspan="0" cellpadding=0 align=center  width=950 height=500 cellspacing=0>');
	document.writeln('<tr><td background="'+path_img+tab_fond_cadre[0]+'" height=10>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td width="100%" background="'+path_img+tab_fond_cadre[1]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td background="'+path_img+tab_fond_cadre[2]+'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	document.writeln('<tr><td height="100%" background="'+path_img+tab_fond_cadre[3]+'" width=20>&nbsp;</td>');
	document.writeln('<td width="100%" height="100%">');	
	}
function debut_cadre2(path_img)
	{
	// mise en forme du cadre
	document.writeln('<table width="100%" height="100%" border=0><tr><td valign=baseline>');
		// DIMENSIONS PAR DEFAUT pour la page
	document.writeln('<table width=800 height=500 align="center" valign="center" cellspan="0" cellpadding=0 border=0  cellspacing=0>');
	document.writeln('<tr><td  background="'+path_img+tab_fond_cadre[0]+'" height=10>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td width="100%" background="'+path_img+tab_fond_cadre[1]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td  background="'+path_img+tab_fond_cadre[2]+'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	document.writeln('<tr><td height="100%" background="'+path_img+tab_fond_cadre[3]+'" width=20>&nbsp;</td>');
	document.writeln('<td width="100%" height="100%">');	
	}
function init_htpage(path_img)
	{
	/* document.writeln('');	 */
	/* début du contenu */
	document.writeln('<TABLE border=0 align="center" cellpadding="0" cellspacing="0"  width="100%" height="100%" background="'+path_img+tab_fond_cadre[4]+'">');
	document.writeln('<TR ><td valign="top" width="100" height="50"><table border=0 cellspacing="20"><tr><TD valign="top" align="top">');
	document.writeln('&nbsp;&nbsp;<a href="'+path_img+'index.htm" ><IMG border =0 alt="Retour à la page d\'accueil" src="'+path_img+'images/deco/logo_artisteweb8.gif"></a>'); //<IMG border =0 src="'+path_img+'images/deco/musik1.gif">
	document.writeln('</TD></tr></table></tp><TD><center>');											   
	//document.writeln('<br><br><br>');
	 document.writeln('<IMG border =0 src="'+path_img+'images/deco/titre_aw1.gif"><br>');
	}
function barre_menu1()
	{//adpaté pour page index
	for (var i=0;i<tab_id_menu.length;i++)
		{
		if (i==nbmenu-1)
			{document.writeln('<A href="page/nbclickmenu.asp?idmenu='+tab_id_menu[i]+'" onmouseover="document.'+tab_id_menu[i]+'.src=\'images/deco/menu/'+tab_id_menu[i]+'2.gif\';affichBulle(\''+tab_info_menu[i]+'\');return(true);"  onmouseout="document.'+tab_id_menu[i]+'.src=\'images/deco/menu/'+tab_id_menu[i]+'1.gif\'; affichBulle(0);" ><img name="'+tab_id_menu[i]+'" src="images/deco/menu/'+tab_id_menu[i]+'1.gif" border=0>');}
		else
			{document.writeln('<A href="page/nbclickmenu.asp?idmenu='+tab_id_menu[i]+'" onmouseover="document.'+tab_id_menu[i]+'.src=\'images/deco/menu/'+tab_id_menu[i]+'2.gif\';affichBulle(\''+tab_info_menu[i]+'\');return(true);"  onmouseout="document.'+tab_id_menu[i]+'.src=\'images/deco/menu/'+tab_id_menu[i]+'1.gif\'; affichBulle(0);" ><img name="'+tab_id_menu[i]+'" src="images/deco/menu/'+tab_id_menu[i]+'1.gif" border=0></a>&nbsp;<img src="images/deco/menu/barre2.gif">');}
		}
	document.writeln('</center><br>');
	}  
function barre_menu2()
	{
	for (var i=0;i<tab_id_menu.length;i++)
		{
		if (i==nbmenu-1)
			{
			document.writeln('<A href="nbclickmenu.asp?idmenu='+tab_id_menu[i]+'" onmouseover="colorover1(\''+tab_id_menu[i]+'\');affichBulle(\''+tab_info_menu[i]+'\');return(true);"  onmouseout="colorout1(\''+tab_id_menu[i]+'\'); affichBulle(0);" ><img name="'+tab_id_menu[i]+'" src="../images/deco/menu/'+tab_id_menu[i]+'1.gif" border=0></a>');
			}
		else
			{
			document.writeln('<A href="nbclickmenu.asp?idmenu='+tab_id_menu[i]+'" onmouseover="colorover1(\''+tab_id_menu[i]+'\');affichBulle(\''+tab_info_menu[i]+'\');return(true);"  onmouseout="colorout1(\''+tab_id_menu[i]+'\');affichBulle(0);" ><img name="'+tab_id_menu[i]+'" src="../images/deco/menu/'+tab_id_menu[i]+'1.gif" border=0></a>&nbsp;<img src="../images/deco/menu/barre2.gif">');
			}				
		}
	document.writeln('</center><br>');
}  

function fin_htpage()
	{
	document.writeln('</center></TD><td width=40>&nbsp;&nbsp;</td></TR><TR><TD valign=top><center>');
	}
function ssmenugen(Objidmenu,Objidssmenu)
	{ //LIBELLE MENU
	for (var i=0;i<nbmenu;i++)
		{
		if(tab_id_menu[i]==Objidmenu)
		{txt_titre_menu=tab_lib_menu[i];}
		}	
	//LIBELLE SOUS MENU
	for (var i=0;i<nbssmenu;i++)
		{
		if(tab_id_ssmenu[i]==Objidssmenu)
		{txt_titre_ssmenu=" / "+tab_lib_ssmenu[i];}
		} 
		
	switch(Objidmenu)
	{ //Mise en place BARRE SOUS MENU
		case "SERV":
			document.writeln('<center><TABLE border=0 class=ssmenu id="sousmenu" cellspacing=10 >');
			document.writeln('<TR><TD class=defaut id=defaut2 ></TD></TR><TD>');
			txt_lien_1ssmenu='<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[8]+'"'
			for (var i=8;i<14;i++) //limiter avec les sous menu concernés par le menu SERVICE
				{document.writeln('<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[i]+'" onmouseover="colorover2(\''+tab_id_ssmenu[i]+'\');"  onmouseout="colorout2(\''+tab_id_ssmenu[i]+'\');"><img name='+tab_id_ssmenu[i]+' border=0 src="../images/deco/ssmenu/'+tab_id_ssmenu[i]+'1.gif"></a><br><img border=0 src="../images/deco/ssmenu/barre.gif"><br>');}			
			//gestion particulière pour sous menu TCHAT, ouverture lien exterieur
			//document.writeln('<a target="_blank" href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[13]+'" onmouseover="colorover2(\''+tab_id_ssmenu[13]+'\');"  onmouseout="colorout2(\''+tab_id_ssmenu[13]+'\');"><img name='+tab_id_ssmenu[13]+' border=0 src="../images/deco/ssmenu/'+tab_id_ssmenu[13]+'1.gif"></a>');							 
			document.writeln('</td></tr></TABLE></center>');
			break;
		case "MEDI":
			document.writeln('<center><TABLE border=0 class=ssmenu id="sousmenu" cellspacing=10 >');
			document.writeln('<TR><TD class=defaut id=defaut2 ><p><b style="font-size: 9">CLASSEMENT PAR CATEGORIE :</b></TD></TR><TD>');
			txt_lien_1ssmenu='<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[4]+'"'
			for (var i=4;i<8;i++) //limiter avec les sous menu concernés par le menu MEDIA
				{document.writeln('<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[i]+'" onmouseover="colorover2(\''+tab_id_ssmenu[i]+'\');"  onmouseout="colorout2(\''+tab_id_ssmenu[i]+'\');"><img name='+tab_id_ssmenu[i]+' border=0 src="../images/deco/ssmenu/'+tab_id_ssmenu[i]+'1.gif"></a><br><img border=0 src="../images/deco/ssmenu/barre.gif"><br>');}			
			//gestion particulière pour sous menu Institution, situé au début de la boucle
			document.writeln('<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[3]+'" onmouseover="colorover2(\''+tab_id_ssmenu[3]+'\');"  onmouseout="colorout2(\''+tab_id_ssmenu[3]+'\');"><img name='+tab_id_ssmenu[3]+' border=0 src="../images/deco/ssmenu/'+tab_id_ssmenu[3]+'1.gif"></a>');							 
			document.writeln('</td></tr></TABLE></center>');
			break;				 
		case "INDEX":
			document.writeln('<br><br><br><br><br><br><br>');
			document.writeln('<p class="centrer">Réalisé par :<center>');
			document.writeln('<a href="cv_alexandre_lorillon.htm" target="_blank"><font size="2">Alexandre</font></A><br>');
			document.writeln('</center><br><p class="centrer">Site&nbsp ASP');
			document.writeln('<br>Optimisé pour <br>écran&nbsp;<a href="javascript:infoecran()"><font size=2>1024x768</font></a>');
			document.writeln('<br>I.E v7<br>M.A.J.:&nbsp;01/10/07<br><br>');
			txt_titre_menu=""
			//txt_titre_menu="L'univers artistique et culturel sur le Web";
			break;
		default:  
			document.writeln('<center><TABLE border=0 class=ssmenu id="sousmenu" cellspacing=10 >');
			document.writeln('<TR><TD class=defaut id=defaut2 ><p><u style="font-size: 9">CLIQUEZ SUR UNE CATEGORIE :</b></TD></TR><TD>');
			txt_lien_1ssmenu='<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[0]+'"'
			for (var i=0;i<4;i++)
			{document.writeln('<a href="nbclickssmenu.asp?idmenu='+Objidmenu+'&idssmenu='+tab_id_ssmenu[i]+'" onmouseover="colorover2(\''+tab_id_ssmenu[i]+'\');"  onmouseout="colorout2(\''+tab_id_ssmenu[i]+'\');"><img name='+tab_id_ssmenu[i]+' border=0 src="../images/deco/ssmenu/'+tab_id_ssmenu[i]+'1.gif"></a><br><img border=0 src="../images/deco/ssmenu/barre.gif"><br>');}			
			document.writeln('</td></tr></TABLE></center>');
			break;
	}
	}	
function fin_ssmenu()
	{
	document.writeln('</center></TD>');
	document.writeln('<TD Valign="top">'); //
	}
function debut_contenu()
	{
	document.writeln('<TABLE border=0  bgcolor=white cellpadding="0" cellspacing="0" height="100%" width="100%"><TR><TD valign=top>');
	document.writeln('<TABLE border=0 width="100%" height="280" cellpadding="3" ><tr ><td width="100%" height="100%" valign=top>');
	document.writeln('<h2>'+txt_titre_menu+txt_titre_ssmenu+'</h2>')
	}  
function debut_contenu2() // propre à page resultat_recherche.
	{
	document.writeln('<TABLE border=0  bgcolor=white cellpadding="0" cellspacing="0" height="100%" width="100%"><TR><TD valign=top>');
	document.writeln('<TABLE border=0 width="100%" height="280" cellpadding="3" ><tr ><td width="100%" height="100%" valign=top>');
	document.writeln('<h2>Résultat de votre recherche</h2>')
	}
function fin_contenu1()
	{
	document.writeln('</td></tr></TABLE></TD></TR><tr><td>');
	} 	
function fin_contenu2()
	{
	document.writeln('</td></tr></TABLE>');
	document.writeln('</TD><td width=20>&nbsp;&nbsp;</td></TR>');
	}
function piedpage1(connecter)
	{//page index, à la racine
	document.writeln('<TR height="30"><TD align=center><a class="spe" href="javascript:infoecran();"><font color=black ><font size=2>©</font>2007-2010</font></a></TD><TD>'); 
	document.writeln('<center><TABLE class="pied" cellspacing="2"><TR>');
	if (connecter=="OK")
		{document.writeln('<TD><A class="spe" href="page/deconnecter.asp">Se déconnecter<font color="#000000"> |</font></a></TD>');
		document.writeln('<TD><A class="spe" href="page/tableau_bord.asp">Tableau de bord<font color="#000000"> |</font></a></TD>');
		document.writeln('<TD><A class="spe" href="../base/id_cms.htm">adm</a> |</TD>');}
	else
		{	document.writeln('<TD><A class="spe" href="page/id_site.asp">S\'identifier<font color="#000000"> |</font></a></TD>');}
	document.writeln('<TD><A class="spe" href=""page/nbclickssmenu.asp?info=services&idmenu=SERV&idssmenu=HIT"">Hit Parade<font color="#000000"> |</font></a></TD>');
	document.writeln('<TD><A class="spe" href="page/contact.asp"> <b>Contact</b><font color="#000000"> |</font></a></TD>');
	document.writeln('<TD><a class="spe" href="javascript:favoris();"> FAVORIS<font color="#000000"> |</font></a></TD>');
	document.writeln('<TD><A class="spe" href="base/id_cms.htm">adm</a></TD>');	
	document.writeln('</TR></TABLE></center></TD><td width=20>&nbsp;&nbsp;</td></TR></TABLE>');
	}
function piedpage2(connecter)
	{//page contenu dans dossier PAGE
	document.writeln('<TR height="30"><TD align=center><a class="spe" href="javascript:infoecran();"><font color=black >© 2007-2010</font></a></TD><TD>'); 
	document.writeln('<center><TABLE cellspacing="2"><TR>');
	document.writeln('<TD><A class="spe" href="nbclickssmenu.asp?info=services&idmenu=SERV&idssmenu=REF"><p class="spe">Référencer</a><font color="#000000"> |</font></TD>');	
	document.writeln('<TD><A class="spe" href="nbclickssmenu.asp?info=services&idmenu=SERV&idssmenu=HIT"><p class="spe">Hit Parade</a><font color="#000000"> |</font></TD>');
	document.writeln('<TD><A class="spe" href="nbclickssmenu.asp?idmenu=SERV&idssmenu=CON"><p class="spe"><b> Adhérer</b></a><font color="#000000"> |</font></TD>');
	document.writeln('<TD><A class="spe" href="rechercher.asp"> <p class="spe">Rechercher</a> <font color="#000000">|</font></TD>');	
	document.writeln('<TD><a class="spe" href="javascript:favoris();"><p class="spe"> FAVORIS</a><font color="#000000"> |</font></TD>');
	if (connecter=="OK")
		{document.writeln('<TD><A class="spe" href="deconnecter.asp"><p class="spe">Se déconnecter</a><font color="#000000"> |</font></TD>');
		document.writeln('<TD><A class="spe" href="tableau_bord.asp"><p class="spe">Tableau de bord</a> <font color="#000000">|</font></TD>');
		document.writeln('<TD><A class="spe" href="../base/id_cms.htm">adm</a> |</TD>');}
	else
		{document.writeln('<TD><A class="spe" href="id_site.asp"><p class="spe">S\'identifier</a> <font color="#000000">|</font></TD>');}
		
	document.writeln('</TR></TABLE></center></TD><td width=20>&nbsp;&nbsp;</td></TR></TABLE>');
	}

function fin_cadre(path_img)
	{
 	document.writeln('</td><td height="100%" background="'+path_img+tab_fond_cadre[5]+'" width=20>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	document.writeln('<tr><td background="'+path_img+tab_fond_cadre[6]+'" height=20>&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td width="100%" background="'+path_img+tab_fond_cadre[7]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td background="'+path_img+tab_fond_cadre[8]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>');
	//document.writeln('</td></tr></table>');
	}
 function fin_cadre2(path_img)
	{
 	document.writeln('</td><td height="100%" background="'+path_img+tab_fond_cadre[5]+'" width=20>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	document.writeln('<tr><td  background="'+path_img+tab_fond_cadre[6]+'" height=20>&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td width="100%"  background="'+path_img+tab_fond_cadre[7]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	document.writeln('<td background="'+path_img+tab_fond_cadre[8]+'">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>');
	//document.writeln('</td></tr></table>');
	}
function favoris()
	{
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName=="Microsoft Internet Explorer" && browserVer>=4){window.external.AddFavorite(location.href,'ArtisteWeb');}}
function infoecran()
	{
	alert(" Site web développé par Bamboucoco \nLa navigation est optimisée pour Internet Explorer v8.\nVotre navigateur est du type:\n "+navigator.appName +" "+VersionNav+"\nVotre résolution est de " + screen.width + "x" + screen.height);
	}	

// GESTION COULEUR BARRE NAVIGATION PRINCIPALE
function colorover1(cel1)
	{
	if (jeton1!=cel1)
		{
		document.all[cel1].src="../images/deco/menu/"+cel1+"2.gif";
		}
	}
function colorout1(cel1)
	{
	if (jeton1!=cel1)
		{
		document.all[cel1].src="../images/deco/menu/"+cel1+"1.gif";
		}
	}
function img_chg(element,path_img,cel1)
{	 if (jeton!=cel1)
	{ document.img[1].src=path_img;}	
	//element.setAttribute("src", path_img);}	
}
function Colorchg1(cel1)
	{	 
		document.all[cel1].src="../images/deco/menu/"+cel1+"3.gif"; 
		jeton1=cel1;
	}	
function colorover2(cel2)
	{
	if (jeton2!=cel2 )
		{
		document.all[cel2].src="../images/deco/ssmenu/"+cel2+"2.gif";
		}
	}	
function colorout2(cel2)
	{
	if (jeton2!=cel2 )
		{
		document.all[cel2].src="../images/deco/ssmenu/"+cel2+"1.gif";
		}
	}
function Colorchg2(cel2)
	{
		document.all[cel2].src="../images/deco/ssmenu/"+cel2+"3.gif";
		jeton2=cel2;
	}
function colorover3(cel3)
	{
	if (jeton3!=cel3 )
		{
		document.all[cel3].src="images/deco/ssmenu/"+cel3+"2.gif";
		}
	}	
function colorout3(cel3)
	{
	if (jeton3!=cel3 )
		{
		document.all[cel3].src="images/deco/ssmenu/"+cel3+"1.gif";
		}
	}
function Colorchg3(cel3)
	{
		document.all[cel3].src="images/deco/ssmenu/"+cel3+"3.gif";
		jeton3=cel3;
	}

function heurej()
	{
	var myDate = new Date();
	var heures=myDate.getHours();
	var minutes=myDate.getMinutes();
	if (heures<10)
		{heures="0"+heures}
	if (minutes<10)
		{minutes="0"+minutes}
	var result=(heures)+":"+(minutes);
	return result
	} 
function date_mmjj()
	{
	var myDate = new Date();
	var nbjour=myDate.getDate()
	var nbmois=myDate.getMonth()+1
	nbmois=nbmois*100
	var result=nbjour+nbmois
	return result
	}
function datej()
	{
	var myDate = new Date();
	var nbmois=myDate.getMonth()+1;
	if (nbmois<10)
		{nbmois="0"+nbmois}
	var result=myDate.getDate()+"/"+nbmois+"/"+myDate.getYear();
	return result
	}
function moisj()
	{
	var semaine= new Array("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi");
	var mois = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre");
	var myDate = new Date();
	var result= mois[myDate.getMonth()]+" "+(myDate.getYear());
	window.defaultStatus=  "VISITEZ LA SELECTION DE "+result;
	document.writeln (result)
	}
function miseforme()
	{ 
	
	if(document.all['miseforme'].style.visibility=='visible')
		{document.all['miseforme'].style.visibility='hidden';}
	else
		{document.all['miseforme'].style.visibility='visible';}
	}

 function accessible(cms)
{
	switch(cms)
	{
		case 1:
		{
			document.fliste1.idmenu1.disabled=true;
			document.fliste1.idssmenu1.disabled=true;
			document.fliste1.motclef.disabled=true;
			break
		}
		case 2:
		{
			document.fliste1.idmenu1.disabled=false;
			document.fliste1.idssmenu1.disabled=true;
			document.fliste1.motclef.disabled=true;
			break
		}
		case 3:
		{
			document.fliste1.idmenu1.disabled=true;
			document.fliste1.idssmenu1.disabled=false;
			document.fliste1.motclef.disabled=true;
			break
		}
		case 4:
		{
			document.fliste1.idmenu1.disabled=true;
			document.fliste1.idssmenu1.disabled=true;
			document.fliste1.motclef.disabled=false;
			break
		}
		default:
		{
			alert ("problème");
		}
	}
}
                   // PARAMETRES MODIFIABLES
var delaiAffBull = 100
var delaiAffStat = 900
var autoEffBull  = 9000
var delaiEffBull = 200
var delaiEffStat = 200
var DecalVertic  = 16
var DecalHoriz   = 6
var TailleText   = 'font-size: 11px'  
var PolicText    = 'Tahoma,Arial'     
var CouleurTexte = '#494B5D'          
var CouleurFond  = '#FDF1B0'          
var CouleurBord  = '#786654'
var CouleurOmbr  = '#000000'


                  // PARAMETRES A NE PAS MODIFIER
var AffichBull=setTimeout('document.getElementById("infoBull").style.visibility = "visible";document.getElementById("ombrBull").style.visibility = "visible"',delaiAffBull);
clearTimeout(AffichBull);
var EffacBull=setTimeout('Vt=2;effacem()',delaiEffBull);
clearTimeout(EffacBull);
var EffacAutoBull=setTimeout('Vt=1;effacem();window.status=""',autoEffBull);
clearTimeout(EffacAutoBull);
var tempo=setTimeout('if(Vt==1)Opac=Opac-3;OpacOmbr=OpacOmbr-3;if(Vt==2)Opac=Opac-8;OpacOmbr=OpacOmbr-8;effacem()',Vitess/1000);
clearTimeout(tempo);
var AffStat=setTimeout('window.status=textBull',delaiAffStat);
clearTimeout(AffStat);

                  // DECLARATIONS
var textBull     = '';
var Vitess       = 1;
var Opac         = 500;
var OpacOmbr     = 20;
var Opac_2       = 10;
var Opac_2Ombr   = .2;
var Vt           = 1;
var EffB         = 0;
var larg_ecran_B = 0;
var haut_ecran_B = 0;
var Long         = 0;
var limiteH      = 0;
var limiteV      = 0;
var retourB      = 0;
var PosHoriz     = 0;
var PosVertic    = 0;
var PosBullHoriz = 0;
var PosBullVerti = 0;
var scrollPag    = 0;
var limiteBull   = 0;

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

if(navigator.appName.substring(0,3) == "Net")
	document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = get_mouse;                                            // Capture de la position de la souris

function get_mouse(e){                                                       // Transfert de la position de la souris
	x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
	y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
	    PosBullHoriz = x;
            PosBullVerti = y;
}

function affichBulle(Bull){                                                  // Affichage de la bulle
        larg_ecran_B = document.body.clientWidth;                            // Recadrage dans l'écran
        haut_ecran_B = document.body.clientHeight;
        scrollPag = document.body.scrollTop;
        if (ie4)Long = (Bull.length * (60 / 13)) + 26; 
        if (ns6)Long = (Bull.length * (60 / 13)) + 50;                       // (50) A adapter selon de la police 
        limiteH = PosBullHoriz + Long + DecalHoriz;
        limiteV = scrollPag + haut_ecran_B;
        retourB = limiteH - larg_ecran_B;
        PosHoriz = PosBullHoriz + DecalHoriz;
        PosVertic = PosBullVerti + DecalVertic;
        limiteBull = PosBullVerti + 30;
        if (limiteH > larg_ecran_B)PosHoriz = PosHoriz - retourB;
        if (limiteBull > limiteV)PosVertic = PosVertic - 40;
        if (Bull == 0){                                                      // Test de la présence du texte
        clearTimeout(AffichBull);
        clearTimeout(EffacAutoBull);
        clearTimeout(AffStat);
        EffacBull=setTimeout('Vt=2;effacem()',delaiEffBull);
        setTimeout('ChxLien=0',300);
        }
        else if (Bull != 0){var textBull = Bull;                             // Récuperation du texte
        if (document.getElementById){document.getElementById("infoBull").style.visibility = "hidden";document.getElementById("ombrBull").style.visibility = "hidden";}
        Opac = 100;OpacOmbr = 20
var cadreBull = '<table border="1" cellpadding="0" cellspacing="0"'+         // Cadre de la bulle
                ' style="border:1px solid '+CouleurBord+'; border-collapse: collapse; font-family: '+PolicText+'; '+TailleText+'; color: '+CouleurTexte+'; margin-left: 8; filter: alpha(opacity='+Opac+'); -moz-opacity: '+Opac_2+'"><tr><td style="border-style:solid; border-width:1px; margin-left: 8;" bgcolor="'+CouleurFond+'" bordercolor="'+CouleurBord+'" Width=><nobr>&nbsp; '+textBull+' &nbsp;</nobr></td></tr></table>'
var ombreBull = '<table border="0" cellpadding="0" cellspacing="0"'+         // Ombre de la bulle
                ' style="border:0px solid '+CouleurBord+'; border-collapse: collapse; font-family: '+PolicText+'; '+TailleText+'; color: '+CouleurTexte+'; margin-left: 8; filter: alpha(opacity='+OpacOmbr+'); -moz-opacity: '+Opac_2Ombr+'"><tr><td style="border-style:solid; border-width:0px; margin-left: 8;" bgcolor="'+CouleurOmbr+'" bordercolor="'+CouleurBord+'" Width=><nobr>&nbsp; '+textBull+'&nbsp;</nobr></td></tr></table>'

        if ((document.getElementById) && (document.getElementById("infoBull").style.visibility != "visible")){
            document.getElementById("infoBull").innerHTML = cadreBull;      // Affichage du cadre avec le texte 
            document.getElementById("ombrBull").innerHTML = ombreBull;
            AffichBull=setTimeout('document.getElementById("infoBull").style.visibility = "visible";document.getElementById("ombrBull").style.visibility = "visible"',delaiAffBull);
            document.getElementById("infoBull").style.top = PosVertic;      // position verticale
            document.getElementById("infoBull").style.left = PosHoriz;      // Position horizontale
            document.getElementById("ombrBull").style.top = PosVertic + 5;  // position verticale
            document.getElementById("ombrBull").style.left = PosHoriz + 8;  // Position horizontale
            EffacAutoBull=setTimeout('Vt=1;effacem();window.status=""',autoEffBull);
            clearTimeout(EffacBull);
            }
        }
        afftextStat(Bull);                                                  // Transfert du texte pour la barre de status
}

function afftextStat(text){                                                 // Affichage du texte de la barre de status
        if(text != 0){textBull = text;
        AffStat=setTimeout('window.status=textBull',delaiAffStat)}
        else {setTimeout("window.status=''",delaiEffStat)}
}

function effacem(){
var cadreBull = '<table border="1" cellpadding="0" cellspacing="0"'+        // Cadre de la bulle
                ' style="border:1px solid '+CouleurBord+'; border-collapse: collapse; font-family: '+PolicText+'; '+TailleText+'; color: '+CouleurTexte+'; margin-left: 8; filter: alpha(opacity='+Opac+'); -moz-opacity: '+Opac_2+'"><tr><td style="border-style:solid; border-width:1px; margin-left: 8;" bgcolor="'+CouleurFond+'" bordercolor="'+CouleurBord+'" Width=><nobr>&nbsp; '+textBull+' &nbsp;</nobr></td></tr></table>'
var ombreBull = '<table border="0" cellpadding="0" cellspacing="0"'+        // Ombre de la bulle
                ' style="border:0px solid '+CouleurBord+'; border-collapse: collapse; font-family: '+PolicText+'; '+TailleText+'; color: '+CouleurTexte+'; margin-left: 8; filter: alpha(opacity='+OpacOmbr+'); -moz-opacity: '+Opac_2Ombr+'"><tr><td style="border-style:solid; border-width:0px; margin-left: 8;" bgcolor="'+CouleurOmbr+'" bordercolor="'+CouleurBord+'" Width=><nobr>&nbsp; '+textBull+'&nbsp;</nobr></td></tr></table>'

        document.getElementById("infoBull").innerHTML = cadreBull
        document.getElementById("ombrBull").innerHTML = ombreBull
        if (ie4) tempo=setTimeout('if(Vt==1)Opac=Opac-3;OpacOmbr=OpacOmbr-3;if(Vt==2)Opac=Opac-8;OpacOmbr=OpacOmbr-8;effacem()',Vitess/1000)
        else {document.getElementById("infoBull").innerHTML = "";document.getElementById("ombrBull").innerHTML = "";}           // A vous d'adapter l'éffacement en douceur pour Netscape, Firefox, etc...
        if (Opac <= 0) {
        clearTimeout(tempo)
        document.getElementById("infoBull").innerHTML = ""
        document.getElementById("ombrBull").innerHTML = ""
        }
}

document.write('<DIV id=infoBull STYLE="position: absolute;z-Index:10"></DIV><DIV id=ombrBull STYLE="position: absolute;z-Index:9"></DIV>')


