//affichage de la date
function date()
{       
	var now = new Date();
//variables
	var day = now.getDay();
	var date = now.getDate();
	var month = now.getMonth() +1;
	var year = now.getYear();
	var jour = "";
	var mois = "";

	if (year < 1900)
		year = year + 1900;
//transformation du jour
	if (day == 0)
		jour = "Dimanche";
	if (day == 1)
		jour = "Lundi";
	if (day == 2)
		jour = "Mardi";
	if (day == 3)
		jour = "Mercredi";
	if (day == 4)
		jour = "Jeudi";
	if (day == 5)
		jour = "Vendredi";
	if (day == 6)
		jour = "Samedi";
//Transformation du mois
	if (month == 1)
		mois = "janvier";
	if (month == 2)
		mois = "f&eacute;vrier";
	if (month == 3)
		mois = "mars";
	if (month == 4)
		mois = "avril";
	if (month == 5)
		mois = "mai";
	if (month == 6)
		mois = "juin";
	if (month == 7)
		mois = "juillet";
	if (month == 8)
		mois = "ao&ucirc;t";
	if (month == 9)
		mois = "septembre";
	if (month == 10)
		mois = "octobre";
	if (month == 11)
		mois = "novembre";
	if (month == 12)
		mois = "d&eacute;cembre";
//envoi date
	return( jour + "  " + date + " " + mois   + " " + year );
}


//affichage rotatif aléatoire des bannières
function plus()
{
//insertion code html
code_html = '<a href="'+liens[chiffre]+'"target="_blank"><img border="0" src="'+pictures[chiffre]+'"></a>';
document.getElementById("zone_bannieres").innerHTML = code_html;
//génération nombre aléatoire
chiffre = Math.floor(Math.random()*10);

//timing en secondes de la rotation
changement = 5;

window.setTimeout("plus()", (changement*1000));
}

//bandeaux anonceurs
pictures = new Array();
pictures[0] = 'bandeaux_pub/famous.gif';
pictures[1] = 'bandeaux_pub/apicaa.gif';
pictures[2] = 'bandeaux_pub/iris.gif';
pictures[3] = 'bandeaux_pub/ellatv.gif';
pictures[4] = 'bandeaux_pub/famous.gif';
pictures[5] = 'bandeaux_pub/NDS.gif';
pictures[6] = 'bandeaux_pub/ellatv.gif';
pictures[7] = 'bandeaux_pub/famous.gif';
pictures[8] = 'bandeaux_pub/NDS.gif';
pictures[9] = 'bandeaux_pub/ellatv.gif';
longueur = pictures.length-1;

//url des annonceurs
liens = new Array();
liens[0] = 'http://afrobizmagazine.com/evenement01.html';
liens[1] = 'annonceur.html';
liens[2] = 'annonceur.html';
liens[3] = 'http://www.ella-tv.com';
liens[4] = 'http://afrobizmagazine.com/evenement01.html';
liens[5] = 'http://www.gabonlasalette.com';
liens[6] = 'http://www.ella-tv.com';
liens[7] = 'http://afrobizmagazine.com/evenement01.html';
liens[8] = 'http://www.gabonlasalette.com';
liens[9] = 'http://www.ella-tv.com';

chiffre = 0;


//affichage rotatif network zone 1
function plus1()
{
//insertion code html
code_html = '<img border="0" src="'+pictures1[defil1]+'" width="113" height="49" alt="Rejoignez le plus grand réseau du showbiz afro.">';
document.getElementById("zone1").innerHTML = code_html;
//génération nombre aléatoire
if (defil1 == longueur1)
{ defil1=0; }
else 
{ defil1 ++; }
//timing en secondes de la rotation
changement1 = 2.5;
window.setTimeout("plus1()", (changement1*1000));
}
//images
pictures1 = new Array();
pictures1[0] = 'images/network_defil_prince_albert.jpg';
pictures1[1] = 'images/network_defil_nubians.jpg';
pictures1[2] = 'images/network_defil_mawachigueri.jpg';
longueur1 = pictures1.length-1;

defil1 = 0;

//affichage rotatif network zone 3
function plus3()
{
//insertion code html
code_html = '<img border="0" src="'+pictures3[defil3]+'" width="113" height="49" alt="Rejoignez le plus grand réseau du showbiz afro.">';
document.getElementById("zone3").innerHTML = code_html;
//génération nombre aléatoire
if (defil3 == longueur3)
{ defil3=0; }
else 
{ defil3 ++; }
//timing en secondes de la rotation
changement3 = 2.8;
window.setTimeout("plus3()", (changement3*1000));
}
//images
pictures3 = new Array();
pictures3[0] = 'images/network_defil_keziah.jpg';
pictures3[1] = 'images/network_defil_3freres.jpg';
pictures3[2] = 'images/network_defil07.jpg';
longueur3 = pictures3.length-1;

defil3 = 0;


//fonctions affichage-masquage
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//menus flottants
//masquage onload et affichage auto couverture
function demarrage()
{
window.open('couverture.html','mainFrame');
MM_showHideLayers('Profils','','hide');
MM_showHideLayers('Mode','','hide');
MM_showHideLayers('Arts','','hide');
}
//menu profils
profil=0;
function affich_profil()
{
if(profil==0)
{
MM_showHideLayers('Profils','','show');
profil=1;
}
else
{
MM_showHideLayers('Profils','','hide');
profil=0;
}
}
//menu modemag
mode=0;
function affich_modemag()
{
if(mode==0)
{
MM_showHideLayers('Modemag','','show');
mode=1;
}
else
{
MM_showHideLayers('Modemag','','hide');
mode=0;
}
}
//menu arts & littérature
art=0;
function affich_art()
{
if(art==0)
{
MM_showHideLayers('Arts','','show');
art=1;
}
else
{
MM_showHideLayers('Arts','','hide');
art=0;
}
}

//menu Musique
art=0;
function affich_Musique()
{
if(art==0)
{
MM_showHideLayers('musique','','show');
art=1;
}
else
{
MM_showHideLayers('musique','','hide');
art=0;
}
}
//menu Cinéma
art=0;
function affich_Cinema()
{
if(art==0)
{
MM_showHideLayers('cinema','','show');
art=1;
}
else
{
MM_showHideLayers('cinema','','hide');
art=0;
}
}
//menu Littérature
art=0;
function affich_Litterature()
{
if(art==0)
{
MM_showHideLayers('litterature','','show');
art=1;
}
else
{
MM_showHideLayers('litterature','','hide');
art=0;
}
}
//menu Arts plastiques
art=0;
function affich_Arts_plastiques()
{
if(art==0)
{
MM_showHideLayers('artsplastiques','','show');
art=1;
}
else
{
MM_showHideLayers('artsplastiques','','hide');
art=0;
}
}
//menu Mode
art=0;
function affich_Mode()
{
if(art==0)
{
MM_showHideLayers('mode','','show');
art=1;
}
else
{
MM_showHideLayers('mode','','hide');
art=0;
}
}
//menu Medias
art=0;
function affich_Medias()
{
if(art==0)
{
MM_showHideLayers('medias','','show');
art=1;
}
else
{
MM_showHideLayers('medias','','hide');
art=0;
}
}
//menu Autres
art=0;
function affich_Autres()
{
if(art==0)
{
MM_showHideLayers('autres','','show');
art=1;
}
else
{
MM_showHideLayers('autres','','hide');
art=0;
}
}