<!--
/* Copyright 2004 : Christian Weber                		*/
/* Auteur :  Christian Weber		           		*/
/* Regroupement de toutes mes fonctions javascript 		*/

/* ---------------------------------------------------------	*/
/* --- script pour afficher qqchose dans la barre d'etat ---	*/
/* ---------------------------------------------------------	*/
/* Je ne l'ai pas ecrit donc voici les ref de ce code 		*/
/*								*/
/* This script and many more are available free online at 	*/
/* The JavaScript Source!! http://javascript.internet.com 	*/
/* Original:  Bryan Pieterse 					*/
/* Web Site:   http://www.angelfire.com/me4/favourites/ 	*/
function scrollit_r2l(seed)
{
   var m1  = "  Ce site est optimisé pour Internet Explorer et pour un affichage 800*600  ";
   var m2  = "        >> -- <<        ";
   var m3  = "  Ce site est consacré à la vie du club et au karaté Wado-Ryu  ";
   var m4  = "  Bonne Visite........   HAJIME!!  ";
   var msg=m2+m1+m2+m3+m2+m4+m2;
   var out = "Site MikaWado   ";
   var c   = 1;
   if (seed > 100) {
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      timerTwo=window.setTimeout(cmd,100);
   }
   else if (seed <= 100 && seed > 0) {
      for (c=0 ; c < seed ; c++) {
         out+=" ";
      }
      out+=msg;
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      window.status=out;
      timerTwo=window.setTimeout(cmd,100);
   }
   else if (seed <= 0) {
      if (-seed < msg.length) {
         out+=msg.substring(-seed,msg.length);
         seed--;
         var cmd="scrollit_r2l(" + seed + ")";
         window.status=out;
         timerTwo=window.setTimeout(cmd,100);
      }
      else {
         window.status=" ";
         timerTwo=window.setTimeout("scrollit_r2l(100)",75);
      }
   }
}


/* -------------------------------------------	*/
/* --- Fonction affiche le jour et l'heure ---	*/
/* -------------------------------------------	*/
function dDay()
{
   today = new Date();
   var jour_dans_semaine = today.getDay();
   var today_J=today.getDate();
   var today_H=today.getHours();
   var today_M=today.getMinutes();
   var jour_semaine = new
   Array("dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi");
   var mois_annee = today.getMonth();
   var mois = new
   Array("Janvier","F&eacute;vrier","Mars","Avril","Mai","Juin",
   "Juillet","Ao&ucirc;t","Septembre","Octobre","Novembre","D&eacute;cembre");
   document.write("Nous sommes le <b>",jour_semaine[jour_dans_semaine]," ", ((today_J<10)?'0'+today_J:today_J)," ",mois[mois_annee]," ",today.getYear(),"</b>, ");
   document.write("il est déjà <b>",((today_H<10)?'0'+today_H:today_H),":",((today_M<10)?'0'+today_M:today_M),"</b>. ");

}


/* --------------------------------------------	*/
/* --- Fonction affiche la fete a souhaiter ---	*/
/* --------------------------------------------	*/
function Fete()
{
   u21_date = new Date();
   u21_jour = u21_date.getDate();
   u21_mois = u21_date.getMonth();
   document.write("N'oubliez pas de fêter les: <b>" +getFonc(u21_mois,u21_jour-1)+"</b>");
}

/* --------------------------------------	*/
/* --- Fonction montre les sous-menus ---	*/
/* --------------------------------------	*/
  function montre(id) {
	  if (document.getElementById) {
		  document.getElementById(id).style.display="block";
		} else if (document.all) {
		  document.all[id].style.display="block";
		} else if (document.layers) {
		  document.layers[id].display="block";
		} } 

/* -------------------------------------	*/
/* --- Fonction cache les sous-menus ---	*/
/* -------------------------------------	*/
 function cache(id) {
	  if (document.getElementById) {
		  document.getElementById(id).style.display="none";
		} else if (document.all) {
		  document.all[id].style.display="none";
		} else if (document.layers) {
		  document.layers[id].display="none";
		} } 


/* ------------------------------------------------------------------	*/
/* --- Fonction qui lance au demarage les news et la status barre ---	*/
/* ------------------------------------------------------------------	*/
function Init()
   {
   timerONE=window.setTimeout('scrollit_r2l(100)',600);
   MyBox = new Box('MyBox', 'news', 1, 100, 4000, 10);
   MyBox.start();
}

//-->